-
Notifications
You must be signed in to change notification settings - Fork 14
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
File paths not updated when using 'Package current QGIS project' option #600
Comments
Any update on this issue? |
Hi Tomas, Yes we do. The strange thing is, my computer with the same QGIS and Plugin version does not have this issue. Can you perhabs tell which environment variables (related to the layer file paths) are used by the plugin? |
Another user has reported this problem while using QGIS 3.40.0 and Mergin Maps plugin version 2024.2.1 |
Hi, Could you share the start path of the project and the destination path of the mergin project ?
|
@ValentinBuira The path of the original on my machine is: The path of the packaged project is: Here is a screenshot of the packaged project pointing to the incorrect source path for the survey layer: ![]() The project will still load if you open it on the same machine where the original is stored because the path still exists on that machine. However, if you open the project in the mobile app or download it on a different machine you get an error that the layer is unavailable. |
Mmmm, I see nothing out of the ordinary about these paths, and in my tests it does point to the correct geopackage in the packaged project... This is quite infuriating |
When using the Mergin Maps plugin to upload an existing project using the 'Package current QGIS project' option, the paths to the newly created project's file paths are not updated in the new .qgz and .gpkg files. Instead, the project will still point to the original file paths resulting in unavailable layers when opening the project in the app for the first time or downloading it via the Mergin Maps Plugin on a separate machine. To reproduce this issue:
project_create.zip
There is a workaround if this error occurs after creating the project. After finishing step 7 in the above sequence, go to the new project directory and open the project in QGIS. Then follow the steps provided in the QGIS documentation to fix the paths to the layer data sources for each of the layers in your project and synchronise the changes in the plugin.
The text was updated successfully, but these errors were encountered: