Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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:


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 ';' in

Attachments (1)

wrong-offset-display-parallel-way-mode.patch (2.4 KB) - added by olejorgenb 10 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 10 years ago by bastiK

EastNorth.distance does not measure real world distance, you can use LatLon.greatCircleDistance instead.

comment:2 Changed 10 years ago by olejorgenb

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?

The commandline plugin's offset command has the same bug btw.

Version 0, edited 10 years ago by olejorgenb (next)

Changed 10 years ago by olejorgenb

comment:3 Changed 10 years ago by bastiK

Resolution: fixed
Status: newclosed

In [4251/josm]:

applied #6598 - Parallelway mode reports wrong offset distance in statusline (patch by olejorgenb)

comment:4 Changed 10 years ago by bastiK

Please file a bug for commandline plugin, otherwise this might get lost.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain olejorgenb.
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.