[josm-dev] How do I add a new projection, EPSG:2924?

Josh Doe josh at joshdoe.com
Wed Feb 9 16:23:06 GMT 2011


Just wanted to say thank you, and that I've got it working. I decided
to use the OSGeo Proj4J library [1] since it has support for datum
transformations and has a huge database of EPSG data. I loaded up the
county property map using pdfimport and everything lined up to within
less than a meter (from data I added via GPS and Bing aerial).

It would be trivial to add all projections supported by Proj4J to
JOSM, all that is required is to change the EPSG code. I'm not sure
how to implement this as a plugin, though I do see projections can
have a preference panel so perhaps the EPSG code could be set there,
but I'm not sure if that will work.

-Josh

On Tue, Feb 8, 2011 at 1:58 PM, Dirk Stöcker <openstreetmap at dstoecker.de> wrote:
> On Tue, 8 Feb 2011, Josh Doe wrote:
>
>> I believe I understand how to add it now, though I can't do so as a
>> plugin because it then would not be available to the pdfimport plugin.
>
> Sure it would. Why not?
>
>> However a bigger problem I have is that there appears to be a
>> difference in datums between what JOSM uses (WGS 84) and what
>> EPSG:2924 uses (NAD83). I'll have to first figure out how to convert
>> between those.
>
> When you don't need external libraries a patch for core is fine. Otherwise
> you need to make a plugin.
>
> To make it simpler I added the addProjections() function myself in r3872. I
> don't understand what is so complicated about this function that 3 people
> failed to do it, one of them the original maintainer. :-)
>
> Ciao
> --
> http://www.dstoecker.eu/ (PGP key available)
>
>
> _______________________________________________
> josm-dev mailing list
> josm-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/josm-dev
>



More information about the josm-dev mailing list