https://issues.qgis.org/https://issues.qgis.org/favicon.ico2019-02-15T13:12:47ZQGIS Issue TrackingQGIS Application - Feature request #21279: Processing/OGR: do not use shapefile as format for temp input fileshttps://issues.qgis.org/issues/21279?journal_id=1001952019-02-15T13:12:47ZJürgen Fischerjef@norbit.de
<ul><li><strong>Tracker</strong> changed from <i>Bug report</i> to <i>Feature request</i></li></ul> QGIS Application - Feature request #21279: Processing/OGR: do not use shapefile as format for temp input fileshttps://issues.qgis.org/issues/21279?journal_id=1001982019-02-15T13:31:12ZTobias Wendorfftobias.wendorff@tu-dortmund.de
<ul></ul><p>Sorry, Jürgen, I strongly disagree that this is a feature request only.</p>
<p>The use of shapefile is an intermediate format is creating unexpected results and is destroying the user's results. Furthermore, ogr2ogr actually is one of the most capable applications out there, which can handle GPKG files. Even if I don't like GPKG that much, it has removed limits, we had with prosperity shapefile over the last decades.</p>
<p>I believe patching this is damn easy, you only need to replace <code>-F Esri Shapefile</code> with <code>-F GPKG</code> and fix filenames from <em>.shp</em> to <em>.gpkg</em>.</p>
<p>Fixing this bug will save hours of processing, energy and might be even some kittens.</p> QGIS Application - Feature request #21279: Processing/OGR: do not use shapefile as format for temp input fileshttps://issues.qgis.org/issues/21279?journal_id=1002032019-02-15T15:08:43ZJürgen Fischerjef@norbit.de
<ul></ul><p>Tobias Wendorff wrote:</p>
<blockquote>
<p>I believe patching this is damn easy,</p>
</blockquote>
<p>Patch? Pull request?</p> QGIS Application - Feature request #21279: Processing/OGR: do not use shapefile as format for temp input fileshttps://issues.qgis.org/issues/21279?journal_id=1002752019-02-18T13:43:04ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>is this about specifically the OGR based "convert format" tool?</p> QGIS Application - Feature request #21279: Processing/OGR: do not use shapefile as format for temp input fileshttps://issues.qgis.org/issues/21279?journal_id=1002772019-02-18T14:16:18ZTobias Wendorfftobias.wendorff@tu-dortmund.de
<ul></ul><p>Giovanni Manghi wrote:</p>
<blockquote>
<p>is this about specifically the OGR based "convert format" tool?</p>
</blockquote>
<p>I do not know whether this question was addressed to me or whether I can answer it at all. As far as I can tell, all the vector tools are affected, f.e. <em>Vector geoprocessing -> Buffer vectors</em></p>
<p><code>ogr2ogr C:/Users/tobwen/AppData/Local/Temp/processing_08c1c2be50d4431a82d6d123c3eeec35/ae5cee8d9c484a1986ed5a3db42f1d50/OUTPUT.shp R:/demo.sqlite -dialect sqlite -sql "SELECT ST_Buffer(geometry, 10.0) AS geometry,* FROM 'demo'" -f "ESRI Shapefile"</code></p> QGIS Application - Feature request #21279: Processing/OGR: do not use shapefile as format for temp input fileshttps://issues.qgis.org/issues/21279?journal_id=1002842019-02-18T14:40:08ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Open</i></li><li><strong>Assignee</strong> set to <i>Giovanni Manghi</i></li></ul> QGIS Application - Feature request #21279: Processing/OGR: do not use shapefile as format for temp input fileshttps://issues.qgis.org/issues/21279?journal_id=1029402019-03-11T13:39:58ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Subject</strong> changed from <i>GDAL toolbox still use destructive SHP format</i> to <i>Processing/OGR: do not use shapefile as format for temp input files</i></li><li><strong>Assignee</strong> deleted (<del><i>Giovanni Manghi</i></del>)</li></ul> QGIS Application - Feature request #21279: Processing/OGR: do not use shapefile as format for temp input fileshttps://issues.qgis.org/issues/21279?journal_id=1041232019-04-22T00:30:18ZTobias Wendorfftobias.wendorff@tu-dortmund.de
<ul></ul><p>To prevent oblivion: this is still an issue in QGIS v3.7.0-Master, revision 8c21a9e848</p>
<p>Since latest <em>GDAL</em> (>= 2.5) supports <em>proj6</em>, the use of OGR might be interested to advanced users. Right now, you need to remove all (destroyed) columns, rejoin the original table and write it to a new file.</p>