Skip to content

Commit

Permalink
Small cleanups to rasterise alg
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 10, 2017
1 parent 7d7c06c commit ab21f3e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions python/plugins/processing/algs/qgis/Rasterize.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
***************************************************************************/
"""

from processing.core.outputs import OutputRaster

from processing.algs.qgis.QgisAlgorithm import QgisAlgorithm

from qgis.PyQt.QtGui import QImage, QPainter
Expand All @@ -34,10 +32,8 @@
QgsProcessingParameterExtent,
QgsProcessingParameterString,
QgsProcessingParameterNumber,
QgsProcessingParameterRasterLayer,
QgsProcessingParameterMapLayer,
QgsProcessingParameterRasterDestination,
QgsMessageLog,
QgsRasterFileWriter
)

Expand Down Expand Up @@ -117,7 +113,7 @@ def initAlgorithm(self, config=None):
QgsProcessingParameterNumber(
self.TILE_SIZE,
self.tr('Tile size'),
defaultValue=1024))
defaultValue=1024, minValue=0))

self.addParameter(QgsProcessingParameterNumber(
self.MAP_UNITS_PER_PIXEL,
Expand Down Expand Up @@ -147,7 +143,7 @@ def group(self):
return self.tr('Raster tools')

def tags(self):
return self.tr('layer,raster,convert,file,map themes,tiles').split(',')
return self.tr('layer,raster,convert,file,map themes,tiles,render').split(',')

# def processAlgorithm(self, progress):
def processAlgorithm(self, parameters, context, feedback):
Expand Down

0 comments on commit ab21f3e

Please sign in to comment.