18 #ifndef QGSSPATIALINDEXKDBUSH_PRIVATE_H 19 #define QGSSPATIALINDEXKDBUSH_PRIVATE_H 44 class PointXYKDBush :
public kdbush::KDBush< std::pair<double, double>, QgsSpatialIndexKDBushData, std::size_t >
50 fillFromIterator( fi, feedback );
57 fillFromIterator( it, feedback );
90 sortKD( 0, size - 1, 0 );
93 std::size_t size()
const 100 class QgsSpatialIndexKDBushPrivate
105 : index( qgis::make_unique < PointXYKDBush >( fi, feedback ) )
109 : index( qgis::make_unique < PointXYKDBush >( source, feedback ) )
113 std::unique_ptr< PointXYKDBush > index;
118 #endif // QGSSPATIALINDEXKDBUSH_PRIVATE_H
Wrapper for iterator of features from vector data provider or vector layer.
A container for data stored inside a QgsSpatialIndexKDBush index.
QgsWkbTypes::Type wkbType() const
Returns type of the geometry as a WKB type (point / linestring / polygon etc.)
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
bool hasGeometry() const
Returns true if the feature has an associated geometry.
Base class for feedback objects to be used for cancellation of something running in a worker thread...
This class wraps a request for features to a vector layer (or directly its vector data provider)...
T qgsgeometry_cast(const QgsAbstractGeometry *geom)
Point geometry type, with support for z-dimension and m-values.
const QgsAbstractGeometry * constGet() const
Returns a non-modifiable (const) reference to the underlying abstract geometry primitive.
bool isCanceled() const
Tells whether the operation has been canceled already.
An interface for objects which provide features via a getFeatures method.
bool nextFeature(QgsFeature &f)
static Type flatType(Type type)
Returns the flat type for a WKB type.
virtual QgsFeatureIterator getFeatures(const QgsFeatureRequest &request=QgsFeatureRequest()) const =0
Returns an iterator for the features in the source.
virtual long featureCount() const =0
Returns the number of features contained in the source, or -1 if the feature count is unknown...