Saturday, 11 June 2016

Create Shapefile with auto increment primary key in QGIS


Is there a way to create an auto increment primary key column when creating a new Shapefile in QGIS?




Answer



As far as I know, Shapefiles have no concept of primary key or auto increment data types.


What you can do is use Field Calculator to populate a column with row number.


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