[OpenLayers-Trac] Re: [OpenLayers] #3368: Make Protocol.WFS work with just featureType and featurePrefix

OpenLayers trac-20090302 at openlayers.org
Sat Jun 18 14:50:23 EDT 2011


#3368: Make Protocol.WFS work with just featureType and featurePrefix
--------------------------+-------------------------------------------------
 Reporter:  ahocevar      |       Owner:  tschaub     
     Type:  feature       |      Status:  new         
 Priority:  minor         |   Milestone:  2.12 Release
Component:  Protocol.WFS  |     Version:  2.11 RC1    
 Keywords:                |       State:  Review      
--------------------------+-------------------------------------------------
Description changed by ahocevar:

Old description:

> The {{{OpenLayers.Protocol.WFS.fromWMSLayer}}} convenience function can
> easily fail, because it cannot guess the {{{featureNS}}} and
> {{{geometryName}}}. The GML parser easily can after #3367. To make a
> first query with the commonly used BBOX filter (e.g. when a BBOX strategy
> is used), the BBOX filter needs to omit the geometryName if it is
> unknown. This is compliant with the WFS 1.1.0 spec, and also works in
> GeoServer with WFS 1.0.0. The result can then be parsed with the GML
> format, which can configure the {{{geometryName}}} and {{{featureNS}}}
> for subsequent transactions or queries.

New description:

 The {{{OpenLayers.Protocol.WFS.fromWMSLayer}}} convenience function can
 easily fail, because it does not know the {{{featureNS}}} and
 {{{geometryName}}}. The WFST format's Query writer only adds the
 {{{featurePrefix}}} to the typeName attribute when {{{featureNS}}} is
 provided. And to successfully make a first query with the commonly used
 BBOX filter (e.g. when a BBOX strategy is used), the BBOX filter needs to
 omit the geometryName if it is unknown. This is compliant with the WFS
 1.1.0 spec, and also works in GeoServer with WFS 1.0.0. The result can
 then be parsed with the GML format, which can configure the
 {{{geometryName}}} and {{{featureNS}}} for subsequent transactions or
 queries.

--

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3368#comment:3>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list