gshhs.1gmt

Langue: en

Version: 254657 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME

gshhs - Extract ASCII listings from binary GSHHS or WDBII data files

SYNOPSIS

gshhs binaryfile.b [ -Iid ] [ -L ] > asciifile.txt

DESCRIPTION

gshhs reads the binary coastline (GSHHS) or political boundary or river (WDBII) files and extracts an ASCII listing. It automatically handles byte-swabbing between different architectures. Optionally, only segment header info can be displayed.
binaryfile.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.
-I
Only output information for the polygon that matches id [default outputs all polygons].
-L
Only output a listing of polygon or line segment headers [default outputs headers and data records].

EXAMPLES

To convert the entire intermediate GSHHS binary data to ASCII, run

gshhs gshhs_i.b > gshhs_i.txt

To only get a listing of the headers for the river data set at full resolution, try

gshhs wdb_rivers_f.b -L > riverlisting.txt

BUGS

While the GSHHS data is organized as a set of closed polygons, the rivers and boundary data are just a set of line segments in no particular order. Thus, it is not possible to extract information pertaining to just one river or one country.

SEE ALSO

GMT(1), gshhs_dp(1) gshhstograss(1)