<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Mike,<br>
</p>
<div class="moz-cite-prefix">Le 24/11/2022 à 18:56,
<a class="moz-txt-link-abbreviated" href="mailto:michael.smith.erdc@gmail.com">michael.smith.erdc@gmail.com</a> a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:06E632AE-15BB-4E38-A4A0-D42D45EB0151@gmail.com">
<p class="MsoNormal">Basically, can one create a spatial index in
a flatgeobuf file if the source does not have one? <br>
</p>
</blockquote>
yes, through ogr2ogr by creating a new file, as you did<br>
<blockquote type="cite"
cite="mid:06E632AE-15BB-4E38-A4A0-D42D45EB0151@gmail.com">
<p class="MsoNormal"> </p>
<p class="MsoNormal">Also, when trying to just create a new
flatgeobuf with a spatial index from one without (using
ogr2ogr), I get a lot of</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">ERROR 2: ICreateFeature: Too big feature</p>
</blockquote>
<p>It could be either a huuuuge feature whose serialized form
exceeds 2GB (unlikely, and even more if you convert from an
existing flatgeobuf file which enforces this limit). Or that you
have lots of features and a modest amount of RAM. The creation of
the spatial index requires an amount of RAM proportional to the
number of features (maybe 80 bytes or so per feature). In this
later case, the error message is misleading currently. I've just
changed it to "ICreateFeature: Memory allocation failure" in
master.</p>
<p>Even</p>
<br>
<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.</pre>
</body>
</html>