#6598 closed defect (fixed)
Parallelway mode reports wrong offset distance in statusline
Reported by: | olejorgenb | Owned by: | olejorgenb |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | parallel, projection, distance | Cc: |
Description
Didn't catch this under initial testing since it works at the default location of a new blank data layer (around equator I guess)
I made a parallel way in Norway (Vinstra, Nord-Fron) today and the real offset distance is about half of the displayed distance. Seems my naive calculations in projected coordinates doesn't quite work. I will try to find some time to look into it, but if anyone with more knowledge of GIS want to take a look they should go ahead.
Maybe the display of the offset should be turned off until this is fixed? (remove 'Main.map.statusLine.setDist(Math.abs(d));' in ParallelWayAction.java)
Attachments (1)
Change History (5)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Yes I found LatLon.greatCircleDistance, but how should I find the corresponding distance in projected space units? (I need that since I do the offset in projected coordinates) Using the ratio between EastNorth.distance and LatLon.greatCircleDistance feels a bit wrong to me?
Uh.. disregard the above I guess, patch attached.
The commandline plugin's offset command has the same bug btw.
by , 13 years ago
Attachment: | wrong-offset-display-parallel-way-mode.patch added |
---|
comment:4 by , 13 years ago
Please file a bug for commandline plugin, otherwise this might get lost.
EastNorth.distance does not measure real world distance, you can use LatLon.greatCircleDistance instead.