Opened 15 years ago
Closed 15 years ago
#4645 closed enhancement (fixed)
[Patch] Show coordinates as East/North
Reported by: | 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)
Change History (7)
by , 15 years ago
Attachment: | patch-east-north.txt added |
---|
comment:1 by , 15 years ago
Cc: | added |
---|
by , 15 years ago
Attachment: | patch-east-north.2.txt added |
---|
comment:2 by , 15 years ago
Summary: | Show coordinates as East/North → [Patch] Show coordinates as East/North |
---|
comment:3 by , 15 years ago
The patch looks ok, but does it change the behavior of the program in any way?
comment:4 by , 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 , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → 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.