File: gdal_proximity.dox

package info (click to toggle)
gdal 1.10.1%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 84,320 kB
  • ctags: 74,726
  • sloc: cpp: 677,199; ansic: 162,820; python: 13,816; cs: 11,163; sh: 10,446; java: 5,279; perl: 4,429; php: 2,971; xml: 1,500; yacc: 934; makefile: 494; sql: 112
file content (73 lines) | stat: -rw-r--r-- 2,829 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73

/*! \page gdal_proximity gdal_proximity.py

produces a raster proximity map

\section gdal_proximity_synopsis SYNOPSIS

\verbatim
gdal_proximity.py srcfile dstfile [-srcband n] [-dstband n] 
                  [-of format] [-co name=value]*
                  [-ot Byte/Int16/Int32/Float32/etc]
                  [-values n,n,n] [-distunits PIXEL/GEO]
                  [-maxdist n] [-nodata n] [-fixed-buf-val n]
\endverbatim

\section gdal_proximity_description DESCRIPTION

The gdal_proximity.py script generates a raster proximity map indicating
the distance from the center of each pixel to the center of the nearest 
pixel identified as a target pixel.  Target pixels are those in the source
raster for which the raster pixel value is in the set of target pixel values.

<dl>
<dt> <i>srcfile</i></dt><dd> The source raster file used to identify target pixels.</dd>

<dt> <i>dstfile</i></dt><dd> The destination raster file to which the proximity map will be written.  It may be a pre-existing file of the same size as srcfile.  If it does not exist it will be created.</dd>

<dt> <b>-srcband</b> <i>n</i></dt><dd> Identifies the band in the source file to use (default is 1).</dd>

<dt> <b>-dstband</b> <i>n</i></dt><dd> Identifies the band in the destination file to use (default is 1).</dd>

<dt> <b>-of</b> <em>format</em>:</dt><dd> Select the output format. The default is GeoTIFF (GTiff). Use the short format name. </dd>

<dt> <b>-co</b> <em>"NAME=VALUE"</em>:</dt><dd> passes a creation option to
the output format driver. Multiple <b>-co</b> options may be listed. See
format specific documentation for legal creation options for each format.
</dd>

<dt> <b>-ot</b> <i>datatype</i>:</dt><dd> 
Force the output image bands to have a specific type. Use type names (ie. Byte, Int16,...)
</dd>

<dt> <b>-values</b> <i>n,n,n</i>:</dt><dd> 
A list of target pixel values in the source image to be considered target
pixels. If not specified, all non-zero pixels will be considered target pixels.
</dd>

<dt> <b>-distunits</b> <i>PIXEL/GEO</i>:</dt><dd>
Indicate whether distances generated should be in pixel or georeferenced
coordinates (default PIXEL).
</dd>

<dt> <b>-maxdist</b> <i>n</i>:</dt><dd>
The maximum distance to be generated.  All pixels beyond this distance will
be assigned either the nodata value, or 65535.   Distance is interpreted in pixels unless -distunits GEO is specified.
</dd>

<dt> <b>-nodata</b> <i>n</i>:</dt><dd>
Specify a nodata value to use for the destination proximity raster.
</dd>

<dt> <b>-fixed-buf-val</b> <i>n</i>:</dt><dd>
Specify a value to be applied to all pixels that are within the -maxdist of target pixels (including the target pixels) instead of a distance value.
</dd>

</dl>

\if man
\section gdal_proximity_author AUTHORS
Frank Warmerdam <warmerdam@pobox.com>
\endif
*/