@@ -1197,7 +1197,7 @@ def union(self):
1197
1197
intB = QgsGeometry .unaryUnion (lstIntersectingB )
1198
1198
diff_geom = diff_geom .difference (intB )
1199
1199
1200
- if diff_geom .wkbType () == QGis .WKBUnknown or QgsWKBTypes .flatType (int_geom .geometry ().wkbType ()) == QgsWKBTypes .GeometryCollection :
1200
+ if diff_geom .wkbType () == QGis .WKBUnknown or QgsWKBTypes .flatType (diff_geom .geometry ().wkbType ()) == QgsWKBTypes .GeometryCollection :
1201
1201
temp_list = diff_geom .asGeometryCollection ()
1202
1202
for i in temp_list :
1203
1203
if i .type () == geom .type ():
@@ -1415,7 +1415,7 @@ def clip(self):
1415
1415
try :
1416
1416
cur_geom = QgsGeometry (outFeat .geometry ())
1417
1417
new_geom = QgsGeometry (geom .intersection (cur_geom ))
1418
- if new_geom .wkbType () == QGis .WKBUnknown or QgsWKBTypes .flatType (int_geom .geometry ().wkbType ()) == QgsWKBTypes .GeometryCollection :
1418
+ if new_geom .wkbType () == QGis .WKBUnknown or QgsWKBTypes .flatType (new_geom .geometry ().wkbType ()) == QgsWKBTypes .GeometryCollection :
1419
1419
int_com = QgsGeometry (geom .combine (cur_geom ))
1420
1420
int_sym = QgsGeometry (geom .symDifference (cur_geom ))
1421
1421
new_geom = QgsGeometry (int_com .difference (int_sym ))
@@ -1459,7 +1459,7 @@ def clip(self):
1459
1459
try :
1460
1460
cur_geom = QgsGeometry (outFeat .geometry ())
1461
1461
new_geom = QgsGeometry (geom .intersection (cur_geom ))
1462
- if new_geom .wkbType () == QGis .WKBUnknown or QgsWKBTypes .flatType (int_geom .geometry ().wkbType ()) == QgsWKBTypes .GeometryCollection :
1462
+ if new_geom .wkbType () == QGis .WKBUnknown or QgsWKBTypes .flatType (new_geom .geometry ().wkbType ()) == QgsWKBTypes .GeometryCollection :
1463
1463
int_com = QgsGeometry (geom .combine (cur_geom ))
1464
1464
int_sym = QgsGeometry (geom .symDifference (cur_geom ))
1465
1465
new_geom = QgsGeometry (int_com .difference (int_sym ))
@@ -1511,7 +1511,7 @@ def clip(self):
1511
1511
try :
1512
1512
cur_geom = QgsGeometry (outFeat .geometry ())
1513
1513
new_geom = QgsGeometry (geom .intersection (cur_geom ))
1514
- if new_geom .wkbType () == QGis .WKBUnknown or QgsWKBTypes .flatType (int_geom .geometry ().wkbType ()) == QgsWKBTypes .GeometryCollection :
1514
+ if new_geom .wkbType () == QGis .WKBUnknown or QgsWKBTypes .flatType (new_geom .geometry ().wkbType ()) == QgsWKBTypes .GeometryCollection :
1515
1515
int_com = QgsGeometry (geom .combine (cur_geom ))
1516
1516
int_sym = QgsGeometry (geom .symDifference (cur_geom ))
1517
1517
new_geom = QgsGeometry (int_com .difference (int_sym ))
@@ -1557,7 +1557,7 @@ def clip(self):
1557
1557
try :
1558
1558
cur_geom = QgsGeometry (outFeat .geometry ())
1559
1559
new_geom = QgsGeometry (geom .intersection (cur_geom ))
1560
- if new_geom .wkbType () == QGis .WKBUnknown or QgsWKBTypes .flatType (int_geom .geometry ().wkbType ()) == QgsWKBTypes .GeometryCollection :
1560
+ if new_geom .wkbType () == QGis .WKBUnknown or QgsWKBTypes .flatType (new_geom .geometry ().wkbType ()) == QgsWKBTypes .GeometryCollection :
1561
1561
int_com = QgsGeometry (geom .combine (cur_geom ))
1562
1562
int_sym = QgsGeometry (geom .symDifference (cur_geom ))
1563
1563
new_geom = QgsGeometry (int_com .difference (int_sym ))
0 commit comments