OS Manuals

/usr/bin/gdal_grid

gdal-3.8 tools for Python 3.12

From gdal-3.8-tools-py3.12 3.8.5-r21 (enterprise-packages), captured 2026-11-08 by running gdal_grid --help (exit 0). permalink

Usage: gdal_grid [--help] [--help-general]
    [-oo <NAME>=<VALUE>]...
    [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
          CInt16/CInt32/CFloat32/CFloat64}]
    [-of <format>] [-co <NAME>=<VALUE>]...
    [-zfield <field_name>] [-z_increase <increase_value>] [-z_multiply <multiply_value>]
    [-a_srs <srs_def>] [-spat <xmin> <ymin> <xmax> <ymax>]
    [-clipsrc <xmin> <ymin> <xmax> <ymax>|<WKT>|<datasource>|spat_extent]
    [-clipsrcsql <sql_statement>] [-clipsrclayer <layer>]
    [-clipsrcwhere <expression>]
    [-l <layername>]... [-where <expression>] [-sql <select_statement>]
    [-txe <xmin> <xmax>] [-tye <ymin> <ymax>] [-tr <xres> <yres>] [-outsize <xsize> <ysize>]
    [-a <algorithm>[:<parameter1>=<value1>]...]    [-q]
    <src_datasource> <dst_filename>

Available algorithms and parameters with their defaults:
    Inverse distance to a power (default)
        invdist:power=2.0:smoothing=0.0:radius1=0.0:radius2=0.0:angle=0.0:max_points=0:min_points=0:nodata=0.0
    Inverse distance to a power with nearest neighbor search
        invdistnn:power=2.0:radius=1.0:max_points=12:min_points=0:nodata=0
    Moving average
        average:radius1=0.0:radius2=0.0:angle=0.0:min_points=0:nodata=0.0
    Nearest neighbor
        nearest:radius1=0.0:radius2=0.0:angle=0.0:nodata=0.0
    Various data metrics
        <metric name>:radius1=0.0:radius2=0.0:angle=0.0:min_points=0:nodata=0.0
        possible metrics are:
            minimum
            maximum
            range
            count
            average_distance
            average_distance_pts
    Linear
        linear:radius=-1.0:nodata=0.0

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