NAME
xy2polygon - import polygon data from
GMT linefiles.
SYNOPSIS
xy2polygon [-v] [-close_polygons] [-pname name] [-level level]
[-auth auth] [-dir dir] [-dfile dfile]
datafile db
SUPPORT
Contributed code: NO BRTT support.
THIS PIECE OF SOFTWARE WAS CONTRIBUTED BY THE ANTELOPE USER COMMUNITY. BRTT DISCLAIMS ALL OWNERSHIP, LIABILITY, AND SUPPORT FOR THIS PIECE OF SOFTWARE.
FOR HELP WITH THIS PIECE OF SOFTWARE, PLEASE CONTACT THE CONTRIBUTING AUTHOR.
DESCRIPTION
xy2polygon saves the objects stored in a
GMT linefile in a database.
OPTIONS
-
-v
Verbose flag.
-
-close_polygons
make sure the saved polygons are all closed. Use this flag only if the input contains only polygons. Note that if the first and last point of an object from the datafile are the same, they are flagged as closed in any case.
-
-pname pname
Name of polygon in database. By default datafile is used here. If multiple objects are found in the file, increasing numbers are appended to create unique names.
-
-level level
This number can be used to distinguish polygons of different precision. Defaults to 0.
-
-auth auth
Author name. Defaults to the user running the program.
-
-dir dir
Directory to save binary polygons. By default, data is saved in current directory.
-
-dfile dfile
File to save binary polygon data. Defaults to gmt.bin.
-
datafile
Name of the input GMT linefile. Only the first 2 numbers of every line are read, and interpreted as longitude and latitude. If multiple records are in the file, the must be separated by the character >, which is the default separator in GMT linefiles. New records are appended to an existing file.
-
db
Target database. Created if not already existing.
EXAMPLE
Import the border of Austria:
xy2polygon Austria.xy mydb
BUGS AND CAVEATS
The program appends objects to the database without checking if they are already present.
SEE ALSO
polygon1.2(5), psxy(1), polygon2xy(1).
AUTHOR
Nikolaus Horn
ZAMG / Vienna, nikolaus.horn@zamg.ac.at
Antelope User Group Contributed Software