[OpenLayers-Users] OWSContext and WFS layer: Could not locate
feature
hbruch
holger.bruch at isb-ag.de
Sun Feb 20 16:32:07 EST 2011
Dear all,
I'm trying to convert the wfs-filter example into an OWS context - without
success.
The layer I added in the context is:
<Layer name="topp:tasmania_roads"
xmlns:topp="http://www.openplans.org/topp" hidden="0">
<ows:Title>myroads</ows:Title>
<Server version="1.0.0" service="urn:ogc:serviceType:WFS">
<OnlineResource
xlink:href="http://demo.opengeo.org/geoserver/wfs" />
</Server>
</Layer>
The server response is:
[...]
Could not locate {http://www.opengis.net/wfs}tasmania_roads in catalog.
[...]
How do I need to specify the featurePrefix to let the featureNS be
determined "automagically"
as stated in Context.js:
url: layerContext.url,
// since we do not know featureNS, let the protocol
// determine it automagically using featurePrefix
featurePrefix: layerContext.name.split(":")[0],
featureType: layerContext.name.split(":").pop()
Thanks in advance.
Holger
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/OWSContext-and-WFS-layer-Could-not-locate-feature-tp6046617p6046617.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list