<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;">On Monday 05 October 2009 09:26:35 pm Rahkonen Jukka wrote:<br>
> Hi,<br>
><br>
> X and y in GetFeatureInfo request are image pixel coordinates, not<br>
> geographic ones. See how ESRI describes it<br>
> http://webhelp.esri.com/arcims/9.2/general/mergedProjects/wms_connect/wms_c<br>
>onnector/get_featureinfo.htm<br>
><br>
> -Jukka Rahkonen-<br>
><br>
><br>
><br>
> Iratxe Lejarreta wrote:<br>
><br>
> Hi,<br>
><br>
> When I execute the following command, Postfix return the correct result:<br>
> select * from building where<br>
> ST_INTERSECTS(geom,'SRID=23030;POINT(579389.40625 4795144.78125)');<br>
><br>
> But when I execute GetFeatureInfo request in MapServer with the same<br>
> point(x,y), the response doesn't return any result:<br>
> http://localhost/cgi-<br>
> bin/test?&SERVICE=wms&VERSION=1.1.1&REQUEST=getfeatureinfo&LAYERS=mylayer&Q<br>
>UERY_LAYERS=mylayer&x=579389.40625&y=479511.78125&INFO_FORMAT=text/html&SRS=<br>
>EPSG:23030&BBOX=532666.0,4749720.0,603151.0,4805350.0&WIDTH=512&HEIGHT=512<br>
><br>
> My map file:<br>
><br>
> MAP<br>
> NAME "TEST"<br>
> STATUS ON<br>
> SIZE 400 300<br>
> SYMBOLSET symbols.sym<br>
> EXTENT 530000 4740000 610000 4820000<br>
> UNITS METERS<br>
> SHAPEPATH "data"<br>
> IMAGECOLOR 255 255 255<br>
> FONTSET fonts.txt<br>
><br>
> WEB<br>
> IMAGEPATH "/tmp/"<br>
> IMAGEURL "/tmp/"<br>
> HEADER "../templates/test_header.html"<br>
> FOOTER "../templates/test_footer.html"<br>
> METADATA<br>
> "wms_title" "Test"<br>
> "wms_onlineresource" "http://localhost/cgi-bin/test?"<br>
> "wms_srs" "EPSG:23030"<br>
> "wms_feature_info_mime_type" "text/html"<br>
> END<br>
> END<br>
><br>
> PROJECTION<br>
> "init=epsg:23030"<br>
> END<br>
><br>
> LAYER<br>
> NAME mylayer<br>
> PROJECTION<br>
> "init=epsg:23030"<br>
> END<br>
> TYPE POLYGON<br>
> STATUS ON<br>
> DUMP TRUE<br>
> UNITS METERS<br>
> TEMPLATE "../templates/mylayer_body.html"<br>
> CONNECTIONTYPE postgis<br>
> CONNECTION "host=localhost port=5432 dbname=mydb user=postgres<br>
> password=******"<br>
> DATA "the_geom from mylayer"<br>
> METADATA<br>
> "wms_title" "mylayer"<br>
> "wms_srs" "EPSG:23030"<br>
> "wms_extent" "532666 4749720 603151 4805350"<br>
> "wms_feature_info_mime_type" "text/html"<br>
> "wms_include_items" "all"<br>
> END<br>
> TOLERANCE 5<br>
> CLASS<br>
> NAME "building"<br>
> STYLE<br>
> COLOR 200 255 0<br>
> OUTLINECOLOR 120 120 120<br>
> END<br>
> END<br>
> END<br>
><br>
> END<br>
><br>
><br>
> I tried the same map configuration with another layer but with SRS:4326 and<br>
> the result of GetFeatureInfo request is ok.<br>
> If the difference is the projection and extent, where is the error?<br>
><br>
> Thanks in advance!<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Ok, I changed X and Y but the result is null.<br>
The same request with shapefile gives me the result that I want, but with postgis I don't receive any result.<br>
Is there any bug with MapServer and Postgis in a different projection than 4326?<br>
Thanks!<br>
-- <br>
Iratxe Lejarreta<br>
www.axios.es</p></body></html>