1KML2GMT(1)                   Generic Mapping Tools                  KML2GMT(1)
2
3
4

NAME

6       kml2gmt - Extract GMT table data from Google Earth KML files
7

SYNOPSIS

9       kml2gmt   [   infile   ]   [   -V   ]   [   -Z   ]   [   -:[i|o]   ]  [
10       -bo[s|S|d|D[ncol]|c[var1/...]] ]
11

DESCRIPTION

13       kml2gmt reads a  Google Earth KML file and outputs a  GMT  table  file.
14       Only  KML  files  that  contain  points, lines, or polygons can be pro‐
15       cessed.  This is a bare-bones operation that aims  to  extract  coordi‐
16       nates  and possibly the name and description tags of each feature.  The
17       main use intended is to capture coordinates modified  in  Google  Earth
18       and  then  reinsert  the modified data into the original GMT data file.
19       For a more complete reformatting, consider using ogr2ogr -f "GMT" some‐
20       file.gmt somefile.kml.
21
22       infile Name  of  the KML file to work on.  If not given, standard input
23              is read.
24

OPTIONS

26       No space between the option flag and the associated arguments.
27
28       -Z     Output the altitude coordinates as GMT  z  coordinates  [Default
29              will output just longitude and latitude].
30
31       -V     Selects verbose mode, which will send progress reports to stderr
32              [Default runs "silently"].
33
34       -:     Toggles between  (longitude,latitude)  and  (latitude,longitude)
35              input and/or output.  [Default is (longitude,latitude)].  Append
36              i to select input only or o to  select  output  only.   [Default
37              affects both].
38
39       -bo    Selects  binary  output.  Append s for single precision [Default
40              is d (double)].  Uppercase S  or  D  will  force  byte-swapping.
41              Optionally,  append  ncol, the number of desired columns in your
42              binary output file.
43

EXAMPLES

SEE ALSO

46       gmtdefaults(1), GMT(1), img2google(1), ps2raster(1) gmt2kml(1)
47
48
49
50GMT 4.5.6                         10 Mar 2011                       KML2GMT(1)
Impressum