<div dir="ltr"><div><div>Impressive numbers.<br></div>Thanks for the work, Even!<br><br></div>Matthias<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 28, 2020 at 10:29 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:"monospace";font-size:9pt;font-weight:400;font-style:normal">
<p style="margin:0px;text-indent:0px">Hi,</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">I want to report about the outcome of</p>
<p style="margin:0px;text-indent:0px"><a href="https://github.com/qgis/QGIS-Enhancement-Proposals/issues/172" target="_blank">https://github.com/qgis/QGIS-Enhancement-Proposals/issues/172</a></p>
<p style="margin:0px;text-indent:0px">"Use of FileGeodatabase spatial index in OpenFileGDB driver"</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">This work has been successfully completed into GDAL master (for upcoming GDAL 3.2) per <a href="https://github.com/OSGeo/gdal/pull/2771" target="_blank">https://github.com/OSGeo/gdal/pull/2771</a> , and automatically benefits to QGIS when it uses the OpenFileGDB driver.</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Some figures on a version from of few years ago of the dataset at</p>
<p style="margin:0px;text-indent:0px"><a href="https://data.linz.govt.nz/layer/50772-nz-primary-parcels/" target="_blank">https://data.linz.govt.nz/layer/50772-nz-primary-parcels/</a>, featuring 2 484 646 polygons, 773 MB:<br>"ogrinfo -spat 174.949909 -41.143842 175.684529 -40.594600 -al -so -noextent" (thus counting the number of features intersecting the spatial filter), which returns 81 046 polygons, nows runs in 400 ms with GDAL 3.2dev and the OpenFileGDB driver, versus 6.7 s before (full scan), vs 890 ms with the FileGDB driver (with FileGDB SDK 1.5).</p>
<p style="margin:0px;text-indent:0px">All figures given with debug builds, and on a hot run (so with most pages cached by the OS).</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Interactive display of this dataset in QGIS with the OpenFileGDB driver is as fluid as with the FileGDB one. Comparing behaviour of OpenFileGDB and FileGDB drivers with strace shows that they read a similar amount of data in the .spx file, which confirms it is uses correctly.</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">The filegdb reverse engineered specification was also updated in</p>
<p style="margin:0px;text-indent:0px"><a href="https://github.com/rouault/dump_gdbtable/wiki/FGDB-Spec#specification-of-spx-files" target="_blank">https://github.com/rouault/dump_gdbtable/wiki/FGDB-Spec#specification-of-spx-files</a></p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Thanks to <a href="http://qgis.org" target="_blank">qgis.org</a> grant program for making this improvement possible.</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Best regards,</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Even</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">-- </p>
<p style="margin:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div>_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>