mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
store geometries from GeometryCollection in list
This commit is contained in:
parent
5745fb90ee
commit
5cb6dd7c0b
@ -1145,8 +1145,12 @@ class geoprocessingThread( QThread ):
|
||||
if int_geom.wkbType() == 0:
|
||||
# intersection produced different geometry types
|
||||
temp_list = int_geom.asGeometryCollection()
|
||||
int_geom = []
|
||||
for i in temp_list:
|
||||
if i.type() == geom.type():
|
||||
int_geom.append( QgsGeometry( i ) )
|
||||
if len(int_geom) > 1:
|
||||
for j in int_geom:
|
||||
try:
|
||||
outFeat.setGeometry( j )
|
||||
outFeat.setAttributeMap( ftools_utils.combineVectorAttributes( atMapA, atMapB ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user