Skip to content

Stream To Raster

Summary

Rasterize stream vectors, on a new Float32 raster with same dimensions and georeferencing as the provided raster template.

When there is a collision between two streams on the same cell, priority is given to the stream with the smallest ID.

Non-stream cells are filled with zeros.

Tags:
hydrography, rasterization

Usage

No Description Yet.

Parameters

Parameter Description Type
Stream LineString
INPUT
QgsProcessingParameterFeatureSource
Stream Primary Key
PK_FIELD
Default value: GID QgsProcessingParameterField
Raster Template/Data
RASTER_TEMPLATE
QgsProcessingParameterRasterLayer
Get Values From
METHOD
QgsProcessingParameterEnum
Fill Value
FILL_VALUE
QgsProcessingParameterNumber
Optional Burn Value
BURN_VALUE
Default value: 1.0 QgsProcessingParameterNumber
Rasterized Streams
OUTPUT
QgsProcessingParameterRasterDestination