[OpenLayers-Trac] [OpenLayers] #3040: arcgis 10 WFS support

OpenLayers trac-20090302 at openlayers.org
Fri Feb 4 05:58:27 EST 2011

#3040: arcgis 10 WFS support
 Reporter:  travin   |       Owner:              
     Type:  bug      |      Status:  new         
 Priority:  minor    |   Milestone:  2.11 Release
Component:  general  |     Version:  2.10        
 Keywords:           |       State:              
 FF3.6 and IE8, Windows 7

 The gml response of an WFS service of an Arcgis 10 server can't be parsed.
 I attached an example of a gml response.
 I found that the problem was in the posList. The parser expected a
 dimension attribute, which is missing.

 My simplified code

      var options = {
         strategies: [
             new OpenLayers.Strategy.BBOX(),
             new OpenLayers.Strategy.Filter({
                 filter: filter
         protocol: new OpenLayers.Protocol.WFS({
             url: config.url,
             featureType: config.featureType,
             featureNS: config.url,
             featurePrefix: config.featurePrefix,
             geometryName: config.geometryName,
             srsName: Maps.defaultMap.projection,
             version: '1.1.0',
             readFormat: new OpenLayers.Format.GML(),
             schema: config.schema
         styleMap: config.styleMap,
         units: Maps.defaultMap.units

     new OpenLayers.Layer.Vector(name, options);

 To fix this, I added following code to the method

 var dim = parseInt(nodeList[0].getAttribute("dimension"));

 // MY FIX
 if (!dim) {
     dim = 2;

Ticket URL: <http://trac.openlayers.org/ticket/3040>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer

More information about the Trac mailing list