Re: [josm-dev] Projections

2008-12-12 Thread Dirk Stöcker
On Thu, 11 Dec 2008, Frederik Ramm wrote:

   I have been approached by someone from Estonia. Apparently they have
 their own parametrized Lambert projection for official data there, and
 someone has written a JOSM projection class to use that projection in JOSM.

 I wonder whether we should continue to augment JOSM with special
 projections like this - it's not a big deal really, just one class and
 an extra option in the Projection dropdown - or whether it would be
 better to use the plugin infrastructure for this so that everyone can
 load their preferred projection as a plugin.

 Any opinions on the matter?

Whereas I have nothing against plugins for that I would encourage to have 
such central stuff in the central core. Plugins should be only for testing 
new projections.

On the other hand using a projection library would be a good idea :-) We 
already had this topic. Maybe we could add proj.4 as plugin? I myself have 
no problems with the wording certain features are only available under 
UNIX operating systems as long as we provide base features for all OS.

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Projections

2008-12-11 Thread Pieren
Being the person who introduced Lambert Zone France in Josm, I can
give my opinion about projections in plugin:
Pro:
- more flexible: we are not depending of the Josm developers to commit
the source files although all my requests to commit newer versions of
the sources have always been kindly and quickly done. But it's always
difficult to depend on others.
Con:
- the new projection might be required in several plugins, thus we
take the risk that the same stuff is developed several times or that
the same projection is instanciated in Josm several times for
different plugins.
Perhaps the solution is to keep the original projections EPSG and
Mercator in core and create a projection plugin collecting all
projections. In this way, we use the osm subversion repository; we are
sure that one projection is developed only once for all; many
projections could share a common library of functions.

Pieren

On Thu, Dec 11, 2008 at 9:27 PM, Frederik Ramm frede...@remote.org wrote:

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Projections

2008-12-11 Thread Tobias Wendorff
Pieren schrieb:
 Perhaps the solution is to keep the original projections EPSG and
 Mercator in core and create a projection plugin collecting all
 projections. In this way, we use the osm subversion repository; we are
 sure that one projection is developed only once for all; many
 projections could share a common library of functions.

In my opinion, the plugins should work in cartesian coordinates.
I've written some scripts, which I will release in the winter
holiday. I hope, someone is going to port them to JAVA.

Cartesian Coordinates are in a rectagular coordinate system and
it's easy to calculate with vectors and trigonometry.

Since JOSM is used for short directions 90% of the time, the
error rate will be very low ... up to 10 km it's some centimetres.

Cartesian Coordinates are the basic of any transformation process,
the JOSM could work with any projection:

90° would always be 90° and a circle would always be a circle -
internal of course, not on screen :-)

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev