1gdal_sieve(1)               General Commands Manual              gdal_sieve(1)
2
3
4

NAME

6       gdal_sieve - .TH "gdal_sieve" 1 "Fri Apr 22 2011" "GDAL"
7

NAME

9       gdal_sieve - removes small raster polygons
10

SYNOPSIS

12       gdal_sieve.py [-q] [-st threshold] [-4] [-8] [-o name=value]
13                  srcfile [-nomask] [-mask filename] [-of format] [dstfile]
14

DESCRIPTION

16       The gdal_sieve.py script removes raster polygons smaller than a
17       provided threshold size (in pixels) and replaces replaces them with the
18       pixel value of the largest neighbour polygon. The result can be written
19       back to the existing raster band, or copied into a new file.
20
21       Additional details on the algorithm are available in the
22       GDALSieveFilter() docs.
23
24       -q:
25           The script runs in quiet mode. The progress monitor is supressed
26           and routine messages are not displayed.
27
28       -st threshold:
29           Set the size threshold in pixels. Only raster polygons smaller than
30           this size will be removed.
31
32       -o name=value:
33           Specify a special argument to the algorithm. Currently none are
34           supported.
35
36       -4:
37           Four connectedness should be used when determining polygons. That
38           is diagonal pixels are not considered directly connected. This is
39           the default.
40
41       -8:
42           Eight connectedness should be used when determining polygons. That
43           is diagonal pixels are considered directly connected.
44
45       srcfile
46           The source raster file used to identify target pixels. Only the
47           first band is used.
48
49       -nomask:
50           Do not use the default validity mask for the input band (such as
51           nodata, or alpha masks).
52
53       -mask filename:
54           Use the first band of the specified file as a validity mask (zero
55           is invalid, non-zero is valid).
56
57       dstfile
58           The new file to create with the filtered result. If not provided,
59           the source band is updated in place.
60
61       -of format:
62           Select the output format. The default is GeoTIFF (GTiff). Use the
63           short format name.
64

AUTHORS

66       Frank Warmerdam <warmerdam@pobox.com>
67
68
69
70GDAL                            Fri Apr 22 2011                  gdal_sieve(1)
Impressum