Ticket #3368 (closed feature: fixed)
Make Protocol.WFS work with just featureType and featurePrefix
|Reported by:||ahocevar||Owned by:||tschaub|
Description (last modified by ahocevar) (diff)
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.