Skip to content
Permalink
Browse files

Massive conversion

  • Loading branch information
Médéric RIBREUX
Médéric RIBREUX committed Oct 22, 2017
1 parent 56b963e commit 4b8b6a09c8f5b952d1188e22efe58d8347d720f9
Showing with 989 additions and 775 deletions.
  1. +263 −253 python/plugins/processing/algs/grass7/Grass7Algorithm.py
  2. +3 −2 python/plugins/processing/algs/grass7/Grass7Utils.py
  3. +231 −12 python/plugins/processing/algs/grass7/TODO.md
  4. +1 −1 python/plugins/processing/algs/grass7/description/i.atcorr.txt
  5. +1 −1 python/plugins/processing/algs/grass7/description/i.cca.txt
  6. +3 −3 python/plugins/processing/algs/grass7/description/i.cluster.txt
  7. +1 −1 python/plugins/processing/algs/grass7/description/i.gensig.txt
  8. +1 −1 python/plugins/processing/algs/grass7/description/i.gensigset.txt
  9. +1 −1 python/plugins/processing/algs/grass7/description/i.landsat.toar.txt
  10. +1 −1 python/plugins/processing/algs/grass7/description/i.maxlik.txt
  11. +1 −1 python/plugins/processing/algs/grass7/description/i.oif.txt
  12. +1 −1 python/plugins/processing/algs/grass7/description/i.rectify.txt
  13. +1 −1 python/plugins/processing/algs/grass7/description/i.smap.txt
  14. +2 −2 python/plugins/processing/algs/grass7/description/m.cogo.txt
  15. +1 −1 python/plugins/processing/algs/grass7/description/r.category.out.txt
  16. +1 −1 python/plugins/processing/algs/grass7/description/r.category.txt
  17. +1 −1 python/plugins/processing/algs/grass7/description/r.circle.txt
  18. +1 −0 python/plugins/processing/algs/grass7/description/r.clump.txt
  19. +1 −1 python/plugins/processing/algs/grass7/description/r.coin.txt
  20. +1 −1 python/plugins/processing/algs/grass7/description/r.colors.out.txt
  21. +1 −1 python/plugins/processing/algs/grass7/description/r.colors.txt
  22. +1 −1 python/plugins/processing/algs/grass7/description/r.contour.level.txt
  23. +4 −4 python/plugins/processing/algs/grass7/description/r.contour.step.txt
  24. +2 −2 python/plugins/processing/algs/grass7/description/r.cost.coordinates.txt
  25. +3 −0 python/plugins/processing/algs/grass7/description/r.cost.points.txt
  26. +1 −1 python/plugins/processing/algs/grass7/description/r.covar.txt
  27. +1 −1 python/plugins/processing/algs/grass7/description/r.describe.txt
  28. +1 −1 python/plugins/processing/algs/grass7/description/r.distance.txt
  29. +1 −1 python/plugins/processing/algs/grass7/description/r.drain.txt
  30. +2 −2 python/plugins/processing/algs/grass7/description/r.flow.aspect.barrier.txt
  31. +2 −2 python/plugins/processing/algs/grass7/description/r.flow.aspect.txt
  32. +2 −2 python/plugins/processing/algs/grass7/description/r.flow.barrier.txt
  33. +1 −1 python/plugins/processing/algs/grass7/description/r.flow.txt
  34. +1 −1 python/plugins/processing/algs/grass7/description/r.horizon.height.txt
  35. +2 −2 python/plugins/processing/algs/grass7/description/r.in.lidar.info.txt
  36. +1 −1 python/plugins/processing/algs/grass7/description/r.in.lidar.txt
  37. +1 −1 python/plugins/processing/algs/grass7/description/r.info.txt
  38. +1 −1 python/plugins/processing/algs/grass7/description/r.kappa.txt
  39. +3 −3 python/plugins/processing/algs/grass7/description/r.li.cwed.ascii.txt
  40. +2 −2 python/plugins/processing/algs/grass7/description/r.li.cwed.txt
  41. +2 −2 python/plugins/processing/algs/grass7/description/r.li.dominance.ascii.txt
  42. +1 −1 python/plugins/processing/algs/grass7/description/r.li.dominance.txt
  43. +2 −2 python/plugins/processing/algs/grass7/description/r.li.edgedensity.ascii.txt
  44. +1 −1 python/plugins/processing/algs/grass7/description/r.li.edgedensity.txt
  45. +2 −2 python/plugins/processing/algs/grass7/description/r.li.mpa.ascii.txt
  46. +1 −1 python/plugins/processing/algs/grass7/description/r.li.mpa.txt
  47. +2 −2 python/plugins/processing/algs/grass7/description/r.li.mps.ascii.txt
  48. +1 −1 python/plugins/processing/algs/grass7/description/r.li.mps.txt
  49. +2 −2 python/plugins/processing/algs/grass7/description/r.li.padcv.ascii.txt
  50. +1 −1 python/plugins/processing/algs/grass7/description/r.li.padcv.txt
  51. +2 −2 python/plugins/processing/algs/grass7/description/r.li.padrange.ascii.txt
  52. +1 −1 python/plugins/processing/algs/grass7/description/r.li.padrange.txt
  53. +2 −2 python/plugins/processing/algs/grass7/description/r.li.padsd.ascii.txt
  54. +1 −1 python/plugins/processing/algs/grass7/description/r.li.padsd.txt
  55. +2 −2 python/plugins/processing/algs/grass7/description/r.li.patchdensity.ascii.txt
  56. +1 −1 python/plugins/processing/algs/grass7/description/r.li.patchdensity.txt
  57. +2 −2 python/plugins/processing/algs/grass7/description/r.li.patchnum.ascii.txt
  58. +1 −1 python/plugins/processing/algs/grass7/description/r.li.patchnum.txt
  59. +2 −2 python/plugins/processing/algs/grass7/description/r.li.pielou.ascii.txt
  60. +1 −1 python/plugins/processing/algs/grass7/description/r.li.pielou.txt
  61. +2 −2 python/plugins/processing/algs/grass7/description/r.li.renyi.ascii.txt
  62. +1 −1 python/plugins/processing/algs/grass7/description/r.li.renyi.txt
  63. +2 −2 python/plugins/processing/algs/grass7/description/r.li.richness.ascii.txt
  64. +1 −1 python/plugins/processing/algs/grass7/description/r.li.richness.txt
  65. +2 −2 python/plugins/processing/algs/grass7/description/r.li.shannon.ascii.txt
  66. +1 −1 python/plugins/processing/algs/grass7/description/r.li.shannon.txt
  67. +2 −2 python/plugins/processing/algs/grass7/description/r.li.shape.ascii.txt
  68. +1 −1 python/plugins/processing/algs/grass7/description/r.li.shape.txt
  69. +2 −2 python/plugins/processing/algs/grass7/description/r.li.simpson.ascii.txt
  70. +1 −1 python/plugins/processing/algs/grass7/description/r.li.simpson.txt
  71. +1 −1 python/plugins/processing/algs/grass7/description/r.mapcalc.txt
  72. +1 −1 python/plugins/processing/algs/grass7/description/r.mfilter.fp.txt
  73. +1 −1 python/plugins/processing/algs/grass7/description/r.mfilter.txt
  74. +1 −1 python/plugins/processing/algs/grass7/description/r.neighbors.txt
  75. +1 −1 python/plugins/processing/algs/grass7/description/r.out.gridatb.txt
  76. +1 −1 python/plugins/processing/algs/grass7/description/r.out.ppm.txt
  77. +1 −1 python/plugins/processing/algs/grass7/description/r.out.vrml.txt
  78. +1 −1 python/plugins/processing/algs/grass7/description/r.profile.txt
  79. +1 −1 python/plugins/processing/algs/grass7/description/r.quantile.txt
  80. +1 −1 python/plugins/processing/algs/grass7/description/r.reclass.txt
  81. +1 −1 python/plugins/processing/algs/grass7/description/r.recode.txt
  82. +1 −1 python/plugins/processing/algs/grass7/description/r.regression.line.txt
  83. +1 −1 python/plugins/processing/algs/grass7/description/r.regression.multi.txt
  84. +2 −2 python/plugins/processing/algs/grass7/description/r.series.interp.txt
  85. +1 −1 python/plugins/processing/algs/grass7/description/r.statistics.txt
  86. +1 −1 python/plugins/processing/algs/grass7/description/r.stats.quantile.out.txt
  87. +1 −1 python/plugins/processing/algs/grass7/description/r.stats.txt
  88. +1 −1 python/plugins/processing/algs/grass7/description/r.support.txt
  89. +1 −1 python/plugins/processing/algs/grass7/description/r.surf.area.txt
  90. +1 −1 python/plugins/processing/algs/grass7/description/r.terraflow.txt
  91. +1 −1 python/plugins/processing/algs/grass7/description/r.tileset.txt
  92. +1 −1 python/plugins/processing/algs/grass7/description/r.topmodel.topidxstats.txt
  93. +4 −4 python/plugins/processing/algs/grass7/description/r.topmodel.txt
  94. +1 −1 python/plugins/processing/algs/grass7/description/r.transect.txt
  95. +1 −1 python/plugins/processing/algs/grass7/description/r.univar.txt
  96. +1 −1 python/plugins/processing/algs/grass7/description/r.what.color.txt
  97. +1 −1 python/plugins/processing/algs/grass7/description/r.what.coords.txt
  98. +1 −1 python/plugins/processing/algs/grass7/description/r.what.points.txt
  99. +1 −1 python/plugins/processing/algs/grass7/description/v.class.txt
  100. +1 −1 python/plugins/processing/algs/grass7/description/v.db.select.txt
  101. +1 −1 python/plugins/processing/algs/grass7/description/v.edit.txt
  102. +1 −1 python/plugins/processing/algs/grass7/description/v.extrude.txt
  103. +1 −1 python/plugins/processing/algs/grass7/description/v.in.ascii.points.txt
  104. +1 −1 python/plugins/processing/algs/grass7/description/v.in.ascii.standard.txt
  105. +1 −1 python/plugins/processing/algs/grass7/description/v.in.dxf.txt
  106. +1 −1 python/plugins/processing/algs/grass7/description/v.in.geonames.txt
  107. +1 −1 python/plugins/processing/algs/grass7/description/v.in.lidar.txt
  108. +1 −1 python/plugins/processing/algs/grass7/description/v.in.lines.txt
  109. +1 −1 python/plugins/processing/algs/grass7/description/v.in.mapgen.txt
  110. +2 −1 python/plugins/processing/algs/grass7/description/v.info.txt
  111. +1 −1 python/plugins/processing/algs/grass7/description/v.lrs.segment.txt
  112. +1 −1 python/plugins/processing/algs/grass7/description/v.lrs.where.txt
  113. +1 −1 python/plugins/processing/algs/grass7/description/v.net.arcs.txt
  114. +1 −1 python/plugins/processing/algs/grass7/description/v.net.nreport.txt
  115. +1 −1 python/plugins/processing/algs/grass7/description/v.net.path.txt
  116. +1 −1 python/plugins/processing/algs/grass7/description/v.net.report.txt
  117. +1 −1 python/plugins/processing/algs/grass7/description/v.normal.txt
  118. +1 −1 python/plugins/processing/algs/grass7/description/v.out.ascii.txt
  119. +1 −1 python/plugins/processing/algs/grass7/description/v.out.dxf.txt
  120. +1 −1 python/plugins/processing/algs/grass7/description/v.out.pov.txt
  121. +1 −1 python/plugins/processing/algs/grass7/description/v.out.vtk.txt
  122. +1 −1 python/plugins/processing/algs/grass7/description/v.pack.txt
  123. +2 −2 python/plugins/processing/algs/grass7/description/v.rectify.txt
  124. +1 −1 python/plugins/processing/algs/grass7/description/v.report.txt
  125. +1 −1 python/plugins/processing/algs/grass7/description/v.sample.txt
  126. +1 −1 python/plugins/processing/algs/grass7/description/v.segment.txt
  127. +1 −1 python/plugins/processing/algs/grass7/description/v.surf.bspline.lambda.txt
  128. +1 −1 python/plugins/processing/algs/grass7/description/v.univar.txt
  129. +4 −15 python/plugins/processing/algs/grass7/ext/r_blend_combine.py
  130. +5 −4 python/plugins/processing/algs/grass7/ext/r_drain.py
  131. +9 −9 python/plugins/processing/algs/grass7/ext/r_li.py
  132. +11 −21 python/plugins/processing/algs/grass7/ext/r_mask.py
  133. +3 −3 python/plugins/processing/algs/grass7/ext/r_mask_rast.py
  134. +4 −4 python/plugins/processing/algs/grass7/ext/r_mask_vect.py
  135. +14 −48 python/plugins/processing/algs/grass7/ext/r_null.py
  136. +12 −12 python/plugins/processing/algs/grass7/ext/r_rgb.py
  137. +53 −0 python/plugins/processing/algs/grass7/ext/r_statistics.py
  138. +14 −25 python/plugins/processing/algs/grass7/ext/v_distance.py
  139. +3 −3 python/plugins/processing/algs/grass7/ext/v_extrude.py
  140. +2 −2 python/plugins/processing/algs/grass7/ext/v_in_geonames.py
  141. +17 −22 python/plugins/processing/algs/grass7/ext/v_net.py
  142. +5 −5 python/plugins/processing/algs/grass7/ext/v_net_alloc.py
  143. +2 −2 python/plugins/processing/algs/grass7/ext/v_net_allpairs.py
  144. +3 −3 python/plugins/processing/algs/grass7/ext/v_net_arcs.py
  145. +3 −3 python/plugins/processing/algs/grass7/ext/v_net_articulation.py
  146. +3 −3 python/plugins/processing/algs/grass7/ext/v_net_bridge.py
  147. +3 −9 python/plugins/processing/algs/grass7/ext/v_net_connect.py
  148. +13 −7 python/plugins/processing/algs/grass7/ext/v_net_connectivity.py
  149. +13 −7 python/plugins/processing/algs/grass7/ext/v_net_flow.py
  150. +2 −2 python/plugins/processing/algs/grass7/ext/v_net_iso.py
  151. +3 −3 python/plugins/processing/algs/grass7/ext/v_net_nodes.py
  152. +2 −2 python/plugins/processing/algs/grass7/ext/v_net_path.py
  153. +1 −1 python/plugins/processing/algs/grass7/ext/v_net_salesman.py
  154. +2 −2 python/plugins/processing/algs/grass7/ext/v_net_steiner.py
  155. +3 −3 python/plugins/processing/algs/grass7/ext/v_net_visibility.py
  156. +7 −6 python/plugins/processing/algs/grass7/ext/v_pack.py
  157. +9 −20 python/plugins/processing/algs/grass7/ext/v_rast_stats.py
  158. +7 −6 python/plugins/processing/algs/grass7/ext/v_rectify.py
  159. +11 −15 python/plugins/processing/algs/grass7/ext/{v_build_polylines.py → v_sample.py}
  160. +12 −3 python/plugins/processing/algs/grass7/ext/v_to_3d.py
  161. +9 −20 python/plugins/processing/algs/grass7/ext/v_vect_stats.py
  162. +18 −27 python/plugins/processing/algs/grass7/ext/{v_what_rast.py → v_voronoi.py}
  163. +9 −6 python/plugins/processing/algs/grass7/ext/v_what_rast_centroids.py
  164. +9 −6 python/plugins/processing/algs/grass7/ext/v_what_rast_points.py
  165. +9 −20 python/plugins/processing/algs/grass7/ext/v_what_vect.py
  166. +17 −2 python/plugins/processing/core/parameters.py
  167. +4 −0 python/plugins/processing/gui/DestinationSelectionPanel.py

