[OpenLayers-Dev] question about upcoming projection support

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Tue Jan 15 13:09:51 EST 2008


Hi Erik,

I have worked around it, I don't use toString now but toArray() and do a 
join with ",". This format I can read in with fromString.

I've filed a ticket though for 3.0:

http://trac.openlayers.org/ticket/1275

Thanks.

Best regards,
Bart

Erik Uzureau schreef:
> hi bart, the toString() function I think was mostly just designed for 
> debugging... not so much as a way to translate the bounds into a 
> storable string format.
>  
> I think your point is a good one... unfortunately, it wouldn't be 
> proper of us to change a thing like this now because it would be a 
> breach of API.
>  
> for the OpenLayers 3.0 release, however, I think this would be a great 
> thing to change.
>  
> erik
>  
> ps. if you really need this functionality, we could put in a patch for 
> a function with a different name (saveToString() or something like 
> that) for the time being and mark the current toString() as deprecated...
>
>  
> On 1/15/08, *Bart van den Eijnden (OSGIS)* <bartvde at osgis.nl 
> <mailto:bartvde at osgis.nl>> wrote:
>
>     Hmm, one more thing, isn't it strange that toString and fromString use
>     different string formats?
>
>     I was hoping to use toString and create a bounds again from the
>     same string
>     using fromString.
>
>     But toString uses:
>     left-bottom=(23560.672130601146,384199.8282873455)
>     right-top=(50198.73747014423,401559.87359025853 )
>
>     and fromString interprets only something like:
>     23560.672130601146,384199.8282873455,50198.73747014423,401559.87359025853
>
>     Best regards,
>     Bart
>
>     --
>     Bart van den Eijnden
>     OSGIS, Open Source GIS
>     http://www.osgis.nl
>
>
>     --------- Oorspronkelijk bericht --------
>     Van: Christopher Schmidt <crschmidt at metacarta.com
>     <mailto:crschmidt at metacarta.com>>
>     Naar: Bart van den Eijnden OSGIS < bartvde at osgis.nl
>     <mailto:bartvde at osgis.nl>>
>     Cc: Christopher Schmidt <crschmidt at metacarta.com
>     <mailto:crschmidt at metacarta.com>>, dev at openlayers.org
>     <mailto:dev at openlayers.org>
>     Onderwerp: Re: [OpenLayers-Dev] question about upcoming projection
>     support
>     Datum: 15/01/08 10:58
>
>     > On Tue, Jan 15, 2008 at 01:14:25PM +0100, Bart van den Eijnden
>     (OSGIS)
>     wrote:
>     > &gt; I asked since if Bounds will be changed accordingly, and
>     toString and
>     > &gt; fromString will be extended with it, I could keep this
>     approach.
>     Otherwise I
>     > &gt; need to add a CRS column to my datamodel and manage this
>     info myself.
>     No
>     > &gt; problem, but just to know which approach I should follow ....
>     >
>     > Gotcha. I'd say that the latter is probably the right way to go.
>     >
>     > Regards,
>     > --
>     > Christopher Schmidt
>     > MetaCarta
>     >
>     >
>
>
>
>     _______________________________________________
>     Dev mailing list
>     Dev at openlayers.org <mailto:Dev at openlayers.org>
>     http://openlayers.org/mailman/listinfo/dev
>
>


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




More information about the Dev mailing list