Subscribe to this thread
Home - General / All posts - Handling GPX Extensions
369 post(s)
#07-Nov-18 17:38

I have been given some GPX files having these first two lines:

<?xml version="1.0"?>

<gpx version="1.1" creator="GDAL 2.2.4" xmlns:xsi="" xmlns:ogr="" xmlns="" xsi:schemaLocation="">

Point features within these GPX files are described as

<wpt lat="54.1" lon="-60.1">






Release 9 successfully imports the geometry, but the data table fields are otherwise all null owing, I presume, to the lack of support for gpx "extensions".

It would be handy if Release 9 could

  • create a field in the new table component on import for each of the unique fields defined within a GPX file's <extensions>
  • automatically add mfd_id field and mfd_id_x btree index on tables created by the GPX import process

Now that I've written all this, it's probably more appropriate to be sent in as a suggestion, but I can hardly bare the thought of trashing the post now.

369 post(s)
#08-Nov-18 00:53

To be clear, the GDAL dataport adds columns for the extensions, it's just not as easy to mass-import-and-merge hundreds of GPX files using "Data Source" rather than "import"


8,479 post(s)
#08-Nov-18 14:16

Thanks for the post. Be sure to send it in as a suggestion.

You can mass-import using GDAL, just in case. File - Import, set file filter to GDAL ('. Files (GDAL/OGR)'), then select multiple files and click Import.

369 post(s)
#08-Nov-18 18:37

Deadly, thank you!

The GDAL import doesn't retain the file name in the component names, however, so we lose that bit of metadata, and the hundreds of layers can't then be merged.

I'll synthesize all of this into another suggestion. Thanks.

96 post(s)
#15-Nov-18 03:23

Not sure if this helps but I tried M9 for GPX import for the first time this week and it worked flawlessly.

The GPX files were generated by a Garmin eTrex 10 GPS as the native track storage format.

The files came into M9 with the data columns (date time, elevation etc.) correctly populated.

I have pasted the first few lines of the GPX file below for reference (could not work out how to paste as HTML code).

There might be a clue in there as to why the GDAL versions are not working:

<?xml version="1.0" encoding="UTF-8"?>

-<gpx xsi:schemaLocation="" xmlns:xsi="" version="1.1" creator="eTrex 10" xmlns:gpxtpx="" xmlns:wptx1="" xmlns:gpxx="" xmlns="">


-<link href="">

<text>Garmin International</text>





<name>Current Track: 04 NOV 2018 08:16</name>







-<trkpt lon="117.1839804947" lat="-20.5966687761">









-<trkpt lon="117.1837121900" lat="-20.5968271103">









Manifold User Community Use Agreement Copyright (C) 2007-2017 Manifold Software Limited. All rights reserved.