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:
Export a geopackage from hale»studio
Load the geopackage for example in QGIS
Export the geopackage again from hale»studio to the same file with the "Overwrite target file if it exists" option enabled
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.
This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.
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:
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.