I have a linestring in a vector layer in QGIS. How can I expot/save this linestring as a GPX file?
I tried to select the linestring, then right click on the vector layer and choose "Save selection as…" and then I choosed GPX format and saved it. But I got this error message:
Export to vector file failed.
Error: creation of field code_06 failed (OGR error: Field of name 'code_06' is not supported in GPX schema. Use GPX_USE_EXTENSIONS creation option to allow use of the element.)
The GPX file is created, but it contains no coordinates. Is there any settings I should do to avoid this error?
How can I export a linestring to a GPX file in QGIS?
Best Answer
The GPX format does support only a defined list of attributes, so if your vector has any attribute that does not match what the specifications say, you'll get that error.
When you export a vector to a gpx don't expect to have necessarily attributes with the coordinates, nevertheless they are present in the gpx file, example (obtained with QGIS):
More:
http://www.gdal.org/ogr/drv_gpx.html