Post

2 followers Follow
0
Avatar

File > Export > GPX

Add the ability to export to .gpx format for selected feature(s), layer(s), and mapset.

Thanks,

Eric Jarvies

Eric Jarvies

Please sign in to leave a comment.

3 comments

0
Avatar

GPX is a highly limited format in terms of what data can be stored in it, etc.

If we were to implement this, how would you like:
- lines to be represented
- polygons to be represented
- column data to be represented

Gaige 0 votes
0
Avatar

For my particular usage I need Lines to be represented.  Here is an example of a GPX file I am working with, as was exported from Contour StoryTeller software(via Contour+ GPS camera footage):

<?xml version="1.0"?>

<gpx version="1.1" creator="Contour Storyteller"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ogr="http://osgeo.org/gdal"
xmlns="http://www.topografix.com/GPX/1/1"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd
http://www.topografix.com/GPX/Private/TopoGrafix/0/1/topographix.xsd"> <metadata>

<link href="http://www.contour.com">

<text>Contour, Inc.</text>

</link>

</metadata>

<trk>

<name>Track exported from ContourGPS camera movie: FILE0073.mov</name>

<trkseg>

<trkpt lat="22.888124" lon="-109.914211">

<time>2011-12-15T22:46:17</time>

<ele>19.9</ele>

<speed>4.2</speed>

<course>58.54</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:00.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>67500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888149" lon="-109.914181">

<time>2011-12-15T22:46:18</time>

<ele>19.8</ele>

<speed>3.7</speed>

<course>55.97</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:01.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>157500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888171" lon="-109.914148">

<time>2011-12-15T22:46:19</time>

<ele>19.8</ele>

<speed>4.1</speed>

<course>56.26</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:02.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>247500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888193" lon="-109.914106">

<time>2011-12-15T22:46:20</time>

<ele>19.8</ele>

<speed>4.9</speed>

<course>57.83</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:03.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>337500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888217" lon="-109.914068">

<time>2011-12-15T22:46:21</time>

<ele>19.8</ele>

<speed>4.6</speed>

<course>56.33</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:04.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>427500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888239" lon="-109.914035">

<time>2011-12-15T22:46:22</time>

<ele>19.7</ele>

<speed>4.2</speed>

<course>56.13</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:05.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>517500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888260" lon="-109.914001">

<time>2011-12-15T22:46:23</time>

<ele>19.6</ele>

<speed>4.3</speed>

<course>56.63</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:06.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>607500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888283" lon="-109.913962">

<time>2011-12-15T22:46:24</time>

<ele>19.5</ele>

<speed>5.0</speed>

<course>56.75</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:07.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>697500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888308" lon="-109.913921">

<time>2011-12-15T22:46:25</time>

<ele>19.5</ele>

<speed>5.3</speed>

<course>57.38</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:08.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>787500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888334" lon="-109.913876">

<time>2011-12-15T22:46:26</time>

<ele>19.5</ele>

<speed>5.4</speed>

<course>57.90</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:09.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>877500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888359" lon="-109.913829">

<time>2011-12-15T22:46:27</time>

<ele>19.4</ele>

<speed>5.4</speed>

<course>58.19</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:10.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>967500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888387" lon="-109.913783">

<time>2011-12-15T22:46:28</time>

<ele>19.4</ele>

<speed>5.6</speed>

<course>57.73</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:11.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>1057500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888417" lon="-109.913731">

<time>2011-12-15T22:46:29</time>

<ele>19.3</ele>

<speed>6.2</speed>

<course>58.09</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:12.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>1147500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888446" lon="-109.913679">

<time>2011-12-15T22:46:30</time>

<ele>19.2</ele>

<speed>6.2</speed>

<course>58.15</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:13.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>1237500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

<trkpt lat="22.888474" lon="-109.913625">

<time>2011-12-15T22:46:31</time>

<ele>19.2</ele>

<speed>6.2</speed>

<course>58.73</course>

<magvar></magvar>

<fix></fix>

<sat>10</sat>

<hdop>0.85000</hdop>

<vdop></vdop>

<pdop></pdop>

<geoidheight></geoidheight>

<extensions>

<mediatime>00:00:14.75</mediatime>

<qtmediatimescale>90000</qtmediatimescale>

<qtmediatimevalue>1327500</qtmediatimevalue>

<valid>1</valid>

</extensions>

</trkpt>

</trkseg>

</trk>

</gpx>

Eric Jarvies 0 votes
0
Avatar

Based on the inclusion of a track file here, I'm assuming you'd like the line features exported as tracks.   That still leaves open the question of what to do with the data associated with the features?

Perhaps you can enlighten a bit on how this will be used.    The GPX format is designed explicitly to move information about GPS tracks and locations around, it's not really a generalized form of data, which is why we don't export it from Cartographica in the first place.

Gaige 0 votes