From 94a33cd1c925d9e860a58a5bc165ff3a07e8db93 Mon Sep 17 00:00:00 2001 From: Alexander Bruy Date: Fri, 24 Oct 2014 09:35:45 +0300 Subject: [PATCH] [processing] fix issues with Create Grid algortihm --- python/plugins/processing/algs/qgis/Grid.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/plugins/processing/algs/qgis/Grid.py b/python/plugins/processing/algs/qgis/Grid.py index 5954ac83df2..72cca77c828 100644 --- a/python/plugins/processing/algs/qgis/Grid.py +++ b/python/plugins/processing/algs/qgis/Grid.py @@ -159,7 +159,7 @@ class Grid(GeoAlgorithm): ft.setGeometry(QgsGeometry.fromPolyline(polyline)) ft.setAttributes([originX, y, originX + (col * hSpacing), y]) - writer.addFeature(feature) + writer.addFeature(ft) def _rectangleGridPoly(self, writer, width, height, originX, originY, hSpacing, vSpacing): @@ -230,8 +230,8 @@ class Grid(GeoAlgorithm): ft = QgsFeature() # To preserve symmetry, hspacing is fixed relative to vspacing - xXertexLo = 0.288675134594813 * vSpacing; - xXertexHi = 0.577350269189626 * vSpacing; + xVertexLo = 0.288675134594813 * vSpacing; + xVertexHi = 0.577350269189626 * vSpacing; hSpacing = xVertexLo + xVertexHi halfVSpacing = vSpacing / 2