gshhs2grass − Extracting GSHHS and WDBII data in GRASS-compatible ASCII format
gshhs2grass −i gshhs_[f|h|i|l|c].b [ −x minx ] [−X maxx ] [ −y miny ] [ −Y maxy ]
gshhs2grass
reads the binary coastline (GSHHS) and and translates it
into an ASCII format suitable for import into GRASS. It
automatically handles byte-swabbing between different
architectures.
gshhs_[f|h|i|l|c].b
One of the GSHHS binary data file as distributed with the GSHHS data supplement. Any of the 5 standard resolutions (full, high, intermediate, low, crude) can be used. The resulting files are called dig_[ascii|att|cats].gshhs_[f|h|i|l|c].
−x |
Specify a minimum (west) longitude. |
|||
−X |
Specify a maximum (east) longitude. |
|||
−y |
Specify a minimum (south) latitude. |
|||
−Y |
Specify a maximum (north) latitude. |
To convert the full GSHHS data set , try
gshhs2grass gshhs_f.b
Not updated to handle the WDBII line data (borders or rivers).
Original version by Simon Cox (simon@ned.dem.csiro.au) with some maintenance by Paul Wessel (pwessel@hawaii.edu).