Skip to content
Permalink
Browse files

Small cleanups to rasterise alg

  • Loading branch information
nyalldawson committed Aug 9, 2017
1 parent 7d7c06c commit ab21f3e26ba7eb0f9cd09b4f2b74fdccf92e48b2
Showing with 2 additions and 6 deletions.
  1. +2 −6 python/plugins/processing/algs/qgis/Rasterize.py
@@ -19,8 +19,6 @@
***************************************************************************/
"""

from processing.core.outputs import OutputRaster

from processing.algs.qgis.QgisAlgorithm import QgisAlgorithm

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

@@ -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,
@@ -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):

0 comments on commit ab21f3e

Please sign in to comment.
You can’t perform that action at this time.