<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, 16 Sept 2025 at 10:37, Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.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"><div dir="ltr">Hi list,<div><br></div><div>While tracking down the failures from <a href="https://github.com/qgis/QGIS/pull/63180" target="_blank">https://github.com/qgis/QGIS/pull/63180</a>, it's revealed that using QGIS with libspatialindex >= 2.0 gives completely misleading results for nearest neighbour geometry searches.</div><div><br></div><div>The root cause is an optimisation from the upstream library (<a href="https://github.com/libspatialindex/libspatialindex/commit/6fe9ff769243579ed74f7f27409dd1dda6591634" target="_blank">https://github.com/libspatialindex/libspatialindex/commit/6fe9ff769243579ed74f7f27409dd1dda6591634</a>) that breaks how downstream clients could previously implement custom nearest neighbour comparators. From my research I don't think this is fixable in QGIS, and will need an upstream fix.</div></div></blockquote><div><br></div><div>Sorry -- to clarify, that should have been >= 2.1 . 2.0 did not include the offending commit.</div><div><br></div><div>Nyall</div><div><br></div><div> </div></div></div>