This commit is contained in:
Nyall Dawson 2021-04-27 17:59:10 +10:00
parent a9ba9351c5
commit bab01b1b75
2 changed files with 10 additions and 0 deletions

View File

@ -829,6 +829,12 @@ geometries of different types.
Compares to an ``other`` geometry of the same class, and returns a integer Compares to an ``other`` geometry of the same class, and returns a integer
for sorting of the two geometries. for sorting of the two geometries.
.. note::
The actual logic for the sorting is an internal detail only and is subject to change
between QGIS versions. The result should only be used for direct comparison of geometries
and not stored for later use.
.. versionadded:: 3.20 .. versionadded:: 3.20
%End %End

View File

@ -1045,6 +1045,10 @@ class CORE_EXPORT QgsAbstractGeometry
* Compares to an \a other geometry of the same class, and returns a integer * Compares to an \a other geometry of the same class, and returns a integer
* for sorting of the two geometries. * for sorting of the two geometries.
* *
* \note The actual logic for the sorting is an internal detail only and is subject to change
* between QGIS versions. The result should only be used for direct comparison of geometries
* and not stored for later use.
*
* \since QGIS 3.20 * \since QGIS 3.20
*/ */
virtual int compareToSameClass( const QgsAbstractGeometry *other ) const = 0; virtual int compareToSameClass( const QgsAbstractGeometry *other ) const = 0;