Skip to content

Commit 74826dc

Browse files
author
Médéric RIBREUX
committed
Support directory output via QgsProcessingParameterFolderDestination
1 parent b46e969 commit 74826dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+149
-413
lines changed

python/plugins/processing/algs/grass7/Grass7Algorithm.py

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
QgsProcessingParameterVectorDestination,
5858
QgsProcessingParameterRasterDestination,
5959
QgsProcessingParameterFileDestination,
60+
QgsProcessingParameterFolderDestination,
61+
QgsProcessingOutputFolder,
6062
QgsProcessingOutputVectorLayer,
6163
QgsProcessingOutputRasterLayer,
6264
QgsProcessingOutputHtml,
@@ -265,7 +267,7 @@ def getDefaultCellSize(self):
265267
layers = [l for l in self.inputLayers if isinstance(l, QgsRasterLayer)]
266268

267269
# Use this function to calculate cell size
268-
def cz(l, cellsize): return max(cellsize, (l.extent().xMaximum() - l.extent().xMinimum()) / l.width())
270+
cz = lambda l, cellsize: max(cellsize, (l.extent().xMaximum() - l.extent().xMinimum()) / l.width())
269271

270272
for layer in layers:
271273
cellsize = cz(layer, cellsize)
@@ -533,6 +535,11 @@ def processCommand(self, parameters, context, delOutputs=False):
533535
outName,
534536
self.parameterAsFileOutput(
535537
parameters, outName, context))
538+
# For folders destination
539+
if isinstance(out, QgsProcessingParameterFolderDestination):
540+
# We need to add a unique temporary basename
541+
uniqueBasename = outName + self.uniqueSuffix
542+
command += ' {}={}'.format(outName, uniqueBasename)
536543
else:
537544
# We add an output name to make sure it is unique if the session
538545
# uses this algorithm several times.
@@ -572,6 +579,8 @@ def processOutputs(self, parameters, context):
572579
self.exportRasterLayerFromParameter(outName, parameters, context)
573580
elif isinstance(out, QgsProcessingParameterVectorDestination):
574581
self.exportVectorLayerFromParameter(outName, parameters, context)
582+
elif isinstance(out, QgsProcessingParameterFolderDestination):
583+
self.exportRasterLayersIntoDirectory(outName, parameters, context)
575584

576585
QgsMessageLog.logMessage('processOutputs. Commands: {}'.format(self.commands), 'Grass7', QgsMessageLog.INFO)
577586

@@ -605,8 +614,9 @@ def exportRasterLayerFromParameter(self, name, parameters, context, colorTable=T
605614
"""
606615
Creates a dedicated command to export a raster from
607616
temporary GRASS DB into a file via gdal.
608-
:param grassName: name of the parameter
609-
:param fileName: file path of raster layer
617+
:param name: name of the parameter.
618+
:param parameters: Algorithm parameters list.
619+
:param context: Algorithm context.
610620
:param colorTable: preserve color Table.
611621
"""
612622
fileName = self.parameterAsOutputLayer(parameters, name, context)
@@ -632,6 +642,30 @@ def exportRasterLayer(self, grassName, fileName, colorTable=True):
632642
)
633643
)
634644

645+
def exportRasterLayersIntoDirectory(self, name, parameters, context, colorTable=True):
646+
"""
647+
Creates a dedicated loop command to export rasters from
648+
temporary GRASS DB into a directory gdal.
649+
:param name: name of the parameter
650+
:param fileName: file path of raster layer
651+
:param colorTable: preserve color Table.
652+
"""
653+
# Grab directory name and temporary basename
654+
outDir = self.parameterAsString(parameters, name, context)
655+
basename = name + self.uniqueSuffix
656+
657+
# Add a loop export from the basename
658+
for cmd in [self.commands, self.outputCommands]:
659+
# Adjust region to layer before exporting
660+
# TODO: Does-it works under MS-Windows or MacOSX?
661+
cmd.append("for r in $(g.list type=rast pattern='{}*'); do".format(basename))
662+
cmd.append(" r.out.gdal{0} input=${{r}} output={1}/${{r}}.tif {2}".format(
663+
' -t' if colorTable else '', outDir,
664+
'--overwrite -c createopt="TFW=YES,COMPRESS=LZW"'
665+
)
666+
)
667+
cmd.append("done")
668+
635669
def loadVectorLayerFromParameter(self, name, parameters, context, external=None):
636670
"""
637671
"""

