Sunday, 1 March 2015

Couldn't add a column to attribute table (GPX layer) | QGIS


Running QGIS 2.10.1 on Ubuntu 14.04 x64.



Going to add a column to the attribute table (GPX layer) but couldn't select any type. Then, failed - "Failed to add field 'NameTest' of type. Is the field name unique?".


Need to provide types firstly before adding a column? How to set it?


Add column to attribute table


Reference
https://docs.qgis.org/2.2/en/docs/training_manual/create_vector_data/actions.html



Answer




  1. You can't modify GPX data in QGIS. Though GDAL supports GPX writing, this support is limited to creation only, modification of existing files is not supported.

  2. Moreover, GPX is a format with specific structure, so you can't just add ANY field to it unless you use Extensions, but again, QGIS doesn't support this either.



You might want to save as ESRI Shape before doing any modifications.


In any case, your QGIS shouldn't allow you to even start editing GPX (mine doesn't), if it does, you might've encountered a bug.


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...