table of contents
- trixie 3.10.3+dfsg-1
- testing 3.12.3+dfsg-1
- unstable 3.12.3+dfsg-1
- experimental 3.13.0~beta1+dfsg-1~exp1
| GDAL_SIEVE(1) | GDAL | GDAL_SIEVE(1) |
NAME¶
gdal_sieve - Removes small raster polygons.
SYNOPSIS¶
gdal_sieve [--help] [--help-general]
[-q] [-st threshold] [-4] [-8] [-o name=value]
<srcfile> [-nomask] [-mask filename] [-of format] [<dstfile>]
DESCRIPTION¶
gdal_sieve removes raster polygons smaller than a provided threshold size (in pixels) and replaces them with the pixel value of the largest neighbour polygon. The result can be written back to the existing raster band, or copied into a new file.
The input dataset is read as integer data which means that floating point values are rounded to integers. Re-scaling source data may be necessary in some cases (e.g. 32-bit floating point data with min=0 and max=1).
Additional details on the algorithm are available in the GDALSieveFilter() docs.
NOTE:
TIP:
See gdal raster sieve.
RETURN STATUS CODE¶
The program returns status code 0 in case of success, and non-zero in case of error (non-blocking errors emitted as warnings are considered as a successful execution).
AUTHOR¶
Frank Warmerdam <warmerdam@pobox.com>
COPYRIGHT¶
1998-2026
| April 15, 2026 |