QGIS Algorithm provided by QGIS (native c++) Raster minimum/maximum (native:rasterminmax). Calculates the minimum and maximum pixel in a raster layer. This algorithm extracts extrema (minimum and maximum) values from a given band of the raster layer. The output is a vector layer containing point features for the selected extrema, at the center of the associated pixel. If multiple pixels in the raster share the minimum or maximum value, then only one of these pixels will be included in the output.
qgis_rasterminmax(
INPUT = qgisprocess:::qgis_default_value(),
BAND = qgisprocess:::qgis_default_value(),
EXTRACT = qgisprocess:::qgis_default_value(),
OUTPUT = qgisprocess:::qgis_default_value(),
...,
.complete_output = .complete_output_option(),
.quiet = .quiet_option(),
.messages = .message_option()
)
raster
- Input layer. Path to a raster layer.
band
- Band number. Integer value representing an existing raster band number.
enum
of ("Minimum and Maximum", "Minimum", "Maximum")
- Extract extrema. Number of selected option, e.g. '1'. Comma separated list of options, e.g. '1,3'.
sink
- Output. Path for new vector layer.
further parameters passed to qgisprocess::qgis_run_algorithm()
logical specifying if complete out of qgisprocess::qgis_run_algorithm()
should be used (TRUE
) or first output (most likely the main) should read (FALSE
). Default value is TRUE
.
logical specifying if parameter .quiet
for qgisprocess::qgis_run_algorithm()
Default value is TRUE
.
logical specifying if messages from qgisprocess::qgis_run_algorithm()
should be printed (TRUE
) or not (FALSE
). Default value is FALSE
.