QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
25 : d( new QgsSpatialIndexKDBushPrivate( fi, feedback ) )
31 : d( new QgsSpatialIndexKDBushPrivate( source, feedback ) )
44 if ( !d->ref.deref() )
57 if ( !d->ref.deref() )
63 QList<QgsSpatialIndexKDBushData> result;
70 d->index->within( point.
x(), point.
y(), radius, visitor );
75 return d->index->size();
80 QList<QgsSpatialIndexKDBushData> result;
81 d->index->range( rectangle.
xMinimum(),
90 d->index->range( rectangle.
xMinimum(),
double xMaximum() const
Returns the x maximum value (right side of rectangle).
QList< QgsSpatialIndexKDBushData > intersects(const QgsRectangle &rectangle) const
Returns the list of features which fall within the specified rectangle.
qgssize size() const
Returns the size of the index, i.e.
QgsSpatialIndexKDBush(QgsFeatureIterator &fi, QgsFeedback *feedback=nullptr)
Constructor - creates KDBush index and bulk loads it with features from the iterator.
double yMaximum() const
Returns the y maximum value (top side of rectangle).
double yMinimum() const
Returns the y minimum value (bottom side of rectangle).
QgsSpatialIndexKDBush & operator=(const QgsSpatialIndexKDBush &other)
Assignment operator.
double xMinimum() const
Returns the x minimum value (left side of rectangle).
unsigned long long qgssize
Qgssize is used instead of size_t, because size_t is stdlib type, unknown by SIP, and it would be har...
QList< QgsSpatialIndexKDBushData > within(const QgsPointXY &point, double radius) const
Returns the list of features which are within the given search radius of point.