Skip to content
Permalink
Browse files

explicitly convert geometry to multi

  • Loading branch information
alexbruy committed Feb 7, 2017
1 parent 7df04ac commit 91fe2f93c4bb670d2196cfa1d3c1e02964a70442
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/processing/algs/qgis/FixGeometry.py
@@ -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)

0 comments on commit 91fe2f9

Please sign in to comment.
You can’t perform that action at this time.