gshhs
Read Global Self-Consistent Hierarchical High-Resolution Geography (GSHHG) data
Syntax
Description
reads
Global Self-Consistent Hierarchical High-Resolution Geography (GSHHG) vector data from a
file.S = gshhs(filename)
creates an index file called indexFilename = gshhs(filename,"createindex")indexFilename that enables the
gshhs function to more quickly read subsets of large data sets. Once
you create the index file, the gshhs function uses it to access data by
location.
This syntax does not read the GSHHG data. To read the data after creating the index
file, use the gshhs function again.
Examples
Input Arguments
Output Arguments
More About
Tips
Mapping Toolbox™ contains the file
gshhs_c.bwithin the GNU zipped filegshhs_c.b.gz. The file contains the coarse data set for version 3 (release 1.3).When you read data within specified limits, the
gshhsfunction does not clip data that is partially within the limits. To clip the data and maintain polygon topology, use themaptrimpfunction and specify the limits as theLatandLonfields contained inS.The
gshhsfunction supports files up to version 15 (releases 1.1 through 2.3.6). The function can also read newer versions, provided they use the same header format as releases 2.0 and 2.1.
Version History
Introduced before R2006a


