[OpenLayers-Dev] question about upcoming projection support

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Tue Jan 15 07:14:25 EST 2008


Hi Chris,

in our application the user has the possibility to save a frequently used
extent/bounds in its user profile (basically an Oracle database in our
case).

I was using toString to store the bounds in a VARCHAR2 column in Oracle. But
in the future we want to be able to have multiple CRS-s, so I will need to
store the CRS as well somehow.

I asked since if Bounds will be changed accordingly, and toString and
fromString will be extended with it, I could keep this approach. Otherwise I
need to add a CRS column to my datamodel and manage this info myself. No
problem, but just to know which approach I should follow ....

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Christopher Schmidt <crschmidt at metacarta.com>
Naar: dev at openlayers.org <dev at openlayers.org>
Onderwerp: Re: [OpenLayers-Dev] question about upcoming projection support
Datum: 15/01/08 10:05

> On Tue, Jan 15, 2008 at 12:44:26PM +0100, Bart van den Eijnden (OSGIS)
wrote:
> &gt; Hi list,
> &gt; 
> &gt; currently an OpenLayers.Bounds does not have a property to say to
which
> &gt; coordinate reference system it applies. Is this forthcoming with the
> &gt; upcoming projection support? Or will it be solved in a different way?
TIA.
> 
> I had no plans to change that -- the creator of a bounds should know
> what projection it's in? If it's coming from the map, there is
> map.getProjectionObject to tell you? 
> 
> It's easy enough to store it at creation time, but manually created
> bounds obviously couldn't have it -- we could store it as a property on
> reprojection, I suppose, though I worry about cleaning up those
> references... I doubt bounds has a proper destroy() or that we're using
> it diligently, since it doesn't interact with the DOM.
> 
> Can you explain what you'd need it for?
> 
> Regards,
> -- 
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
> 
> 






More information about the Dev mailing list