osmandapp / OsmAnd-iOS

OsmAnd for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`osmand:` prefix is missed for files exported thru OsmAnd

dmpr0 opened this issue · comments

Description

After exporting GPX file from OsmAnd, it loose osmand: prefix for OsmAnd tags, if you try to get the same file from Files app, all tags will be in place.
Android task - osmandapp/OsmAnd#19027

How to reproduce

  • Create a track in Plan a route with more than two points
  • Add POI as waypoint
  • Export file thru OsmAnd

Actual result

File from Files app
    <wpt lat="50.4535900" lon="30.5165327">
        <time>2024-01-25T09:35:55Z</time>
        <name>Богдану Хмельницькому</name>
        <type>Monuments</type>
        <extensions>
            <icon>monument</icon>
            <amenity_origin>Amenity:Bohdan Khmelnytsky: tourism:memorial</amenity_origin>
            <amenity_subtype>memorial</amenity_subtype>
            <osm_tag_inscription>БОГДАН ХМЕЛЬНИЦЬКИЙ. 1888</osm_tag_inscription>
            <amenity_name>Богдану Хмельницькому</amenity_name>
            <osm_tag_artist_name>скульп. М. Микешин, арх. В. Ніколаєв</osm_tag_artist_name>
            <osm_tag_wikidata>Q4343088</osm_tag_wikidata>
            <amenity_type>tourism</amenity_type>
            <osm_tag_memorial_statue>statue</osm_tag_memorial_statue>
            <osm_tag_wikipedia>http://uk.wikipedia.org/wiki/Пам'ятник Богданові Хмельницькому (Київ)</osm_tag_wikipedia>
            <osm_tag_start_date>1888</osm_tag_start_date>
            <color>#ff5020</color>
            <background>circle</background>
        </extensions>
    </wpt>
  • osmand: prefix is missed for track exported directly from OsmAnd

Expected result

Export from OsmAnd
  <wpt lat="50.45359" lon="30.5165327">
    <time>2024-01-25T09:35:55Z</time>
    <name>Богдану Хмельницькому</name>
    <type>Monuments</type>
    <extensions>
      <osmand:icon>monument</osmand:icon>
      <osmand:amenity_origin>Amenity:Bohdan Khmelnytsky: tourism:memorial</osmand:amenity_origin>
      <osmand:amenity_subtype>memorial</osmand:amenity_subtype>
      <osmand:osm_tag_inscription>БОГДАН ХМЕЛЬНИЦЬКИЙ. 1888</osmand:osm_tag_inscription>
      <osmand:amenity_name>Богдану Хмельницькому</osmand:amenity_name>
      <osmand:osm_tag_artist_name>скульп. М. Микешин, арх. В. Ніколаєв</osmand:osm_tag_artist_name>
      <osmand:osm_tag_wikidata>Q4343088</osmand:osm_tag_wikidata>
      <osmand:amenity_type>tourism</osmand:amenity_type>
      <osmand:osm_tag_memorial_statue>statue</osmand:osm_tag_memorial_statue>
      <osmand:osm_tag_wikipedia>http://uk.wikipedia.org/wiki/Пам'ятник Богданові Хмельницькому (Київ)</osmand:osm_tag_wikipedia>
      <osmand:osm_tag_start_date>1888</osmand:osm_tag_start_date>
      <osmand:color>#ff5020</osmand:color>
      <osmand:background>circle</osmand:background>
    </extensions>
  </wpt>
  • File should have osmand: prefix for OsmAnd tags

Environment
OsmAnd Version: 4.7.1.6
iOS version: 17.3
Device model: XS Max