https://issues.qgis.org/https://issues.qgis.org/favicon.ico2013-09-09T04:11:13ZQGIS Issue TrackingQGIS Application - Bug report #8589: QGIS not saving relative path correctlyhttps://issues.qgis.org/issues/8589?journal_id=445802013-09-09T04:11:13ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Category</strong> set to <i>Project Loading/Saving</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>I cannot confirm, tested on both Linux and Windows with qgis master.</p> QGIS Application - Bug report #8589: QGIS not saving relative path correctlyhttps://issues.qgis.org/issues/8589?journal_id=445862013-09-09T04:38:58ZRichard Duivenvoorde
<ul></ul><p>I do confirm.</p>
<p>I do have a fresh build release_2_0 here, and I'm not able to save relative paths.</p>
<p>BUT: neither with my fresh build 1.8 version???</p>
<p>You should see relative paths in the .qgs file isn't it? I see this in the qgs file:</p>
<pre><code>&lt;datasource&gt;/home/richard/geodata/world/world.shp&lt;/datasource&gt;</code></pre> QGIS Application - Bug report #8589: QGIS not saving relative path correctlyhttps://issues.qgis.org/issues/8589?journal_id=445872013-09-09T04:51:28ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>fresh .qgis2 folder too?</p>
<p>Richard Duivenvoorde wrote:</p>
<blockquote>
<p>I do confirm.</p>
<p>I do have a fresh build release_2_0 here, and I'm not able to save relative paths.</p>
<p>BUT: neither with my fresh build 1.8 version???</p>
<p>You should see relative paths in the .qgs file isn't it? I see this in the qgs file:</p>
<p><datasource>/home/richard/geodata/world/world.shp</datasource></p>
</blockquote> QGIS Application - Bug report #8589: QGIS not saving relative path correctlyhttps://issues.qgis.org/issues/8589?journal_id=445882013-09-09T06:10:37ZRichard Duivenvoorde
<ul><li><strong>File</strong> <a href="/attachments/download/6212/kaasRelative.qgs">kaasRelative.qgs</a> added</li></ul><p>yes, I removed .qgis2 dir AND .config/QGIS</p>
<p>in properties I set 'relative paths'. In debug I see this:</p>
<pre>
src/core/qgsprojectproperty.cpp: 321: (dump) key: <WFSUrl> value:
src/core/qgsprojectproperty.cpp: 329: (dump) key: <Paths> subkey: <Paths>
src/core/qgsprojectproperty.cpp: 299: (dump) name: Paths
src/core/qgsprojectproperty.cpp: 321: (dump) key: <Absolute> value: false
src/core/qgsprojectproperty.cpp: 321: (dump) key: <WMSServiceTitle> value:
</pre>
<p>but in .qgs file I see:</p>
<pre>
<id>provincies20130909170042477</id>
<datasource>/home/richard/geodata/nl/provincies.shp</datasource>
<title></title>
</pre>
<p>.qgis file attached</p> QGIS Application - Bug report #8589: QGIS not saving relative path correctlyhttps://issues.qgis.org/issues/8589?journal_id=445892013-09-09T06:24:04ZRichard Duivenvoorde
<ul><li><strong>File</strong> <a href="/attachments/download/6213/kaasRelative.qgs">kaasRelative.qgs</a> added</li></ul><p>did some further testing, removed also .qgis and .config/QuantumGis dirs</p>
<p>But still absolute paths, if I just open a shp in my home dir, and then save the qgs file in /tmp</p>
<p>BUT if I then copy some data files in /tmp dir, and load those files, THOSE paths are relative in the project file??</p>
<p>Is it possible that QGIS just is not able to 'traverse' all to the right directory or so?</p>
<p>I opened qgis from /home/richard<br />Open data in /home/richard/geodata/nl<br />Saved project in /tmp</p>
<p>Then the .qgs file had /home/richard/geodan/nl/data.shp in its xml.<br />But copying data.shp to /tmp, and (same project) loading the data.shp from /tmp,<br />the .qgs file had ./data.shp in it's xml (and /home/richard/geodan/nl/data.shp for the other layer which was still in the project)</p>
<p>I wonder if the original issuer can tell us what exact his setup is: Operating System, QGIS version, way of starting and places of data and project saving.</p> QGIS Application - Bug report #8589: QGIS not saving relative path correctlyhttps://issues.qgis.org/issues/8589?journal_id=445902013-09-09T06:55:39ZMatthias Kuhn
<ul></ul><p>If there in no common ancestor as in your setup (i.e. the only common part of the path is root '/') then there is no reason for saving a relative path and it will be saved absolute.</p> QGIS Application - Bug report #8589: QGIS not saving relative path correctlyhttps://issues.qgis.org/issues/8589?journal_id=547482014-07-28T06:31:16ZMatthias Kuhn
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>Closed due to lack of feedback.<br />If you are able to provide the feedback required to solve this issue, please reopen it.</p>