qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.39k stars 2.98k forks source link

Individual name for primary key in 'New SpatiaLite Layer' dialogue #22330

Open qgib opened 8 years ago

qgib commented 8 years ago

Author Name: Reinhard Reiterer (Reinhard Reiterer) Original Redmine Issue: 14344

Redmine category:data_provider/spatialite


Please allow users to set the name of the primary key individually in the 'New SpatiaLite Layer' dialogue (Crtl+Shift+A).


qgib commented 8 years ago

Author Name: Reinhard Reiterer (Reinhard Reiterer)


Maybe 'New SpatiaLite Layer' and 'New GeoPackage Layer' should share the same dialog. 'New GeoPackage Layer' allows to set the name of the primary key/feature id individually.



qgib commented 8 years ago

Author Name: Jukka Rahkonen (Jukka Rahkonen)


The "Create autoincrementing primary key" exists there probably because of the word "autoincrementing". SQLite has always a primary key in the system "ROWID". Creating a synonym for ROWID as "COLUMN INTEGER PRIMARY KEY AUTOINCREMENT" makes fids stable so that that the rowids of deleted rows will not be reused.

Would you like to have two selections:

qgib commented 8 years ago

Author Name: Reinhard Reiterer (Reinhard Reiterer)


Primary keys for new SpatiaLite layers are always named 'pkuid'. The 'New SpatiaLite Layer' dialog misses a text field to set the name (e.g. 'gid', 'fid').

qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)