Modify

Opened 14 years ago

Closed 6 years ago

#3876 closed enhancement (duplicate)

UTM class to support other TM based national grids

Reported by: Polarbear Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: UTM national grids ireland projection Cc:

Description (last modified by Don-vip)

It would be good if support for national TM projections could be considered in the generic UTM implementation currently going on.

This might be as simple as providing an interface for some core parameters.

E.g. I successfully hacked the current UTM 33 stub by using 8.0 as the centre meridian, and suddenly all my Irish TM references were orthogonal...

Attachments (0)

Change History (5)

comment:1 by stoecker, 14 years ago

Well, theoretically setting the meridian is already implemented, only currently the values are ignored when initializing the class. I had no time yet to fix that issue. Mainly it is to read and use the first value of the list given as argument (including validity checks).

comment:2 by Polarbear, 14 years ago

currently in UTM.java, the zone and the UTMScaleFactor are wired at the beginning of the
class implementation, while the UTMCentralMeridianDeg is computed from the zone.

National TMs can have scale factors, central meridians and true/false origins different
from UTM, for example
http://en.wikipedia.org/wiki/Irish_Transverse_Mercator#Comparison_of_ITM.2C_Irish_Grid_and_UTM

As I assume the core calculation is the same I thought all parameters could be kept adjustable.

In other words, keeping the generic TM calculation separate from the UTM specifics.

comment:3 by stoecker, 14 years ago

See getPreferences() and setPreferences() at end of file (the two with TODO's inside). Currently only zone is handled as prefs (or not yet handled - TODO), others could be added. They will be presented in preferences dialog when UTM is choosen.

comment:4 by Don-vip, 6 years ago

Description: modified (diff)
Keywords: ireland projection added

comment:5 by Don-vip, 6 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #12186.
Irish Transverse Mercator (plus others) are managed in JOSM core since #12186

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.