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

Relative/Absolute paths are not recalculated on project save #11965

Closed
qgib opened this issue Aug 29, 2009 · 3 comments
Closed

Relative/Absolute paths are not recalculated on project save #11965

qgib opened this issue Aug 29, 2009 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Project
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Aug 29, 2009

Author Name: Maxim Dubinin (@simgislab)
Original Redmine Issue: 1905

Redmine category:project_loading/saving
Assignee: Jürgen Fischer


Part 1

  1. Create new project with a shapefile
  2. Clear the checkbox to save relative paths, resave the project
  3. Check paths - they are relative, fine
  4. Resave the project one folder up.
  5. Check paths - they did not change, but they should have.
@qgib
Copy link
Contributor Author

qgib commented Aug 30, 2009

Author Name: Giovanni Manghi (@gioman)


Under Linux I can replicate the problem, but only if the project is saved in a directory in a level under (not above, as described) the one where the data reside (assuming that all the layers files are in the same folder). I'll make further tests.

@qgib
Copy link
Contributor Author

qgib commented Aug 31, 2009

Author Name: Giovanni Manghi (@gioman)


I tested the behaviour also under windows (qgis-dev from osgeo4w) and the result seems the same to me. When I save a project (after clearing the checkbox to save relative paths) the path to a layer in the .qgs file is relative if the project file resides in a folder that stays at the same level or above the one of the layer. If the project file resides in a folder below the one of the layer, then the path is absolute.

So, if you have layers coming from different folders, and depending where you save the project, you may have correct relative paths, incorrect absolute ones and even a project file with a mix of relative and absolute paths.

@qgib
Copy link
Contributor Author

qgib commented Sep 6, 2009

Author Name: Jürgen Fischer (@jef-n)


fixed in ddd64be (SVN r11572)


  • resolution was changed from to fixed
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Project labels May 24, 2019
@qgib qgib added this to the Version 1.3.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
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! Project
Projects
None yet
Development

No branches or pull requests

1 participant