Modify

Opened 15 years ago

Closed 15 years ago

#4645 closed enhancement (fixed)

[Patch] Show coordinates as East/North

Reported by: robert@… Owned by: team
Priority: trivial Milestone:
Component: Core Version: latest
Keywords: lambert coordinates Cc: robert@…

Description

Hello,

it would be great if josm could show coordinates as East/North (using Lambert projection) instead of Latitude/longitude. That would help a lot in positioning old images from the french "cadastre".

My understanding is that org.openstreetmap.josm.data.coor.LatLon.latToString and lonToString should be adapted to return East and North coodrinates (using org.openstreetmap.josm.data.projection.Lambert).

I'll have a look but as I am no java developper, it will take me quite some time before I get trunk up and running (wasn't there a CLASSPATH thing ? ;-)). So if this is easy and quick done for one of you, please do not wait for me and "just" code it ;-)

Cheers,

tibob

Attachments (2)

patch-east-north.txt (1.9 KB ) - added by tibob <robert@…> 15 years ago.
patch-east-north.2.txt (1.9 KB ) - added by tibob <robert@…> 15 years ago.

Download all attachments as: .zip

Change History (7)

by tibob <robert@…>, 15 years ago

Attachment: patch-east-north.txt added

comment:1 by tibob <robert@…>, 15 years ago

Cc: robert@… added

This was easier than I tought... So here is a patch do display East/North coordinates.

This is a bit of a hack because latToString should report a latitude, not "north", but I think it would be much more work to change the whole coordinate system t display east/north...

Cheers,

tibob

PS: I'll do a second upload of the patch in a sec as I inverted east and north.

by tibob <robert@…>, 15 years ago

Attachment: patch-east-north.2.txt added

comment:2 by tibob <robert@…>, 15 years ago

Summary: Show coordinates as East/North[Patch] Show coordinates as East/North

comment:3 by bastiK, 15 years ago

The patch looks ok, but does it change the behavior of the program in any way?

comment:4 by tibob <robert@…>, 15 years ago

Yes, it displays East/North coordinates (in the current projection) instead of lat/lon in the status bar and in the object selection panel.

It ist not very usefull in WGS84, but try it with a Fench Lambert projection (over Paris for example).

It also changes the projection preference window: you can choose to display coordinates in East/North (instead of Degrees). You have to change this preference of course to see the effect of the patch ;-)

tibob

comment:5 by bastiK, 15 years ago

Resolution: fixed
Status: newclosed

(In [3067]) applied #4645 - option to show projected coordinates instead of lat/lon (patch by tibob)

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.