Search code examples
gpxwkt

LINESTRING to gpx


I have to following situation:

I got some tracks as a LINESTRING (well-known text) and I need each of them in a separate gpx-file. All of them are stored in a csv file.

Do you have some ideas to get there? I didn't find any scripts or something else to convert from LINESTRING to gpx.


Solution

  • You could try ogr2ogr, which supports both CSV and GPX drivers. With your source CSV files, make sure the heading line for the geometry data is named "WKT".