GSHHS2GRASS(1gmt) Generic Mapping Tools GSHHS2GRASS(1gmt)NAME
gshhs2grass - Extracting GSHHS and WDBII data in GRASS-compatible ASCII format
SYNOPSIS
gshhs2grass -i gshhs_[f|h|i|l|c].b [ -xminx ] [-Xmaxx ] [ -yminy ] [ -Ymaxy ]
DESCRIPTION
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].
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
gshhs2grass 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), gshhs(1)gshhs_dp(1)GMT 4.5.7 15 Jul 2011 GSHHS2GRASS(1gmt)
Check Out this Related Man Page
GSHHS_DP(1gmt) Generic Mapping Tools GSHHS_DP(1gmt)NAME
gshhs_dp - Line reduction using the Douglas-Peucker algorithm
SYNOPSIS
gshhs_dp input.b tolerance output.b [-v]
DESCRIPTION
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 cari-
cature, Can. Cartogr., 10, 112-122, 1973.
AUTHOR
This implementation of the D-P algorithm has been kindly provided by Dr. Gary J. Robinson, Environmental Systems Science Centre, University
of Reading, Reading, UK (gazza@mail.nerc-essc.ac.uk); his subroutine forms the basis for this program.
SEE ALSO GMT(1), gshhs(1), gshhstograss(1)GMT 4.5.7 15 Jul 2011 GSHHS_DP(1gmt)
hi
i am receiving a file from one system , i have to verify the format of the file data i.e whether the data is in acii format or binary format,
please help
thanks in advance
satya (1 Reply)
Hi,
Is there a way to convert the binary file to ascii . the binary file is pipe delimited.
from source the file(pipe delimited) is ftped to mainframe and from mainframe it is ftped to the unix box using binary format. Is there a way to change it back to ascii and view it?
Thanks! (3 Replies)
Hi All,
I have a small query. I have a file containing the following lines
File 1:
29-Jul-2011 GMT Static data requires update <Extraction should start here>
-----------
-----------
--------------------
-----------------------
----------- <should stop here>
Pattern1 will be time... (2 Replies)
I have the code
message={TP=2012:09:23:00:00:00:GMT,SD=2012:09:23:00:00:00:GMT,SP=2,FT=CCGT,FG=3605}
I want to extract the FG=3605 parts of this. Please help. I am trying to do this using awk or unix. (5 Replies)
Hi All,
I have a binary file which is being exported from a Database, and i need to convert that to ASCII format. How can i achieve that? And this solution should work for any file which is given to us; means they will give different files from different tables.
Thanks in advance. (8 Replies)