Opened 3 years ago
Closed 3 years ago
#4645 closed enhancement (fixed)
[Patch] Show coordinates as East/North
| Reported by: | robert@… | Owned by: | team |
|---|---|---|---|
| Priority: | trivial | 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)
Change History (7)
Changed 3 years ago by tibob <robert@…>
comment:1 Changed 3 years ago by tibob <robert@…>
- Cc robert@… added
Changed 3 years ago by tibob <robert@…>
comment:2 Changed 3 years ago by tibob <robert@…>
- Summary changed from Show coordinates as East/North to [Patch] Show coordinates as East/North
comment:3 Changed 3 years ago by bastiK
The patch looks ok, but does it change the behavior of the program in any way?
comment:4 Changed 3 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 3 years ago by bastiK
- Resolution set to fixed
- Status changed from new to closed



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.