[josm-dev] adding projections through plugins

Dirk Stöcker openstreetmap at dstoecker.de
Wed Jan 5 17:55:03 GMT 2011


On Wed, 5 Jan 2011, Dirk Stöcker wrote:

>>    I want to write a plugin that adds a projection. Since the projection is
>>  somewhat outlandish I don't want to add the projection to the core.
>>
>>  Existing plugins that do this go the somewhat clumsy route of having their
>>  own menu button or something because they cannot add themselves to the
>>  static final projection list defined in the interface Projection.java.
>>
>>  I suggest moving this "master list" of projections to the
>>  ProjectionPreference class where it could then be modified by plugins.
>>
>>  Ok?
>
> Please use something like "addProjection()" at a proper place, so we can 
> change internals later. I already suggested something alike to the one doing 
> the other external projection plugin, but it seems he lost interest in that 
> topic.

P.S. You don't BTW want to add libproj4 support (at least for Linux). 
Would be very nice ...

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


More information about the josm-dev mailing list