GDAL_RASTERIZE(1) GDAL GDAL_RASTERIZE(1) (NAME) gdal_rasterize - . (SYNOPSIS) Usage: gdal_rasterize [--help] [--long-usage] [--help-general] [-b ]... [-i] [-at] [[-burn ]...|[-a ]|[-3d]] [-add] [[-l ]...|[-sql ]] [-where ] [-dialect ] [-a_nodata ] [-init ]... [-a_srs ] [-to =]... [-te ] [[-tr ]|[-ts ]] [-tap] [-optim AUTO|VECTOR|RASTER] [-co =]... [-ot Byte|Int8|[U]Int{16|32|64}|CInt{16|32}|[C]Float{32|64}] [-of ] [--quiet] [-oo =]... (DESCRIPTION) ( ) () () . OGR . (in-place) . (On the fly) . : "gdal": gdal vector rasterize . --help --help-general GDAL . -q, --quiet . -b () . -b . . . -i . . : ( ) GDAL GEOS . -at ALL_TOUCHED ( ). . : ( ) . ( ) . -sql (ORDER BY) . -burn . -burn . -a (attribute) . . -3d "Z" . ( ). ( Z ). -add . (heatmaps) . -l () . -sql ( ). -where WHERE SQL () . -sql SQL . 3.7 GDAL @filename . : -l . -dialect SQL. OGRSQL OGR SQL () SQL RDBMS . "SQLITE" . -of . . . -a_nodata nodata . -init . nodata . . -a_srs . . SRS SRS SRS . GDAL/OGR WKT PROJ.4 EPSG:n WKT . -to = GDALCreateGenImgProjTransformer2(). . RPC . -co = . GeoTIFF . . --format . Raster drivers . -te . . . -tr . . . -tap (target aligned pixels) -tr . xmin / resx ymin / resy xmax / resx ymax / resy . -ts . -ts -tr . 0 . -ot . Float64 Int64 Int64 . -optim {AUTO|VECTOR|RASTER} ( ). / . . () . -oo = 3.7 . ( ) OGR . GDAL. . . . -of -a_nodata -init -a_srs -co -te -tr -tap -ts -ot . -tr -ts . ..SH " (RETURN STATUS CODE)" 0 ( ). (C API) GDALRasterize() C . (EXAMPLES) mask.shp (RGB = 255,0,0) TIFF RGB work.tif . gdal_rasterize -b 1 -b 2 -b 3 -burn 255 -burn 0 -burn 0 -l mask mask.shp work.tif "class A" ROOF_H . gdal_rasterize -a ROOF_H -where "class='A'" -l footprints footprints.shp city_dem.tif footprint.shp TIFF 1000x1000 RGB . -b -burn . gdal_rasterize -burn 255 -burn 0 -burn 0 -ot Byte -ts 1000 1000 -l footprints footprints.shp mask.tif (AUTHORS) Frank Warmerdam (COPYRIGHT) 1998-2026 August 18, 2026 GDAL_RASTERIZE(1)