[QGIS-trac] Re: [Quantum GIS] #1211: Relative paths within QGIS
project file
Quantum GIS
qgis at qgis.org
Wed May 27 08:48:43 EDT 2009
#1211: Relative paths within QGIS project file
----------------------------------------------------+-----------------------
Reporter: springmeyer | Owner: nobody
Type: enhancement | Status: new
Priority: minor: annoyance or enhancement | Milestone: Version 1.0.3
Component: Project Loading / Saving | Version: HEAD
Resolution: | Keywords: relative path
Platform_version: | Platform: Debian
Must_fix: No | Status_info: 0
----------------------------------------------------+-----------------------
Comment (by wonder):
Some insights:
* raster layers are instantiated with a GDAL specific string, I believe
currently only file-based datasets are supported in qgis
* vector layers are instantiated with their URI strings which are
specific for every vector data provider
* some vector providers are file based (gpx), others database based
(postgres) and I think ogr provider is mixed (supporting both files /
databases)
So, being able to detect which URI is a file would enable you cut the
paths to relative when saving projects. Being relative to project's path
is surely the most intuitive way.
Maybe there are some more places in project file that use absolute
paths... but these are the critical ones.
I would suggest to keep absolute paths default and just allow relative
paths as an option. I don't know where - maybe to project settings dialog.
Hope that helps
Martin
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1211#comment:3>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list