GDAL_GRID(1) GDAL GDAL_GRID(1) (NAME) gdal_grid - () (SYNOPSIS) gdal_grid [--help] [--help-general] [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/ CInt16/CInt32/CFloat32/CFloat64}] [-oo =]... [-of ] [-co =]... [-zfield ] [-z_increase ] [-z_multiply ] [-a_srs ] [-spat ] [-clipsrc |||spat_extent] [-clipsrcsql ] [-clipsrclayer ] [-clipsrcwhere ] [-l ]... [-where ] [-sql ] [-txe ] [-tye ] [-tr ] [-outsize ] [-a {[[:=]...]}] [-q] (DESCRIPTION) () OGR . . GDAL_NUM_THREADS . (worker threads) ALL_CPUS / . : "gdal": gdal vector grid . --help . --help-general GDAL . -q, --quiet . -ot : Byte Int8 UInt16 Int16 UInt32 Int32 UInt64 Int64 Float32 Float64 CInt16 CInt32 CFloat32 CFloat64. . -of . . . -txe X . -tye Y . -tr ( ). -tr -txe -tye . 3.2 . -outsize . -outsize -tr . -a_srs . srs_def GDAL/OGR WKT PROJ.4 EPSG:n WKT . . -zfield Z . Z ( Z Z ). -z_increase Z . Z . Z + Z . 0 . -z_multiply Z . ( ) . ( Z + Z) * Z . 1 . -a {[[:=]...]} ( ) . (INTERPOLATION ALGORITHMS) (DATA METRICS) . -spat (xmin, ymin) - (xmax, ymax) . -clipsrc [ ]|||spat_extent ( SRS ) WKT ( POLYGON MULTIPOLYGON) -spat ( spat_extent) . -clipsrclayer -clipsrcwhere -clipsrcsql . -clipsrcsql SQL . -clipsrclayer . -clipsrcwhere . -l () . -sql . -where SQL WHERE () . -sql SQL . -oo = 3.7 . ( ) -co = . GeoTIFF . . --format . (Raster drivers) . OGR . GDAL. (INTERPOLATION ALGORITHMS) . GDAL (GDAL Grid Tutorial) . invdist (Inverse distance to a power). : o power: ( 2.0). o smoothing: ( 0.0). o radius1: ( X 0 ). . 0.0 . o radius2: ( Y 0 ). . 0.0 . o radius: ( radius1 radius2). 0.0 . GDAL 3.6 . o angle: ( 0.0). o max_points: . . ( ). . 0 . o min_points: . NODATA . ( ) . 0 . o max_points_per_quadrant: . 0 . GDAL 3.6 . invdistnn . o min_points_per_quadrant: . 0 . GDAL 3.6 . invdistnn . o nodata: NODATA ( 0.0). invdistnn max_points . : o power: ( 2.0). o smoothing: ( 0.0). o radius: . 1.0 . o max_points: . . . 12 . o min_points: . NODATA . 0 . o max_points_per_quadrant: . 0 . GDAL 3.6 . - - - - max_points_per_quadrant . o min_points_per_quadrant: . 0 . GDAL 3.6 . NODATA . min_points_per_quadrant - - - - . o nodata: NODATA ( 0.0). min_points_per_quadrant max_points_per_quadrant max_points / max_points_per_quadrant . average (Moving average). : o radius1: ( X 0 ). . 0.0 . o radius2: ( Y 0 ). . 0.0 . o radius: ( radius1 radius2). 0.0 . GDAL 3.6 . o angle: ( 0.0). o max_points: . . . 0 . GDAL 3.6 . min_points_per_quadrant max_points_per_quadrant . o min_points: . NODATA . 0 . o max_points_per_quadrant: . 0 . GDAL 3.6 . - - - - max_points_per_quadrant . o min_points_per_quadrant: . 0 . GDAL 3.6 . NODATA . min_points_per_quadrant - - - - . o nodata: NODATA ( 0.0). . . min_points_per_quadrant max_points_per_quadrant max_points / max_points_per_quadrant . nearest (Nearest neighbor). : o radius1: ( X 0 ). . 0.0 . o radius2: ( Y 0 ). . 0.0 . o radius: ( radius1 radius2). 0.0 . GDAL 3.6 . o angle: ( 0.0). o nodata: NODATA ( 0.0). linear (Linear interpolation). (Delaunay triangulation) (barycentric) . nodata . : o radius: nodata . -1 . 0 nodata . -1 . o nodata: NODATA ( 0.0). (DATA METRICS) gdal_grid . : o minimum: . o maximum: . o range: . o count: . o average_distance: ( ) . o average_distance_pts: . . : o radius1: ( X 0 ). . 0.0 . o radius2: ( Y 0 ). . 0.0 . o radius: ( radius1 radius2). 0.0 . GDAL 3.6 . o angle: ( 0.0). o min_points: . NODATA . ( ) . 0 . o max_points_per_quadrant: . 0 . GDAL 3.6 . - - - - max_points_per_quadrant . o min_points_per_quadrant: . 0 . GDAL 3.6 . NODATA . min_points_per_quadrant - - - - . o nodata: NODATA ( 0.0). min_points_per_quadrant max_points_per_quadrant max_points / max_points_per_quadrant . (READING COMMA SEPARATED VALUES) XYZ ( CSV) . gdal_grid . (VRT) CSV gdal_grid . VRT VRT -- OGR . . CSV dem.csv : Easting,Northing,Elevation 86943.4,891957,139.13 87124.3,892075,135.01 86962.4,892321,182.04 87077.6,891995,135.01 ... dem.vrt : dem.csv wkbPoint 2.5D X Y Z . Z . dem.vrt OGR ( ogrinfo ). "dem" CSV . CSV . : gdal_grid dem.vrt demv.tif VRT : gdal_grid -l dem -oo X_POSSIBLE_NAMES=Easting \ -oo Y_POSSIBLE_NAMES=Northing -zfield Elevation dem.csv dem.tif CSV VRT : (.csv) CSV GDAL/OGR . (CREATING MULTIBAND FILES) gdal_grid . gdal_grid gdalbuildvrt -separate gdal_translate : gdal_grid ... 1.tif; gdal_grid ... 2.tif; gdal_grid ... 3.tif gdalbuildvrt -separate 123.vrt 1.tif 2.tif 3.tif gdal_translate 123.vrt 123.tif gdal_merge : gdal_grid ... a.tif; gdal_grid ... b.tif; gdal_grid ... c.tif gdal_merge -separate a.tif b.tif c.tif -o d.tif (RETURN STATUS CODE) 0 ( ). (C API) C GDALGrid() . (EXAMPLES) : VRT gdal_grid -a invdist:power=2.0:smoothing=1.0 -txe 85000 89000 -tye 894000 890000 \ -outsize 400 400 -of GTiff -ot Float64 -l dem dem.vrt dem.tiff TIFF VRT . Z . : gdal_grid -zfield "Elevation" -a invdist:power=2.0:smoothing=1.0 -txe 85000 89000 \ -tye 894000 890000 -outsize 400 400 -of GTiff -ot Float64 -l dem dem.vrt \ dem.tiff --config GDAL_NUM_THREADS ALL_CPUS -zfield . X Y Z "Elevation" . GDAL_NUM_THREADS . (AUTHORS) Andrey Kiselev (COPYRIGHT) 1998-2026 August 18, 2026 GDAL_GRID(1)