GDAL-RASTER-FILL-NODATA(1) GDAL GDAL-RASTER-FILL-NODATA(1) (NAME) gdal-raster-fill-nodata - nodata 3.11 . (SYNOPSIS) Usage: gdal raster fill-nodata [OPTIONS] Fill nodata raster regions by interpolation from edges. Positional arguments: -i, --input Input raster datasets [required] [not available in pipelines] -o, --output Output raster dataset [required] [not available in pipelines] Common Options: -h, --help Display help message and exit --json-usage Display usage as JSON document and exit --config = Configuration option [may be repeated] -q, --quiet Quiet mode (no progress bar or warning message) [not available in pipelines] Options: -f, --of, --format, --output-format Output format ("GDALG" allowed) [not available in pipelines] --co, --creation-option = Creation option [may be repeated] [not available in pipelines] --overwrite Whether overwriting existing output dataset is allowed [not available in pipelines] Mutually exclusive with --append --append Append as a subdataset to existing output [not available in pipelines] Mutually exclusive with --overwrite -b, --band Input band (1-based index) (default: 1) -d, --max-distance The maximum distance (in pixels) that the algorithm will search out for values to interpolate. (default: 100) -s, --smoothing-iterations The number of 3x3 average filter smoothing iterations to run after the interpolation to dampen artifacts. The default is zero smoothing iterations. (default: 0) --mask Use the first band of the specified file as a validity mask (zero is invalid, non-zero is valid). --strategy By default, pixels are interpolated using an inverse distance weighting (invdist). It is also possible to choose a nearest neighbour (nearest) strategy.. STRATEGY=invdist|nearest (default: invdist) Advanced Options: --if, --input-format Input formats [may be repeated] [not available in pipelines] --oo, --open-option = Open options [may be repeated] [not available in pipelines] (DESCRIPTION) gdal raster fill-nodata nodata . gdal raster pipeline ( GDAL 3.12). 3.12 . GDALG ( / ) (GDALG OUTPUT) JSON GDALG . GDALG: GDAL Streamed Algorithm (on-the-fly) / . : . . (PROGRAM-SPECIFIC OPTIONS) -b, --band . 1 . . --mask ( ). --max-distance ( ) . 100 . --smoothing-iterations 3x3 . 0 . --strategy () . (invdist) . (nearest) . (STANDARD OPTIONS) --append . GTiff -- GeoTIFF File Format GPKG -- GeoPackage raster. . --co, --creation-option = . GeoTIFF . . . --formats . Raster drivers . --if, --input-format / () . . . . . . --oo, --open-option = ( ). . -f, --of, --format, --output-format . : gdal --formats | grep raster | grep rw | sort --overwrite . gdal . (EXIT STATUS) 0 ( ). (EXAMPLES) : nodata 50 3 nearest . output.tif . gdal raster fill-nodata -b 2 --max-distance 50 --smoothing-iterations 3 \ --strategy nearest --mask mask.tif \ input.tif output.tif (AUTHORS) Alessandro Pasotti (COPYRIGHT) 1998-2026 August 18, 2026 GDAL-RASTER-FILL-NODATA(1)