Hi Ivan, I have about 6500 features (multipolygon).
best regards Sarah ________________________________ Von: Ivan Grcic <[email protected]> An: Sarah Schuessler <[email protected]> CC: [email protected] Gesendet: Freitag, den 4. Dezember 2009, 12:53:53 Uhr Betreff: Re: [OpenLayers-Users] Postgis layer srs 2908 supported? Hi Sarah, how many feature do you have? On Fri, Dec 4, 2009 at 12:38 PM, Sarah Schuessler <[email protected]> wrote: > I have solved this: > new OpenLayers.Layer.Vector("N.Y.C", {protocol: new > mapfish.Protocol.MapFish > ({url: "nyc_buildings"}), > strategies: [new OpenLayers.Strategy.BBOX({ratio: 1})], isBaseLayer: > true, visibility: true , > styleMap: new > OpenLayers.StyleMap(OpenLayers.Util.applyDefaults({fillColor: "green", > fillOpacity: 1, strokeColor: > "black"},OpenLayers.Feature.Vector.style["default"]))}), > > 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): > a script is too busy or is not answered anymore. You could stop it or go > ahead with it seeing if it ends. > http://localhost:5000/mfbase/openlayers/lib/OpenLayers/Util.js:869 > > Can anybody say what I can do to avoid this? > > Thanks. > best regards > Sarah > > ________________________________ > Von: Sarah_S <[email protected]> > An: [email protected] > Gesendet: Dienstag, den 1. Dezember 2009, 11:40:01 Uhr > Betreff: [OpenLayers-Users] Postgis layer srs 2908 supported? > > > 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. > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz > gegen Massenmails. > http://mail.yahoo.com > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > -- Ivan Grcic __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
