Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1864 closed bug (fixed)

Saving projects with relative paths

Reported by: gislab Owned by: jef
Priority: major: does not work as expected Milestone: Version 1.4.0
Component: Project Loading / Saving Version: Trunk
Keywords: relative paths Cc: pcav
Must Fix for Release: No Platform: Unix
Platform Version: Awaiting user input: no

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.

Change History (5)

comment:1 by homann, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in r11360.

comment:2 by lutra, 15 years ago

Cc: pcav added
Milestone: Version 1.2.0Version 1.4.0
Platform: WindowsUnix
Platform Version: trunk
Resolution: fixed
Status: closedreopened

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.

comment:3 by lutra, 15 years ago

Owner: changed from nobody to jef
Status: reopenednew

in reply to:  2 comment:4 by jef, 15 years ago

Resolution: fixed
Status: newclosed

Replying to 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 < r11729. Which should have fixed this issue. Feel free to reopen, if it didn't.

./path/to/shape.shp instead of path/to/shape.shp

the ./ is perfectly fine. . is the current directory.

comment:5 by lutra, 15 years ago

right, I didn't compiled in the last days and I tought it was already solved. Thanks.

Note: See TracTickets for help on using tickets.