Skip to content

Commit

Permalink
explicitly convert geometry to multi
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 7, 2017
1 parent 7df04ac commit 91fe2f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/qgis/FixGeometry.py
Expand Up @@ -77,13 +77,15 @@ def processAlgorithm(self, feedback):
for g in tmpGeometries:
if g.type() == inputFeature.geometry().type():
try:
g.convertToMultiType()
outputFeature.setGeometry(QgsGeometry(g))
writer.addFeature(outputFeature)
except:
pass
feedback.setProgress(int(current * total))
continue

outputGeometry.convertToMultiType()
outputFeature.setGeometry(outputGeometry)

writer.addFeature(outputFeature)
Expand Down

0 comments on commit 91fe2f9

Please sign in to comment.