Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 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:

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)

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

Download all attachments as: .zip

Change History (5)

comment:1 by bastiK, 13 years ago

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

comment:2 by olejorgenb, 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?

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

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

comment:3 by bastiK, 13 years ago

Resolution: fixed
Status: newclosed

In [4251/josm]:

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

comment:4 by bastiK, 13 years ago

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain olejorgenb.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.