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

Allow to create an empty GeoPackage from the context menu of the top-level GeoPackage node (fix #25116) #57876

Merged
merged 3 commits into from
Jun 26, 2024

Conversation

alexbruy
Copy link
Contributor

@alexbruy alexbruy commented Jun 25, 2024

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.

image

Fixes #25116.

Funded by NaturalGIS.

@alexbruy alexbruy added Feature QGIS Browser Needs Documentation When merging a labeled PR, an issue will be created in the Doc repo. labels Jun 25, 2024
@qgis-bot
Copy link
Collaborator

@alexbruy
This pull request has been tagged as requiring documentation.

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.
Also, any commit having [needs-doc] or [Needs Documentation] in will see its message pushed to the issue, so please be as verbose as you can.

Thank you!

@github-actions github-actions bot added this to the 3.40.0 milestone Jun 25, 2024
Copy link

github-actions bot commented Jun 25, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 8deddbd)

@alexbruy alexbruy closed this Jun 26, 2024
@alexbruy alexbruy reopened this Jun 26, 2024
@alexbruy alexbruy force-pushed the browser-create-empty-geopackage branch 2 times, most recently from 05dc5af to 9854fff Compare June 26, 2024 11:43
@alexbruy alexbruy force-pushed the browser-create-empty-geopackage branch from 9854fff to 8deddbd Compare June 26, 2024 12:58
@nyalldawson nyalldawson merged commit 2866ba4 into qgis:master Jun 26, 2024
28 checks passed
@qgis-bot
Copy link
Collaborator

@alexbruy
A documentation ticket has been opened at qgis/QGIS-Documentation#9150
It is your responsibility to visit this ticket and add as much detail as possible for the documentation team to correctly document this change.
Thank you!

@alexbruy alexbruy deleted the browser-create-empty-geopackage branch June 27, 2024 06:44
@zacharlie zacharlie added the Changelog Items that are queued to appear in the visual changelog - remove after harvesting label Sep 24, 2024
@qgis-bot
Copy link
Collaborator

@alexbruy

This pull request has been tagged for the changelog.

  • The description will be harvested so please provide a "nearly-ready" text for the final changelog
  • If possible, add a nice illustration of the feature. Only the first one in the description will be harvested (GIF accepted as well)
  • If you can, it's better to give credits to your sponsor, see below for different formats.

You can edit the description.

Format available for credits
  • Funded by NAME
  • Funded by URL
  • Funded by NAME URL
  • Sponsored by NAME
  • Sponsored by URL
  • Sponsored by NAME URL

Thank you!

@zacharlie zacharlie added ChangelogHarvested This PR description has been harvested in the Changelog already. and removed Changelog Items that are queued to appear in the visual changelog - remove after harvesting labels Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ChangelogHarvested This PR description has been harvested in the Changelog already. Feature Needs Documentation When merging a labeled PR, an issue will be created in the Doc repo. QGIS Browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an empty Geopackage DB
4 participants