GDAL-VECTOR-RASTERIZE(1) GDAL GDAL-VECTOR-RASTERIZE(1) (NAME) gdal-vector-rasterize - 3.11 . (SYNOPSIS) : gdal vector rasterize [OPTIONS] . : -i, --input [] -o, --output [] : -h, --help --json-usage JSON --config = [] -q, --quiet ( ) [ ] : -f, --of, --format, --output-format --co, --creation-option = [] --overwrite -b, --band () ( 1) [] --invert --all-touched ALL_TOUCHED --burn [] -a, --attribute-name --3d Z -l, --input-layer --sql --where where SQL --sql select SQL --input-layer --dialect SQL --nodata nodata --init [] --crs --transformer-option = GDALCreateGenImgProjTransformer2 [] --extent ,,, [ ] --resolution , [ ] --size --tap, --target-aligned-pixels ( ) --resolution --size , [ ] --resolution --ot, --datatype, --output-data-type . OUTPUT-DATA-TYPE=UInt8|Int8|UInt16|Int16|UInt32|Int32|UInt64|Int64|CInt16|CInt32|Float16|Float32|Float64|CFloat32|CFloat64 --optimization ( ). OPTIMIZATION=AUTO|RASTER|VECTOR (: AUTO) --add --update : --oo, --open-option = [] --if, --input-format [] gdal vector rasterize (burn ). ( --update --add ) (--resolution) (--size) . ( --burn ) Z ( --3d) --attribute-name . . --all-touched . GDAL 3.12 gdal pipeline . : 3.12. GDALG ( / ) (GDALG OUTPUT (ON-THE-FLY / STREAMED DATASET)) JSON GDALG . GDALG: GDAL Streamed Algorithm / . : . . (PROGRAM-SPECIFIC OPTIONS) --3d (burn) "Z" . ( ). ( Z ). --add --update . . --all-touched ALL_TOUCHED . : ( ) . ( ) . --sql (ORDER BY) . -a, --attribute-name / . GDAL . . --band, -b () . . --burn . . --crs (override) . ( ) . (reprojection) CRS CRS CRS . GDAL/OGR WKT PROJ.4 EPSG:n WKT . --extent ,,, () . . . --init . . -l, --input-layer () . -sql ( ). --invert . . : ( ) GDAL GEOS . --nodata nodata . --optimization ( ). raster / . vector CPU . (tiled) . auto () . --ot, --datatype, --output-data-type . Float64 Int64 Int64 . --resolution , () . . . --resolution --size . --size , () . --size --resolution . 0 (aspect ratio) . --sql |@ SQL . @filename . --dialect SQL. gdal vector sql SQL RDBMS . sql gdal vector pipeline sql read OGRSQL . SQL OGRSQL . SQL SQLite dialect SQLITE INDIRECT_SQLITE . SQL . gdal --format . : $ gdal --format "PostgreSQL" [...] Supported SQL dialects: NATIVE OGRSQL SQLITE [...] $ gdal --format "ESRI Shapefile" [...] Supported SQL dialects: OGRSQL SQLITE [...] --tap, --target-aligned-pixels ( ) --resolution . xmin / resx ymin / resy xmax / resx ymax / resy . --tap --resolution . --transformer-option = (transformer) GDALCreateGenImgProjTransformer2() . . RPC . --where SQL WHERE (features) () (burn in). (STANDARD OPTIONS) --co, --creation-option = (creation option) . GeoTIFF (tiled) . . . --formats . Raster drivers . --if, --input-format / () . . . . . . --oo, --open-option = ( ). . -f, --of, --format, --output-format . : gdal --formats | grep raster | grep rw | sort --overwrite . gdal . --update (update mode) . (RETURN STATUS CODE) 0 ( ). (EXAMPLES) : Shapefile mask.shp (RGB = 255,0,0) TIFF work.tif (burn) . gdal vector rasterize -b 1,2,3 --burn 255,0,0 -l mask mask.shp work.tif shapefile where gdal vector rasterize -a ROOF_H --where "class='A'" -l footprints footprints.shp city_dem.tif : footprint.shp TIFF 1000x1000 rgb . : -b --burn . gdal vector rasterize --burn 255,0,0 --ot Byte --size 1000,1000 -l footprints footprints.shp mask.tif : shapefile where gdal pipeline read /vsizip/vsicurl/https://www2.census.gov/geo/tiger/TIGER2025/STATE/tl_2025_us_state.zip ! \ filter --where "stusps = 'CA'" --update-extent ! \ rasterize --burn 1 --size 1500,1500 --datatype Byte ! \ write out.png --overwrite (AUTHORS) Alessandro Pasotti (COPYRIGHT) 1998-2026 August 18, 2026 GDAL-VECTOR-RASTERIZE(1)