[OpenLayers-Trac] [OpenLayers] #3368: Make Protocol.WFS work with
just featureType and featurePrefix
OpenLayers
trac-20090302 at openlayers.org
Fri Jun 17 09:46:55 EDT 2011
#3368: Make Protocol.WFS work with just featureType and featurePrefix
----------------------+-----------------------------------------------------
Reporter: ahocevar | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.12 Release
Component: general | Version: 2.10
Keywords: | State:
----------------------+-----------------------------------------------------
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.
--
Ticket URL: <http://trac.openlayers.org/ticket/3368>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list