<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>I have solved this:<br>new OpenLayers.Layer.Vector("N.Y.C",&nbsp; {protocol: new mapfish.Protocol.MapFish<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ({url: "nyc_buildings"}),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strategies: [new OpenLayers.Strategy.BBOX({ratio: 1})], isBaseLayer: true, visibility: true , <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; styleMap: new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults({fillColor: "green", fillOpacity: 1, strokeColor: "black"},OpenLayers.Feature.Vector.style["default"]))}),<br><br>but it took about a minute before I can see my vector layer. I think it has to do with heap space from java because I got a warning that (translated): <br><span>a script is too busy or is not answered anymore. You could stop it or go ahead with it seeing if it ends. <a
 target="_blank" href="http://localhost:5000/mfbase/openlayers/lib/OpenLayers/Util.js:869">http://localhost:5000/mfbase/openlayers/lib/OpenLayers/Util.js:869</a></span><br><br>Can anybody say what I can do to avoid this?<br><br>Thanks.<br>best regards<br>Sarah<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">Von:</span></b> Sarah_S &lt;Sarah_flip@yahoo.de&gt;<br><b><span style="font-weight: bold;">An:</span></b> users@openlayers.org<br><b><span style="font-weight: bold;">Gesendet:</span></b> Dienstag, den 1. Dezember 2009, 11:40:01 Uhr<br><b><span style="font-weight: bold;">Betreff:</span></b> [OpenLayers-Users]  Postgis layer srs 2908 supported?<br></font><br><br>Hi list,<br><br>I new to OL and want to use a multipolygon layer from postgis (within<br>mapfish).
 layer has srs 2908 but is not displayed.<br>I use this code:<br>new OpenLayers.Layer.Vector("nyc_buildings",&nbsp; {protocol: new<br>mapfish.Protocol.MapFish<br>&nbsp; &nbsp; &nbsp; &nbsp; ({url: "nyc_buildings"}),<br>&nbsp; &nbsp; &nbsp; &nbsp; strategies: [new OpenLayers.Strategy.BBOX()], isBaseLayer: true,<br>visibility: true , <br>&nbsp; &nbsp; &nbsp; &nbsp; styleMap: new OpenLayers.StyleMap({default: new<br>OpenLayers.Style({strokeColor: "00FF00", strokeWidth: 3, fillColor:<br>"00CC00"})})<br>&nbsp; &nbsp; &nbsp; &nbsp; },{projection: "EPSG:2908"})<br><br>but don´t know if I have to transform/reproject this layer via proj4js or I<br>have simply an error of my code.<br><br>If I select this layer at layer tree I get an error "Operation on two<br>geometries with different srids" (pgadmin3 says that my layer has srid 2908)<br>and a blank page- I think that Ol (or mapfish) has problems with epsg: 90019<br>and mine. <br>Tried to change new
 OpenLayers.Projection and displayProjection to 2908 but<br>that did not change anything.<br><br> I´m using win server 2003.<br><br>Any hints are welcome.<br><br>Thanks<br>best regards<br>Sarah<br>-- <br>View this message in context: <a href="http://n2.nabble.com/Postgis-layer-srs-2908-supported-tp4092947p4092947.html" target="_blank">http://n2.nabble.com/Postgis-layer-srs-2908-supported-tp4092947p4092947.html</a><br>Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@openlayers.org" href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br></div></div>
</div><br>__________________________________________________<br>Do You Yahoo!?<br>Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. <br>http://mail.yahoo.com </body></html>