Opened 7 years ago

Last modified 7 years ago

#16555 closed defect

Gpx data layer to gpx: no timestamp exported — at Version 1

Reported by: StephaneP Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: template_report; gpx; nmea; data layer Cc:

Description (last modified by StephaneP)

What steps will reproduce the problem?

  1. Open a nmea file
  2. Convert it to a data layer
  3. Convert it back to a gpx

What is the expected result?

You can use the new gpx to geolocalize some images

What happens instead?

You can't use it for the correlation as there is no timestamp in the gpx file.

Please provide any additional information below. Attach a screenshot if possible.

Original gpx (from a nmea to gpx conversion):

<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1" creator="GPS Track Editor" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gte="http://www.gpstrackeditor.com/xmlschemas/General/1" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" targetNamespace="http://www.topografix.com/GPX/1/1" elementFormDefault="qualified" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
<metadata>
	<name>GPS_2018-07-30_142357</name>
</metadata>
<trk>
	<name>lundi 30 juillet 2018</name>
	<trkseg>
		<trkpt lat="47.010208" lon="-1.583453">
			<ele>19.80</ele>
			<time>2018-07-30T14:23:57.40Z</time>
			<sat>12</sat>
			<hdop>0.6</hdop>
			<extensions>
				<gte:gps speed="25.4" azimuth="299.6"/>
			</extensions>
		</trkpt>
		<trkpt lat="47.010214" lon="-1.583470">
			<ele>19.70</ele>
			<time>2018-07-30T14:23:57.60Z</time>
			<sat>12</sat>
			<hdop>0.6</hdop>
			<extensions>
				<gte:gps speed="26.2" azimuth="299.3"/>
			</extensions>
		</trkpt>
		<trkpt lat="47.010221" lon="-1.583488">
			<ele>19.70</ele>
			<time>2018-07-30T14:23:57.80Z</time>
			<sat>12</sat>
			<hdop>0.6</hdop>
			<extensions>
				<gte:gps speed="27.2" azimuth="299.9"/>
			</extensions>
		</trkpt>

Josm 13367: Gpx -> Data layer -> Gpx

<?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="47.010208" minlon="-1.585317" maxlat="47.011661" maxlon="-1.583453"/>
  </metadata>
  <trk>
    <trkseg>
      <trkpt lat="47.010208" lon="-1.583453">
        <time>2018-07-30T14:23:57Z</time>
      </trkpt>
      <trkpt lat="47.010214" lon="-1.58347">
        <time>2018-07-30T14:23:57Z</time>
      </trkpt>
      <trkpt lat="47.010221" lon="-1.583488">
        <time>2018-07-30T14:23:57Z</time>
      </trkpt>
      <trkpt lat="47.010228" lon="-1.583506">
        <time>2018-07-30T14:23:58Z</time>
      </trkpt>
      <trkpt lat="47.010236" lon="-1.583524">
        <time>2018-07-30T14:23:58Z</time>
      </trkpt>
      <trkpt lat="47.010243" lon="-1.583543">
        <time>2018-07-30T14:23:58Z</time>
      </trkpt>
      <trkpt lat="47.010252" lon="-1.583563">
        <time>2018-07-30T14:23:58Z</time>
      </trkpt>

Josm 14067: Gpx -> Data layer -> Gpx

<?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="47.010208" minlon="-1.585317" maxlat="47.011661" maxlon="-1.583453"/>
  </metadata>
  <wpt lat="47.011661" lon="-1.585317">
    <ele>16.90</ele>
  </wpt>
  <wpt lat="47.011641" lon="-1.585312">
    <ele>16.90</ele>
  </wpt>
  <wpt lat="47.011621" lon="-1.585308">
    <ele>16.80</ele>
  </wpt>
  <wpt lat="47.011602" lon="-1.585303">
    <ele>16.80</ele>
  </wpt>
  <wpt lat="47.011583" lon="-1.585299">
    <ele>16.80</ele>
  </wpt>
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-07-30 21:57:20 +0200 (Mon, 30 Jul 2018)
Revision:14067
Build-Date:2018-07-31 01:53:35
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (14067 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 1803 (17134)
Memory Usage: 1575 MB / 6144 MB (741 MB allocated, but free)
Java version: 10.0.2+13, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1200
Maximum Screen Size: 1920x1200
Dataset consistency test: No problems found


Change History (2)

by StephaneP, 7 years ago

Attachment: gpx_conversion.zip added

comment:1 by StephaneP, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.