OS Manuals

/usr/bin/gdal_rasterize

GDAL library and tools without Python/Java bindings

From gdal-no-py 3.13.3-r4 (enterprise-packages), captured 2026-11-08 by running gdal_rasterize --help (exit 0). permalink

Usage: gdal_rasterize [--help] [--long-usage] [--help-general]
                      [-b <band>]... [-i] [-at]
                      [[-burn <value>]...|[-a <attribute_name>]|[-3d]]
                      [-add]
                      [[-l <layer_name>]...|[-sql <sql_statement>]]
                      [-where <expression>] [-dialect <sql_dialect>]
                      [-a_nodata <value>] [-init <value>]... [-a_srs <srs_def>]
                      [-to <NAME>=<VALUE>]... [-te <xmin> <ymin> <xmax> <ymax>]
                      [[-tr <xres> <yres>]|[-ts <width> <height>]]
                      [-tap] [-optim AUTO|VECTOR|RASTER] [-co <NAME>=<VALUE>]...
                      [-ot Byte|Int8|[U]Int{16|32|64}|CInt{16|32}|[C]Float{32|64}]
                      [-of <output_format>] [--quiet] [-oo <NAME>=<VALUE>]...
                      <src_datasource> <dst_filename>

Note: gdal_rasterize --long-usage for full help.

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.