Modify

Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#1555 closed defect (invalid)

Downloaded GPS data is displayed in reverse

Reported by: anonymous Owned by: framm
Priority: major Milestone:
Component: Core Version: latest
Keywords: direction arrows gpx track Cc:

Description

Downloaded GPS data is displayed in reverse.

Attachments (4)

pic1.png (13.5 KB ) - added by anonymous 16 years ago.
pic2.png (22.6 KB ) - added by anonymous 16 years ago.
JOSM-config.tar.gz (965 bytes ) - added by anonymous 16 years ago.
Add reverse function.patch (1.8 KB ) - added by xeen 15 years ago.

Download all attachments as: .zip

Change History (22)

comment:1 by anonymous, 16 years ago

WHat do you mean with in reverse?

comment:2 by anonymous, 16 years ago

Arrow pointing into the wrong direction

comment:3 by anonymous, 16 years ago

Resolution: wontfix
Status: newclosed

The raw GPS data from the server is no longer grouped in tracks, but as individual points. Certain side effects result from this, which are not fixable inside of JOSM.

comment:4 by anonymous, 16 years ago

Resolution: wontfix
Status: closedreopened

You are not saying the server returns the points in random order are you?

As long as the points are returned either from oldest to newest or from newest to oldest, this tickt is valid.

comment:5 by anonymous, 16 years ago

Give an example. I cannot reproduce it here.

The server returns the points according to their timestamp. If multiple tracks are used at the same time they get e.g. intermixed.

in reply to:  5 comment:6 by anonymous, 16 years ago

Replying to anonymous:

Give an example. I cannot reproduce it here.

Sure. I downloaded http://www.openstreetmap.org/index.html?mlat=49.50996750339317&mlon=8.639318025366629&zoom=18 with GPS Tracks.

For pic1 I loaded my GPX first, then added the download (and zoomed in a bit). You can clearly see my local GPX, it is displayed in green. The exact same data also comes from the download, so you can see the purple arrowheads below the green track---pointing into the reverse direction. Also look at the right side of the picture: You can see that all tracks on the right lane of the autobahn go from top to bottom, and the ones on the left lane go from bottom to top. Would be ok for a UK motorway, but not for a German autobahn...

For pic2 I restarted JOSM and only downloaded the data with the URL as given above. You can see, that the direction of the arrows has not changed.

by anonymous, 16 years ago

Attachment: pic1.png added

by anonymous, 16 years ago

Attachment: pic2.png added

comment:7 by anonymous, 16 years ago

Please attach two other things:

a) Your GPX file

b) Your JOSM configuration file (remove username/password before attaching it).

comment:8 by anonymous, 16 years ago

I attached the config.

As said, it happens all the same without any loaded GPX. I even tested on another PC with a freshly installed JOSM.

by anonymous, 16 years ago

Attachment: JOSM-config.tar.gz added

comment:9 by anonymous, 16 years ago

Version: release

PS: Tested with v1004

comment:10 by dieterdreist, 15 years ago

Keywords: direction arrows gpx track added
Priority: minorcritical
Version: releaselatest

it's still valid and not only for some strange coincedences but for ALL gpx-direction arrows. IMHO you can just reverse them to fix it (or maybe this depends on some strange other reason and therefore only applies to some users).

I changed the priority to critical because it can easily lead to erratous editing of oneways.

comment:11 by dieterdreist, 15 years ago

Priority: criticalmajor

maybe critical was too much ;-)

comment:12 by stoecker, 15 years ago

Status: reopenednew

by xeen, 15 years ago

Attachment: Add reverse function.patch added

comment:13 by xeen, 15 years ago

Summary: Downloaded GPS data is displayed in reverse[Patch] Downloaded GPS data is displayed in reverse

Is this really a major issue? I suspect most users use file -> open to display their GPS tracks, uploading and downloading again would be strangely cumbersome. Nevertheless, here's a patch that, as suggested, simply reverses the GPS points. I let it off by default for performance reasons (O(n) according to javadocs) and because this is no major issue so you'll have to set

download.gps.fixDirection

to true, once checked in.

comment:14 by anonymous, 15 years ago

Nah. There must be a reason for this. Very likely JOSM handles downloaded GPX data wrong somewhere.

comment:15 by xeen, 15 years ago

Here's a typical link that requests the GPX files from:

http://www.openstreetmap.org/api/0.5/trackpoints?bbox=8.954239863526235,49.708102851502524,8.955104211021299,49.708750955319005&page=0

If you save the file as gpx and open it, you can see that the 4. decimal place of the longitude is descending (i.e. arrows are pointing to the left). My local gpx file has the points in reverse order (i.e. arrows are pointing to the right).

As far as I can tell it's a server issue.

comment:16 by anonymous, 15 years ago

Summary: [Patch] Downloaded GPS data is displayed in reverseDownloaded GPS data is displayed in reverse

comment:17 by Bürste, 15 years ago

Resolution: invalid
Status: newclosed

This ticket is closed.

in reply to:  17 comment:18 by dieterdreist, 15 years ago

Replying to Bürste:

This ticket is closed.

This is a 13 Month old Bug, it WAS VALID at the time. I agree that the issue is not there anymore, but the resolution is solved, not invalid.

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.