Skip to content
Permalink
Browse files

[WIP][BUGFIX] Fix interpolation on split geometry

  • Loading branch information
lbartoletti committed May 18, 2020
1 parent 6f86c4b commit bd7e9d6e119f03e55d7f94827399a24935a0877f
Showing with 2 additions and 16 deletions.
  1. +0 −16 python/core/auto_generated/geometry/qgsgeometry.sip.in
  2. +2 −0 src/core/geometry/qgsgeometry.cpp
@@ -839,22 +839,6 @@ Rotate this geometry around the Z axis
:return: OperationResult a result code: success or reason of failure
%End

OperationResult splitGeometry( const QVector<QgsPointXY> &splitLine, QVector<QgsGeometry> &newGeometries /Out/, bool topological, QVector<QgsPointXY> &topologyTestPoints /Out/, bool splitFeature = true ) /Deprecated/;
%Docstring
Splits this geometry according to a given line.

:param splitLine: the line that splits the geometry
\param[out] newGeometries list of new geometries that have been created with the split
:param topological: ``True`` if topological editing is enabled
\param[out] topologyTestPoints points that need to be tested for topological completeness in the dataset
:param splitFeature: Set to True if you want to split a feature, otherwise set to False to split parts

:return: OperationResult a result code: success or reason of failure

.. deprecated:: QGIS 3.12
- will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
%End

OperationResult splitGeometry( const QgsPointSequence &splitLine, QVector<QgsGeometry> &newGeometries /Out/, bool topological, QgsPointSequence &topologyTestPoints /Out/, bool splitFeature = true );
%Docstring
Splits this geometry according to a given line.
@@ -829,6 +829,8 @@ QgsGeometry::OperationResult QgsGeometry::splitGeometry( const QgsPointSequence

QVector<QgsGeometry > newGeoms;
QgsLineString splitLineString( splitLine );
splitLineString.dropZValue();
splitLineString.dropMValue();

QgsGeos geos( d->geometry.get() );
mLastError.clear();

0 comments on commit bd7e9d6

Please sign in to comment.
You can’t perform that action at this time.