[OpenLayers-Dev] WFS GML3 request

Raphael Rupprecht raphael.rupprecht at googlemail.com
Fri Jun 25 04:37:01 EDT 2010


Hi list,

i am trying to request WFS service version 1.0.0 with GML3. My first
approach:

                        var wfs_tasmaniaRoads = new
OpenLayers.Layer.Vector("GML3, WFS 1.0.0", {
                            strategies: [new OpenLayers.Strategy.BBOX()],
                            // only pulls the feature currently visible in
the map display
                            protocol: new OpenLayers.Protocol.WFS({
                                url: "
http://giv-wps.uni-muenster.de:8080/geoserver/wfs",
                                featureType: "tasmania_roads",
        // required
                                featureNS: "http://www.openplans.org/ns1",
// optional
                                version: "1.0.0",
                                outputFormat: "GML3"
                            })
                        });

WFS version 1.1.0 (GML3) works fine,
WFS version 1.0.0 and outputFormat=GML2 works fine,
WFS version 1.0.0 and outputFormat=GML3 does not work for me, the response
seems to be ok, except for the attribute numbersOfFeatures="0" (in fact
there are features inside), but the drawing ends up in unrendered features
on the layer. It seems the Point features are not parsed correclty, so they
dont exist in the layer.

Is there a way of doing this?

Greets
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20100625/31c9d54a/attachment.html


More information about the Dev mailing list