store geometries from GeometryCollection in list

This commit is contained in:
Alexander Bruy 2012-05-22 13:38:40 +03:00
parent 5745fb90ee
commit 5cb6dd7c0b

View File

@ -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 ) )