[OpenLayers-Users] Postgis layer srs 2908 supported?
Sarah_S
Sarah_flip at yahoo.de
Tue Dec 1 05:40:01 EST 2009
Hi list,
I new to OL and want to use a multipolygon layer from postgis (within
mapfish). layer has srs 2908 but is not displayed.
I use this code:
new OpenLayers.Layer.Vector("nyc_buildings", {protocol: new
mapfish.Protocol.MapFish
({url: "nyc_buildings"}),
strategies: [new OpenLayers.Strategy.BBOX()], isBaseLayer: true,
visibility: true ,
styleMap: new OpenLayers.StyleMap({default: new
OpenLayers.Style({strokeColor: "00FF00", strokeWidth: 3, fillColor:
"00CC00"})})
},{projection: "EPSG:2908"})
but don´t know if I have to transform/reproject this layer via proj4js or I
have simply an error of my code.
If I select this layer at layer tree I get an error "Operation on two
geometries with different srids" (pgadmin3 says that my layer has srid 2908)
and a blank page- I think that Ol (or mapfish) has problems with epsg: 90019
and mine.
Tried to change new OpenLayers.Projection and displayProjection to 2908 but
that did not change anything.
I´m using win server 2003.
Any hints are welcome.
Thanks
best regards
Sarah
--
View this message in context: http://n2.nabble.com/Postgis-layer-srs-2908-supported-tp4092947p4092947.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list