[OpenLayers-Users] WFS reprojection help
Ian Turton
ijturton at gmail.com
Fri Jul 16 09:40:32 EDT 2010
On Thu, Jul 15, 2010 at 10:13 PM, <christopher.schmidt at nokia.com> wrote:
> Hi,
>
> I have a map that I think should work at:
>
> http://crschmidt.net/mapping/mas/wfs-states.html
>
> This is a minimal modification of the wfs-states.html included in the examples.
>
> Specifically, I've added:
> * Proj4js lib
> * <script src="http://spatialreference.org/ref/epsg/26986/proj4js/"></script>
>
> And modified the layer to be a simple layer that requires reprojection.
>
> var wfs = new OpenLayers.Layer.Vector("States", {
> strategies: [new OpenLayers.Strategy.BBOX({ratio: 1.1})],
> protocol: new OpenLayers.Protocol.WFS({
> url: "http://giswebservices.massgis.state.ma.us/geoserver/wfs",
> version: '1.0.0',
I think you'll need to use version 1.1.0 of the WFS spec to get
reprojection. 1.0 only supports 4326.
Ian
--
Ian Turton
More information about the Users
mailing list