@@ -7107,13 +7107,8 @@ def testIntersectsMultiPolygonEmptyRect(self):
7107
7107
self .assertTrue (poly .intersects (bbox )) # was failing here!
7108
7108
7109
7109
def testSplitGeometry (self ):
7110
- """
7111
- splitGeometry takes either QVector<QgsPoint> or QVector<QgsPointXY>
7112
- testing the overloaded methods until the QgsPointXY variant is removed in QGIS 4.0
7113
- this could be potentially removed in favor of the existing cpp test which will be sufficient
7114
- """
7115
- square = QgsGeometry .fromWkt ("Polygon ((0 0, 0 2, 2 2, 2 0, 0 0))" )
7116
- line = [QgsPoint (1 , - 1 ), QgsPoint (1 , 3 )]
7110
+
7111
+ square = QgsGeometry .fromWkt ("Polygon ((0 0, 0 2, 2 2, 2 0, 0 0))" )
7117
7112
lineXY = [QgsPointXY (1 , - 1 ), QgsPointXY (1 , 3 )]
7118
7113
7119
7114
r1 = QgsGeometry .fromWkt ("Polygon ((1 2, 1 0, 0 0, 0 2, 1 2))" )
@@ -7125,12 +7120,6 @@ def testSplitGeometry(self):
7125
7120
self .assertEqual (len (parts ), 1 )
7126
7121
self .assertGeometriesEqual (parts [0 ], r1 )
7127
7122
7128
- square = QgsGeometry .fromWkt ("Polygon ((0 0, 0 2, 2 2, 2 0, 0 0))" )
7129
- (result , parts , topo ) = square .splitGeometry (line , False )
7130
- self .assertEqual (result , Qgis .GeometryOperationResult .Success )
7131
- self .assertGeometriesEqual (square , r2 )
7132
- self .assertGeometriesEqual (parts [0 ], r1 )
7133
-
7134
7123
multilinestring = QgsGeometry .fromWkt ("MultiLinestring((0 1, 1 0),(0 2, 2 0))" )
7135
7124
blade = QgsCompoundCurve ()
7136
7125
blade .addCurve (QgsLineString ([QgsPointXY (0.8 , 0.8 ), QgsPointXY (1.2 , 1.2 )]))
0 commit comments