Modify

Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#5532 closed enhancement (fixed)

Support for EPSG:31287 projection

Reported by: fichtennadel Owned by: team
Priority: normal Milestone:
Component: Core Version: tested
Keywords: projection; EPSG:31287 Cc:

Description

Please add support for Support for EPSG:31287 projection (Bessel 1841 in Lambert_Conformal_Conic_2SP projection)

proj4 Parameters:
+proj=lcc +lat_1=49 +lat_2=46 +lat_0=47.5 +lon_0=13.33333333333333 +x_0=400000 +y_0=400000 +ellps=bessel +towgs84=577.326,90.129,463.919,5.137,1.474,5.297,2.4232 +units=m +no_defs

Attachments (0)

Change History (14)

comment:1 by fichtennadel, 14 years ago

In the meantime I've created an EPSG:31287 projection module myself, using jhlabs Java Map Projection Library (which is doing all of the work actually).
I would like to contribute this to JOSM, please let me me know how to. Source is available at http://drop.io/9c7j4k3

comment:2 by stoecker, 14 years ago

I think this should be implemented as plugin due to the usage of external library.

comment:3 by bastiK, 14 years ago

One Problem is the size of the external lib. JOSM binary is already 4.7 MiB and every significant increase has to be clearly justified. I've looked at the jmapproj code and it's quite minimalistic - so this might be the best candidate for full (proj.4 like) projection support in JOSM core. However the library is new, incomplete and unstable, so there is no reason to rush things here.

Another problem is the Apache 2.0 license which is compatible with GPL v3 but not with GPL v2. Since JOSM source is licensed under "GPL v2 or any later version", we would have to keep these files clearly separated from the rest of the code, which is a little inconvenient.

Yes, it's tempting to have comprehensive projection support, but we have to weight the costs. So maybe the best would be a plugin, for now.

comment:4 by fichtennadel, 14 years ago

I've created a (very basic) plugin prototype, see http://wiki.openstreetmap.org/wiki/WikiProject_Austria/geoimage.at#JOSM_Plugin (sorry, currently only in German language).

comment:5 by bastiK, 14 years ago

You can make it available to all users in the plugin list within JOSM:

  • simply add a link to this list: http://josm.openstreetmap.de/wiki/Plugins?action=edit
  • plugin should have file extension *.jar
  • you need to host it somewhere it can be downloaded directly
  • i suggest you fix the Manifest a little:
    • Plugin-Date: ${version.entry.commit.date - remove entry
    • Plugin-Icon: - set icon or remove entry
    • Plugin-Description: - extend description a little

comment:6 by fichtennadel, 14 years ago

Thanks for your suggestions, I've changed the Manifest a little bit.

I have submitted the plugin "epsg31287" to the JOSM SVN Repository, distributing updates should be easier that way.

comment:7 by bastiK, 14 years ago

Resolution: fixed
Status: newclosed

comment:8 by stoecker, 14 years ago

Why do you have such a complicated way for the new projection? Simply adding the projection to JOSM projection list should be much better in my eyes.

in reply to:  8 comment:9 by fichtennadel, 14 years ago

Replying to stoecker:

Why do you have such a complicated way for the new projection? Simply adding the projection to JOSM projection list should be much better in my eyes.

Please advise, how can I add to "public static Projection[] allProjections" in org.openstreetmap.josm.data.projection.Projection? Is there another object / method to do this?

comment:10 by stoecker, 14 years ago

I thought there has been changes to allow external projection to be added in the past. If not, please provide a patch to fix this. Something like a "addProjection()" function. We need this in any case, but I thought it is already there.

in reply to:  10 comment:11 by joshdoe, 13 years ago

Replying to stoecker:

I thought there has been changes to allow external projection to be added in the past. If not, please provide a patch to fix this. Something like a "addProjection()" function. We need this in any case, but I thought it is already there.

I would like to see this as well. I'd like to add the Virginia State Plane North projection for working with PDFs I have, and it's not entirely clear to me how to integrate a new projection into JOSM.

comment:12 by bastiK, 13 years ago

Please open anther ticket. If if it doesn't require external libraries or data files, you can simply write a patch that integrates it into main JOSM. Otherwise we'll find a solution, it should be rather simple to add such a interface for plugins.

comment:13 by stoecker, 13 years ago

In [3872/josm]:

see #5532 - add missing addProjectsions() function nobody seems able to add when asked to do so

comment:14 by stoecker, 13 years ago

Fixed the plugin in [o25262].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.