---
name: "gshhgtograss"
section: "1gmt"
platform: "linux"
package: "gmt"
version: "4.5.12-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/gshhgtograss"
---

# gshhgtograss(1gmt)

Extracting GSHHS and WDBII data in GRASS-compatible ASCII format

## NAME

gshhgtograss - Extracting GSHHS and WDBII data in GRASS-compatible ASCII format

## SYNOPSIS

**gshhgtograss** **-i** gshhs\_\[f\|h\|i\|l\|c\].b \[ **-x***minx* \] \[**-X***maxx* \]  \[ **-y***miny* \] \[ **-Y***maxy* \]

## DESCRIPTION

**gshhgtograss** reads the binary coastline (GSHHS) or binary river/border (WDBII) 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 GSHHG binary data file as distributed with the GSHHG 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\].

## OPTIONS

- **-x**

  Specify a minimum (west) longitude.

- **-X**

  Specify a maximum (east) longitude.

- **-y**

  Specify a minimum (south) latitude.

- **-Y**

  Specify a maximum (north) latitude.

## EXAMPLES

To convert the full GSHHS data set , try

**gshhgtograss** *gshhs\_f.b*

## BUGS

Not updated to handle the WDBII line data (borders or rivers).

## AUTHOR

Original version by Simon Cox (simon@ned.dem.csiro.au) with some maintenance by Paul Wessel (pwessel@hawaii.edu).

## SEE ALSO

[*GMT*(1)](/GMT/1.md), *gshhg*(1) *gshhg\_dp*(1)
