GDAL-RASTER-SIEVE(1) GDAL GDAL-RASTER-SIEVE(1) >>> (NAME) gdal-raster-sieve - >>> >>>>>>>>>>> >>>> >>>> >> >>>>> 3.11 >>>>> >>. >>>>> >>>>> (SYNOPSIS) Usage: gdal raster sieve [OPTIONS] Remove small polygons from a raster dataset. 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 --mask Use the first band of the specified file as a validity mask (all pixels with a value other than zero will be considered suitable for inclusion in polygons) -b, --band Input band (1-based index) -s, --size-threshold Minimum size of polygons to keep (default: 2) -c, --connect-diagonal-pixels Consider diagonal pixels as connected 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 sieve >>>>>>>>>>> >>>>> >>>>>>> >> >> >>>>>>> >>>>>>> >>>>>>>> (>>>>> >>>>>) >> >>> >>>> > >>>>> >> >> >>>>> >>>>> >>>>>>>>> >>>>>>> >>>>>> >>>>>>> >>>>>>. >>>>>>>>>>> >>>>> >>>>>>> >>>>>>>> >>> >>>> (integer) >>>>>> >>>>>>> >> >>> >>>> >> >>>>>> >>>> >>>>> (floating point) >> >>>>> >>>> >>> >>>>>>>. >>>>> >>>>> (re-scaling) >>>>>>>> >>>> >>>> >>> >> >>>> >>>>> >>>>> >>>> (>>>>>>>> >>>>> >>>>>>>> >> >>>> >>>> >>>>> >> min=0 > max=1). >>> >>>>>>>> >>>>>> >>>>>>>> >> >>>>>> >>>>>> >> gdal raster pipeline >> >>>>> >>> (>> >>>>> GDAL 3.12 >> >>>). >> >>>>> 3.12 >>>>> >>. >>>>> GDALG (>>>>>>>>>>> >> >>>> / >>>>>>>>) (GDALG OUTPUT (ON-THE-FLY / STREAMED DATASET)) >>> >>>>>> >> >>>>>>>>>> >> >>>>> >> >>>> >> >>>> JSON >> >>>>>>> >> >>>> >>>>> GDALG >>>>>>>> >>>>>>. >>> >>>>>>> >>>> >>>> >> >> >>>>>>> >> >>>>>> GDALG: GDAL Streamed Algorithm >>>>>>>> >> >>>>>>>>>>> >>>> >>> >>> > >> >>>>> >>>>>>>> >> >>>>>>> >> >>>> (on-the-fly) / >>>>>>>> (streamed) >>>>> >>>>. >>>>: >> >>> >>> >>> >>>>>>>> >>>>>>> >>>> >> >>>> >>>>>> >>>>>> >>>>. >> >>>>>> >> >>>>>>>>>>> >>>> >>>>> >>>>> >> >> >>>> >>> >>>> >>>>>> >>>>>>>>>> >> >>>>> >>> >>>> >>>>> >>>. >>>>>>>>> >>>> >>>>>> (PROGRAM-SPECIFIC OPTIONS) -b, --band >>>> >>>>> (>>>>> >> >>>>> >) -c, --connect-diagonal-pixels >>>>>>>>> >>>> (>>>>>>>>> >>>> >> >>>>>>>) >> >>>> >> >>> >>>>>>>. >>>>> >>>>>>> >>>> >>>> >> >>> >>>>> >>>>>>>>>> >>> >> >> >>>>>> >> >>>> >>>>> >> >>>>> >>>>> >>>>> (4-connectivity) >>>. >>>>>> >> >>> >>>>> >>>>>> >>>> >>>>>>>> >>>>>>>>> >>>> >> >>> >>>> >> >>> >>>>> >>>> >> >>>>> >>>>> >>>>> (8-connectivity) >>>. --mask >> >>>>>> >>>> >>>> >>>>>>>> >>>>>>>> >>>> >>>>>>>>>> >>>>>>> >>>>>>: >>>> >>>>>>>>> >>>>> >> >>>> >>>> >> >>>>>> >>> >> >>>> >>>> >>>>>>> >>> >> >>>>>>>>>> >>>>> >> >>> >>>>> >>>>>>>. -s, --size-threshold >>>>> >>>>>>> >>>>>>>>>> >>>> >>>>>>>> (>>>>>>>: 2) >>>>>>>>> >>>>>>>>> (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) >>>> >: >>> >>>>>>>>>>> >>>>>>> >> >> >>>>> >> >>>> > >> >>>>. $ gdal raster sieve -b 2 -s 10 input.tif output.tif >>>>>>>>> (AUTHORS) Alessandro Pasotti >>>>>>>> > >>>>> (COPYRIGHT) 1998-2026 August 18, 2026 GDAL-RASTER-SIEVE(1)