<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Jesse,<br>
</p>
<blockquote type="cite"
cite="mid:MN2PR09MB59320AC4CECE38EF41A08B13C9122@MN2PR09MB5932.namprd09.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;
mso-ligatures:none;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal">I seem to be able to remove features from a
GPKG datasource using ExecuteSQL and “delete from layer_name
where cond” style query with the SQLITE dialect. For some of
our use cases, this is quite a bit nicer than a manual loop in
Python.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Are there restrictions or other concerns
that I should keep in mind when using this, beyond the
recommendation to VACUUM afterwards to shrink the disk file
down?
</p>
</div>
</blockquote>
<p>That is perfectly fine. There are triggers to update the spatial
index and the feature count.</p>
<p>Even<br>
</p>
<span style="white-space: pre-wrap">
</span>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.
Butcher of all kinds of standards, open or closed formats. At the end, this is just about bytes.</pre>
</body>
</html>