Modify

Opened 10 years ago

Closed 10 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@…> 10 years ago.
patch-east-north.2.txt (1.9 KB) - added by tibob <robert@…> 10 years ago.

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by tibob <robert@…>

Attachment: patch-east-north.txt added

comment:1 Changed 10 years ago by tibob <robert@…>

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.

Changed 10 years ago by tibob <robert@…>

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

comment:2 Changed 10 years ago by tibob <robert@…>

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

comment:3 Changed 10 years ago by bastiK

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

comment:4 Changed 10 years ago by tibob <robert@…>

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 Changed 10 years ago by bastiK

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.