Ticket #1864 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

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
Platform Version: Platform: Unix
Must Fix for Release: No 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

  Changed 4 years ago by homann

  • status changed from new to closed
  • resolution set to fixed

Fixed in r11360.

follow-up: ↓ 4   Changed 4 years ago by lutra

  • status changed from closed to reopened
  • cc pcav added
  • platform_version trunk deleted
  • platform changed from Windows to Unix
  • milestone changed from Version 1.2.0 to Version 1.4.0
  • resolution fixed deleted

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.

  Changed 4 years ago by lutra

  • owner changed from nobody to jef
  • status changed from reopened to new

in reply to: ↑ 2   Changed 4 years ago by jef

  • status changed from new to closed
  • resolution set to fixed

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.

  Changed 4 years ago by lutra

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.