Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Modify kdbush to store feature id alonside point, for optimised stora…
…ge/retrieval
- Loading branch information
Showing
with
161 additions
and 46 deletions.
- +30 −25 external/kdbush/include/kdbush.hpp
- +47 −0 python/core/auto_generated/qgsspatialindexkdbushdata.sip.in
- +1 −0 python/core/core_auto.sip
- +1 −0 src/core/CMakeLists.txt
- +5 −5 src/core/qgsspatialindexkdbush.cpp
- +3 −2 src/core/qgsspatialindexkdbush.h
- +12 −14 src/core/qgsspatialindexkdbush_p.h
- +62 −0 src/core/qgsspatialindexkdbushdata.h
@@ -0,0 +1,47 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsspatialindexkdbushdata.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsSpatialIndexKDBushData | ||
{ | ||
%Docstring | ||
|
||
A container for data stored inside a QgsSpatialIndexKDBush index. | ||
|
||
.. versionadded:: 3.4 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsspatialindexkdbushdata.h" | ||
%End | ||
public: | ||
|
||
QgsSpatialIndexKDBushData( QgsFeatureId id, double x, double y ); | ||
%Docstring | ||
Constructor for QgsSpatialIndexKDBushData, for a feature with the | ||
given ``id`` and ``x``, ``y`` coordinate. | ||
%End | ||
|
||
|
||
QgsPointXY point() const; | ||
%Docstring | ||
Returns the indexed point. | ||
%End | ||
|
||
QgsFeatureId id; | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/qgsspatialindexkdbushdata.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
Oops, something went wrong.