@@ -1423,7 +1423,7 @@ def testAddPart(self):
1423
1423
# test adding a part with Z values
1424
1424
point = QgsGeometry .fromPoint (points [0 ])
1425
1425
point .get ().addZValue (4.0 )
1426
- self .assertEqual (point .addPointsV2 ([QgsPoint (points [1 ][0 ], points [1 ][1 ], 3.0 , wkbType = QgsWkbTypes .PointZ )]), 0 )
1426
+ self .assertEqual (point .addPoints ([QgsPoint (points [1 ][0 ], points [1 ][1 ], 3.0 , wkbType = QgsWkbTypes .PointZ )]), 0 )
1427
1427
expwkt = "MultiPointZ ((0 0 4), (1 0 3))"
1428
1428
wkt = point .exportToWkt ()
1429
1429
assert compareWkt (expwkt , wkt ), "Expected:\n %s\n Got:\n %s\n " % (expwkt , wkt )
@@ -1453,7 +1453,7 @@ def testAddPart(self):
1453
1453
polyline = QgsGeometry .fromPolylineXY (points [0 ])
1454
1454
polyline .get ().addZValue (4.0 )
1455
1455
points2 = [QgsPoint (p [0 ], p [1 ], 3.0 , wkbType = QgsWkbTypes .PointZ ) for p in points [1 ]]
1456
- self .assertEqual (polyline .addPointsV2 (points2 ), QgsGeometry .Success )
1456
+ self .assertEqual (polyline .addPoints (points2 ), QgsGeometry .Success )
1457
1457
expwkt = "MultiLineStringZ ((0 0 4, 1 0 4, 1 1 4, 2 1 4, 2 0 4),(3 0 3, 3 1 3, 5 1 3, 5 0 3, 6 0 3))"
1458
1458
wkt = polyline .exportToWkt ()
1459
1459
assert compareWkt (expwkt , wkt ), "Expected:\n %s\n Got:\n %s\n " % (expwkt , wkt )
@@ -1497,7 +1497,7 @@ def testAddPart(self):
1497
1497
polygon = QgsGeometry .fromPolygon (points [0 ])
1498
1498
polygon .get ().addZValue (4.0 )
1499
1499
points2 = [QgsPoint (pi [0 ], pi [1 ], 3.0 , wkbType = QgsWkbTypes .PointZ ) for pi in points [1 ][0 ]]
1500
- self .assertEqual (polygon .addPointsV2 (points2 ), QgsGeometry .Success )
1500
+ self .assertEqual (polygon .addPoints (points2 ), QgsGeometry .Success )
1501
1501
expwkt = "MultiPolygonZ (((0 0 4, 1 0 4, 1 1 4, 2 1 4, 2 2 4, 0 2 4, 0 0 4)),((4 0 3, 5 0 3, 5 2 3, 3 2 3, 3 1 3, 4 1 3, 4 0 3)))"
1502
1502
wkt = polygon .exportToWkt ()
1503
1503
assert compareWkt (expwkt , wkt ), "Expected:\n %s\n Got:\n %s\n " % (expwkt , wkt )
0 commit comments