0

I am trying to write a GPX file using GeoPandas and Fiona.

gdf = gpd.read_file('data.shp', headesr= None)
gdf.to_file('data.gpx', 'GPX')

The geodataframe created still having the column names. First of all is the "date_time" column

The schema is created:

    <?xml version="1.0"?>
<gpx version="1.1" creator="GDAL 2.3.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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">

</gpx>

but an error appears and the file is empty.

SchemaError: Field of name 'date_time' is not supported in GPX schema. Use GPX_USE_EXTENSIONS creation option to allow use of the <extensions> element.

I am trying to skip the column names but no results at all:

How can I do that stuff ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.