more QgsPointXY

This commit is contained in:
Luigi Pirelli 2017-06-12 16:12:36 +02:00
parent 22b7498cf8
commit e5e887f66a

View File

@ -97,8 +97,8 @@ class TestQgsVectorLayerEditBuffer(unittest.TestCase):
# add a features with a multi line geometry of not touched lines =>
# cannot be forced to be linestring
multiline = [
[QgsPoint(1, 1), QgsPointXY(2, 2)],
[QgsPoint(3, 3), QgsPointXY(4, 4)],
[QgsPointXY(1, 1), QgsPointXY(2, 2)],
[QgsPointXY(3, 3), QgsPointXY(4, 4)],
]
f1 = QgsFeature(layer.fields(), 1)
f1.setGeometry(QgsGeometry.fromMultiPolyline(multiline))