<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 &nbsp;1:19 PM, &quot;<a href="Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>&quot; &lt;<a href="Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>&gt; 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>
&nbsp;&nbsp;NAME &quot;national_2006&quot; <BR>
&nbsp;&nbsp;GROUP &quot;Vulnerabilite&quot; <BR>
&nbsp;&nbsp;CONNECTIONTYPE postgis <BR>
&nbsp;&nbsp;CONNECTION &quot;host=10.2.192.247 dbname=geo user=dbaInspq password=!dbaInspq! port=5432&quot; <BR>
&nbsp;&nbsp;DATA &quot;geom900913 FROM lim_admin.inddef_2006 using unique gid&quot; <BR>
&nbsp;&nbsp;TYPE POLYGON <BR>
&nbsp;&nbsp;STATUS off <BR>
<BR>
PROJECTION <BR>
&nbsp;&nbsp;&quot;init=epsg:900913&quot; <BR>
END <BR>
PROCESSING &quot;CLOSE_CONNECTION=DEFER&quot; <BR>
&nbsp;&nbsp;METADATA <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&quot;wms_title&quot; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Indice de d&eacute;favorisation national 2006&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&quot;wms_group_title&quot; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Vuln&eacute;rabilit&eacute;&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;'wms_srs' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'EPSG:4326 EPSG:32198 EPSG:900913' <BR>
&quot;wms_include_items&quot; &quot;all&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;gml_include_items&quot; &quot;ad,quintmat,quintsoc&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'gml_featureid' 'gid' <BR>
&nbsp;&nbsp;END <BR>
DUMP TRUE <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TOLERANCE 0 <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TEMPLATE '../template/query_indiceDef.html' <BR>
HEADER '../template/query_header.html' <BR>
FOOTER '../template/query_footer.html' <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;INCLUDE &quot;/ms4w/inspq/map/Class_IndiceDefavorisation.map&quot; <BR>
END <BR>
********************************** <BR>
<BR>
<a href="http://10.2.192.247/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map&amp;&amp;service=WMS&amp;version=1.1.0&amp;request=GetFeatureInfo&amp;layers=national_2006&amp;query_layers=national_2006&amp;styles=&amp;bbox=-8225541.519129%2C5696087.269543%2C-8187017.256881%2C5719324.126138&amp;srs=EPSG%3A900913&amp;feature_count=10&amp;x=425&amp;y=500&amp;height=608&amp;width=1008&amp;info_format=application%2Fvnd.ogc.gml">http://10.2.192.247/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_chaleur.map&amp;&amp;service=WMS&amp;version=1.1.0&amp;request=GetFeatureInfo&amp;layers=national_2006&amp;query_layers=national_2006&amp;styles=&amp;bbox=-8225541.519129%2C5696087.269543%2C-8187017.256881%2C5719324.126138&amp;srs=EPSG%3A900913&amp;feature_count=10&amp;x=425&amp;y=500&amp;height=608&amp;width=1008&amp;info_format=application%2Fvnd.ogc.gml</a> <BR>
*********************************************************************************** <BR>
And the response is this: <BR>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt; <BR>
<BR>
&lt;msGMLOutput <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xmlns:gml=&quot;<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xmlns:xlink=&quot;<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>&quot; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance&quot;">http://www.w3.org/2001/XMLSchema-instance&quot;</a>&gt; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;national_2006_layer&gt; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/gml:boundedBy&gt; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ad&gt;24662464&lt;/ad&gt; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;quintmat&gt;1&lt;/quintmat&gt; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;quintsoc&gt;2&lt;/quintsoc&gt; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/national_2006_feature&gt; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/national_2006_layer&gt; <BR>
&lt;/msGMLOutput&gt; <BR>
<BR>
</SPAN><FONT SIZE="4"><SPAN STYLE='font-size:14pt'> &nbsp;<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>