16 #ifndef QGSSPATIALINDEX_H 17 #define QGSSPATIALINDEX_H 25 class IStorageManager;
30 namespace StorageManager
41 #include "qgis_core.h" 45 #include <QSharedDataPointer> 128 bool addFeature(
QgsFeature &feature, QgsFeatureSink::Flags flags =
nullptr )
override;
137 bool addFeatures(
QgsFeatureList &features, QgsFeatureSink::Flags flags =
nullptr )
override;
156 bool deleteFeature(
const QgsFeature &feature );
168 QList<QgsFeatureId> intersects(
const QgsRectangle &rectangle )
const;
177 QList<QgsFeatureId> nearestNeighbor(
const QgsPointXY &point,
int neighbors )
const;
186 static SpatialIndex::Region rectToRegion(
const QgsRectangle &rect );
213 QSharedDataPointer<QgsSpatialIndexData> d;
Wrapper for iterator of features from vector data provider or vector layer.
A rectangle specified with double values.
QList< QgsFeature > QgsFeatureList
A class to represent a 2D point.
An interface for objects which accept features via addFeature(s) methods.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Base class for feedback objects to be used for cancellation of something running in a worker thread...
Data of spatial index that may be implicitly shared.
Utility class for bulk loading of R-trees.
A spatial index for QgsFeature objects.
An interface for objects which provide features via a getFeatures method.
#define SIP_PYALTERNATIVETYPE(type)