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

[BUG]: geopackage writer overwrite functionality is not working when file is in use #1201

Open
JohannaOtt opened this issue Jun 13, 2024 · 0 comments
Labels

Comments

@JohannaOtt
Copy link
Contributor

Describe the bug
When exporting geopackage from hale»studio to an existing file with the "Overwrite target file if it exists" option enabled, the data is not overwritten but added if the file is in use (for example in QGIS)

To Reproduce
Steps to reproduce the behavior:

  1. Export a geopackage from hale»studio
  2. Load the geopackage for example in QGIS
  3. Export the geopackage again from hale»studio to the same file with the "Overwrite target file if it exists" option enabled
  4. Load the file again in QGIS. Every object will be contained twice.

Expected behavior
The export functionality should throw an error if it cannot overwrite the existing file instead of adding the data to the file again.

Additional context
If the file is not in use, the overwrite functionality is working as expected.
In this part of the code, it should be checked if the file can be overwritten, or not.
If not, the export function should throw an error.

@JohannaOtt JohannaOtt added the bug label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant