gshhs_dp1gmt
Line reduction using the douglas-peucker algorithm
Usage
gshhs_dp input.b
tolerance
output.b
[-v]
Overview
gshhs_dp reads the binary coastline (GSHHS) or political boundary or river (WDBII) files and and reduces the complexity of the line by applying the Douglas-Peucker algorithm. It automatically handles byte-swabbing between different architectures.
- input.b
-
GSHHS or WDBII binary data file as distributed with the GSHHS data supplement. Any of the 5 standard resolutions (full, high, intermediate, low, crude) can be used.
- tolerance
-
tolerance is maximum mismatch in km. The larger the value the more reduction will take place.
- output.b
-
The reducted data set.
Options
-
-v -
Reports progress and statistics while running.
Examples
To simplify the full GSHHS data set with a custom tolerance of 2 km, try
gshhs_dp gshhs_f.b 2 gshhs_2km.b
References
Douglas, D. H., and T. K. Peucker, Algorithms for the reduction of the number of points required to represent a digitized line of its caricature, Can. Cartogr., 10, 112-122, 1973.
Releases
3 releases since Debian 5.0 (Lenny); the text changed 2 times.