Hi users, I'm having a hard time using the WMSGetFeatureInfo format.
Instead of explaining, below's snippet (1). Because I currently can't have a response from my server since I have problems with HTTPS and proxy, I load a xml (see attached) instead ( it's a msGMLOutput XML from MapServer ).
I get an empty features array. Any clue what I'm doing wrong ? (1) /*---------snippet---------*/ showResult: function(response){ var oFeatures; var oFormat = new OpenLayers.Format.WMSGetFeatureInfo(); if(!response){ var xmlDoc=document.implementation.createDocument("","",null); xmlDoc.async="false"; xmlDoc.load("response.xml"); oFeatures = oFormat.read_msGMLOutput(xmlDoc); } else { oFeatures = oFormat.read_msGMLOutput(response.responseXML || response.responseText); } -- Alexandre Dubé Mapgears www.mapgears.com
<?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"> <gml:description></gml:description> <LIEU_PG_layer> <LIEU_PG_feature> <gml:boundedBy> <gml:Box srsName="EPSG:2036"> <gml:coordinates>-229507.624989,514030.124988 -229507.624989,514030.124988</gml:coordinates> </gml:Box> </gml:boundedBy> <id>32</id> <nom>gouv</nom> <lat>48.5808437055365</lat> <lon>-71.6251187337262</lon> <l_date>2008-08-20</l_date> </LIEU_PG_feature> </LIEU_PG_layer> </msGMLOutput>
_______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users