Skip to content

Commit

Permalink
[processing] allow enums values to be used in description files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 8, 2018
1 parent fcb50a6 commit 068d74d
Show file tree
Hide file tree
Showing 75 changed files with 118 additions and 114 deletions.
Expand Up @@ -2,11 +2,11 @@ i.atcorr
Performs atmospheric correction using the 6S algorithm.
Imagery (i.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterRange|range|Input imagery range [0,255]|0,255|True
QgsProcessingParameterRange|range|Input imagery range [0,255]|QgsProcessingParameterNumber.Integer|0,255|True
QgsProcessingParameterRasterLayer|elevation|Input altitude raster map in m (optional)|None|True
QgsProcessingParameterRasterLayer|visibility|Input visibility raster map in km (optional)|None|True
QgsProcessingParameterFile|parameters|Name of input text file|False|txt|None|False
QgsProcessingParameterRange|rescale|Rescale output raster map [0,255]|0,255|True
QgsProcessingParameterFile|parameters|Name of input text file|QgsProcessingParameterFile.File|txt|None|False
QgsProcessingParameterRange|rescale|Rescale output raster map [0,255]|QgsProcessingParameterNumber.Integer|0,255|True
QgsProcessingParameterRasterDestination|output|Atmospheric correction
*QgsProcessingParameterBoolean|-i|Output raster map as integer|False
*QgsProcessingParameterBoolean|-r|Input raster map converted to reflectance (default is radiance)|False
Expand Down
Expand Up @@ -2,5 +2,5 @@ i.cca
Canonical components analysis (CCA) program for image processing.
Imagery (i.*)
QgsProcessingParameterMultipleLayers|input|Input rasters (2 to 8)|3|None|False
QgsProcessingParameterFile|signature|File containing spectral signatures|False|txt|None|False
QgsProcessingParameterFile|signature|File containing spectral signatures|QgsProcessingParameterFile.File|txt|None|False
QgsProcessingParameterFolderDestination|output|Output Directory
Expand Up @@ -3,7 +3,7 @@ Generates spectral signatures for land cover types in an image using a clusterin
Imagery (i.*)
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
QgsProcessingParameterNumber|classes|Initial number of classes (1-255)|QgsProcessingParameterNumber.Integer|None|False|1|255
QgsProcessingParameterFile|seed|Name of file containing initial signatures|False|txt|None|True
QgsProcessingParameterFile|seed|Name of file containing initial signatures|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterString|sample|Sampling intervals (by row and col)|None|False|True
QgsProcessingParameterNumber|iterations|Maximum number of iterations|QgsProcessingParameterNumber.Integer|30|True|1|None
QgsProcessingParameterNumber|convergence|Percent convergence|QgsProcessingParameterNumber.Double|98.0|True|0.0|100.0
Expand Down
@@ -1,6 +1,6 @@
i.in.spotvgt
Imports SPOT VGT NDVI data into a raster map.
Imagery (i.*)
QgsProcessingParameterFile|input|Name of input SPOT VGT NDVI HDF file|False|hdf|None|False
QgsProcessingParameterFile|input|Name of input SPOT VGT NDVI HDF file|QgsProcessingParameterFile.File|hdf|None|False
*QgsProcessingParameterBoolean|-a|Also import quality map (SM status map layer) and filter NDVI map|False
QgsProcessingParameterRasterDestination|output|SPOT NDVI Raster
Expand Up @@ -2,7 +2,7 @@ i.landsat.toar
Calculates top-of-atmosphere radiance or reflectance and temperature for Landsat MSS/TM/ETM+/OLI
Imagery (i.*)
QgsProcessingParameterMultipleLayers|rasters|Landsat input rasters|3|None|False
QgsProcessingParameterFile|metfile|Name of Landsat metadata file (.met or MTL.txt)|False|met|None|True
QgsProcessingParameterFile|metfile|Name of Landsat metadata file (.met or MTL.txt)|QgsProcessingParameterFile.File|met|None|True
QgsProcessingParameterEnum|sensor|Spacecraft sensor|mss1;mss2;mss3;mss4;mss5;tm4;tm5;tm7;oli8|False|7|True
QgsProcessingParameterEnum|method|Atmospheric correction method|uncorrected;dos1;dos2;dos2b;dos3;dos4|False|0|True
QgsProcessingParameterString|date|Image acquisition date (yyyy-mm-dd)|None|False|True
Expand Down
Expand Up @@ -2,6 +2,6 @@ i.maxlik
Classifies the cell spectral reflectances in imagery data.
Imagery (i.*)
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
QgsProcessingParameterFile|signaturefile|Name of input file containing signatures|False|txt|None|False
QgsProcessingParameterFile|signaturefile|Name of input file containing signatures|QgsProcessingParameterFile.File|txt|None|False
QgsProcessingParameterRasterDestination|output|Classification|None|False
QgsProcessingParameterRasterDestination|reject|Reject Threshold|None|True
Expand Up @@ -2,7 +2,7 @@ i.pca
Principal components analysis (PCA) for image processing.
Imagery (i.*)
QgsProcessingParameterMultipleLayers|input|Name of two or more input raster maps|3|None|False
QgsProcessingParameterRange|rescale|Rescaling range for output maps. For no rescaling use 0,0|0,255|True
QgsProcessingParameterRange|rescale|Rescaling range for output maps. For no rescaling use 0,0|QgsProcessingParameterNumber.Integer|0,255|True
QgsProcessingParameterNumber|percent|Cumulative percent importance for filtering|QgsProcessingParameterNumber.Integer|99|True|50|99
*QgsProcessingParameterBoolean|-n|Normalize (center and scale) input maps|False
*QgsProcessingParameterBoolean|-f|Output will be filtered input bands|False
Expand Down
Expand Up @@ -2,7 +2,7 @@ i.smap
Performs contextual image classification using sequential maximum a posteriori (SMAP) estimation.
Imagery (i.*)
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
QgsProcessingParameterFile|signaturefile|Name of input file containing signatures|False|txt|None|False
QgsProcessingParameterFile|signaturefile|Name of input file containing signatures|QgsProcessingParameterFile.File|txt|None|False
QgsProcessingParameterNumber|blocksize|Size of submatrix to process at one time|QgsProcessingParameterNumber.Integer|1024|True|1|None
*QgsProcessingParameterBoolean|-m|Use maximum likelihood estimation (instead of smap)|False
QgsProcessingParameterRasterDestination|output|Classification|None|False
Expand Down
@@ -1,7 +1,7 @@
m.cogo
A simple utility for converting bearing and distance measurements to coordinates and vice versa. It assumes a Cartesian coordinate system
Miscellaneous (m.*)
QgsProcessingParameterFile|input|Name of input file|False|txt|None|False
QgsProcessingParameterFile|input|Name of input file|QgsProcessingParameterFile.File|txt|None|False
QgsProcessingParameterFileDestination|output|Output text file|Txt files (*.txt)|None|False
QgsProcessingParameterPoint|coordinates|Starting coordinate pair|0.0,0.0
*QgsProcessingParameterBoolean|-l|Lines are labelled|False
Expand Down
Expand Up @@ -3,7 +3,7 @@ Manages category values and labels associated with user-specified raster map lay
Raster (r.*)
QgsProcessingParameterRasterLayer|map|Name of raster map|None|False
QgsProcessingParameterString|separator|Field separator (Special characters: pipe, comma, space, tab, newline)|tab|False|True
QgsProcessingParameterFile|rules|File containing category label rules|False|txt|None|True
QgsProcessingParameterFile|rules|File containing category label rules|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterString|txtrules|Inline category label rules|None|True|True
QgsProcessingParameterRasterLayer|raster|Raster map from which to copy category table|None|True
*QgsProcessingParameterString|format|Default label or format string for dynamic labeling. Used when no explicit label exists for the category|None|False|True
Expand Down
Expand Up @@ -4,7 +4,7 @@ Raster (r.*)
QgsProcessingParameterMultipleLayers|map|Name of raster maps(s)|3|None|False
QgsProcessingParameterEnum|color|Name of color table|not selected;aspect;aspectcolr;bcyr;bgyr;blues;byg;byr;celsius;corine;curvature;differences;elevation;etopo2;evi;fahrenheit;gdd;greens;grey;grey.eq;grey.log;grey1.0;grey255;gyr;haxby;kelvin;ndvi;ndwi;oranges;population;population_dens;precipitation;precipitation_daily;precipitation_monthly;rainbow;ramp;random;reds;rstcurv;ryb;ryg;sepia;slope;srtm;srtm_plus;terrain;wave|False|0|True
QgsProcessingParameterString|rules_txt|Color rules|None|True|True
QgsProcessingParameterFile|rules|Color rules file|False|txt|None|True
QgsProcessingParameterFile|rules|Color rules file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterRasterLayer|raster|Raster map from which to copy color table|None|True
QgsProcessingParameterBoolean|-r|Remove existing color table|False
QgsProcessingParameterBoolean|-w|Only write new color table if it does not already exist|False
Expand Down
@@ -1,7 +1,7 @@
r.in.lidar
r.in.lidar.info - Extract information from LAS file
Raster (r.*)
QgsProcessingParameterFile|input|LAS input file|False|txt|None|False
QgsProcessingParameterFile|input|LAS input file|QgsProcessingParameterFile.File|txt|None|False
Hardcoded|-p
Hardcoded|-g
Hardcoded|-s
Expand Down
@@ -1,7 +1,7 @@
r.in.lidar
Creates a raster map from LAS LiDAR points using univariate statistics.
Raster (r.*)
QgsProcessingParameterFile|input|LAS input file|False|las|None|False
QgsProcessingParameterFile|input|LAS input file|QgsProcessingParameterFile.File|las|None|False
QgsProcessingParameterEnum|method|Statistic to use for raster values|n;min;max;range;sum;mean;stddev;variance;coeff_var;median;percentile;skewness;trimmean|False|5|True
QgsProcessingParameterEnum|type|Storage type for resultant raster map|CELL;FCELL;DCELL|False|1|True
QgsProcessingParameterRasterLayer|base_raster|Subtract raster values from the Z coordinates|None|True
Expand Down
Expand Up @@ -3,6 +3,6 @@ r.li.cwed.ascii - Calculates contrast weighted edge density index on a raster ma
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|path|Name of file that contains the weight to calculate the index|False|txt|None|False
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterFile|path|Name of file that contains the weight to calculate the index|QgsProcessingParameterFile.File|txt|None|False
QgsProcessingParameterFileDestination|output_txt|CWED|Txt files (*.txt)|None|False
Expand Up @@ -3,6 +3,6 @@ Calculates contrast weighted edge density index on a raster map
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|path|Name of file that contains the weight to calculate the index|False|txt|None|False
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterFile|path|Name of file that contains the weight to calculate the index|QgsProcessingParameterFile.File|txt|None|False
QgsProcessingParameterRasterDestination|output|CWED
Expand Up @@ -3,5 +3,5 @@ r.li.dominance.ascii - Calculates dominance's diversity index on a raster map
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterFileDestination|output_txt|Dominance|Txt files (*.txt)|None|False
Expand Up @@ -3,5 +3,5 @@ Calculates dominance's diversity index on a raster map
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterRasterDestination|output|Dominance
Expand Up @@ -3,7 +3,7 @@ r.li.edgedensity.ascii - Calculates edge density index on a raster map, using a
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterString|patch_type|The value of the patch type|None|False|True
QgsProcessingParameterBoolean|-b|Exclude border edges|False
QgsProcessingParameterFileDestination|output_txt|Edge Density|Txt files (*.txt)|None|False
Expand Up @@ -3,7 +3,7 @@ Calculates edge density index on a raster map, using a 4 neighbour algorithm
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterString|patch_type|The value of the patch type|None|False|True
QgsProcessingParameterBoolean|-b|Exclude border edges|False
QgsProcessingParameterRasterDestination|output|Edge Density
Expand Up @@ -3,5 +3,5 @@ r.li.mpa.ascii - Calculates mean pixel attribute index on a raster map
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterFileDestination|output_txt|Mean Pixel Attribute|Txt files (*.txt)|None|False
Expand Up @@ -3,5 +3,5 @@ Calculates mean pixel attribute index on a raster map
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterRasterDestination|output|Mean Pixel Attribute
Expand Up @@ -3,5 +3,5 @@ r.li.mps.ascii - Calculates mean patch size index on a raster map, using a 4 nei
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None
QgsProcessingParameterFileDestination|output_txt|Mean Patch Size|Txt files (*.txt)|None|False
Expand Up @@ -3,5 +3,5 @@ Calculates mean patch size index on a raster map, using a 4 neighbour algorithm
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterRasterDestination|output|Mean Patch Size
Expand Up @@ -3,5 +3,5 @@ r.li.padcv.ascii - Calculates coefficient of variation of patch area on a raster
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterFileDestination|output_txt|PADCV|Txt files (*.txt)|None|False
Expand Up @@ -3,5 +3,5 @@ Calculates coefficient of variation of patch area on a raster map
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterRasterDestination|output|PADCV
Expand Up @@ -3,5 +3,5 @@ r.li.padrange.ascii - Calculates range of patch area size on a raster map
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterFileDestination|output_txt|Pad Range|Txt files (*.txt)|None|False
Expand Up @@ -3,5 +3,5 @@ Calculates range of patch area size on a raster map
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterRasterDestination|output|Pad Range
Expand Up @@ -3,5 +3,5 @@ r.li.padsd.ascii - Calculates standard deviation of patch area a raster map
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterFileDestination|output_txt|Patch Area SD|Txt files (*.txt)|None|False
Expand Up @@ -3,5 +3,5 @@ Calculates standard deviation of patch area a raster map
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterRasterDestination|output|Patch Area SD
Expand Up @@ -3,5 +3,5 @@ r.li.patchdensity.ascii - Calculates patch density index on a raster map, using
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterFileDestination|output_txt|Patch Density|Txt files (*.txt)|None|False
Expand Up @@ -3,5 +3,5 @@ Calculates patch density index on a raster map, using a 4 neighbour algorithm
Raster (r.*)
QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterString|config_txt|Landscape structure configuration|None|True|True
QgsProcessingParameterFile|config|Landscape structure configuration file|False|txt|None|True
QgsProcessingParameterFile|config|Landscape structure configuration file|QgsProcessingParameterFile.File|txt|None|True
QgsProcessingParameterRasterDestination|output|Patch Density

0 comments on commit 068d74d

Please sign in to comment.