mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
This is much faster way of initializing a spatial index. From python it is as simple as >>> index = QgsSpatialIndex( layer.getFeatures() ) From a simple test with 50K points in a memory layer: - bulk loading ~ 100 ms - inserting features ~ 600 ms The index tree should be in theory also better constructed and may result in faster lookups.