Modify

Opened 6 months ago

#23984 new defect

Convert from GPX to OSMdata file not support gpx:extension:

Reported by: kksrally@… Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: gpx tags hr temp cad Cc:

Description

What steps will reproduce the problem?

  1. import GPX into JOSM
  2. on layers tab with gpx file - right click. Into a OSM data (dont know exactly as use ukranian version "Перетворити в шар даних"

What is the expected result?

Each node must have tags and values:
gpx:ele=166.1999969482422
gpx:time=2024-10-25T10:03:57Z
gpx:extension:ns3:segment:TrackPointExtension:atemp=12.0
gpx:extension:ns3:segment:TrackPointExtension:cad=9
gpx:extension:ns3:segment:TrackPointExtension:hr=102

And way:
gpx:name=Kyiv Mountain Biking
gpx:type=mountain_biking

What happens instead?

Nodes have only
gpx:ele=166.1999969482422
gpx:time=2024-10-25T10:03:57Z

But way:
gpx:extension:ns3:segment:TrackPointExtension:atemp=12.0
gpx:extension:ns3:segment:TrackPointExtension:cad=9
gpx:extension:ns3:segment:TrackPointExtension:hr=102
gpx:name=Kyiv Mountain Biking
gpx:type=mountain_biking

first three tags where on way. And it's from last node

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

Way:
https://i.ibb.co/RQNDhnx/1231.png

Node:
https://i.ibb.co/1TpVWxX/1233.png

GPX example with first 3 points and last point of gpx track:

<?xml version="1.0" encoding="UTF-8" ?> 
- <gpx creator="Garmin Connect" version="1.1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/11.xsd" xmlns:ns3="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://www.garmin.com/xmlschemas/GpxExtensions/v3">
- <metadata>
- <link href="connect.garmin.com">
  <text>Garmin Connect</text> 
  </link>
  <time>2024-10-25T09:07:33.000Z</time> 
  </metadata>
- <trk>
  <name>Kyiv Mountain Biking</name> 
  <type>mountain_biking</type> 
- <trkseg>
- <trkpt lat="50.51528432406485080718994140625" lon="30.4425266571342945098876953125">
  <ele>148.600006103515625</ele> 
  <time>2024-10-25T09:07:37.000Z</time> 
- <extensions>
- <ns3:TrackPointExtension>
  <ns3:atemp>22.0</ns3:atemp> 
  <ns3:hr>97</ns3:hr> 
  <ns3:cad>0</ns3:cad> 
  </ns3:TrackPointExtension>
  </extensions>
  </trkpt>
- <trkpt lat="50.5152686499059200286865234375" lon="30.44250545091927051544189453125">
  <ele>148.600006103515625</ele> 
  <time>2024-10-25T09:07:38.000Z</time> 
- <extensions>
- <ns3:TrackPointExtension>
  <ns3:atemp>22.0</ns3:atemp> 
  <ns3:hr>99</ns3:hr> 
  <ns3:cad>0</ns3:cad> 
  </ns3:TrackPointExtension>
  </extensions>
  </trkpt>
- <trkpt lat="50.5152438394725322723388671875" lon="30.4424793832004070281982421875">
  <ele>148.600006103515625</ele> 
  <time>2024-10-25T09:07:39.000Z</time> 
- <extensions>
- <ns3:TrackPointExtension>
  <ns3:atemp>22.0</ns3:atemp> 
  <ns3:hr>101</ns3:hr> 
  <ns3:cad>0</ns3:cad> 
  </ns3:TrackPointExtension>
  </extensions>
  </trkpt>
- <trkpt lat="50.5153150856494903564453125" lon="30.442622713744640350341796875">
  <ele>145.399993896484375</ele> 
  <time>2024-10-25T10:32:08.000Z</time> 
- <extensions>
- <ns3:TrackPointExtension>
  <ns3:atemp>12.0</ns3:atemp> 
  <ns3:hr>102</ns3:hr> 
  <ns3:cad>9</ns3:cad> 
  </ns3:TrackPointExtension>
  </extensions>
  </trkpt>
</trkseg>
  </trk>
  </gpx>
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2024-01-16 08:06:33 +0100 (Tue, 16 Jan 2024)
Build-Date:2024-01-17 02:31:01
Revision:18940
Relative:URL: ^/trunk

Identification: JOSM/1.5 (18940 uk) Windows 10 64-Bit
OS Build number: Windows 10 Enterprise 2009 (19045)
Memory Usage: 373 MB / 989 MB (139 MB allocated, but free)
Java version: 1.8.0_261-b12, Oracle Corporation, Java HotSpot(TM) Client VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1364×768 (scaling 1.00×1.00)
Maximum Screen Size: 1364×768
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1251
System property sun.jnu.encoding: Cp1251
Locale info: uk_UA
Numbers with default locale: 1234567890 -> 1234567890
Program arguments: [D:\<user.name>\Завантаження\БроДюни.gpx]
Dataset consistency test: No problems found

Plugins:
+ ImproveWay (32)
+ editgpx (36126)
+ reverter (36256)
+ undelete (36298)
+ utilsplugin2 (36298)

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/Potlatch2&zip=1

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to kksrally@….
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


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