QgsSpatialIndexData class

Data of spatial index that may be implicitly shared.

Constructors, destructors, conversion operators

QgsSpatialIndexData(const QgsFeatureIterator& fi, QgsFeedback* feedback = nullptr) explicit
Constructor for QgsSpatialIndexData which bulk loads features from the specified feature iterator fi.

Public variables

SpatialIndex::ISpatialIndex* mRTree
R-tree containing spatial index.
SpatialIndex::IStorageManager* mStorage
Storage manager.

Function documentation

QgsSpatialIndexData::QgsSpatialIndexData(const QgsFeatureIterator& fi, QgsFeedback* feedback = nullptr) explicit

Constructor for QgsSpatialIndexData which bulk loads features from the specified feature iterator fi.

The optional feedback object can be used to allow cancelation of bulk feature loading. Ownership of feedback is not transferred, and callers must take care that the lifetime of feedback exceeds that of the spatial index construction.