mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Small cleanups to rasterise alg
This commit is contained in:
parent
7d7c06cd85
commit
ab21f3e26b
@ -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 @@ from qgis.core import (
|
||||
QgsProcessingParameterExtent,
|
||||
QgsProcessingParameterString,
|
||||
QgsProcessingParameterNumber,
|
||||
QgsProcessingParameterRasterLayer,
|
||||
QgsProcessingParameterMapLayer,
|
||||
QgsProcessingParameterRasterDestination,
|
||||
QgsMessageLog,
|
||||
QgsRasterFileWriter
|
||||
)
|
||||
|
||||
@ -117,7 +113,7 @@ class RasterizeAlgorithm(QgisAlgorithm):
|
||||
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 @@ class RasterizeAlgorithm(QgisAlgorithm):
|
||||
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user