Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qgib opened this issue Feb 20, 2016 · 4 comments
Open

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

qgib opened this issue Feb 20, 2016 · 4 comments

Comments

@qgib
Copy link
Contributor

qgib commented Feb 20, 2016

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
Copy link
Contributor Author

qgib commented Jun 19, 2016

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.


  • 10042 was configured as new_geopackage_layer.png
  • 10041 was configured as new_spatialite_layer.png

@qgib
Copy link
Contributor Author

qgib commented Jun 19, 2016

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:

  • prevent reuse of rowids of deleted features (autoincrement)
  • select the name to be used as synonym for ROWID?

@qgib
Copy link
Contributor Author

qgib commented Jun 19, 2016

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
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib qgib added Feature Request Data Provider Related to specific vector, raster or mesh data providers labels May 25, 2019
@alexbruy alexbruy added Spatialite data provider and removed Data Provider Related to specific vector, raster or mesh data providers labels Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants