[OpenLayers-Users] Vector Layer, WFS Protocol and BBOX strategy problem

Andreas Hocevar ahocevar at opengeo.org
Mon Nov 9 15:40:26 EST 2009


Hi,

WFS 1.0.0 does not support on-the-fly reprojection. You have to use WFS
1.1.0, which is e.g. supported by GeoServer. And you have to specify the
version on the protocol:

Pedro Baracho wrote:
> var layer = new OpenLayers.Layer.Vector("WFS", {
>                     strategies: [new OpenLayers.Strategy.BBOX(),
> saveStrategy],
>                     protocol: new OpenLayers.Protocol.WFS({
                            version: "1.1.0",
>                         url:  "http://localhost:8080/geoserver/wfs",
>                         featureType: "Regional",
>                         featureNS: "http://prodabel1062.pbh:8080/avis",
>                         geometryName: "GEOLOC",
>                         srsName: "EPSG:29193"
>                     }),
>                     projection: new OpenLayers.Projection("EPSG:29193")
>             });
>


Regards,
Andreas.

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list