mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
more GDAL a_nodata fixes, for sake of uniformity
This commit is contained in:
parent
fb5921250b
commit
a4b2cde5bb
@ -82,7 +82,7 @@ class ClipByMask(GdalAlgorithm):
|
||||
[ParameterVector.VECTOR_TYPE_POLYGON]))
|
||||
self.addParameter(ParameterString(self.NO_DATA,
|
||||
self.tr("Nodata value, leave blank to take the nodata value from input"),
|
||||
'-9999'))
|
||||
'', optional=True))
|
||||
self.addParameter(ParameterBoolean(self.ALPHA_BAND,
|
||||
self.tr('Create and output alpha band'), False))
|
||||
self.addParameter(ParameterBoolean(self.CROP_TO_CUTLINE,
|
||||
|
@ -88,7 +88,7 @@ class gdalcalc(GdalAlgorithm):
|
||||
self.addParameter(ParameterString(self.FORMULA,
|
||||
self.tr('Calculation in gdalnumeric syntax using +-/* or any numpy array functions (i.e. logical_and())'), 'A*2', optional=False))
|
||||
self.addParameter(ParameterString(self.NO_DATA,
|
||||
self.tr('Set output nodata value'), '-9999'))
|
||||
self.tr('Set output nodata value'), '', optional=True))
|
||||
self.addParameter(ParameterSelection(self.RTYPE,
|
||||
self.tr('Output raster type'), self.TYPE, 5))
|
||||
#self.addParameter(ParameterBoolean(
|
||||
|
@ -95,7 +95,7 @@ class rasterize(GdalAlgorithm):
|
||||
self.TYPE, 5))
|
||||
params.append(ParameterString(self.NO_DATA,
|
||||
self.tr("Nodata value"),
|
||||
'-9999'))
|
||||
'', optional=True))
|
||||
params.append(ParameterSelection(self.COMPRESS,
|
||||
self.tr('GeoTIFF options. Compression type:'), self.COMPRESSTYPE, 4))
|
||||
params.append(ParameterNumber(self.JPEGCOMPRESSION,
|
||||
|
@ -85,7 +85,7 @@ class translate(GdalAlgorithm):
|
||||
self.tr('Output size is a percentage of input size'), True))
|
||||
self.addParameter(ParameterString(self.NO_DATA,
|
||||
self.tr("Nodata value, leave blank to take the nodata value from input"),
|
||||
''))
|
||||
'', optional=True))
|
||||
self.addParameter(ParameterSelection(self.EXPAND,
|
||||
self.tr('Expand'), ['none', 'gray', 'rgb', 'rgba']))
|
||||
self.addParameter(ParameterCrs(self.SRS,
|
||||
|
@ -80,7 +80,7 @@ class warp(GdalAlgorithm):
|
||||
self.tr('Destination SRS'), ''))
|
||||
self.addParameter(ParameterString(self.NO_DATA,
|
||||
self.tr("Nodata value, leave blank to take the nodata value from input"),
|
||||
'-9999'))
|
||||
'', optional=True))
|
||||
self.addParameter(ParameterNumber(self.TR,
|
||||
self.tr('Output file resolution in target georeferenced units (leave 0 for no change)'),
|
||||
0.0, None, 0.0))
|
||||
|
Loading…
x
Reference in New Issue
Block a user