Skip to content

Commit

Permalink
[processing] fixed minor typos in GeometryConvert algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Oct 3, 2014
1 parent c7a1650 commit 5fca922
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/qgis/GeometryConvert.py
Expand Up @@ -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)
Expand Down

0 comments on commit 5fca922

Please sign in to comment.