<!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;">Hi,<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>When I execute the following command, Postfix return the correct result:<br>
select * from building where ST_INTERSECTS(geom,'SRID=23030;POINT(579389.40625 4795144.78125)');<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>But when I execute GetFeatureInfo request in MapServer with the same point(x,y), the response doesn't return any result:<br>
http://localhost/cgi-bin/test?&SERVICE=wms&VERSION=1.1.1&REQUEST=getfeatureinfo&LAYERS=mylayer&QUERY_LAYERS=mylayer&x=579389.40625&y=479511.78125&INFO_FORMAT=text/html&SRS=EPSG:23030&BBOX=532666.0,4749720.0,603151.0,4805350.0&WIDTH=512&HEIGHT=512<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>My map file:<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>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>
<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>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>
<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>PROJECTION<br>
"init=epsg:23030"<br>
END<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>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 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>
<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>END<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><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>I tried the same map configuration with another layer but with SRS:4326 and the result of GetFeatureInfo request is ok. <br>
If the difference is the projection and extent, where is the error?<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>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>-- <br>
Iratxe Lejarreta<br>
www.axios.es</p></body></html>