-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add auto increment field for non database formats #18721
Comments
Author Name: gcarrillo - (gcarrillo -) The AutoFields plugin [1] helps you achieve almost all you mentioned, except making the field non-editable. Please give it a try. If it works for you, we could close this issue. -- |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Paolo Cavallini (@pcav) Sounds good. IMHO this should be promoted to a core function, and in any case the plugin should be ported to QGIS 3 before closing this ticket.
QGIS could store the current serial state in the project file and update it during the commit, and manage multiple inserts and errors on insert to It would be usefull to add a QGIS Field edittype called "Serial" and implementing auto-incrementation for non-database formats :
QGIS could store the current serial state in the project file and update it during the commit, and manage multiple inserts and errors on insert |
Author Name: Giovanni Manghi (@gioman) Paolo Cavallini wrote:
creating a gpkg in qgis adds an autoincrementing fid field. |
I would think having an option to do this should be possible, virtual fields work if you set it to $id for the most part so I guess the implementation should be possible. In the case of shapefile by default QGIS already includes a field named id and of type integer so having the option to be $id (auto increment) seems logical. Also I am sorry to say that even though GPKG is a good format many people have a constrain on which format they are able to use based on clients or agency decision |
Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 10295
Redmine category:vectors
It would be usefull to add a QGIS Field edittype called "Serial" and implementing auto-incrementation for non-database formats :
QGIS could store the current serial state in the project file and update it during the commit, and manage multiple inserts and errors on insert
The text was updated successfully, but these errors were encountered: