From 0533cfd708f1f47b477a297dbe8fb51b0d07140b Mon Sep 17 00:00:00 2001 From: Mario Baranzini Date: Mon, 7 Aug 2017 21:51:59 +0200 Subject: [PATCH] Refactoring and added better comments --- python/plugins/processing/algs/qgis/Rasterize.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/python/plugins/processing/algs/qgis/Rasterize.py b/python/plugins/processing/algs/qgis/Rasterize.py index 52844ce09f2..6e4139cfb29 100644 --- a/python/plugins/processing/algs/qgis/Rasterize.py +++ b/python/plugins/processing/algs/qgis/Rasterize.py @@ -55,7 +55,15 @@ __revision__ = '$Format:%H$' class RasterizeAlgorithm(QgisAlgorithm): - """ + """Processing algorithm renders map canvas to a raster file. + It's possible to choose the following parameters: + - Map theme to render + - Layer to render + - The minimum extent to render + - The tile size + - Map unit per pixel + - The output (can be saved to a file or to a temporary file and + automatically opened as layer in qgis) """ # Constants used to refer to parameters and outputs. They will be @@ -150,7 +158,7 @@ class RasterizeAlgorithm(QgisAlgorithm): class TileSet(): """ - A set of tiles /home/mario/Dropbox/workspace/marioba/QGIS/python/plugins/processing/tests/testdata/ + A set of tiles """ def __init__(self, map_theme, layer, extent, tile_size, mupp, output, @@ -171,7 +179,6 @@ class TileSet(): self.mupp = mupp self.tile_size = tile_size - # TODO: Check if file exists and update instead? driver = self.getDriverForFile(output) if not driver: