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

QGIS stumbles over relative paths in project templates #58687

Open
2 tasks done
dwoe opened this issue Sep 12, 2024 · 0 comments
Open
2 tasks done

QGIS stumbles over relative paths in project templates #58687

dwoe opened this issue Sep 12, 2024 · 0 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@dwoe
Copy link

dwoe commented Sep 12, 2024

What is the bug or the crash?

When creating a project template with relative path specifications, the paths to the content (e.g. shapefile) are sometimes copied incorrectly. Either this template cannot be opened completely or a project based on the template contains incorrect paths.

Steps to reproduce the issue

  1. in QGIS options the template path is set to "D:/Working/QGIS/Templates"
  2. create a new project
  3. add shapefile from "D:/Test/Shape/point.shp"
  4. save as template "TestTemplate" (a qgz is created in "D:/Working/QGIS/Templates")
  5. restart QGIS
  6. create new project new from template "TestTemplate"
  7. Message: unavailable layer

image

Surprisingly, the path to the included shapefile appears in 3 different places in the TestTemplate.qgz:

image

image

image

Versions

QGIS-Version
3.38.2-Grenoble
QGIS-Codeversion
130c432
Qt-Version
5.15.13
Kompiliert gegen Python
3.12.5
Laufendes Python
3.12.6
GDAL-Version
3.9.2
PROJ-Version
9.4.0
EPSG-Registraturdatenbankversion
v11.004 (2024-02-24)
GEOS-Version
3.12.2-CAPI-1.18.2
SQLite-Version
3.45.1
PDAL-Version
2.6.3
PostgreSQL-Client-Version
16.2
SpatiaLite-Version
5.1.0
QWT-Version
6.2.0
QScintilla2-Version
2.14.1
BS-Version
Windows 11 Version 2009

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@dwoe dwoe added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant