Bug report #1864
Saving projects with relative paths
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | Jürgen Fischer | ||
Category: | Project Loading/Saving | ||
Affected QGIS version: | Regression?: | No | |
Operating System: | Unix | Easy fix?: | No |
Pull Request or Patch supplied: | Resolution: | fixed | |
Crashes QGIS or corrupts data: | Copied to github as #: | 11924 |
Description
qgis works great on opening projects with relative paths to datasources, thanks to https://trac.osgeo.org/qgis/ticket/1211
but then saving the project it converts links back to absolute, even the checkbox "save absolute paths" is turned off. Data (shapefiles) and project are in the same folder. Folder name contains spaces and Cyrillic characters.
Associated revisions
Always use / for dir separator with QFileInfo. Fixes #1864
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11360 c8812cc2-4d05-0410-92ff-de0c093fc19c
Always use / for dir separator with QFileInfo. Fixes #1864
git-svn-id: http://svn.osgeo.org/qgis/trunk@11360 c8812cc2-4d05-0410-92ff-de0c093fc19c
History
#1 Updated by Magnus Homann about 15 years ago
- Resolution set to fixed
- Status changed from Open to Closed
Fixed in 9d7d1a7a (SVN r11361).
#2 Updated by Giovanni Manghi about 15 years ago
- Resolution deleted (
fixed) - Status changed from Closed to Feedback
Sorry to have to reopen this ticket, but saving with relative paths seems not work any more, at least under Linux (testing under Ubuntu 9.04) with both qgis 1.3 from repos and 1.4 trunk compiled.
Made simple tests with shapefiles and when the "save absolute paths" is not checked the resulting project file has the paths in the form
./path/to/shape.shp
instead of
path/to/shape.shp
so when you try to open the project it misses to find the layers and ask you for the new layer location.
#3 Updated by Giovanni Manghi about 15 years ago
- Status changed from Feedback to Open
#4 Updated by Jürgen Fischer about 15 years ago
- Resolution set to fixed
- Status changed from Open to Closed
Replying to [comment:2 lutra]:
Sorry to have to reopen this ticket, but saving with relative paths seems not work any more, at least under Linux (testing under Ubuntu 9.04) with both qgis 1.3 from repos and 1.4 trunk compiled.
I wonder when this happend. Apparently that never worked on Linux.
Made simple tests with shapefiles and when the "save absolute paths" is not checked
if you can check "save absolute paths" you are using something < ed34b139 (SVN r11730). Which should have fixed this issue. Feel free to reopen, if it didn't.
./path/to/shape.shp
instead of
path/to/shape.shp
#5 Updated by Giovanni Manghi about 15 years ago
right, I didn't compiled in the last days and I tought it was already solved. Thanks.