[OpenLayers-Trac] [OpenLayers] #3037: OpenLayers.Protocol.WFS misses a setGeometryName method

OpenLayers trac-20090302 at openlayers.org
Tue Feb 1 03:23:04 EST 2011

#3037: OpenLayers.Protocol.WFS misses a setGeometryName method
 Reporter:  fvanderbiest  |       Owner:  tschaub     
     Type:  feature       |      Status:  new         
 Priority:  minor         |   Milestone:  2.11 Release
Component:  Protocol.WFS  |     Version:  SVN         
 Keywords:                |       State:  Review      
 WFS protocol can be created after WFS getCapabilities, for instance, by a
 GeoExt WFSCapabilitiesReader. At this stage, protocol's geometryName is
 unkown, since it can only be obtained by WFS DescribeFeatureType.

 Thus, I think we need a setGeometryName method in
 OpenLayers.Protocol.WFS.v1, so that its internal format can be upgraded to
 take into account a geometryName different than OpenLayers' default

 Here's a simple implementation for this proposal :
      * APIMethod: setGeometryName
      * Sets the geometryName option after instanciation.
     setGeometryName: function(geometryName) {
         this.geometryName = geometryName;
         this.format.geometryName = geometryName;


 It would also be very easy to do it at application level, but since the
 format is not an API property, it might be better to expose an API method
 for this purpose.

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

More information about the Trac mailing list