Large diffs are not rendered by default.

@@ -52,6 +52,7 @@ class Grass7Utils(object):
GRASS_LOG_COMMANDS = 'GRASS7_LOG_COMMANDS'
GRASS_LOG_CONSOLE = 'GRASS7_LOG_CONSOLE'
GRASS_HELP_PATH = 'GRASS_HELP_PATH'
GRASS_USE_VEXTERNAL = 'GRASS_USE_VEXTERNAL'

sessionRunning = False
sessionLayers = {}
@@ -118,11 +119,11 @@ def grassPath():
# Grab folder from Processing configuration
if not isWindows() and not isMac():
return ''

folder = ProcessingConfig.getSetting(Grass7Utils.GRASS_FOLDER) or ''
if not os.path.exists(folder):
folder = None

# If no folder is declared, search for it
if folder is None:
# Under MSWindows, we use OSGEO4W
@@ -7,21 +7,240 @@ QGIS3 Processing Port
* print -> print(
* unicode -> str
* dict iteritems
* Replace all parameters by QgsProcessingParameters.
* Re-enable GRASS algorithm by default.
* TODO Replace all parameters by QgsProcessingParameters.
* DONE Review all ParameterFile
* TODO We need Null QgsParameterNumber!
* TODO We need NULL QgsParameterPoint!
* TODO We need a QgsParameterList!
* TODO Review all OutputDirectory.
* DONE Review all OutputFile
* DONE Replace by QgsProcessingParameterFileDestination
* DONE QgsProcessingParameterFileDestination should use the file filter in Dialog.
Replace fileOut with fileDestination in gui/ParametersUtils.py
* DONE Re-enable GRASS algorithm by default.
* Add GRASS 7.2 new algorithms.
* TODO Review all algorithm parameters.
MOD r.basins.fill
OK r.blend
OK r.buffer
OK r.buffer.lowmem
OK r.carve
OK r.category
MOD r.circle
MOD r.clump
OK r.coin
TODO r.colors OutputDirectory
OK r.colors.out
OK r.colors.stddev
OK r.composite
OK r.compress
MOD r.contour
MOD r.cost
OK r.covar
OK r.cross
r.describe
r.distance
r.drain
r.external
r.external.out
r.fill.dir
r.fillnulls
r.flow
r.grow.distance
r.grow
r.gwflow
r.his
r.horizon
r.import
r.in.ascii
r.in.aster
r.in.bin
r.in.gdal
r.in.gridatb
r.in.lidar
r.in.mat
r.in.png
r.in.poly
r.in.srtm
r.in.wms
r.in.xyz
r.info
r.kappa
r.lake
r.latlong
r.li.cwed
r.li.daemon
r.li.dominance
r.li.edgedensity
r.li
r.li.mpa
r.li.mps
r.li.padcv
r.li.padrange
r.li.padsd
r.li.patchdensity
r.li.patchnum
r.li.pielou
r.li.renyi
r.li.richness
r.li.shannon
r.li.shape
r.li.simpson
r.mapcalc
r.mask
r.mfilter
r.mode
r.neighbors
r.null
r.out.ascii
r.out.bin
r.out.gdal
r.out.gridatb
r.out.mat
r.out.mpeg
r.out.png
r.out.pov
r.out.ppm
r.out.ppm3
r.out.vrml
r.out.vtk
r.out.xyz
r.pack
r.param.scale
r.patch
r.plane
r.profile
r.proj
r.quant
r.quantile
r.random.cells
r.random
r.random.surface
r.reclass.area
r.reclass
r.recode
r.region
r.regression.line
r.regression.multi
r.relief
r.report
r.resamp.bspline
r.resamp.filter
r.resamp.interp
r.resamp.rst
r.resamp.stats
r.resample
r.rescale.eq
r.rescale
r.rgb
r.ros
r.series.accumulate
r.series
r.series.interp
r.shade
r.sim.sediment
r.sim.water
r.slope.aspect
r.solute.transport
r.spread
r.spreadpath
r.statistics
r.stats
r.stats.quantile
r.stats.zonal
r.stream.extract
r.sun
r.sunhours
r.sunmask
r.support
r.support.stats
r.surf.area
r.surf.contour
r.surf.fractal
r.surf.gauss
r.surf.idw
r.surf.random
r.terraflow
r.texture
r.thin
r.tile
r.tileset
r.timestamp
r.to.rast3
r.to.rast3elev
r.to.vect
r.topidx
r.topmodel
r.transect
r.univar
r.unpack
r.uslek
r.usler
r.viewshed
r.volume
r.walk
r.water.outlet
r.watershed
r.what.color
r.what

* Improve unit tests.
* Use some raster/vector layers with spacename into their path.
* Better support for files output that are not HTML.
* Use prepareAlgorithm for algorithm preparation.
* Opens HTML files in Viewer.
* Support ParameterTable.
* Remove specific algorithms code in Grass7Algorithm.py (move them in ext).
* Convert all ext scripts.
* Support OutputFolder.
* Support multiple output raster formats.
* Support multiple output vector formats.
* Support multiple bands input rasters.
* DONE Better support for files output that are HTML.
* DONE All html output files will be report outputs.
* DONE All html output will come as stdout files by default.
* DONE OutputHtml must not be converted to OutputLayerDefinition.
* DONE Convert false HTML files to real HTML files.
* DONE Opens HTML files in Viewer.
* TODO Use prepareAlgorithm for algorithm preparation.
* TODO Support ParameterTable.
* DONE Remove specific algorithms code in Grass7Algorithm.py (move them in ext).
* TODO Convert all ext scripts.
* TODO Force projection in description file?
* r_rgb.py
* r_blend_combine.py
* r_blend_rgb.py
* r_drain.py
* r_horizon.py
* r_mask.py
* r_mask_vect.py
* r_mask_rast.py
* r_null.py
* r_statistics.py
* v_voronoi.py
* v_build_polylines.py => TO delete.
* v_in_geonames.py.
* v_sample.py.
* v_to_3d.py.
* v_pack.py.
* v_what_vect.py => TO delete.
* v_what_rast_points.py.
* v_what_rast_centroids.py.
* v_vect_stats.py
* v_rast_stats.py
* v_net.py
* v_net_alloc.py
* v_net_allpairs.py
* v_net_arcs.py
* v_net_articulation.py
* v_net_connect.py
* v_net_connectivity.py
* v_net_flow.py
* v_net_iso.py
* v_net_nodes.py
* v_net_path.py
* v_net_steiner.py
* v_net_visibility.py

* TODO Support OutputFolder.
* TODO Support multiple output raster formats.
* TODO Support multiple output vector formats.
* TODO Support multiple input vector formats
* DONE create a general inputVectorLayer method.
* TODO Some formats can't be correctly used by v.external:
* GML.
* TODO Build a workaround for those formats (use v.in.ogr).
* DONE Support multiple bands input rasters.
* Review all the methods of QgsProcessingAlgorithm.
* Make tests under MS-Windows 7 for Utf-8 support.

@@ -5,7 +5,7 @@ QgsProcessingParameterRasterLayer|input|Name of input raster map|None|False
QgsProcessingParameterRange|range|Input imagery range [0,255]|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|False
QgsProcessingParameterFile|parameters|Name of input text file|0|txt|None|False
QgsProcessingParameterRange|rescale|Rescale output raster map [0,255]|0,255|True
QgsProcessingParameterRasterDestination|output|Atmospheric correction
*QgsProcessingParameterBoolean|-i|Output raster map as integer|False
@@ -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|False
QgsProcessingParameterFile|signature|File containing spectral signatures|0|txt|None|False
OutputDirectory|output|Output Directory
@@ -3,11 +3,11 @@ 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|1|True|1|255
QgsProcessingParameterFile|seed|Name of file containing initial signatures|False|True
QgsProcessingParameterFile|seed|Name of file containing initial signatures|0|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
QgsProcessingParameterNumber|separation|Cluster separation|QgsProcessingParameterNumber.Double|0.0|True|0.0|None
QgsProcessingParameterNumber|min_size|Minimum number of pixels in a class|QgsProcessingParameterNumber.Integer|17|True|1|None
OutputFile|signaturefile|Signature File
OutputFile|reportfile|Final Report File
QgsProcessingParameterFileDestination|signaturefile|Signature File|Txt files (*.txt)|None|False
QgsProcessingParameterFileDestination|reportfile|Final Report File|Txt files (*.txt)|None|False
@@ -3,5 +3,5 @@ Generates statistics for i.maxlik from raster map.
Imagery (i.*)
QgsProcessingParameterRasterLayer|trainingmap|Ground truth training map|None|False
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
OutputFile|signaturefile|Signature File
QgsProcessingParameterFileDestination|signaturefile|Signature File|Txt files (*.txt)|None|False

@@ -4,5 +4,5 @@ Imagery (i.*)
QgsProcessingParameterRasterLayer|trainingmap|Ground truth training map|None|False
QgsProcessingParameterMultipleLayers|input|Input rasters|3|None|False
QgsProcessingParameterNumber|maxsig|Maximum number of sub-signatures in any class|QgsProcessingParameterNumber.Integer|5|True|0|None
OutputFile|signaturefile|Signature File
QgsProcessingParameterFileDestination|signaturefile|Signature File|Txt files (*.txt)|None|False

@@ -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|True
QgsProcessingParameterFile|metfile|Name of Landsat metadata file (.met or MTL.txt)|0|met|None|True
QgsProcessingParameterEnum|sensor|Spacecraft sensor|mss1;mss2;mss3;mss4;mss5;tm4;tm5;tm7;oli8|False|7
QgsProcessingParameterEnum|method|Atmospheric correction method|uncorrected;dos1;dos2;dos2b;dos3;dos4|False|0
QgsProcessingParameterString|date|Image acquisition date (yyyy-mm-dd)|None|False|True
@@ -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|False
QgsProcessingParameterFile|signaturefile|Name of input file containing signatures|0|txt|None|False
QgsProcessingParameterRasterDestination|output|Classification
QgsProcessingParameterRasterDestination|reject|Reject Threshold
@@ -4,5 +4,5 @@ Imagery (i.*)
QgsProcessingParameterMultipleLayers|input|Name of input raster map(s)|3|None|False
*QgsProcessingParameterBoolean|-g|Print in shell script style|False
*QgsProcessingParameterBoolean|-s|Process bands serially (default: run in parallel)|False
OutputFile|output|OIF File
QgsProcessingParameterFileDestination|output|OIF File|Txt files (*.txt)|None|False

@@ -2,7 +2,7 @@ i.rectify
Rectifies an image by computing a coordinate transformation for each pixel in the image based on the control points.
Imagery (i.*)
QgsProcessingParameterMultipleLayers|rasters|Name of raster maps to rectify|3|None|False
QgsProcessingParameterFile|gcp|Ground Control Points file|False|False
QgsProcessingParameterFile|gcp|Ground Control Points file|0|txt|None|False
QgsProcessingParameterEnum|order|Rectification polynomial order|1;2;3|False|0
QgsProcessingParameterNumber|resolution|Target resolution|QgsProcessingParameterNumber.Double|None|True|None|None
QgsProcessingParameterNumber|memory|Amount of memory to use in MB|QgsProcessingParameterNumber.Integer|300|True|1|None
@@ -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|False
QgsProcessingParameterFile|signaturefile|Name of input file containing signatures|0|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
@@ -1,8 +1,8 @@
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
OutputFile|output|Output text file
QgsProcessingParameterFile|input|Name of input file|0|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
*QgsProcessingParameterBoolean|-q|Suppress warnings|False
@@ -5,4 +5,4 @@ QgsProcessingParameterRasterLayer|map|Name of raster map|None|False
QgsProcessingParameterString|cats|Category values (for Integer rasters). Example: 1,3,7-9,13|None|False|True
QgsProcessingParameterString|values|Comma separated value list (for float rasters). Example: 1.4,3.8,13|None|False|True
QgsProcessingParameterString|separator|Field separator (Special characters: pipe, comma, space, tab, newline)|tab|False|True
OutputFile|output|Category
QgsProcessingParameterFileDestination|output|Category|Txt files (*.txt)|None|False
@@ -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|True
QgsProcessingParameterFile|rules|File containing category label rules|0|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
@@ -4,6 +4,6 @@ Raster (r.*)
QgsProcessingParameterPoint|coordinates|The coordinate of the center (east,north)|0,0
QgsProcessingParameterNumber|min|Minimum radius for ring/circle map (in meters)|QgsProcessingParameterNumber.Double|10|False|None|None
QgsProcessingParameterNumber|max|Maximum radius for ring/circle map (in meters)|QgsProcessingParameterNumber.Double|20|False|None|None
QgsProcessingParameterString|multiplier|Data value multiplier|1
QgsProcessingParameterNumber|multiplier|Data value multiplier|QgsProcessingParameterNumber.Double|1.0|False|None|None
QgsProcessingParameterBoolean|-b|Generate binary raster map|False
QgsProcessingParameterRasterDestination|output|Circles

0 comments on commit 4b8b6a0

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