[mapserver-users] Σχετ: Problem with CGI results

2016-04-07 Thread Stefanos Anastasiou
OK I got it
My IMAGESIZE is set to 800 600 in the mapfile
In my template the CGI parameters in the form are set to .
It seems that the width and height values have to be the same on both the 
mapfile and the template...or not set in the template at all. 

Στις 4:03 μ.μ. Τετάρτη, 6 Απριλίου 2016, ο/η Jeff McKenna 
 έγραψε:
 

 Hi Stefanos,

When I try this locally with CGI, I also get the same value on first 
load for [mapx] and [mapy] of -1.,-1. likely because there is no 
point click yet.  But when I do click, the values for [mapx] and [mapy] 
returned look valid.

You might also want to check the returned values for [maplat] [maplon] 
as well.

If it is related to a projection issue, you might want to check the 
mailing list archives for relevant discussions, such as 
http://osgeo-org.1560.x6.nabble.com/retrieve-map-coordinates-with-different-EPSG-td5000369.html

I am testing with MS4W 3.1.3 (MapServer 7.0.1).

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2016-04-05 7:37 PM, Stefanos Anastasiou wrote:
>      Hello list.
>
> I'm having a problem I can't understand where it's coming from. I'm
> using [mapx] and [mapy] parameters to get the coordinates of a simple
> click. When I click anywhere on the image, the resulting x,y is at least
> 1 kilometer North-West from where it should. The image coordinates look
> correct but the x,y are really wrong. I'm copying and pasting my form
> variables below:
>
>  
>                           value="[mapext]">
>                          
>                           width="700" height="500">
>                          
>
>
> When I first load the map with the following URL
> http://127.0.0.1/cgi-bin/mapserv?map=/home/stefanos/mapdata/mymap.map
> 
>
> x, y are set automatically in -1,00 -1,00.
>
> Any idea?
>
>
>
> Regards,
> Stefanos
>



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Σχετ: Problem with CGI results

2016-04-07 Thread Stefanos Anastasiou
Hello Jeff,
 Thank you for the reply.  I'm pretty sure there's something I'm missing out 
here.
In my map object I set my extent to:  (retrieved from ogrinfo -al -so )       
EXTENT 30.000 4377000.000 304000.000 438.000       UNITS meters
If I click on the lower left corner of the image for the first time, [mapx], 
[mapy] will give: 30.000, 4377500.000A click in the upper right corner 
gives me: 303500.000, 438.000
This doesn't seem pretty right.
I've set three projection objects, one in the map level and one on each layer 
with "init=epsg:2100".
[maplat], [maplon] also gives me wrong values with the same epsg, but 300 
meters south than the [mapx], [mapx]
A first though would be that this should be a dataset problem 


   

Στις 4:03 μ.μ. Τετάρτη, 6 Απριλίου 2016, ο/η Jeff McKenna 
 έγραψε:
 

 Hi Stefanos,

When I try this locally with CGI, I also get the same value on first 
load for [mapx] and [mapy] of -1.,-1. likely because there is no 
point click yet.  But when I do click, the values for [mapx] and [mapy] 
returned look valid.

You might also want to check the returned values for [maplat] [maplon] 
as well.

If it is related to a projection issue, you might want to check the 
mailing list archives for relevant discussions, such as 
http://osgeo-org.1560.x6.nabble.com/retrieve-map-coordinates-with-different-EPSG-td5000369.html

I am testing with MS4W 3.1.3 (MapServer 7.0.1).

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2016-04-05 7:37 PM, Stefanos Anastasiou wrote:
>      Hello list.
>
> I'm having a problem I can't understand where it's coming from. I'm
> using [mapx] and [mapy] parameters to get the coordinates of a simple
> click. When I click anywhere on the image, the resulting x,y is at least
> 1 kilometer North-West from where it should. The image coordinates look
> correct but the x,y are really wrong. I'm copying and pasting my form
> variables below:
>
>  
>                           value="[mapext]">
>                          
>                           width="700" height="500">
>                          
>
>
> When I first load the map with the following URL
> http://127.0.0.1/cgi-bin/mapserv?map=/home/stefanos/mapdata/mymap.map
> 
>
> x, y are set automatically in -1,00 -1,00.
>
> Any idea?
>
>
>
> Regards,
> Stefanos
>



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] What molteplicity for wms_metadataurl_href info

2016-04-07 Thread Andrea Peri
Hi,

I try to set the mapserver to return two or more values for

"wms_metadataurl_format" "text/html"
"wms_metadataurl_href" "http://.url to html page"
"wms_metadataurl_type" "TC211"
"wms_metadataurl_format" "text/xml"
"wms_metadataurl_href" "http://.url to xml page"
"wms_metadataurl_type" "TC211"
"wms_metadataurl_format" "text/pdf"
"wms_metadataurl_href" "http://.url to pdf page"
"wms_metadataurl_type" "TC211"

But the getcapablites return always one only value.

text/htmlhttp://www502.regione.toscana.it/geometa/html/06_CCP_PIT_20150327.html"/>

AFAIK the ogc specs will allow to return more than one value.

I'm wrong on specs or this is an issue of mapserver ?

Thx.

-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users