python/plugins/processing/algs/grass7/TODO.md

Lines changed: 49 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,19 @@ TODO List for GRASS7 algorithms support into QGIS Processing
33
QGIS3 Processing Port
44
=====================
55

6-
* Port to Python3.
7-
* print -> print(
8-
* unicode -> str
6+
* Things to do elsewhere
7+
* TODO We need Null QgsProcessingParameterNumber!
8+
* TODO We need NULL QgsProcessingParameterPoint!
9+
* TODO We need a multiple QgsProcessingParameterList!
10+
* TODO We need a QgsParameterMultipleInputLayers parameter for minimum and maximum number of layers.
11+
* TODO Open all the files in a QgsProcessingOutputFolder at the end of the algorithm.
12+
* TODO Use GRASS --exec instead of GRASS_BATCH_JOB.
13+
* TODO Improve Grass Path and Binary detection for all OSs.
14+
* TODO Review all the methods of QgsProcessingAlgorithm.
15+
* TODO Make tests under MS-Windows 7 for Utf-8 support.
16+
* TODO Review Python3 port.
917
* dict iteritems
10-
* TODO Replace all parameters by QgsProcessingParameters.
11-
* DONE Review all ParameterFile
12-
* TODO We need Null QgsParameterNumber!
13-
* TODO We need NULL QgsParameterPoint!
14-
* TODO We need a QgsParameterList!
15-
* TODO Review all OutputDirectory.
16-
* DONE Review all OutputFile
17-
* DONE Replace by QgsProcessingParameterFileDestination
18-
* DONE QgsProcessingParameterFileDestination should use the file filter in Dialog.
19-
Replace fileOut with fileDestination in gui/ParametersUtils.py
20-
* DONE Re-enable GRASS algorithm by default.
21-
* Add GRASS 7.2 new algorithms.
18+
* TODO Add GRASS 7.2 new algorithms.
2219
* TODO Review all algorithm parameters.
2320
MOD r.basins.fill
2421
OK r.blend
@@ -184,18 +181,12 @@ r.watershed
184181
r.what.color
185182
r.what
186183

187-
* Improve unit tests.
188-
* Use some raster/vector layers with spacename into their path.
189-
* DONE Better support for files output that are HTML.
190-
* DONE All html output files will be report outputs.
191-
* DONE All html output will come as stdout files by default.
192-
* DONE OutputHtml must not be converted to OutputLayerDefinition.
193-
* DONE Convert false HTML files to real HTML files.
194-
* DONE Opens HTML files in Viewer.
184+
* TODO Improve unit tests.
185+
* TODO Use some raster/vector layers with spacename into their path.
195186
* TODO Use prepareAlgorithm for algorithm preparation.
196187
* TODO Support ParameterTable.
197-
* DONE Remove specific algorithms code in Grass7Algorithm.py (move them in ext).
198188
* TODO Convert all ext scripts.
189+
* TODO Review i.py.
199190
* TODO Force projection in description file?
200191
* r_rgb.py
201192
* r_blend_combine.py
@@ -232,17 +223,48 @@ r.what
232223
* v_net_steiner.py
233224
* v_net_visibility.py
234225

235-
* TODO Support OutputFolder.
236226
* TODO Support multiple output raster formats.
237227
* TODO Support multiple output vector formats.
238228
* TODO Support multiple input vector formats
239229
* DONE create a general inputVectorLayer method.
240230
* TODO Some formats can't be correctly used by v.external:
241231
* GML.
242232
* TODO Build a workaround for those formats (use v.in.ogr).
233+
* DONE Replace all parameters by QgsProcessingParameters.
234+
* DONE Review all ParameterFile
235+
* DONE Review all OutputDirectory.
236+
* DONE Convert all OutputDirectory to QgsProcessingParameterFolderDestination
237+
* DONE Default case:
238+
* Take the name of the output variable.
239+
* create a default value as basename.
240+
* export all layers into the directory with a shell loop.
241+
* DONE Remove all multipleOutputDir in ext/
242+
* r.colors: TODO ext | DONE desc | TODO tests.
243+
* r.texture: DONE ext | DONE desc | TODO tests.
244+
* r.stats.quantile: DONE ext | DONE desc | TODO tests.
245+
* r.series.interp: DONE ext | DONE desc | TODO tests.
246+
* r.mapcalc: DONE ext | DONE desc | TODO tests.
247+
* i.aster.toar: DONE ext | DONE desc | TODO tests.
248+
* i.tasscap: DONE ext | DONE desc | TODO tests.
249+
* i.rectify: DONE ext | DONE desc | TODO tests.
250+
* i.cca: DONE ext | DONE desc | TODO tests.
251+
* i.landsat.toar: DONE ext | DONE desc | TODO tests.
252+
* i.pca: DONE ext | DONE desc | TODO tests.
253+
* i.topo.corr: DONE ext | DONE desc | TODO tests.
254+
* DONE Review all OutputFile
255+
* DONE Replace by QgsProcessingParameterFileDestination
256+
* DONE QgsProcessingParameterFileDestination should use the file filter in Dialog.
257+
Replace fileOut with fileDestination in gui/ParametersUtils.py
258+
* DONE Remove specific algorithms code in Grass7Algorithm.py (move them in ext).
259+
* DONE Re-enable GRASS algorithm by default.
243260
* DONE Support multiple bands input rasters.
244-
* Review all the methods of QgsProcessingAlgorithm.
245-
* Make tests under MS-Windows 7 for Utf-8 support.
261+
* DONE Better support for files output that are HTML.
262+
* DONE All html output files will be report outputs.
263+
* DONE All html output will come as stdout files by default.
264+
* DONE OutputHtml must not be converted to OutputLayerDefinition.
265+
* DONE Convert false HTML files to real HTML files.
266+
* DONE Opens HTML files in Viewer.
267+
246268

247269
Unit tests
248270
==========

python/plugins/processing/algs/grass7/description/i.aster.toar.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ QgsProcessingParameterBoolean|-b|SWIR is High Gain|False
1010
QgsProcessingParameterBoolean|-c|VNIR is Low Gain 1|False
1111
QgsProcessingParameterBoolean|-d|SWIR is Low Gain 1|False
1212
QgsProcessingParameterBoolean|-e|SWIR is Low Gain 2|False
13-
OutputDirectory|output|Output Directory
13+
QgsProcessingParameterFolderDestination|output|Output Directory

python/plugins/processing/algs/grass7/description/i.atcorr.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@ QgsProcessingParameterRasterDestination|output|Atmospheric correction
1212
*QgsProcessingParameterBoolean|-r|Input raster map converted to reflectance (default is radiance)|False
1313
*QgsProcessingParameterBoolean|-a|Input from ETM+ image taken after July 1, 2000|False
1414
*QgsProcessingParameterBoolean|-b|Input from ETM+ image taken before July 1, 2000|False
15-
16-

python/plugins/processing/algs/grass7/description/i.cca.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Canonical components analysis (CCA) program for image processing.
33
Imagery (i.*)
44
QgsProcessingParameterMultipleLayers|input|Input rasters (2 to 8)|3|None|False
55
QgsProcessingParameterFile|signature|File containing spectral signatures|0|txt|None|False
6-
OutputDirectory|output|Output Directory
6+
QgsProcessingParameterFolderDestination|output|Output Directory

python/plugins/processing/algs/grass7/description/i.colors.enhance.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ QgsProcessingParameterNumber|strength|Cropping intensity (upper brightness level
1212
QgsProcessingParameterRasterDestination|redoutput|Enhanced Red
1313
QgsProcessingParameterRasterDestination|greenoutput|Enhanced Green
1414
QgsProcessingParameterRasterDestination|blueoutput|Enhanced Blue
15-

python/plugins/processing/algs/grass7/description/i.gensig.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ Imagery (i.*)
44
QgsProcessingParameterRasterLayer|trainingmap|Ground truth training map|None|False
55
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
66
QgsProcessingParameterFileDestination|signaturefile|Signature File|Txt files (*.txt)|None|False
7-

python/plugins/processing/algs/grass7/description/i.gensigset.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ QgsProcessingParameterRasterLayer|trainingmap|Ground truth training map|None|Fal
55
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
66
QgsProcessingParameterNumber|maxsig|Maximum number of sub-signatures in any class|QgsProcessingParameterNumber.Integer|5|True|0|None
77
QgsProcessingParameterFileDestination|signaturefile|Signature File|Txt files (*.txt)|None|False
8-

python/plugins/processing/algs/grass7/description/i.group.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ Regroup multiple mono-band rasters into a single multiband raster.
33
Imagery (i.*)
44
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
55
QgsProcessingParameterRasterDestination|group|Multiband raster
6-

python/plugins/processing/algs/grass7/description/i.ifft.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ Imagery (i.*)
44
QgsProcessingParameterRasterLayer|real|Name of input raster map (image fft, real part)|None|False
55
QgsProcessingParameterRasterLayer|imaginary|Name of input raster map (image fft, imaginary part)|None|False
66
QgsProcessingParameterRasterDestination|output|Inverse Fast Fourier Transform
7-

python/plugins/processing/algs/grass7/description/i.image.mosaic.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ Mosaics several images and extends colormap.
33
Imagery (i.*)
44
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
55
QgsProcessingParameterRasterDestination|output|Mosaic Raster
6-

python/plugins/processing/algs/grass7/description/i.in.spotvgt.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ Imagery (i.*)
44
QgsProcessingParameterRasterLayer|input|Name of input SPOT VGT NDVI HDF file|None|False
55
*QgsProcessingParameterBoolean|-a|Also import quality map (SM status map layer) and filter NDVI map|False
66
QgsProcessingParameterRasterDestination|output|SPOT NDVI Raster
7-

python/plugins/processing/algs/grass7/description/i.landsat.acca.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ QgsProcessingParameterNumber|histogram|Number of classes in the cloud temperatur
1111
*QgsProcessingParameterBoolean|-2|Bypass second-pass processing, and merge warm (not ambiguous) and cold clouds|False
1212
*QgsProcessingParameterBoolean|-s|Include a category for cloud shadows|False
1313
QgsProcessingParameterRasterDestination|output|ACCA Raster
14-

python/plugins/processing/algs/grass7/description/i.landsat.toar.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ QgsProcessingParameterNumber|rayleigh|Rayleigh atmosphere (diffuse sky irradianc
1515
QgsProcessingParameterNumber|scale|Scale factor for output|QgsProcessingParameterNumber.Double|1.0|True|0.0|None
1616
*QgsProcessingParameterBoolean|-r|Output at-sensor radiance instead of reflectance for all bands|False
1717
*QgsProcessingParameterBoolean|-n|Input raster maps use as extension the number of the band instead the code|False
18-
OutputDirectory|output|Output Directory
19-
18+
QgsProcessingParameterFolderDestination|output|Output Directory

python/plugins/processing/algs/grass7/description/i.modis.qc.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ QgsProcessingParameterEnum|productname|Name of MODIS product type|mod09Q1;mod09A
66
QgsProcessingParameterEnum|qcname|Name of QC type to extract|adjcorr;atcorr;cloud;data_quality;diff_orbit_from_500m;modland_qa;mandatory_qa_11A1;data_quality_flag_11A1;emis_error_11A1;lst_error_11A1;data_quality_flag_11A2;emis_error_11A2;mandatory_qa_11A2;lst_error_11A2;aerosol_quantity;brdf_correction_performed;cirrus_detected;cloud_shadow;cloud_state;internal_cloud_algorithm;internal_fire_algorithm;internal_snow_mask;land_water;mod35_snow_ice;pixel_adjacent_to_cloud;icm_cloudy;icm_clear;icm_high_clouds;icm_low_clouds;icm_snow;icm_fire;icm_sun_glint;icm_dust;icm_cloud_shadow;icm_pixel_is_adjacent_to_cloud;icm_cirrus;icm_pan_flag;icm_criteria_for_aerosol_retrieval;icm_aot_has_clim_val;modland_qa;vi_usefulness;aerosol_quantity;pixel_adjacent_to_cloud;brdf_correction_performed;mixed_clouds;land_water;possible_snow_ice;possible_shadow;platform;land_water;sun_z_angle_at_local_noon;brdf_correction_performed|False|5
77
QgsProcessingParameterString|band|Band number of MODIS product (mod09Q1=[1,2],mod09A1=[1-7],m[o/y]d09CMG=[1-7], mcd43B2q=[1-7])|None|False|True
88
QgsProcessingParameterRasterDestination|output|QC Classification
9-

python/plugins/processing/algs/grass7/description/i.oif.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ QgsProcessingParameterMultipleLayers|input|Name of input raster map(s)|3|None|Fa
55
*QgsProcessingParameterBoolean|-g|Print in shell script style|False
66
*QgsProcessingParameterBoolean|-s|Process bands serially (default: run in parallel)|False
77
QgsProcessingParameterFileDestination|output|OIF File|Txt files (*.txt)|None|False
8-

python/plugins/processing/algs/grass7/description/i.pansharpen.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ QgsProcessingParameterEnum|method|Method|brovey;ihs;pca|False|1
1111
QgsProcessingParameterRasterDestination|redoutput|Enhanced Red
1212
QgsProcessingParameterRasterDestination|greenoutput|Enhanced Green
1313
QgsProcessingParameterRasterDestination|blueoutput|Enhanced Blue
14-

python/plugins/processing/algs/grass7/description/i.pca.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ QgsProcessingParameterRange|rescale|Rescaling range for output maps. For no resc
66
QgsProcessingParameterNumber|percent|Cumulative percent importance for filtering|QgsProcessingParameterNumber.Integer|99|True|50|99
77
*QgsProcessingParameterBoolean|-n|Normalize (center and scale) input maps|False
88
*QgsProcessingParameterBoolean|-f|Output will be filtered input bands|False
9-
OutputDirectory|output|Output Directory
10-
9+
QgsProcessingParameterFolderDestination|output|Output Directory

python/plugins/processing/algs/grass7/description/i.rectify.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ QgsProcessingParameterEnum|method|Interpolation method to use|nearest;linear;cub
1010
QgsProcessingParameterCrs|crs|Destination CRS|None|False
1111
Hardcoded|extension=rectified
1212
*QgsProcessingParameterBoolean|-t|Use thin plate spline|False
13-
OutputDirectory|output|Output Directory
14-
13+
QgsProcessingParameterFolderDestination|output|Output Directory

python/plugins/processing/algs/grass7/description/i.tasscap.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Performs Tasseled Cap (Kauth Thomas) transformation.
33
Imagery (i.*)
44
QgsProcessingParameterMultipleLayers|input|Input rasters. Landsat4-7: bands 1,2,3,4,5,7; Landsat8: bands 2,3,4,5,6,7; MODIS: bands 1,2,3,4,5,6,7|3|None|False
55
QgsProcessingParameterEnum|sensor|Satellite sensor|landsat4_tm;landsat5_tm;landsat7_etm;landsat8_oli;modis|False|0
6-
OutputDirectory|output|Output Directory
6+
QgsProcessingParameterFolderDestination|output|Output Directory

python/plugins/processing/algs/grass7/description/i.topo.corr.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ QgsProcessingParameterRasterLayer|basemap|Name of illumination input base raster
66
QgsProcessingParameterNumber|zenith|Solar zenith in degrees|QgsProcessingParameterNumber.Double|0.0|False|0.0|360.0
77
QgsProcessingParameterEnum|method|Topographic correction method|cosine;minnaert;c-factor;percent|False|0
88
*QgsProcessingParameterBoolean|-s|Scale output to input and copy color rules|False
9-
OutputDirectory|output|Output Directory
9+
QgsProcessingParameterFolderDestination|output|Output Directory

python/plugins/processing/algs/grass7/description/i.zc.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ QgsProcessingParameterNumber|width|x-y extent of the Gaussian filter|QgsProcessi
66
QgsProcessingParameterNumber|threshold|Sensitivity of Gaussian filter|QgsProcessingParameterNumber.Double|10.0|False|None|0
77
QgsProcessingParameterNumber|orientations|Number of azimuth directions categorized|QgsProcessingParameterNumber.Double|1|False|None|0
88
QgsProcessingParameterRasterDestination|output|Zero crossing
9-

python/plugins/processing/algs/grass7/description/r.blend.rgb.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ QgsProcessingParameterNumber|percent|Percentage weight of first map for color bl
77
QgsProcessingParameterRasterDestination|output_red|Blended Red
88
QgsProcessingParameterRasterDestination|output_green|Blended Green
99
QgsProcessingParameterRasterDestination|output_blue|Blended Blue
10-

python/plugins/processing/algs/grass7/description/r.colors.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ QgsProcessingParameterBoolean|-n|Invert colors|False
1212
QgsProcessingParameterBoolean|-g|Logarithmic scaling|False
1313
QgsProcessingParameterBoolean|-a|Logarithmic-absolute scaling|False
1414
QgsProcessingParameterBoolean|-e|Histogram equalization|False
15-
OutputDirectory|output_dir|Output Directory
16-
15+
QgsProcessingParameterFolderDestination|output_dir|Output Directory

python/plugins/processing/algs/grass7/description/r.mapcalc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ QgsProcessingParameterString|expression|Expression to evaluate. Syntax e.g. `ras
66
QgsProcessingParameterFile|file|File containing expression(s) to evaluate (same rule for raster names than above)|0|txt|None|True
77
QgsProcessingParameterString|seed|Integer seed for rand() function|None|False|True
88
*QgsProcessingParameterBoolean|-s|Generate random seed (result is non-deterministic)|False
9-
OutputDirectory|output_dir|Results Directory
9+
QgsProcessingParameterFolderDestination|output_dir|Results Directory

python/plugins/processing/algs/grass7/description/r.series.interp.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Raster (r.*)
44
QgsProcessingParameterMultipleLayers|input|Input raster layer(s)|3|None|False
55
QgsProcessingParameterString|datapos|Data point position for each input map|None|True|True
66
QgsProcessingParameterFile|infile|Input file with one input raster map name and data point position per line, field separator between name and sample point is 'pipe'|0|txt|None|True
7-
QgsProcessingParameterString|output|Name for output raster map (comma separated list if multiple|None|False|True
7+
QgsProcessingParameterString|output|Name for output raster map (comma separated list if multiple)|None|False|True
88
QgsProcessingParameterString|samplingpos|Sampling point position for each output map (comma separated list)|None|True|True
99
QgsProcessingParameterFile|outfile|Input file with one output raster map name and sample point position per line, field separator between name and sample point is 'pipe'|0|txt|NoneTrue
1010
QgsProcessingParameterEnum|method|Interpolation method, currently only linear interpolation is supported|linear|False|0
11-
OutputDirectory|output_dir|Interpolated rasters
11+
QgsProcessingParameterFolderDestination|output_dir|Interpolated rasters

python/plugins/processing/algs/grass7/description/r.spread.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ QgsProcessingParameterNumber|lag|Simulating time duration LAG (fill the region)
1818
QgsProcessingParameterRasterDestination|output|Spread Time
1919
QgsProcessingParameterRasterDestination|x_output|X Back Coordinates
2020
QgsProcessingParameterRasterDestination|y_output|Y Back Coordinates
21-

python/plugins/processing/algs/grass7/description/r.stats.quantile.rast.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ QgsProcessingParameterNumber|quantiles|Number of quantiles|QgsProcessingParamete
77
QgsProcessingParameterString|percentiles|List of percentiles|None|False|True
88
QgsProcessingParameterNumber|bins|Number of bins to use|QgsProcessingParameterNumber.Integer|1000|True|0|None
99
*QgsProcessingParameterBoolean|-r|Create reclass map with statistics as category labels|False
10-
OutputDirectory|output_dir|Output Directory
10+
QgsProcessingParameterFolderDestination|output_dir|Output Directory
1111

0 commit comments

Comments
 (0)