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

OpenLayers trac-20090302 at openlayers.org
Sat Jun 18 14:52:31 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 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.

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 should
 only add the {{{geometryName}}} if we know it for sure. Omission of the
 PropertyName of a BBOX filter is compliant with the WFS 1.1.0 spec, and
 also works in GeoServer with WFS 1.0.0. The result (i.e. GetFeature
 response) of the successful query 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:4>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list