gdal.proximity

Compute a distance-to-features raster.

  • Kind: standard
  • Network: no
  • Wraps: gdal_proximity

Inputs🔗

NameTypeDescription
sourcefile (GeoTIFF)Source raster whose non-zero / target-value pixels are the "features".
target_valuesstringComma-separated list of target pixel values. Empty = non-zero pixels.
distance_unitsstringpixel (default) or georef (projection units).
max_distancenumberMaximum distance to report. 0 = unlimited.

Outputs🔗

NameTypeDescription
rasterfile (GeoTIFF)Float32 raster of distances to the nearest feature.