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

NAME

6       img2google - Create Google Earth KML overlay tiles from bathymetry Mer‐
7       cator img grid
8

SYNOPSIS

10       img2google -Rwest/east/south/north[r] [ imgfile ] [ -Amode[altitude ] ]
11       [  -C ] [ -Ffademin/fademax ] [ -Gprefix ] [ -LLODmin/LODmax ] [ -Nlay‐
12       ername ] [ -Tdoctitle ] [ -UURL ] [ -V ] [ -Z ]
13

DESCRIPTION

15       img2google reads a 1x1 minute Mercator surface relief img file and cre‐
16       ates  a  Google  Earth overlay KML file and associated PNG tile for the
17       specified region.  If no input file is given we use topo.11.1.img.
18
19       -R     west, east, south, and north specify the Region of interest, and
20              you    may    specify    them   in   decimal   degrees   or   in
21              [+-]dd:mm[:ss.xxx][W|E|S|N] format.  Append r if lower left  and
22              upper  right  map coordinates are given instead of w/e/s/n.  The
23              two shorthands -Rg and -Rd stand for global  domain  (0/360  and
24              -180/+180  in longitude respectively, with -90/+90 in latitude).
25              Alternatively, specify the name of an existing grid file and the
26              -R  settings  (and  grid spacing, if applicable) are copied from
27              the grid.
28

OPTIONS

30       imgfile
31              An img format bathymetry/topography file such as  those  created
32              by Sandwell and Smith.  If this files does not exist in the cur‐
33              rent directory and the user has  set  the  environment  variable
34              $GMT_DATADIR,  then  img2mercgrd  will  try  to  find imgfile in
35              $GMT_DATADIR.
36
37       -A     Selects one of 5 altitude modes recognized by Google Earth  that
38              determines  the  altitude  (in m) of the image: G clamped to the
39              ground, g append altitude relative to ground, a append  absolute
40              altitude, s append altitude relative to seafloor, and S clamp it
41              to the seafloor [Default].
42
43       -C     Turn on clipping so that only portions below sea level  will  be
44              visible in the image [no clipping].
45
46       -F     Sets  the  distance  over  which  the geometry fades, from fully
47              opaque to fully transparent. These  ramp  values,  expressed  in
48              screen pixels, are applied at the minimum and maximum end of the
49              LOD (visibility) limits, respectively.  [no fading (0/0)].
50
51       -G     Specify the prefix for the output image file (the extensions are
52              set      automatically).     Default     uses     the     naming
53              topoN|S<north>E|W<west>.
54
55       -L     Measurement in screen pixels that represents the  minimum  limit
56              of  the  visibility range for a given Region Google Earth calcu‐
57              lates the size of the Region when projected onto  screen  space.
58              Then  it  computes the square root of the Region's area (if, for
59              example, the Region is square  and  the  viewpoint  is  directly
60              above the Region, and the Region is not tilted, this measurement
61              is equal to the width of the projected Region). If this measure‐
62              ment  falls  within the limits defined by LODmin and LODmax (and
63              if the region is in view), the Region is active. If  this  limit
64              is  not reached, the associated geometry is considered to be too
65              far from the user's viewpoint to be drawn. LODmax represents the
66              maximum  limit  of  the  visibility  range for a given Region. A
67              value of −1, the default, indicates "active to  infinite  size."
68              [always active].
69
70       -N     Append the layername of the image (use quotes if strings contain
71              spaces) [topoN|S<north>E|W<west>].
72
73       -T     Append the document title (use quotes if strings contain spaces)
74              ["Predicted bathymetry"].
75
76       -U     By  default,  images  are referenced locally relative to the KML
77              file.  Specify an URL to prepend a server address to  the  image
78              name reference [local].
79
80       -V     Selects verbose mode, which will send progress reports to stderr
81              [Default runs "silently"].
82
83       -Z     Uses zip (which must be installed) to create a  *.kmz  file  for
84              easy distribution; append + to delete the KML and PNG file after
85              zipping [No zipping].
86

EXAMPLES

88       To create  a  10x10  degree  Google  Earth  KML  tile  for  the  region
89       -R170/180/20/30  using the default topo.11.1.img and output naming con‐
90       vention, try
91
92       img2google -R170/180/20/30
93
94       To make the same tile with the previous topo.10.1.img, run  in  verbose
95       mode, clip so only oceanic areas are visible, name the output oldimage,
96       specify the KML metadata directly (including setting the image altitude
97       to 10 km), and make a single *.kmz file, try
98
99       img2google  topo.10.1.img  -R170/180/20/30 -AA10000 -C -Goldimage -N"My
100       KML title" -T"My KML title" -Uhttp://my.server.com/images -V -Z
101
102

DATA SETS

104       For topo.11.1.img and other Sandwell/Smith  altimetry-derived  Mercator
105       grids, visit http://topex.ucsd.edu.
106

SEE ALSO

108       GMT(1), img2grd(1) img2mercgrd(1) ps2raster(1)
109
110
111
112GMT 4.5.6                         10 Mar 2011                    IMG2GOOGLE(1)
Impressum