Skip to content
Permalink
Browse files

[processing] fixed minor typos in GeometryConvert algorithm

  • Loading branch information
volaya committed Oct 3, 2014
1 parent c7a1650 commit 5fca922a98edce8c5506f721079785555dbeab90
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/algs/qgis/GeometryConvert.py
@@ -204,14 +204,14 @@ def processAlgorithm(self, progress):
feat.setGeometry(QgsGeometry.fromPolyline(polygon))
writer.addFeature(feat)
elif newType == QGis.WKBPolygon:
polugons = geom.asMultiPolygon()
for polygons in polygons:
polygons = geom.asMultiPolygon()
for polygon in polygons:
feat = QgsFeature()
feat.setAttributes(f.attributes())
feat.setGeometry(QgsGeometry.fromPolygon(polygon))
writer.addFeature(feat)
elif newType in [QGis.WKBMultiLineString, QGis.WKBMultiPolygon]:
writer.addFeature(f)
writer.addFeature(f)
else:
raise GeoAlgorithmExecutionException(
'Cannot convert from %s to %s', geomType, newType)

0 comments on commit 5fca922

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