|
| QgsSpatialIndex (const QgsFeatureIterator &fi, const std::function< bool(const QgsFeature &) > &callback, QgsSpatialIndex::Flags flags=QgsSpatialIndex::Flags()) |
| Constructor - creates R-tree and bulk loads it with features from the iterator. More...
|
|
| QgsSpatialIndex (const QgsFeatureIterator &fi, QgsFeedback *feedback=nullptr, QgsSpatialIndex::Flags flags=QgsSpatialIndex::Flags()) |
| Constructor - creates R-tree and bulk loads it with features from the iterator. More...
|
|
| QgsSpatialIndex (const QgsFeatureSource &source, QgsFeedback *feedback=nullptr, QgsSpatialIndex::Flags flags=QgsSpatialIndex::Flags()) |
| Constructor - creates R-tree and bulk loads it with features from the source. More...
|
|
| QgsSpatialIndex (const QgsSpatialIndex &other) |
| Copy constructor. More...
|
|
| QgsSpatialIndex (QgsSpatialIndex::Flags flags=QgsSpatialIndex::Flags()) |
| Constructor for QgsSpatialIndex. More...
|
|
| ~QgsSpatialIndex () override |
| Destructor finalizes work with spatial index. More...
|
|
bool | addFeature (QgsFeature &feature, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags()) override |
| Adds a feature to the index. More...
|
|
bool | addFeature (QgsFeatureId id, const QgsRectangle &bounds) |
| Add a feature id to the index with a specified bounding box. More...
|
|
bool | addFeatures (QgsFeatureList &features, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags()) override |
| Adds a list of features to the index. More...
|
|
bool | deleteFeature (const QgsFeature &feature) |
| Removes a feature from the index. More...
|
|
QgsGeometry | geometry (QgsFeatureId id) const |
| Returns the stored geometry for the indexed feature with matching id. More...
|
|
Q_DECL_DEPRECATED bool | insertFeature (const QgsFeature &feature) |
| Adds a feature to the index. More...
|
|
Q_DECL_DEPRECATED bool | insertFeature (QgsFeatureId id, const QgsRectangle &bounds) |
| Add a feature id to the index with a specified bounding box. More...
|
|
QList< QgsFeatureId > | intersects (const QgsRectangle &rectangle) const |
| Returns a list of features with a bounding box which intersects the specified rectangle. More...
|
|
QList< QgsFeatureId > | nearestNeighbor (const QgsGeometry &geometry, int neighbors=1, double maxDistance=0) const |
| Returns nearest neighbors to a geometry. More...
|
|
QList< QgsFeatureId > | nearestNeighbor (const QgsPointXY &point, int neighbors=1, double maxDistance=0) const |
| Returns nearest neighbors to a point. More...
|
|
QgsSpatialIndex & | operator= (const QgsSpatialIndex &other) |
| Implement assignment operator. More...
|
|
QAtomicInt | refs () const |
| Gets reference count - just for debugging! More...
|
|
virtual | ~QgsFeatureSink ()=default |
|
virtual bool | addFeature (QgsFeature &feature, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags()) |
| Adds a single feature to the sink. More...
|
|
virtual bool | addFeatures (QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags()) |
| Adds all features from the specified iterator to the sink. More...
|
|
virtual bool | addFeatures (QgsFeatureList &features, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags())=0 |
| Adds a list of features to the sink. More...
|
|
virtual bool | flushBuffer () |
| Flushes any internal buffer which may exist in the sink, causing any buffered features to be added to the sink's destination. More...
|
|
virtual QString | lastError () const |
| Returns the most recent error encountered by the sink, e.g. More...
|
|