<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>On 7/4/17 6:46 PM, Even Rouault wrote:
</p>
<blockquote type="cite" cite="mid:1881974.cSjqZDPDrq@even-i700">
<meta name="qrichtext" content="1">
<style type="text/css">
p, li { white-space: pre-wrap; }</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Another solution would be to defere the compaction only at layer closing (that's actually the new behaviour of the OGR Shapefile driver in recent GDAL versions to force a repack at closing). I'm not sure why QGIS currently repacks it every time ?</p>
</blockquote>
<br>
IIRC, in situations where the layer has not been closed and was
still used by other software at the same time, issues arose.<br>
<br>
In particular features flagged as deleted by OGR (and no longer
reported as existing features by OGR) were still detected as
existing features by other applications. Often, this was surprising
in situations when people were working on shapefiles, deleted some
features and then used this file in a different application while it
was still open in QGIS.<br>
<br>
A common workflow that leads to this situation is when working on
shapefiles and then using them in a processing algorithm that
involves an external process. The processing situation could be
avoided (detect if potentially dangerous operations like a delete
have been performed since the last repack and if yes repack or write
it to a new file), but there were also other situations where people
just have been working on the same file in different GIS
applications side-by-side.<br>
<br>
From the lack of reported issues regarding this in the last two
years (compared to the time before) I suspect the current approach
suits many use-cases quite well. At the same time, I am very
surprised that this is the very first issue that I am aware of which
is related to 7d7cdcd3.<br>
<br>
Matthias<br>
<br>
<blockquote type="cite" cite="mid:1881974.cSjqZDPDrq@even-i700">
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Even</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">-- </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Spatialys - Geospatial professional services</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a></p>
</blockquote>
<br>
</body>
</html>