R/qgis_createconstantrasterlayer.R
qgis_createconstantrasterlayer.RdQGIS Algorithm provided by QGIS (native c++) Create constant raster layer (native:createconstantrasterlayer). Generates a raster layer for a given extent and cell size filled with a single constant value. This algorithm generates a raster layer for a given extent and cell size filled with a single constant value. Additionally an output data type can be specified. The algorithm will abort if a value has been entered that cannot be represented by the selected output raster data type.
qgis_createconstantrasterlayer(
EXTENT = qgisprocess:::qgis_default_value(),
TARGET_CRS = qgisprocess:::qgis_default_value(),
PIXEL_SIZE = qgisprocess:::qgis_default_value(),
NUMBER = qgisprocess:::qgis_default_value(),
OUTPUT_TYPE = qgisprocess:::qgis_default_value(),
CREATION_OPTIONS = qgisprocess:::qgis_default_value(),
OUTPUT = qgisprocess:::qgis_default_value(),
...,
.complete_output = .complete_output_option(),
.quiet = .quiet_option(),
.messages = .message_option()
)extent - Desired extent. A comma delimited string of x min, x max, y min, y max. E.g. '4,10,101,105'. Path to a layer. The extent of the layer is used..
crs - Target CRS. CRS as an auth ID (e.g. 'EPSG:3111'). CRS as a PROJ4 string (e.g. 'PROJ4:…'). CRS as a WKT string (e.g. 'WKT:…'). Path to a layer. The CRS of the layer is used..
number - Pixel size. A numeric value. field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field. expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression.
number - Constant value. A numeric value. field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field. expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression.
enum of ("Byte", "Integer16", "Unsigned Integer16", "Integer32", "Unsigned Integer32", "Float32", "Float64") - Output raster data type. Number of selected option, e.g. '1'. Comma separated list of options, e.g. '1,3'.
string - Creation options. String value. field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field. expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression.
rasterDestination - Constant. Path for new raster 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.