Modify

Opened 10 years ago

Closed 10 years ago

#10165 closed defect (fixed)

Wrong waypoint order in exported GPX

Reported by: naoliv Owned by: team
Priority: normal Milestone: 14.08
Component: Core Version:
Keywords: waypoint gpx export Cc:

Description

With this OSM file:

<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' upload='true' generator='JOSM'>
  <node id='-1039' action='modify' visible='true' lat='-21.87758385255' lon='-48.34365182271'>
    <tag k='name' v='3' />
  </node>
  <node id='-1038' action='modify' visible='true' lat='-21.78213763641' lon='-49.08982524156'>
    <tag k='name' v='2' />
  </node>
  <node id='-1037' action='modify' visible='true' lat='-21.68116822194' lon='-49.96819473856'>
    <tag k='name' v='1' />
  </node>
</osm>

I get this exported GPX file:

<?xml version='1.0' encoding='UTF-8'?>
<gpx version="1.1" creator="JOSM GPX export" xmlns="http://www.topografix.com/GPX/1/1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
  <metadata>
    <bounds minlat="-21.8775839" minlon="-49.9681947" maxlat="-21.6811682" maxlon="-48.3436518"/>
  </metadata>
  <wpt lat="-21.68116822194498" lon="-49.96819473856487">
    <name>1</name>
  </wpt>
  <wpt lat="-21.877583852547787" lon="-48.343651822706846">
    <name>3</name>
  </wpt>
  <wpt lat="-21.782137636410376" lon="-49.08982524156388">
    <name>2</name>
  </wpt>
</gpx>

Unless I am not understanding something, the waypoints in the exported GPX file should have the same order as they were created inside JOSM.
In JOSM we have 1 2 3 while in the GPX we have 1 3 2

JOSM is:

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-06-19 01:36:41
Last Changed Author: Don-vip
Revision: 7253
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-06-19 00:59:46 +0200 (Thu, 19 Jun 2014)
Last Changed Rev: 7253

Identification: JOSM/1.5 (7253 pt_BR) Linux Debian GNU/Linux unstable (sid)
Memory Usage: 213 MB / 1756 MB (93 MB allocated, but free)
Java version: 1.7.0_55, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u55-2.4.7-2
VM arguments: [-Djava.net.useSystemProxies=true, -Dawt.useSystemAAFontSettings=on]

Plugin: AddrInterpolation (30416)
Plugin: Create_grid_of_ways (30416)
Plugin: FixAddresses (30416)
Plugin: ImageryCache (30416)
Plugin: OpeningHoursEditor (30416)
Plugin: PicLayer (30436)
Plugin: SimplifyArea (30416)
Plugin: buildings_tools (30485)
Plugin: editgpx (30416)
Plugin: geochat (30416)
Plugin: geotools (30416)
Plugin: jts (30416)
Plugin: merge-overlap (30416)
Plugin: notes (v0.9.2)
Plugin: opendata (30436)
Plugin: pdfimport (30416)
Plugin: poly (30495)
Plugin: reverter (30436)
Plugin: tagging-preset-tester (30416)
Plugin: todo (29154)
Plugin: turnrestrictions (30454)
Plugin: undelete (30416)
Plugin: utilsplugin2 (30460)

Attachments (0)

Change History (3)

comment:1 by Don-vip, 10 years ago

Keywords: waypoint gpx export added
Summary: Wrong waypoing order in exported GPXWrong waypoint order in exported GPX

comment:2 by Don-vip, 10 years ago

Milestone: 14.08

comment:3 by Don-vip, 10 years ago

Resolution: fixed
Status: newclosed

In 7414/josm:

fix #10165 - Wrong waypoint order in exported GPX

Modify Ticket

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