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 2.18.4 saves always with absolute paths #24152
Comments
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Richard Duivenvoorde (@rduivenvoorde) Hi, I just created a fresh project with current 2.18.4 yesterday, and sent it to a client with the shape files next to it, (and was afraid that I hit this bug...). So I just checked the .qgs file, but I see: ./mylayer.shp in the xml. It was a fresh project, and I have default 'relative paths'... I have a yesterday fresh compiled 2.18.4, which in the checkbox says: So is there a certain thing you did? To have this? |
Author Name: Giovanni Manghi (@gioman) Richard Duivenvoorde wrote:
Hi Richard, The tested again and again in Windows with both 2.18.4 and master and with first I regularly only got absolute paths regardless the project configs. This was never the case on master. |
Author Name: Christian S (Christian S) We too have problems with relative paths becoming absolute paths. Some background: We observe that sometimes relative paths become absolute paths in this scenario but unfortunately we have not found a reproducable test case yet. |
Author Name: Alexander Bruy (@alexbruy) Seems works fine in 2.18.6
|
Author Name: Giovanni Manghi (@gioman) Alexander Bruy wrote:
Alex this is tricky, not easy to replicate. I have seen this lately too, also on 2.18.5, possibly .6. Try open a project with a few file based layers, and check the .qgs file if it has absolute paths. |
Author Name: Paul Henshaw (Paul Henshaw) Hi all, I am able to reproduce the problem using the "Save As" feature, as described in https://gis.stackexchange.com/questions/210992/relative-path-not-working-in-qgis
I am currently using QGIS 2.18.7 (64bit Windows 10) but was also able to reproduce using 2.18.3. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Paul Henshaw (Paul Henshaw) Paul Henshaw wrote:
My colleague confirms that the behaviour is the same using 2.18.7 on Ubuntu 16.04 LTS (64bit). |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Alessandro Pasotti (@elpaso)
Master seems ok. to Regardless of what chosen in project properties. Master seems ok.
|
Author Name: Anónimo (Anónimo) Applied in changeset 913527b.
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Alessandro Pasotti (@elpaso) Explanation: when saving the project with a new name and the destination file did not exist, the path of the destintion file was blank, breaking the algorithm that build the relative path.
|
Author Name: Alessandro Pasotti (@elpaso)
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Patrick Dunford (@enzedrailmaps) This issue can be produced in master revision 313ec55 Do I assume if I pull the zip file from https://github.com/qgis/QGIS/tree/913527b4c95dce5f0bc3c6def52c29f6341cec39 that I will get the fix to this problem. |
Author Name: Alessandro Pasotti (@elpaso) yes |
Author Name: Patrick Dunford (@enzedrailmaps) That one is 2.18, I need the version of master that has that fix incorporated. |
Author Name: Patrick Dunford (@enzedrailmaps) See also #25719 |
Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 16242
Affected QGIS version: 2.18.4
Redmine category:project_loading/saving
Assignee: Alessandro Pasotti
Regardless of what chosen in project properties.
Master seems ok.
Related issue(s): #24456 (duplicates)
Redmine related issue(s): 16550
The text was updated successfully, but these errors were encountered: