[josm-dev] JOSM and Projections
Dirk Stöcker
openstreetmap at dstoecker.de
Fri Jul 3 14:48:50 BST 2009
On Fri, 3 Jul 2009, Tobias Wendorff wrote:
>> As a programmers guideline it should be generally clear from now on that
>> no EastNorth are stored somewhere (except temporary), but always the
>> corresponding LatLon values.
>
> That's bad news. How can I access them temporarily?
>
> Is it still possible to get the BoundingBox of current view?
Nothing has changed in that respect except that some new functions have
been designed and now a ProjectionBounds class exists.
It should only be clear that EastNorth ist not stored. These value are
projection depending and are not reliable. But in all cases I found it was
easy to fix storing of these values.
The Node class stores these values nevertheless (to reduce calculation
efforts for display) but takes care to update when projection changed.
Ciao
--
http://www.dstoecker.eu/ (PGP key available)
More information about the josm-dev
mailing list