QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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
Point geometry type, with support for z-dimension and m-values.
static Type flatType(Type type) SIP_HOLDGIL
Returns the flat type for a WKB type.
An interface for objects which provide features via a getFeatures method.
This class wraps a request for features to a vector layer (or directly its vector data provider).
Base class for feedback objects to be used for cancellation of something running in a worker thread.
virtual QgsFeatureIterator getFeatures(const QgsFeatureRequest &request=QgsFeatureRequest()) const =0
Returns an iterator for the features in the source.
const QgsAbstractGeometry * constGet() const SIP_HOLDGIL
Returns a non-modifiable (const) reference to the underlying abstract geometry primitive.
virtual long featureCount() const =0
Returns the number of features contained in the source, or -1 if the feature count is unknown.
bool isCanceled() const
Tells whether the operation has been canceled already.
bool nextFeature(QgsFeature &f)
bool hasGeometry() const
Returns true if the feature has an associated geometry.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Wrapper for iterator of features from vector data provider or vector layer.
QgsWkbTypes::Type wkbType() const SIP_HOLDGIL
Returns type of the geometry as a WKB type (point / linestring / polygon etc.)
A container for data stored inside a QgsSpatialIndexKDBush index.