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

2011-02-09 Thread Sebastian Klein
Petr Nejedlý wrote: The more complex, but generally preferable (as it would solve many similar problems once for good) would be to code a delegating class loader that would try to fulfill the load request by trying each plugin's loader in sequence. This is already done in some way, to load

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

2011-02-09 Thread Sebastian Klein
Sebastian Klein wrote: Petr Nejedlý wrote: The more complex, but generally preferable (as it would solve many similar problems once for good) would be to code a delegating class loader that would try to fulfill the load request by trying each plugin's loader in sequence. This is already

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

2011-02-09 Thread Dirk Stöcker
On Wed, 9 Feb 2011, Petr Nejedlý wrote: There are two approaches possible for this problem. The simpler one would be to change ProjectionPreference to not call Class.forName(), but instead getProjections(), and iterate the registered _instances_ until getClass().getName() matches. What

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

2011-02-09 Thread Josh Doe
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

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

2011-02-09 Thread Dirk Stöcker
On Wed, 9 Feb 2011, Josh Doe wrote: 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

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

2011-02-08 Thread Josh Doe
Hello, I've gotten access to and permission to use a large set of maps in PDF form for Virginia, USA, and I'd like to use the pdfimport plugin with JOSM to help with importing the data. The projection is EPSG:2924 [1], Virginia State Plane North/NAD83(HARN). What's the best way to add this new

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

2011-02-08 Thread Dirk Stöcker
On Tue, 8 Feb 2011, Josh Doe wrote: What's the best way to add this new projection? I believe I can't add it as a plugin, like (epsg31287 [2]), because it won't be available to the pdfimport plugin. However, since that plugin uses the jhlabs Java Map Projection Library, which does support the

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

2011-02-08 Thread Josh Doe
Hi Dirk, 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. 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).

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

2011-02-08 Thread Dirk Stöcker
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

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

2011-02-08 Thread Frederik Ramm
Dirk, Dirk Stöcker wrote: 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. :-) I didn't know Imi was still on board ;) Thank you for

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

2011-02-08 Thread Petr Nejedlý
Frederik Ramm wrote: Dirk, [...] java.lang.ClassNotFoundException: org.openstreetmap.josm.plugins.fredprojection.FredProjection at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at