osmandapp / OsmAnd-iOS

OsmAnd for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't change original GPX

dmpr0 opened this issue · comments

Description

After importing and then exporting track from OsmAnd, without performing any other operation track has changes:

Android task osmandapp/OsmAnd#19212
Previous task #3410

  • Added additional information
  • All custom extension changed to osmand:

Description

After importing and then exporting track from OsmAnd, without performing any other operation track has changes:

Main task osmandapp/OsmAnd#19027

  • Added additional information
  • All custom extension changed to osmand:

How to reproduce

Actual result

Original file
<wpt lat="37.5460870" lon="-77.4532843">
    <time>2023-06-07T12:31:35Z</time>
    <name>Test</name>
    <type>SOTM</type>
    <extensions>
        <osmand:address>Floyd Avenue (The Fan) 907, Richmond</osmand:address>
        <osmand:icon>place_town</osmand:icon>
        <osmand:background>circle</osmand:background>
        <osmand:color>#ff4e4eff</osmand:color>
        <test:country>United States</test:country>
        <test:state>Virginia</test:state>
        <test:telephone>(804) 828-0100</test:telephone>
        <test:postcode>23284</test:postcode>
        <test:start_date>Thursday, June 8, 2023</test:start_date>
    </extensions>
</wpt>
Export from OsmAnd
  <wpt lat="37.546087" lon="-77.4532843">
    <time>2023-06-07T12:31:35Z</time>
    <name>Test</name>
    <type>SOTM</type>
    <extensions>
      <osmand:country>United States</osmand:country>
      <osmand:address>Floyd Avenue (The Fan) 907, Richmond</osmand:address>
      <osmand:color>#ff4e4eff</osmand:color>
      <osmand:background>circle</osmand:background>
      <osmand:icon>place_town</osmand:icon>
      <osmand:postcode>23284</osmand:postcode>
      <osmand:telephone>(804) 828-0100</osmand:telephone>
      <osmand:state>Virginia</osmand:state>
      <osmand:start_date>Thursday, June 8, 2023</osmand:start_date>
    </extensions>
  </wpt>

Expected result

  • Don't change custom extensions

To do: GPX track should be stored as is, same should be applied to the export. With 1 exception Export should provide 2 options: with UI changes (if person changed track width etc).. and without .