Thursday 11 May 2017

How can I export a linestring to a GPX file in QGIS?


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?



Answer



When choosing "Save selection as..." and the dialog Save vector layer as... shows up and I select GPX as format, I also have to check




[x] Skip attribute creation



then the GPX file is generated without any problems.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...