[OpenLayers-Users] Postgis layer srs 2908 supported?

Ivan Grcic igrcic at gmail.com
Fri Dec 4 07:59:29 EST 2009


Check out last post on :
http://n2.nabble.com/WFS-T-td4065193.html

CHeers

On Fri, Dec 4, 2009 at 1:54 PM, Ivan Grcic <igrcic at gmail.com> wrote:
> Well browsers start to choke with more then 200-300 features, that is
> max. nr of features one should ever load in vector layer. Now, you can
> imagine what happens with 6500 features :)
>
> On Fri, Dec 4, 2009 at 1:01 PM, Sarah Schuessler <sarah_flip at yahoo.de> wrote:
>> Hi Ivan,
>>
>> I have about 6500 features (multipolygon).
>> best regards
>> Sarah
>> ________________________________
>> Von: Ivan Grcic <igrcic at gmail.com>
>> An: Sarah Schuessler <sarah_flip at yahoo.de>
>> CC: users at openlayers.org
>> 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 <sarah_flip at yahoo.de>
>> 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 <Sarah_flip at yahoo.de>
>>> An: users at openlayers.org
>>> 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
>>> Users at openlayers.org
>>> 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
>>> Users at openlayers.org
>>> 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
>
>
>
> --
> Ivan Grcic
>



-- 
Ivan Grcic



More information about the Users mailing list