Skip to content

Commit 0533cfd

Browse files
committedAug 8, 2017
Refactoring and added better comments
1 parent 525aeab commit 0533cfd

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed
 

‎python/plugins/processing/algs/qgis/Rasterize.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,15 @@
5555

5656

5757
class RasterizeAlgorithm(QgisAlgorithm):
58-
"""
58+
"""Processing algorithm renders map canvas to a raster file.
59+
It's possible to choose the following parameters:
60+
- Map theme to render
61+
- Layer to render
62+
- The minimum extent to render
63+
- The tile size
64+
- Map unit per pixel
65+
- The output (can be saved to a file or to a temporary file and
66+
automatically opened as layer in qgis)
5967
"""
6068

6169
# Constants used to refer to parameters and outputs. They will be
@@ -150,7 +158,7 @@ def processAlgorithm(self, parameters, context, feedback):
150158

151159
class TileSet():
152160
"""
153-
A set of tiles /home/mario/Dropbox/workspace/marioba/QGIS/python/plugins/processing/tests/testdata/
161+
A set of tiles
154162
"""
155163

156164
def __init__(self, map_theme, layer, extent, tile_size, mupp, output,
@@ -171,7 +179,6 @@ def __init__(self, map_theme, layer, extent, tile_size, mupp, output,
171179
self.mupp = mupp
172180
self.tile_size = tile_size
173181

174-
# TODO: Check if file exists and update instead?
175182
driver = self.getDriverForFile(output)
176183

177184
if not driver:

0 commit comments

Comments
 (0)
Please sign in to comment.