-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Allow to create an empty GeoPackage from the context menu of the top-level GeoPackage node (fix #25116) #57876
Allow to create an empty GeoPackage from the context menu of the top-level GeoPackage node (fix #25116) #57876
Conversation
@alexbruy A documentation ticket will be opened at https://github.com/qgis/QGIS-Documentation when this PR is merged. Please update the description (not the comments) with helpful description and screenshot to help the work from documentors. Thank you! |
05dc5af
to
9854fff
Compare
top-level GeoPackage node (fix qgis#25116)
9854fff
to
8deddbd
Compare
@alexbruy |
This pull request has been tagged for the changelog.
You can edit the description. Format available for credits
Thank you! |
Description
There an inconsistency in behavior of the "Create Database" context menu item for SpatiaLite and GeoPackage nodes in the Browser. In case of SpatiaLite this action creates an empty database and adds a new connection while the same action for GeoPackage creates a new GeoPackage file with a layer and adds a new connection.
This is not only confusing but also not very convinient in some use cases when user needs an empty GeoPackage. Of course, it is possible to create an empty GeoPackage from the context menu of the directory nodes, but this again is not very intuitive and many users are not aware about this option.
This PR renames existing "Create Database" action to "Create Database and Layer" action and adds a new context menu action "Create Database" which creates an empty GeoPackage.
Fixes #25116.
Funded by NaturalGIS.