<HTML>
<HEAD>
<TITLE>Re: [mapserver-users] problem with WMS GetFeatureInfo and GML</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Steve,<BR>
<BR>
There is an existing ticket open on this. <BR>
<BR>
<a href="http://trac.osgeo.org/mapserver/ticket/2989">http://trac.osgeo.org/mapserver/ticket/2989</a><BR>
<BR>
Maybe something to push for in 5.6?<BR>
<BR>
Mike<BR>
<BR>
<BR>
-- <BR>
Michael Smith<BR>
RSGIS Center<BR>
US Army Corps of Engineers<BR>
<BR>
<BR>
<BR>
<BR>
On 9/4/09 1:19 PM, "<a href="Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>" <<a href="Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
Hello, <BR>
Via openlayers I launch an url to mapserver (v5.2.1) which returns a GML. See the URL and the response below. I put the layer definition of the mapfile as well. <BR>
I'm not sure if my problem is on mapserver or on openlayers side. The problem is I can't add the geometry to the openlayers vector layer for some reasons. As if the geometry was null. <BR>
If someone could confirm that everything is ok or not on mapserver side would help me. <BR>
<BR>
thanks in advance for your help, <BR>
Steve <BR>
***************************************** <BR>
LAYER <BR>
NAME "national_2006" <BR>
GROUP "Vulnerabilite" <BR>
CONNECTIONTYPE postgis <BR>
CONNECTION "host=10.2.192.247 dbname=geo user=dbaInspq password=!dbaInspq! port=5432" <BR>
DATA "geom900913 FROM lim_admin.inddef_2006 using unique gid" <BR>
TYPE POLYGON <BR>
STATUS off <BR>
<BR>
PROJECTION <BR>
"init=epsg:900913" <BR>
END <BR>
PROCESSING "CLOSE_CONNECTION=DEFER" <BR>
METADATA <BR>
"wms_title" "Indice de défavorisation national 2006" <BR>
"wms_group_title" "Vulnérabilité" <BR>
'wms_srs' 'EPSG:4326 EPSG:32198 EPSG:900913' <BR>
"wms_include_items" "all" <BR>
"gml_include_items" "ad,quintmat,quintsoc" <BR>
'gml_featureid' 'gid' <BR>
END <BR>
DUMP TRUE <BR>
TOLERANCE 0 <BR>
TEMPLATE '../template/query_indiceDef.html' <BR>
HEADER '../template/query_header.html' <BR>
FOOTER '../template/query_footer.html' <BR>
INCLUDE "/ms4w/inspq/map/Class_IndiceDefavorisation.map" <BR>
END <BR>
********************************** <BR>
<BR>
<a href="http://10.2.192.247/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map&&service=WMS&version=1.1.0&request=GetFeatureInfo&layers=national_2006&query_layers=national_2006&styles=&bbox=-8225541.519129%2C5696087.269543%2C-8187017.256881%2C5719324.126138&srs=EPSG%3A900913&feature_count=10&x=425&y=500&height=608&width=1008&info_format=application%2Fvnd.ogc.gml">http://10.2.192.247/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map&&service=WMS&version=1.1.0&request=GetFeatureInfo&layers=national_2006&query_layers=national_2006&styles=&bbox=-8225541.519129%2C5696087.269543%2C-8187017.256881%2C5719324.126138&srs=EPSG%3A900913&feature_count=10&x=425&y=500&height=608&width=1008&info_format=application%2Fvnd.ogc.gml</a> <BR>
*********************************************************************************** <BR>
And the response is this: <BR>
<?xml version="1.0" encoding="ISO-8859-1"?> <BR>
<BR>
<msGMLOutput <BR>
xmlns:gml="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>" <BR>
xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" <BR>
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance"">http://www.w3.org/2001/XMLSchema-instance"</a>> <BR>
<national_2006_layer> <BR>
<national_2006_feature> <BR>
<gml:boundedBy> <BR>
<gml:Box srsName="EPSG:900913"> <BR>
<gml:coordinates>-8212506.502737,5697097.841728 -8204853.558950,5702856.964043</gml:coordinates> <BR>
</gml:Box> <BR>
</gml:boundedBy> <BR>
<ad>24662464</ad> <BR>
<quintmat>1</quintmat> <BR>
<quintsoc>2</quintsoc> <BR>
</national_2006_feature> <BR>
</national_2006_layer> <BR>
</msGMLOutput> <BR>
<BR>
</SPAN><FONT SIZE="4"><SPAN STYLE='font-size:14pt'> <BR>
</SPAN></FONT><SPAN STYLE='font-size:11pt'><BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
mapserver-users mailing list<BR>
<a href="mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><BR>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>