[OSM-talk] JOSM and GPX

Cristiano Giovando giovand at gmail.com
Wed Jan 23 19:49:07 GMT 2008


Hi,


What is the current implementation of GPX extensions parsing in JOSM?
With reference to the code below, I would like to import way id from
FIELD1, name from FIELD2 and alternate name tag from FIELD3, plus all
relations correctly from the GPX geometry.

<trk>
  <extensions>
    <ogr:FIELD1>01</ogr:FIELD1>
    <ogr:FIELD2>StreetName</ogr:FIELD2>
    <ogr:FIELD3>AlternateStreetName</ogr:FIELD3>
  </extensions>
  <trkseg>
    <trkpt lat="YY.YYYY" lon="XX.XXXX">
    </trkpt>

Using GPX version 1.1 as created with OGR. Some tracks include more
than one trkseg (MultiLineString), where streets are interrupted or
made up of several distinct segments. These share same name and id,
but are actually separate line features. How do you represent it in
osm code?

In alternative to converting from GPX, has anybody developed or
working on a generic shapefile to osm converter?


Cheers


C




More information about the talk mailing list