[OpenLayers-Users] WMSGetFeatureInfo not working as expected with msGMLoutput

Stefanie Weykam stefanie at weykam.net
Fri Feb 12 06:55:07 EST 2010


Hi list members,

I have a problem with my Mapserver WMS server and the 
OpenLayers.Control.WMSGetFeatureInfo.

According to wmsOptions.params.info_format in the WMSGetFeatureInfo.js 
request function is 'application/vnd.ogc.gml' (this is what I want)

In the WMSGetFeatureInfo.js handleResponse function request.responseXML 
is null and request.responseText contains the data (see below). Is this 
the normal behaviour?


<?xml version="1.0" encoding="ISO-8859-1"?>

<msGMLOutput
xmlns:gml="http://www.opengis.net/gml"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<geo_sardina_layer>
<geo_sardina_feature>
<gml:boundedBy>
<gml:Box srsName="EPSG:4326">
<gml:coordinates>-5.133333,43.583333 -5.133333,43.583333</gml:coordinates>
</gml:Box>
</gml:boundedBy>
<nombre_estacion>50</nombre_estacion>
<latitud>43.583333</latitud>
<longitud>-5.133333</longitud>
<abundancia_sardina>0.854413312</abundancia_sardina>
</geo_sardina_feature>
</geo_sardina_layer>
</msGMLOutput>

I then get an error message saying “Geometry Type not supported: Box”

How do I get my GML response parsed correctly?


Related Software:
OpenLayers 2.8
Firefox 3.5.7 on Windows with Firebug
UMN Mapserver 5.2.1 as WMS Server




More information about the Users mailing list