geo-registry

gdal vector rasterize

How GDAL runs Rasterize: gdal vector rasterize.

About this implementation
Engine GDAL
Tool name gdal vector rasterize
Interface cli
Implements Rasterize
Documentation https://gdal.org/programs/gdal_vector_rasterize.html
Effects modifies input: no, network: no
Notes Not stated
Status active

Parameters

Name Type Required Default Choices Note
output-format string no Not stated Not stated Not stated
open-option string_list no Not stated Not stated Not stated
input-format string_list no Not stated Not stated Not stated
input dataset_list yes Not stated Not stated vector dataset
creation-option string_list no Not stated Not stated Not stated
overwrite boolean no no Not stated Not stated
band integer_list no Not stated Not stated Not stated
invert boolean no no Not stated Not stated
all-touched boolean no Not stated Not stated Not stated
burn real_list no Not stated Not stated Not stated
attribute-name string no Not stated Not stated Not stated
3d boolean no Not stated Not stated Not stated
input-layer string no Not stated Not stated exclusive group layer-name-or-sql
where string no Not stated Not stated Not stated
sql string no Not stated Not stated exclusive group layer-name-or-sql
dialect string no Not stated Not stated Not stated
nodata real no Not stated Not stated Not stated
init real_list no Not stated Not stated Not stated
crs string no Not stated Not stated Not stated
transformer-option string_list no Not stated Not stated Not stated
extent real_list no Not stated Not stated Not stated
resolution real_list no Not stated Not stated exclusive group size-or-resolution
target-aligned-pixels boolean no Not stated Not stated Not stated
size integer_list no Not stated Not stated exclusive group size-or-resolution
output-data-type string no Not stated UInt8, Int8, UInt16, Int16, UInt32, Int32, UInt64, Int64, CInt16, CInt32, Float16, Float32, Float64, CFloat32, CFloat64 Not stated
optimization string no AUTO AUTO, RASTER, VECTOR Not stated
add boolean no no Not stated Not stated
update boolean no no Not stated Not stated
output dataset yes Not stated Not stated input and output; raster dataset

How it maps to the operation

Operation parameter Parameter here Note
layer input Not stated
output output Not stated
resolution resolution x and y: --resolution 10,10.
value burn Not stated
field attribute-name Not stated
all_touched all-touched Not stated

Differences from the operation

  • With a resolution and no extent, the grid starts half a cell outside the features: a 50 m by 30 m rectangle at 10 m cells gives a 6 by 4 grid. Give extent, or target-aligned-pixels, to control it.
  • Cells outside every feature get init (default 0), not nodata, unless nodata is set.

Harvested by the gdal harvester from engine version 3.13.3. Names can change when an engine is harvested again.