Modify

Opened 18 years ago

Closed 18 years ago

#494 closed defect (fixed)

Display issues with downloaded raw GPS data

Reported by: frank@… Owned by: framm
Priority: minor Milestone:
Component: Core Version: latest
Keywords: GPX display Cc:

Description

Problem
When I download raw GPS data within JOSM (directly from the server), it displays the tracks, but also seem to be connecting track points that should not have been connected. This is very confusing as there may be many long lines crossing most of the area. I know that it is possible to switch of the drawing of all lines, but for mapping it helps to know which points are connected within a track.

By saving these downloaded tracks, I have identified the problem. The GPX file contains only one track (<trk>), whereas the underlying data appears to be constructed from several tracks. So what happens is that the last point of one track is connected to the first point of the next track. This connection is drawn by JOSM as a line, which actually should not have been there.

Solution
As a work around I have created a patch that when the GPX data is displayed and there is a jump of more than 100 m between track points it will not draw the line.

Todo
Perhaps have this feature as a setting in the preference page? I am new to JOSM and haven't found out how to do that properly.

Attachments (1)

gpx_draw.patch (2.7 KB ) - added by frank@… 18 years ago.
Patch for fixing up the display of the GPS tracks

Download all attachments as: .zip

Change History (4)

by frank@…, 18 years ago

Attachment: gpx_draw.patch added

Patch for fixing up the display of the GPS tracks

comment:1 by ramack, 18 years ago

I do not think it is a good idea to drop "long lines" as done by the attached patch. I suggest to exchange line 226:
boolean lines = Main.pref.getBoolean("draw.rawgps.lines");
by
boolean lines = Main.pref.getBoolean("draw.rawgps.lines") && !data.fromServer;
then gps points from the server (or better GpxLayer which contain downloaded points) will never be connected.

comment:2 by SpeedEvil, 18 years ago

But what if I want downloaded data points connected?
A simple compromise would be to make the 'drop long lines' only work on downloaded gps points.

comment:3 by framm, 18 years ago

Resolution: fixed
Status: newclosed

This is now somewhat fixed by r587 where you can configure a max. distance up to which lines are to be drawn. Sorry that it took so long, I simply overlooked frank's patch!

Modify Ticket

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