[OpenLayers-Dev] WFS and IE 11

Steffen G martsystems at gmx.net
Fri Nov 22 06:06:55 PST 2013


I have the same problem. It has something to do with the HTTP response text.

If you use:
http://www.openlayers.org/dev/examples/wfs-spatial-filter.html 
 
you get with IE11:
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
version="1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd"><wfs:Query
typeName="feature:tasmania_roads"
xmlns:NS1=""NS1:xmlns:feature="http://www.openplans.org/topp"><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc"><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Box
xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326"><gml:coordinates
cs="," decimal="." ts=" ">135.45,-47.425
157.95,-36.175</gml:coordinates></gml:Box></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>

and the vector is not displayed in the map.

The reponse is different for IE10 (no "xmlns:NS1=""NS1:xmlns") and older
versions. It is:

<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
version="1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd"><wfs:Query
typeName="feature:tasmania_roads"
xmlns:feature="http://www.openplans.org/topp"><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc"><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Box
xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326"><gml:coordinates
decimal="." cs="," ts=" ">135.45,-47.425
157.95,-36.175</gml:coordinates></gml:Box></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>

and you can see the vector in the map.

I hope it helps.



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/WFS-and-IE-11-tp5090636p5090677.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list