Hex Artifact Content
Not logged in

Artifact 87ac30c36b3e0f9bf9413356f089bbc6bdb28080:

Wiki page [ETOPO1] by sandro 2014-04-06 22:42:56.
0000: 44 20 32 30 31 34 2d 30 34 2d 30 36 54 32 32 3a  D 2014-04-06T22:
0010: 34 32 3a 35 36 2e 32 36 31 0a 4c 20 45 54 4f 50  42:56.261.L ETOP
0020: 4f 31 0a 50 20 36 61 35 34 39 33 65 66 37 36 35  O1.P 6a5493ef765
0030: 30 63 38 34 33 63 65 61 38 62 37 38 61 64 32 33  0c843cea8b78ad23
0040: 33 35 30 37 33 36 33 39 39 36 39 35 36 0a 55 20  3507363996956.U 
0050: 73 61 6e 64 72 6f 0a 57 20 31 35 31 33 30 0a 42  sandro.W 15130.B
0060: 61 63 6b 20 74 6f 20 3c 61 20 68 72 65 66 3d 22  ack to <a href="
0070: 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61  https://www.gaia
0080: 2d 67 69 73 2e 69 74 2f 66 6f 73 73 69 6c 2f 6c  -gis.it/fossil/l
0090: 69 62 72 61 73 74 65 72 6c 69 74 65 32 2f 77 69  ibrasterlite2/wi
00a0: 6b 69 3f 6e 61 6d 65 3d 74 75 74 6f 72 69 61 6c  ki?name=tutorial
00b0: 73 22 3e 52 61 73 74 65 72 4c 69 74 65 32 20 54  s">RasterLite2 T
00c0: 75 74 6f 72 69 61 6c 73 20 69 6e 64 65 78 3c 2f  utorials index</
00d0: 61 3e 3c 68 72 3e 3c 62 72 3e 0d 0a 3c 68 31 3e  a><hr><br>..<h1>
00e0: 54 75 74 6f 72 69 61 6c 3a 20 61 64 64 69 6e 67  Tutorial: adding
00f0: 20 61 20 73 74 79 6c 65 64 20 44 45 4d 20 74 6f   a styled DEM to
0100: 20 74 68 65 20 50 6c 61 6e 65 74 20 45 61 72 74   the Planet Eart
0110: 68 20 73 61 6d 70 6c 65 3c 2f 68 31 3e 0d 0a 49  h sample</h1>..I
0120: 6e 20 74 68 69 73 20 74 75 74 6f 72 69 61 6c 20  n this tutorial 
0130: 77 65 27 6c 6c 20 75 73 65 20 74 68 65 20 66 6f  we'll use the fo
0140: 6c 6c 6f 77 69 6e 67 20 69 6e 70 75 74 20 4f 70  llowing input Op
0150: 65 6e 20 44 61 74 61 20 64 61 74 61 73 6f 75 72  en Data datasour
0160: 63 65 3a 20 70 6c 65 61 73 65 20 64 6f 77 6e 6c  ce: please downl
0170: 6f 61 64 20 69 74 20 72 69 67 68 74 20 6e 6f 77  oad it right now
0180: 2e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c 61 20  ...<ul>..<li><a 
0190: 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 77 77 77  href="http://www
01a0: 2e 6e 67 64 63 2e 6e 6f 61 61 2e 67 6f 76 2f 6d  .ngdc.noaa.gov/m
01b0: 67 67 2f 67 6c 6f 62 61 6c 2f 72 65 6c 69 65 66  gg/global/relief
01c0: 2f 45 54 4f 50 4f 31 2f 64 61 74 61 2f 69 63 65  /ETOPO1/data/ice
01d0: 5f 73 75 72 66 61 63 65 2f 63 65 6c 6c 5f 72 65  _surface/cell_re
01e0: 67 69 73 74 65 72 65 64 2f 67 65 6f 72 65 66 65  gistered/georefe
01f0: 72 65 6e 63 65 64 5f 74 69 66 66 2f 45 54 4f 50  renced_tiff/ETOP
0200: 4f 31 5f 49 63 65 5f 63 5f 67 65 6f 74 69 66 66  O1_Ice_c_geotiff
0210: 2e 7a 69 70 22 3e 45 54 4f 50 4f 31 3c 2f 61 3e  .zip">ETOPO1</a>
0220: 3a 20 61 20 72 61 77 20 47 6c 6f 62 61 6c 20 52  : a raw Global R
0230: 65 6c 69 65 66 20 4d 6f 64 65 6c 20 72 65 6c 65  elief Model rele
0240: 61 73 65 64 20 66 72 6f 6d 20 4e 4f 41 41 2e 3c  ased from NOAA.<
0250: 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 49 66 20  /li>..</ul>..If 
0260: 79 6f 75 20 72 65 6d 65 6d 62 65 72 2c 20 79 6f  you remember, yo
0270: 75 27 76 65 20 61 6c 72 65 61 64 79 20 75 73 65  u've already use
0280: 64 20 61 6e 20 45 54 4f 50 4f 31 20 64 61 74 61  d an ETOPO1 data
0290: 73 6f 75 72 63 65 20 69 6e 20 74 68 65 20 70 72  source in the pr
02a0: 65 76 69 6f 75 73 20 3c 62 3e 3c 69 3e 50 6c 61  evious <b><i>Pla
02b0: 6e 65 74 20 45 61 72 74 68 3c 2f 69 3e 3c 2f 62  net Earth</i></b
02c0: 3e 20 74 75 74 6f 72 69 61 6c 3b 20 62 75 74 20  > tutorial; but 
02d0: 69 74 20 77 61 73 20 61 20 70 72 65 2d 72 65 6e  it was a pre-ren
02e0: 64 65 72 65 64 2c 20 66 75 6c 6c 20 63 6f 6c 6f  dered, full colo
02f0: 72 20 76 65 72 73 69 6f 6e 2e 3c 62 72 3e 0d 0a  r version.<br>..
0300: 4e 6f 77 20 79 6f 75 27 6c 6c 20 75 73 65 20 65  Now you'll use e
0310: 78 61 63 74 6c 79 20 74 68 65 20 73 61 6d 65 20  xactly the same 
0320: 69 64 65 6e 74 69 63 61 6c 20 64 61 74 61 73 65  identical datase
0330: 74 2c 20 62 75 74 20 74 68 69 73 20 74 69 6d 65  t, but this time
0340: 20 79 6f 75 27 6c 6c 20 6c 65 61 72 6e 20 68 6f   you'll learn ho
0350: 77 20 74 6f 20 64 69 72 65 63 74 6c 79 20 61 63  w to directly ac
0360: 63 65 73 73 20 61 20 3c 69 3e 72 61 77 3c 2f 69  cess a <i>raw</i
0370: 3e 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70 3a  > <a href="http:
0380: 2f 2f 65 6e 2e 77 69 6b 69 70 65 64 69 61 2e 6f  //en.wikipedia.o
0390: 72 67 2f 77 69 6b 69 2f 44 69 67 69 74 61 6c 5f  rg/wiki/Digital_
03a0: 65 6c 65 76 61 74 69 6f 6e 5f 6d 6f 64 65 6c 22  elevation_model"
03b0: 3e 44 45 4d 3c 2f 61 3e 2c 20 61 6e 64 20 68 6f  >DEM</a>, and ho
03c0: 77 20 74 6f 20 61 70 70 6c 79 20 79 6f 75 72 20  w to apply your 
03d0: 6f 77 6e 20 63 75 73 74 6f 6d 20 73 74 79 6c 65  own custom style
03e0: 73 20 74 6f 20 69 74 2e 3c 62 72 3e 0d 0a 59 6f  s to it.<br>..Yo
03f0: 75 27 6c 6c 20 70 6f 73 73 69 62 6c 79 20 75 73  u'll possibly us
0400: 65 20 79 65 74 20 61 67 61 69 6e 20 74 68 65 20  e yet again the 
0410: 73 61 6d 65 20 3c 62 3e 65 61 72 74 68 2e 73 71  same <b>earth.sq
0420: 6c 69 74 65 3c 2f 62 3e 20 44 42 2d 66 69 6c 65  lite</b> DB-file
0430: 20 75 73 65 64 20 69 6e 20 74 68 65 20 70 72 65   used in the pre
0440: 76 69 6f 75 73 20 3c 62 3e 3c 69 3e 50 6c 61 6e  vious <b><i>Plan
0450: 65 74 20 45 61 72 74 68 3c 2f 69 3e 3c 2f 62 3e  et Earth</i></b>
0460: 20 74 75 74 6f 72 69 61 6c 2c 20 61 6e 64 20 74   tutorial, and t
0470: 68 69 73 20 77 69 6c 6c 20 61 6c 6c 6f 77 20 79  his will allow y
0480: 6f 75 20 74 6f 20 69 6d 6d 65 64 69 61 74 65 6c  ou to immediatel
0490: 79 20 70 65 72 63 65 69 76 65 20 61 6e 79 20 72  y perceive any r
04a0: 65 6c 65 76 61 6e 74 20 64 69 66 66 65 72 65 6e  elevant differen
04b0: 63 65 20 62 65 74 77 65 65 6e 20 74 68 65 73 65  ce between these
04c0: 20 74 77 6f 20 64 69 66 66 65 72 65 6e 74 20 61   two different a
04d0: 70 70 72 6f 61 63 68 65 73 2e 0d 0a 3c 68 33 3e  pproaches...<h3>
04e0: 53 74 65 70 20 31 29 20 72 65 74 72 69 65 76 65  Step 1) retrieve
04f0: 20 61 6c 6c 20 62 61 73 69 63 20 69 6e 66 6f 72   all basic infor
0500: 6d 61 74 69 6f 6e 73 20 61 62 6f 75 74 20 74 68  mations about th
0510: 65 20 45 54 4f 50 4f 31 20 44 45 4d 3c 2f 68 33  e ETOPO1 DEM</h3
0520: 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 24  >..<verbatim>..$
0530: 20 74 69 66 66 69 6e 66 6f 20 45 54 4f 50 4f 31   tiffinfo ETOPO1
0540: 5f 49 63 65 5f 63 5f 67 65 6f 74 69 66 66 2e 74  _Ice_c_geotiff.t
0550: 69 66 0d 0a 54 49 46 46 20 44 69 72 65 63 74 6f  if..TIFF Directo
0560: 72 79 20 61 74 20 6f 66 66 73 65 74 20 30 78 38  ry at offset 0x8
0570: 20 28 38 29 0d 0a 20 20 49 6d 61 67 65 20 57 69   (8)..  Image Wi
0580: 64 74 68 3a 20 32 31 36 30 30 20 49 6d 61 67 65  dth: 21600 Image
0590: 20 4c 65 6e 67 74 68 3a 20 31 30 38 30 30 0d 0a   Length: 10800..
05a0: 20 20 42 69 74 73 2f 53 61 6d 70 6c 65 3a 20 31    Bits/Sample: 1
05b0: 36 0d 0a 20 20 53 61 6d 70 6c 65 20 46 6f 72 6d  6..  Sample Form
05c0: 61 74 3a 20 73 69 67 6e 65 64 20 69 6e 74 65 67  at: signed integ
05d0: 65 72 0d 0a 20 20 43 6f 6d 70 72 65 73 73 69 6f  er..  Compressio
05e0: 6e 20 53 63 68 65 6d 65 3a 20 4e 6f 6e 65 0d 0a  n Scheme: None..
05f0: 20 20 50 68 6f 74 6f 6d 65 74 72 69 63 20 49 6e    Photometric In
0600: 74 65 72 70 72 65 74 61 74 69 6f 6e 3a 20 6d 69  terpretation: mi
0610: 6e 2d 69 73 2d 62 6c 61 63 6b 0d 0a 20 20 53 61  n-is-black..  Sa
0620: 6d 70 6c 65 73 2f 50 69 78 65 6c 3a 20 31 0d 0a  mples/Pixel: 1..
0630: 20 20 52 6f 77 73 2f 53 74 72 69 70 3a 20 31 0d    Rows/Strip: 1.
0640: 0a 20 20 50 6c 61 6e 61 72 20 43 6f 6e 66 69 67  .  Planar Config
0650: 75 72 61 74 69 6f 6e 3a 20 73 69 6e 67 6c 65 20  uration: single 
0660: 69 6d 61 67 65 20 70 6c 61 6e 65 0d 0a 20 20 54  image plane..  T
0670: 61 67 20 33 33 35 35 30 3a 20 30 2e 30 31 36 36  ag 33550: 0.0166
0680: 36 37 2c 30 2e 30 31 36 36 36 37 2c 30 2e 30 30  67,0.016667,0.00
0690: 30 30 30 30 0d 0a 20 20 54 61 67 20 33 33 39 32  0000..  Tag 3392
06a0: 32 3a 20 30 2e 30 30 30 30 30 30 2c 30 2e 30 30  2: 0.000000,0.00
06b0: 30 30 30 30 2c 30 2e 30 30 30 30 30 30 2c 2d 31  0000,0.000000,-1
06c0: 38 30 2e 30 30 30 30 30 30 2c 39 30 2e 30 30 30  80.000000,90.000
06d0: 30 30 30 2c 30 2e 30 30 30 30 30 30 0d 0a 20 20  000,0.000000..  
06e0: 54 61 67 20 34 32 31 31 32 3a 20 3c 47 44 41 4c  Tag 42112: <GDAL
06f0: 4d 65 74 61 64 61 74 61 3e 0d 0a 20 20 3c 49 74  Metadata>..  <It
0700: 65 6d 20 6e 61 6d 65 3d 22 4e 43 5f 47 4c 4f 42  em name="NC_GLOB
0710: 41 4c 23 43 6f 6e 76 65 6e 74 69 6f 6e 73 22 3e  AL#Conventions">
0720: 43 4f 41 52 44 53 2f 43 46 2d 31 2e 30 3c 2f 49  COARDS/CF-1.0</I
0730: 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 6d 20 6e 61  tem>..  <Item na
0740: 6d 65 3d 22 4e 43 5f 47 4c 4f 42 41 4c 23 74 69  me="NC_GLOBAL#ti
0750: 74 6c 65 22 3e 45 54 4f 50 4f 31 5f 49 63 65 5f  tle">ETOPO1_Ice_
0760: 63 5f 67 6d 74 34 2e 67 72 64 3c 2f 49 74 65 6d  c_gmt4.grd</Item
0770: 3e 0d 0a 20 20 3c 49 74 65 6d 20 6e 61 6d 65 3d  >..  <Item name=
0780: 22 4e 43 5f 47 4c 4f 42 41 4c 23 68 69 73 74 6f  "NC_GLOBAL#histo
0790: 72 79 22 3e 67 72 64 73 61 6d 70 6c 65 20 2d 56  ry">grdsample -V
07a0: 20 45 54 4f 50 4f 31 5f 49 63 65 5f 67 5f 67 6d   ETOPO1_Ice_g_gm
07b0: 74 34 2e 67 72 64 20 2d 47 45 54 4f 50 4f 31 5f  t4.grd -GETOPO1_
07c0: 49 63 65 0d 0a 5f 63 5f 67 6d 74 34 2e 67 72 64  Ice.._c_gmt4.grd
07d0: 3d 6e 69 20 2d 54 3c 2f 49 74 65 6d 3e 0d 0a 20  =ni -T</Item>.. 
07e0: 20 3c 49 74 65 6d 20 6e 61 6d 65 3d 22 4e 43 5f   <Item name="NC_
07f0: 47 4c 4f 42 41 4c 23 47 4d 54 5f 76 65 72 73 69  GLOBAL#GMT_versi
0800: 6f 6e 22 3e 34 2e 34 2e 30 3c 2f 49 74 65 6d 3e  on">4.4.0</Item>
0810: 0d 0a 20 20 3c 49 74 65 6d 20 6e 61 6d 65 3d 22  ..  <Item name="
0820: 4e 43 5f 47 4c 4f 42 41 4c 23 6e 6f 64 65 5f 6f  NC_GLOBAL#node_o
0830: 66 66 73 65 74 22 3e 31 3c 2f 49 74 65 6d 3e 0d  ffset">1</Item>.
0840: 0a 20 20 3c 49 74 65 6d 20 6e 61 6d 65 3d 22 7a  .  <Item name="z
0850: 23 6c 6f 6e 67 5f 6e 61 6d 65 22 3e 7a 3c 2f 49  #long_name">z</I
0860: 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 6d 20 6e 61  tem>..  <Item na
0870: 6d 65 3d 22 7a 23 5f 46 69 6c 6c 56 61 6c 75 65  me="z#_FillValue
0880: 22 3e 2d 32 31 34 37 34 38 33 36 34 38 3c 2f 49  ">-2147483648</I
0890: 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 6d 20 6e 61  tem>..  <Item na
08a0: 6d 65 3d 22 7a 23 61 63 74 75 61 6c 5f 72 61 6e  me="z#actual_ran
08b0: 67 65 22 3e 2d 31 30 38 30 33 2c 20 38 33 33 33  ge">-10803, 8333
08c0: 3c 2f 49 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 6d  </Item>..  <Item
08d0: 20 6e 61 6d 65 3d 22 78 23 6c 6f 6e 67 5f 6e 61   name="x#long_na
08e0: 6d 65 22 3e 4c 6f 6e 67 69 74 75 64 65 3c 2f 49  me">Longitude</I
08f0: 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 6d 20 6e 61  tem>..  <Item na
0900: 6d 65 3d 22 78 23 61 63 74 75 61 6c 5f 72 61 6e  me="x#actual_ran
0910: 67 65 22 3e 2d 31 38 30 2c 20 31 38 30 3c 2f 49  ge">-180, 180</I
0920: 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 6d 20 6e 61  tem>..  <Item na
0930: 6d 65 3d 22 78 23 75 6e 69 74 73 22 3e 64 65 67  me="x#units">deg
0940: 72 65 65 73 3c 2f 49 74 65 6d 3e 0d 0a 20 20 3c  rees</Item>..  <
0950: 49 74 65 6d 20 6e 61 6d 65 3d 22 79 23 6c 6f 6e  Item name="y#lon
0960: 67 5f 6e 61 6d 65 22 3e 4c 61 74 69 74 75 64 65  g_name">Latitude
0970: 3c 2f 49 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 6d  </Item>..  <Item
0980: 20 6e 61 6d 65 3d 22 79 23 61 63 74 75 61 6c 5f   name="y#actual_
0990: 72 61 6e 67 65 22 3e 2d 39 30 2c 20 39 30 3c 2f  range">-90, 90</
09a0: 49 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 6d 20 6e  Item>..  <Item n
09b0: 61 6d 65 3d 22 79 23 75 6e 69 74 73 22 3e 64 65  ame="y#units">de
09c0: 67 72 65 65 73 3c 2f 49 74 65 6d 3e 0d 0a 20 20  grees</Item>..  
09d0: 3c 49 74 65 6d 20 6e 61 6d 65 3d 22 4e 45 54 43  <Item name="NETC
09e0: 44 46 5f 56 41 52 4e 41 4d 45 22 20 73 61 6d 70  DF_VARNAME" samp
09f0: 6c 65 3d 22 30 22 3e 7a 3c 2f 49 74 65 6d 3e 0d  le="0">z</Item>.
0a00: 0a 3c 2f 47 44 41 4c 4d 65 74 61 64 61 74 61 3e  .</GDALMetadata>
0a10: 0d 0a 0d 0a 20 20 54 61 67 20 34 32 31 31 33 3a  ....  Tag 42113:
0a20: 20 2d 32 31 34 37 34 38 33 36 34 38 0d 0a 24 0d   -2147483648..$.
0a30: 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 0d 0a 41 73  .</verbatim>..As
0a40: 20 72 65 70 6f 72 74 65 64 20 62 79 20 74 68 65   reported by the
0a50: 20 3c 62 3e 3c 69 3e 74 69 66 66 69 6e 66 6f 3c   <b><i>tiffinfo<
0a60: 2f 69 3e 3c 2f 62 3e 20 74 6f 6f 6c 2c 20 74 68  /i></b> tool, th
0a70: 69 73 20 54 49 46 46 20 66 69 6c 65 20 63 6f 6e  is TIFF file con
0a80: 74 61 69 6e 73 20 61 20 3c 62 3e 32 31 2c 36 30  tains a <b>21,60
0a90: 30 3c 2f 62 3e 20 78 20 3c 62 3e 31 30 2c 38 30  0</b> x <b>10,80
0aa0: 30 3c 2f 62 3e 20 72 61 73 74 65 72 3b 20 74 68  0</b> raster; th
0ab0: 65 20 73 75 67 67 65 73 74 65 64 20 70 68 6f 74  e suggested phot
0ac0: 6f 6d 65 74 72 69 63 20 69 6e 74 65 72 70 72 65  ometric interpre
0ad0: 74 61 74 69 6f 6e 20 69 73 20 3c 62 3e 47 72 61  tation is <b>Gra
0ae0: 79 73 63 61 6c 65 3c 2f 62 3e 20 28 3c 62 3e 3c  yscale</b> (<b><
0af0: 69 3e 6d 69 6e 2d 69 73 2d 62 6c 61 63 6b 3c 2f  i>min-is-black</
0b00: 69 3e 3c 2f 62 3e 29 2c 20 61 6e 64 20 70 69 78  i></b>), and pix
0b10: 65 6c 20 76 61 6c 75 65 73 20 61 72 65 20 6f 66  el values are of
0b20: 20 74 68 65 20 3c 62 3e 49 4e 54 31 36 3c 2f 62   the <b>INT16</b
0b30: 3e 20 74 79 70 65 20 28 3c 62 3e 3c 69 3e 53 61  > type (<b><i>Sa
0b40: 6d 70 6c 65 20 46 6f 72 6d 61 74 3a 20 73 69 67  mple Format: sig
0b50: 6e 65 64 20 69 6e 74 65 67 65 72 3c 2f 62 3e 3c  ned integer</b><
0b60: 2f 69 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 42 69  /i> and <b><i>Bi
0b70: 74 73 2f 53 61 6d 70 6c 65 3a 20 31 36 3c 2f 69  ts/Sample: 16</i
0b80: 3e 3c 2f 62 3e 29 2e 3c 62 72 3e 0d 0a 3c 75 3e  ></b>).<br>..<u>
0b90: 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a  Please note</u>:
0ba0: 20 73 69 6e 63 65 20 6e 6f 77 20 79 6f 75 27 76   since now you'v
0bb0: 65 20 63 6f 6e 73 74 61 6e 74 6c 79 20 65 6e 63  e constantly enc
0bc0: 6f 75 6e 74 65 72 65 64 20 3c 62 3e 3c 69 3e 75  ountered <b><i>u
0bd0: 6e 73 69 67 6e 65 64 20 69 6e 74 65 67 65 72 3c  nsigned integer<
0be0: 2f 69 3e 3c 2f 62 3e 20 73 61 6d 70 6c 65 73 3b  /i></b> samples;
0bf0: 20 62 75 74 20 45 54 4f 50 4f 31 20 69 73 20 61   but ETOPO1 is a
0c00: 20 47 6c 6f 62 61 6c 20 3c 62 3e 44 45 4d 3c 2f   Global <b>DEM</
0c10: 62 3e 20 63 6f 76 65 72 69 6e 67 20 62 6f 74 68  b> covering both
0c20: 20 43 6f 6e 74 69 6e 65 6e 74 20 73 75 72 66 61   Continent surfa
0c30: 63 65 73 20 61 6e 64 20 4f 63 65 61 6e 20 66 6c  ces and Ocean fl
0c40: 6f 6f 72 73 2c 20 61 6e 64 20 65 61 63 68 20 70  oors, and each p
0c50: 69 78 65 6c 20 76 61 6c 75 65 20 63 6f 72 72 65  ixel value corre
0c60: 73 70 6f 6e 64 73 20 74 6f 20 61 6e 20 3c 75 3e  sponds to an <u>
0c70: 3c 69 3e 65 6c 65 76 61 74 69 6f 6e 20 6d 65 61  <i>elevation mea
0c80: 73 75 72 65 3c 2f 69 3e 3c 2f 75 3e 2e 20 53 6f  sure</i></u>. So
0c90: 20 69 6e 20 74 68 69 73 20 73 70 65 63 69 66 69   in this specifi
0ca0: 63 20 63 61 73 65 20 75 73 69 6e 67 20 3c 62 3e  c case using <b>
0cb0: 3c 69 3e 73 69 67 6e 65 64 20 69 6e 74 65 67 65  <i>signed intege
0cc0: 72 73 3c 2f 69 3e 3c 2f 62 3e 20 69 73 20 61 20  rs</i></b> is a 
0cd0: 70 65 72 66 65 63 74 6c 79 20 72 65 61 73 6f 6e  perfectly reason
0ce0: 61 62 6c 65 20 73 6f 6c 75 74 69 6f 6e 2c 20 62  able solution, b
0cf0: 65 63 61 75 73 65 20 77 65 27 6c 6c 20 68 61 76  ecause we'll hav
0d00: 65 20 3c 75 3e 3c 69 3e 70 6f 73 69 74 69 76 65  e <u><i>positive
0d10: 3c 2f 69 3e 3c 2f 75 3e 20 65 6c 65 76 61 74 69  </i></u> elevati
0d20: 6f 6e 73 20 61 62 6f 76 65 20 73 65 61 20 6c 65  ons above sea le
0d30: 76 65 6c 20 61 6e 64 20 3c 75 3e 3c 69 3e 6e 65  vel and <u><i>ne
0d40: 67 61 74 69 76 65 3c 2f 69 3e 3c 2f 75 3e 20 65  gative</i></u> e
0d50: 6c 65 76 61 74 69 6f 6e 73 20 62 65 6c 6f 77 20  levations below 
0d60: 73 65 61 20 6c 65 76 65 6c 2e 20 0d 0a 3c 76 65  sea level. ..<ve
0d70: 72 62 61 74 69 6d 3e 0d 0a 24 20 6c 69 73 74 67  rbatim>..$ listg
0d80: 65 6f 20 45 54 4f 50 4f 31 5f 49 63 65 5f 63 5f  eo ETOPO1_Ice_c_
0d90: 67 65 6f 74 69 66 66 2e 74 69 66 0d 0a 47 65 6f  geotiff.tif..Geo
0da0: 74 69 66 66 5f 49 6e 66 6f 72 6d 61 74 69 6f 6e  tiff_Information
0db0: 3a 0d 0a 20 20 20 56 65 72 73 69 6f 6e 3a 20 31  :..   Version: 1
0dc0: 0d 0a 20 20 20 4b 65 79 5f 52 65 76 69 73 69 6f  ..   Key_Revisio
0dd0: 6e 3a 20 31 2e 30 0d 0a 20 20 20 54 61 67 67 65  n: 1.0..   Tagge
0de0: 64 5f 49 6e 66 6f 72 6d 61 74 69 6f 6e 3a 0d 0a  d_Information:..
0df0: 20 20 20 20 20 20 4d 6f 64 65 6c 54 69 65 70 6f        ModelTiepo
0e00: 69 6e 74 54 61 67 20 28 32 2c 33 29 3a 0d 0a 20  intTag (2,3):.. 
0e10: 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20          0       
0e20: 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20            0     
0e30: 20 20 20 20 20 20 20 20 20 20 20 20 30 0d 0a 20              0.. 
0e40: 20 20 20 20 20 20 20 20 2d 31 38 30 20 20 20 20          -180    
0e50: 20 20 20 20 20 20 20 20 20 20 39 30 20 20 20 20            90    
0e60: 20 20 20 20 20 20 20 20 20 20 20 20 30 0d 0a 20              0.. 
0e70: 20 20 20 20 20 4d 6f 64 65 6c 50 69 78 65 6c 53       ModelPixelS
0e80: 63 61 6c 65 54 61 67 20 28 31 2c 33 29 3a 0d 0a  caleTag (1,3):..
0e90: 20 20 20 20 20 20 20 20 20 30 2e 30 31 36 36 36           0.01666
0ea0: 36 36 36 36 36 36 36 36 36 36 37 20 30 2e 30 31  66666666667 0.01
0eb0: 36 36 36 36 36 36 36 36 36 36 36 36 36 37 20 30  66666666666667 0
0ec0: 0d 0a 20 20 20 20 20 20 45 6e 64 5f 4f 66 5f 54  ..      End_Of_T
0ed0: 61 67 73 2e 0d 0a 20 20 20 4b 65 79 65 64 5f 49  ags...   Keyed_I
0ee0: 6e 66 6f 72 6d 61 74 69 6f 6e 3a 0d 0a 20 20 20  nformation:..   
0ef0: 20 20 20 45 6e 64 5f 4f 66 5f 4b 65 79 73 2e 0d     End_Of_Keys..
0f00: 0a 20 20 20 45 6e 64 5f 4f 66 5f 47 65 6f 74 69  .   End_Of_Geoti
0f10: 66 66 2e 0d 0a 24 0d 0a 3c 2f 76 65 72 62 61 74  ff...$..</verbat
0f20: 69 6d 3e 0d 0a 54 68 65 20 3c 62 3e 3c 69 3e 6c  im>..The <b><i>l
0f30: 69 73 74 67 65 6f 3c 2f 69 3e 3c 2f 62 3e 20 74  istgeo</i></b> t
0f40: 6f 6f 6c 20 63 6f 6e 66 69 72 6d 73 20 74 68 61  ool confirms tha
0f50: 74 20 74 68 69 73 20 61 63 74 75 61 6c 6c 79 20  t this actually 
0f60: 69 73 20 47 65 6f 54 49 46 46 3a 20 75 6e 68 61  is GeoTIFF: unha
0f70: 70 70 69 6c 79 20 69 74 27 73 20 61 20 62 6f 67  ppily it's a bog
0f80: 75 73 20 47 65 6f 54 49 46 46 2c 20 6d 69 73 73  us GeoTIFF, miss
0f90: 69 6e 67 20 74 6f 20 64 65 63 6c 61 72 65 20 6d  ing to declare m
0fa0: 61 6e 79 20 72 65 6c 65 76 61 6e 74 20 69 6e 66  any relevant inf
0fb0: 6f 72 6d 61 74 69 6f 6e 73 20 28 65 2e 67 2e 20  ormations (e.g. 
0fc0: 74 68 65 20 69 6e 74 65 6e 64 65 64 20 52 65 66  the intended Ref
0fd0: 65 72 65 6e 63 65 20 53 79 73 74 65 6d 29 2e 20  erence System). 
0fe0: 53 6f 20 69 74 27 73 20 70 72 61 63 74 69 63 61  So it's practica
0ff0: 6c 6c 79 20 75 73 65 6c 65 73 73 2e 0d 0a 3c 76  lly useless...<v
1000: 65 72 62 61 74 69 6d 3e 0d 0a 30 2e 30 31 36 36  erbatim>..0.0166
1010: 36 36 36 36 36 36 36 36 36 36 36 37 0d 0a 30 2e  666666666667..0.
1020: 30 30 30 30 30 0d 0a 30 2e 30 30 30 30 30 0d 0a  00000..0.00000..
1030: 2d 30 2e 30 31 36 36 36 36 36 36 36 36 36 36 36  -0.0166666666666
1040: 36 36 37 0d 0a 2d 31 38 30 2e 30 30 30 30 30 0d  667..-180.00000.
1050: 0a 39 30 2e 30 30 30 30 30 0d 0a 3c 2f 76 65 72  .90.00000..</ver
1060: 62 61 74 69 6d 3e 0d 0a 41 6e 79 77 61 79 20 74  batim>..Anyway t
1070: 68 69 73 20 69 73 6e 27 74 20 61 20 62 6c 6f 63  his isn't a bloc
1080: 6b 69 6e 67 20 69 73 73 75 65 3a 20 79 6f 75 20  king issue: you 
1090: 63 6f 75 6c 64 20 65 61 73 69 6c 79 20 61 64 64  could easily add
10a0: 20 62 79 20 79 6f 75 72 73 65 6c 66 20 61 20 57   by yourself a W
10b0: 6f 72 6c 64 46 69 6c 65 20 73 75 70 70 6f 72 74  orldFile support
10c0: 69 6e 67 20 74 68 65 20 54 49 46 46 20 28 61 73  ing the TIFF (as
10d0: 20 65 78 65 6d 70 6c 69 66 69 65 64 20 69 6e 20   exemplified in 
10e0: 74 68 65 20 61 62 6f 76 65 20 73 6e 69 70 70 65  the above snippe
10f0: 74 29 3b 20 6f 72 20 79 6f 75 20 63 6f 75 6c 64  t); or you could
1100: 20 65 76 65 6e 74 75 61 6c 6c 79 20 6a 75 73 74   eventually just
1110: 20 64 6f 77 6e 6c 6f 61 64 20 69 74 20 66 72 6f   download it fro
1120: 6d 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70 73  m <a href="https
1130: 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e  ://www.gaia-gis.
1140: 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 72 61 73  it/gaia-sins/ras
1150: 74 65 72 6c 69 74 65 32 2d 72 65 73 6f 75 72 63  terlite2-resourc
1160: 65 73 2f 45 54 4f 50 4f 31 5f 49 63 65 5f 63 5f  es/ETOPO1_Ice_c_
1170: 67 65 6f 74 69 66 66 2e 74 66 77 22 3e 68 65 72  geotiff.tfw">her
1180: 65 3c 2f 61 3e 2e 20 0d 0a 3c 68 33 3e 53 74 65  e</a>. ..<h3>Ste
1190: 70 20 32 29 20 63 72 65 61 74 69 6e 67 20 74 68  p 2) creating th
11a0: 65 20 45 74 6f 70 6f 31 5f 44 45 4d 20 43 6f 76  e Etopo1_DEM Cov
11b0: 65 72 61 67 65 3c 2f 68 33 3e 0d 0a 3c 76 65 72  erage</h3>..<ver
11c0: 62 61 74 69 6d 3e 0d 0a 24 20 72 6c 32 74 6f 6f  batim>..$ rl2too
11d0: 6c 20 43 52 45 41 54 45 20 2d 64 62 20 65 61 72  l CREATE -db ear
11e0: 74 68 2e 73 71 6c 69 74 65 20 2d 63 6f 76 20 45  th.sqlite -cov E
11f0: 74 6f 70 6f 31 5f 44 45 4d 20 2d 73 6d 70 20 49  topo1_DEM -smp I
1200: 4e 54 31 36 20 5c 0d 0a 2d 70 78 6c 20 44 41 54  NT16 \..-pxl DAT
1210: 41 47 52 49 44 20 2d 63 70 72 20 4c 5a 4d 41 20  AGRID -cpr LZMA 
1220: 2d 73 72 69 64 20 34 33 32 36 20 2d 72 65 73 20  -srid 4326 -res 
1230: 30 2e 30 31 36 36 36 36 36 36 36 36 36 36 36 36  0.01666666666666
1240: 36 37 20 2d 6e 64 20 2d 39 39 39 39 0d 0a 0d 0a  67 -nd -9999....
1250: 72 6c 32 5f 74 6f 6f 6c 3a 20 72 65 71 75 65 73  rl2_tool: reques
1260: 74 20 69 73 20 43 52 45 41 54 45 0d 0a 3d 3d 3d  t is CREATE..===
1270: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1280: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1290: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
12a0: 3d 3d 3d 3d 3d 3d 3d 3d 0d 0a 20 20 20 20 20 20  ========..      
12b0: 20 20 20 20 20 20 20 20 44 42 20 70 61 74 68 3a          DB path:
12c0: 20 65 61 72 74 68 2e 73 71 6c 69 74 65 0d 0a 20   earth.sqlite.. 
12d0: 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 76 65              Cove
12e0: 72 61 67 65 3a 20 45 74 6f 70 6f 31 5f 44 45 4d  rage: Etopo1_DEM
12f0: 0d 0a 20 20 20 20 20 20 20 20 20 20 53 61 6d 70  ..          Samp
1300: 6c 65 20 54 79 70 65 3a 20 49 4e 54 31 36 0d 0a  le Type: INT16..
1310: 20 20 20 20 20 20 20 20 20 20 20 50 69 78 65 6c             Pixel
1320: 20 54 79 70 65 3a 20 44 41 54 41 47 52 49 44 0d   Type: DATAGRID.
1330: 0a 20 20 20 20 20 20 4e 75 6d 62 65 72 20 6f 66  .      Number of
1340: 20 42 61 6e 64 73 3a 20 31 0d 0a 20 20 20 20 20   Bands: 1..     
1350: 20 20 20 4e 4f 2d 44 41 54 41 20 70 69 78 65 6c     NO-DATA pixel
1360: 3a 20 2d 39 39 39 39 0d 0a 20 20 20 20 20 20 20  : -9999..       
1370: 20 20 20 43 6f 6d 70 72 65 73 73 69 6f 6e 3a 20     Compression: 
1380: 4c 5a 4d 41 20 28 37 2d 7a 69 70 2c 20 6c 6f 73  LZMA (7-zip, los
1390: 73 6c 65 73 73 29 0d 0a 20 20 20 54 69 6c 65 20  sless)..   Tile 
13a0: 73 69 7a 65 20 28 70 69 78 65 6c 73 29 3a 20 35  size (pixels): 5
13b0: 31 32 20 78 20 35 31 32 0d 0a 20 20 20 20 20 20  12 x 512..      
13c0: 20 20 20 20 20 20 20 20 20 20 20 53 72 69 64 3a             Srid:
13d0: 20 34 33 32 36 0d 0a 50 69 78 65 6c 20 62 61 73   4326..Pixel bas
13e0: 65 20 72 65 73 6f 6c 75 74 69 6f 6e 3a 20 58 3d  e resolution: X=
13f0: 30 2e 30 31 36 36 36 36 36 36 36 36 36 36 36 36  0.01666666666666
1400: 36 37 20 59 3d 30 2e 30 31 36 36 36 36 36 36 36  67 Y=0.016666666
1410: 36 36 36 36 36 36 37 0d 0a 3d 3d 3d 3d 3d 3d 3d  6666667..=======
1420: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1430: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1440: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1450: 3d 3d 3d 3d 0d 0a 0d 0a 20 20 20 20 20 53 51 4c  ====....     SQL
1460: 69 74 65 20 76 65 72 73 69 6f 6e 3a 20 33 2e 38  ite version: 3.8
1470: 2e 34 2e 32 0d 0a 20 53 70 61 74 69 61 4c 69 74  .4.2.. SpatiaLit
1480: 65 20 76 65 72 73 69 6f 6e 3a 20 34 2e 32 2e 30  e version: 4.2.0
1490: 2d 64 65 76 65 6c 0d 0a 52 61 73 74 65 72 4c 69  -devel..RasterLi
14a0: 74 65 32 20 76 65 72 73 69 6f 6e 3a 20 30 2e 38  te2 version: 0.8
14b0: 0d 0a 0d 0a 52 61 73 74 65 72 20 43 6f 76 65 72  ....Raster Cover
14c0: 61 67 65 20 22 45 74 6f 70 6f 31 5f 44 45 4d 22  age "Etopo1_DEM"
14d0: 20 73 75 63 63 65 73 73 66 75 6c 6c 79 20 63 72   successfully cr
14e0: 65 61 74 65 64 0d 0a 0d 0a 4f 70 65 72 61 74 69  eated....Operati
14f0: 6f 6e 20 43 52 45 41 54 45 20 73 75 63 63 65 73  on CREATE succes
1500: 73 66 75 6c 6c 79 20 63 6f 6d 70 6c 65 74 65 64  sfully completed
1510: 0d 0a 24 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e  ..$..</verbatim>
1520: 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 45 78 61 63  ..<ul>..<li>Exac
1530: 74 6c 79 20 61 73 20 79 6f 75 20 61 6c 72 65 61  tly as you alrea
1540: 64 79 20 64 69 64 20 69 6e 20 61 6e 79 20 70 72  dy did in any pr
1550: 65 76 69 6f 75 73 20 3c 62 3e 3c 69 3e 74 75 74  evious <b><i>tut
1560: 6f 72 69 61 6c 3c 2f 69 3e 3c 2f 62 3e 20 79 6f  orial</i></b> yo
1570: 75 27 6c 6c 20 69 6e 76 6f 6b 65 20 3c 62 3e 3c  u'll invoke <b><
1580: 69 3e 72 6c 32 74 6f 6f 6c 3c 2f 69 3e 3c 2f 62  i>rl2tool</i></b
1590: 3e 20 66 72 6f 6d 20 74 68 65 20 63 6f 6d 6d 61  > from the comma
15a0: 6e 64 20 73 68 65 6c 6c 2e 3c 2f 6c 69 3e 0d 0a  nd shell.</li>..
15b0: 3c 6c 69 3e 74 68 65 20 6d 6f 73 74 20 72 65 6c  <li>the most rel
15c0: 65 76 61 6e 74 20 61 72 67 75 6d 65 6e 74 73 20  evant arguments 
15d0: 77 69 6c 6c 20 62 65 20 65 78 70 6c 61 69 6e 65  will be explaine
15e0: 64 20 6f 6e 65 20 62 79 20 6f 6e 65 3a 0d 0a 3c  d one by one:..<
15f0: 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 2d 73 6d 70  ul>..<li><b>-smp
1600: 20 49 4e 54 31 36 3c 2f 62 3e 20 74 68 69 73 20   INT16</b> this 
1610: 73 70 65 63 69 66 69 65 73 20 74 68 65 20 43 6f  specifies the Co
1620: 76 65 72 61 67 65 27 73 20 53 61 6d 70 6c 65 20  verage's Sample 
1630: 54 79 70 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e  Type.</li>..<li>
1640: 3c 62 3e 2d 70 78 6c 20 44 41 54 41 47 52 49 44  <b>-pxl DATAGRID
1650: 3c 2f 62 3e 20 74 68 69 73 20 73 70 65 63 69 66  </b> this specif
1660: 69 65 73 20 74 68 65 20 43 6f 76 65 72 61 67 65  ies the Coverage
1670: 27 73 20 50 69 78 65 6c 20 54 79 70 65 2e 3c 62  's Pixel Type.<b
1680: 72 3e 0d 0a 3c 6c 69 3e 3c 62 3e 2d 63 70 72 20  r>..<li><b>-cpr 
1690: 4c 5a 4d 41 3c 2f 62 3e 20 74 68 69 73 20 73 70  LZMA</b> this sp
16a0: 65 63 69 66 69 65 73 20 74 68 61 74 20 61 6c 6c  ecifies that all
16b0: 20 54 69 6c 65 73 20 69 6e 20 74 68 69 73 20 43   Tiles in this C
16c0: 6f 76 65 72 61 67 65 20 6d 75 73 74 20 62 65 20  overage must be 
16d0: 20 63 6f 6d 70 72 65 73 73 65 64 20 75 73 69 6e   compressed usin
16e0: 67 20 74 68 65 20 3c 75 3e 3c 69 3e 6c 6f 73 73  g the <u><i>loss
16f0: 6c 65 73 73 3c 2f 69 3e 3c 2f 75 3e 20 3c 62 3e  less</i></u> <b>
1700: 4c 5a 4d 41 3c 2f 62 3e 20 61 6c 67 6f 72 69 74  LZMA</b> algorit
1710: 68 6d 2e 3c 62 72 3e 0d 0a 3c 75 3e 50 6c 65 61  hm.<br>..<u>Plea
1720: 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 69 6e 20  se note</u>: in 
1730: 74 68 69 73 20 63 61 73 65 20 75 73 69 6e 67 20  this case using 
1740: 74 68 65 20 63 6f 6d 6d 6f 6e 20 3c 62 3e 4a 50  the common <b>JP
1750: 45 47 3c 2f 62 3e 20 63 6f 6d 70 72 65 73 73 69  EG</b> compressi
1760: 6f 6e 20 69 73 20 63 6f 6d 70 6c 65 74 65 6c 79  on is completely
1770: 20 6f 75 74 20 6f 66 20 64 69 73 63 75 73 73 69   out of discussi
1780: 6f 6e 2c 20 62 65 63 61 75 73 65 20 4a 50 45 47  on, because JPEG
1790: 20 64 6f 65 73 6e 27 74 20 73 75 70 70 6f 72 74   doesn't support
17a0: 20 31 36 20 62 69 74 20 70 69 78 65 6c 73 2e 3c   16 bit pixels.<
17b0: 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 3c 2f 6c 69 3e  /li>..</ul></li>
17c0: 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 68 33 3e 53 74 65  ..</ul>..<h3>Ste
17d0: 70 20 33 29 20 70 6f 70 75 6c 61 74 69 6e 67 20  p 3) populating 
17e0: 74 68 65 20 45 74 6f 70 6f 31 5f 44 45 4d 20 43  the Etopo1_DEM C
17f0: 6f 76 65 72 61 67 65 3c 2f 68 33 3e 0d 0a 3c 76  overage</h3>..<v
1800: 65 72 62 61 74 69 6d 3e 0d 0a 24 20 72 6c 32 74  erbatim>..$ rl2t
1810: 6f 6f 6c 20 49 4d 50 4f 52 54 20 2d 64 62 20 65  ool IMPORT -db e
1820: 61 72 74 68 2e 73 71 6c 69 74 65 20 2d 63 6f 76  arth.sqlite -cov
1830: 20 45 74 6f 70 6f 31 5f 44 45 4d 20 2d 73 72 69   Etopo1_DEM -sri
1840: 64 20 34 33 32 36 20 2d 77 66 20 5c 0d 0a 2d 73  d 4326 -wf \..-s
1850: 72 63 20 45 54 4f 50 4f 31 5f 49 63 65 5f 63 5f  rc ETOPO1_Ice_c_
1860: 67 65 6f 74 69 66 66 2e 74 69 66 20 2d 70 79 72  geotiff.tif -pyr
1870: 0d 0a 0d 0a 72 6c 32 5f 74 6f 6f 6c 3b 20 72 65  ....rl2_tool; re
1880: 71 75 65 73 74 20 69 73 20 49 4d 50 4f 52 54 0d  quest is IMPORT.
1890: 0a 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  .===============
18a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
18b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
18c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0d 0a 20 20  ============..  
18d0: 20 20 20 20 20 20 20 20 20 20 20 20 44 42 20 70              DB p
18e0: 61 74 68 3a 20 65 61 72 74 68 2e 73 71 6c 69 74  ath: earth.sqlit
18f0: 65 0d 0a 20 20 20 20 49 6e 70 75 74 20 53 6f 75  e..    Input Sou
1900: 72 63 65 20 70 61 74 68 3a 20 45 54 4f 50 4f 31  rce path: ETOPO1
1910: 5f 49 63 65 5f 63 5f 67 65 6f 74 69 66 66 2e 74  _Ice_c_geotiff.t
1920: 69 66 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20  if..            
1930: 20 43 6f 76 65 72 61 67 65 3a 20 45 74 6f 70 6f   Coverage: Etopo
1940: 31 5f 44 45 4d 0d 0a 20 20 20 20 20 20 20 20 20  1_DEM..         
1950: 20 20 20 20 20 53 65 63 74 69 6f 6e 3a 20 66 72       Section: fr
1960: 6f 6d 20 66 69 6c 65 20 6e 61 6d 65 0d 0a 55 73  om file name..Us
1970: 69 6e 67 20 74 68 65 20 57 6f 72 6c 64 46 69 6c  ing the WorldFil
1980: 65 0d 0a 20 20 20 20 20 20 20 20 20 20 46 6f 72  e..          For
1990: 63 65 64 20 53 52 49 44 3a 20 34 33 32 36 0d 0a  ced SRID: 4326..
19a0: 49 6d 6d 65 64 69 61 74 65 6c 79 20 62 75 69 6c  Immediately buil
19b0: 64 69 6e 67 20 50 79 72 61 6d 69 64 20 4c 65 76  ding Pyramid Lev
19c0: 65 6c 73 0d 0a 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  els..===========
19d0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
19e0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
19f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  ================
1a00: 0d 0a 0d 0a 20 20 20 20 20 53 51 4c 69 74 65 20  ....     SQLite 
1a10: 76 65 72 73 69 6f 6e 3a 20 33 2e 38 2e 34 2e 32  version: 3.8.4.2
1a20: 0d 0a 20 53 70 61 74 69 61 4c 69 74 65 20 76 65  .. SpatiaLite ve
1a30: 72 73 69 6f 6e 3a 20 34 2e 32 2e 30 2d 64 65 76  rsion: 4.2.0-dev
1a40: 65 6c 0d 0a 52 61 73 74 65 72 4c 69 74 65 32 20  el..RasterLite2 
1a50: 76 65 72 73 69 6f 6e 3a 20 30 2e 38 0d 0a 0d 0a  version: 0.8....
1a60: 49 6d 70 6f 72 74 69 6e 67 3a 20 45 54 4f 50 4f  Importing: ETOPO
1a70: 31 5f 49 63 65 5f 63 5f 67 65 6f 74 69 66 66 2e  1_Ice_c_geotiff.
1a80: 74 69 66 0d 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  tif..-----------
1a90: 2d 2d 2d 2d 2d 2d 2d 0d 0a 20 20 20 20 49 6d 61  -------..    Ima
1aa0: 67 65 20 53 69 7a 65 20 28 70 69 78 65 6c 73 29  ge Size (pixels)
1ab0: 3a 20 32 31 36 30 30 20 78 20 31 30 38 30 30 0d  : 21600 x 10800.
1ac0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20  .               
1ad0: 20 20 20 20 53 52 49 44 3a 20 34 33 32 36 0d 0a      SRID: 4326..
1ae0: 20 20 20 20 20 20 20 4c 6f 77 65 72 4c 65 66 74         LowerLeft
1af0: 20 43 6f 72 6e 65 72 3a 20 58 3d 2d 31 38 30 2e   Corner: X=-180.
1b00: 30 30 20 59 3d 2d 39 30 2e 30 30 0d 0a 20 20 20  00 Y=-90.00..   
1b10: 20 20 20 55 70 70 65 72 52 69 67 68 74 20 43 6f     UpperRight Co
1b20: 72 6e 65 72 3a 20 58 3d 31 38 30 2e 30 30 20 59  rner: X=180.00 Y
1b30: 3d 39 30 2e 30 30 0d 0a 20 20 20 20 20 20 20 50  =90.00..       P
1b40: 69 78 65 6c 20 72 65 73 6f 6c 75 74 69 6f 6e 3a  ixel resolution:
1b50: 20 58 3d 30 2e 30 31 36 36 36 36 36 36 36 36 36   X=0.01666666666
1b60: 36 36 36 36 37 20 59 3d 30 2e 30 31 36 36 36 36  66667 Y=0.016666
1b70: 36 36 36 36 36 36 36 36 36 37 0d 0a 20 20 2d 2d  6666666667..  --
1b80: 2d 2d 2d 2d 2d 2d 2d 2d 0d 0a 20 20 20 20 50 79  --------..    Py
1b90: 72 61 6d 69 64 20 6c 65 76 65 6c 73 20 73 75 63  ramid levels suc
1ba0: 63 65 73 73 66 75 6c 6c 79 20 62 75 69 6c 74 20  cessfully built 
1bb0: 66 6f 72 3a 20 45 54 4f 50 4f 31 5f 49 63 65 5f  for: ETOPO1_Ice_
1bc0: 63 5f 67 65 6f 74 69 66 66 0d 0a 0d 0a 4f 70 65  c_geotiff....Ope
1bd0: 72 61 74 69 6f 6e 20 49 4d 50 4f 52 54 20 73 75  ration IMPORT su
1be0: 63 63 65 73 73 66 75 6c 6c 79 20 63 6f 6d 70 6c  ccessfully compl
1bf0: 65 74 65 64 0d 0a 24 0d 0a 3c 2f 76 65 72 62 61  eted..$..</verba
1c00: 74 69 6d 3e 0d 0a 45 78 61 63 74 6c 79 20 61 73  tim>..Exactly as
1c10: 20 79 6f 75 20 61 6c 72 65 61 64 79 20 64 69 64   you already did
1c20: 20 69 6e 20 61 6e 79 20 6f 74 68 65 72 20 70 72   in any other pr
1c30: 65 76 69 6f 75 73 20 74 75 74 6f 72 69 61 6c 2e  evious tutorial.
1c40: 0d 0a 3c 68 33 3e 53 74 65 70 20 34 29 20 63 72  ..<h3>Step 4) cr
1c50: 65 61 74 69 6e 67 20 61 6e 64 20 6c 6f 61 64 69  eating and loadi
1c60: 6e 67 20 79 6f 75 72 20 6f 77 6e 20 63 75 73 74  ng your own cust
1c70: 6f 6d 20 52 61 73 74 65 72 20 53 74 79 6c 65 73  om Raster Styles
1c80: 3c 2f 68 33 3e 0d 0a 3c 68 34 3e 34 2e 31 29 20  </h3>..<h4>4.1) 
1c90: 64 6f 77 6e 6c 6f 61 64 69 6e 67 20 74 68 65 20  downloading the 
1ca0: 45 54 4f 50 4f 31 20 73 74 79 6c 65 73 3c 2f 68  ETOPO1 styles</h
1cb0: 34 3e 0d 0a 4a 75 73 74 20 64 6f 77 6e 6c 6f 61  4>..Just downloa
1cc0: 64 20 74 68 65 20 61 70 70 72 6f 70 72 69 61 74  d the appropriat
1cd0: 65 20 72 65 73 6f 75 72 63 65 2d 70 61 63 6b 20  e resource-pack 
1ce0: 66 72 6f 6d 20 3c 61 20 68 72 65 66 3d 22 68 74  from <a href="ht
1cf0: 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67  tps://www.gaia-g
1d00: 69 73 2e 69 74 2f 67 61 69 61 2d 67 69 73 2f 72  is.it/gaia-gis/r
1d10: 61 73 74 65 72 6c 69 74 65 32 2d 72 65 73 6f 75  asterlite2-resou
1d20: 72 63 65 73 2f 65 74 6f 70 6f 31 5f 73 74 79 6c  rces/etopo1_styl
1d30: 65 73 2e 7a 69 70 22 3e 68 65 72 65 3c 2f 61 3e  es.zip">here</a>
1d40: 3b 20 69 74 20 63 6f 6e 74 61 69 6e 73 20 61 6e  ; it contains an
1d50: 79 20 53 4c 44 2f 53 45 20 52 61 73 74 65 72 53  y SLD/SE RasterS
1d60: 79 6d 62 6f 6c 69 7a 65 72 20 72 65 71 75 69 72  ymbolizer requir
1d70: 65 64 20 62 79 20 74 68 69 73 20 74 75 74 6f 72  ed by this tutor
1d80: 69 61 6c 2e 0d 0a 3c 68 34 3e 34 2e 32 29 20 65  ial...<h4>4.2) e
1d90: 78 70 6c 6f 72 69 6e 67 20 74 68 65 20 53 4c 44  xploring the SLD
1da0: 2f 53 45 20 52 61 73 74 65 72 53 79 6d 62 6f 6c  /SE RasterSymbol
1db0: 69 7a 65 72 20 61 6e 61 74 6f 6d 79 3c 2f 68 34  izer anatomy</h4
1dc0: 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 3c  >..<verbatim>..<
1dd0: 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 2e  ?xml version="1.
1de0: 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54 46  0" encoding="UTF
1df0: 2d 38 22 3f 3e 0d 0a 3c 52 61 73 74 65 72 53 79  -8"?>..<RasterSy
1e00: 6d 62 6f 6c 69 7a 65 72 20 76 65 72 73 69 6f 6e  mbolizer version
1e10: 3d 22 31 2e 31 2e 30 22 20 0d 0a 09 09 78 73 69  ="1.1.0" ....xsi
1e20: 3a 73 63 68 65 6d 61 4c 6f 63 61 74 69 6f 6e 3d  :schemaLocation=
1e30: 22 68 74 74 70 3a 2f 2f 77 77 77 2e 6f 70 65 6e  "http://www.open
1e40: 67 69 73 2e 6e 65 74 2f 73 65 20 68 74 74 70 3a  gis.net/se http:
1e50: 2f 2f 73 63 68 65 6d 61 73 2e 6f 70 65 6e 67 69  //schemas.opengi
1e60: 73 2e 6e 65 74 2f 73 65 2f 31 2e 31 2e 30 2f 53  s.net/se/1.1.0/S
1e70: 79 6d 62 6f 6c 69 7a 65 72 2e 78 73 64 22 20 0d  ymbolizer.xsd" .
1e80: 0a 09 09 78 6d 6c 6e 73 3d 22 68 74 74 70 3a 2f  ...xmlns="http:/
1e90: 2f 77 77 77 2e 6f 70 65 6e 67 69 73 2e 6e 65 74  /www.opengis.net
1ea0: 2f 73 65 22 20 0d 0a 09 09 78 6d 6c 6e 73 3a 6f  /se" ....xmlns:o
1eb0: 67 63 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e 6f  gc="http://www.o
1ec0: 70 65 6e 67 69 73 2e 6e 65 74 2f 6f 67 63 22 20  pengis.net/ogc" 
1ed0: 0d 0a 09 09 78 6d 6c 6e 73 3a 78 6c 69 6e 6b 3d  ....xmlns:xlink=
1ee0: 22 68 74 74 70 3a 2f 2f 77 77 77 2e 77 33 2e 6f  "http://www.w3.o
1ef0: 72 67 2f 31 39 39 39 2f 78 6c 69 6e 6b 22 20 0d  rg/1999/xlink" .
1f00: 0a 09 09 78 6d 6c 6e 73 3a 78 73 69 3d 22 68 74  ...xmlns:xsi="ht
1f10: 74 70 3a 2f 2f 77 77 77 2e 77 33 2e 6f 72 67 2f  tp://www.w3.org/
1f20: 32 30 30 31 2f 58 4d 4c 53 63 68 65 6d 61 2d 69  2001/XMLSchema-i
1f30: 6e 73 74 61 6e 63 65 22 3e 0d 0a 09 3c 4e 61 6d  nstance">...<Nam
1f40: 65 3e 65 74 6f 70 6f 3c 2f 4e 61 6d 65 3e 0d 0a  e>etopo</Name>..
1f50: 09 3c 44 65 73 63 72 69 70 74 69 6f 6e 3e 0d 0a  .<Description>..
1f60: 09 09 3c 54 69 74 6c 65 3e 45 54 4f 50 4f 31 20  ..<Title>ETOPO1 
1f70: 43 6f 6c 6f 72 20 4d 61 70 3c 2f 54 69 74 6c 65  Color Map</Title
1f80: 3e 0d 0a 09 09 3c 41 62 73 74 72 61 63 74 3e 64  >....<Abstract>d
1f90: 65 72 69 76 65 64 20 66 72 6f 6d 20 74 68 65 20  erived from the 
1fa0: 6f 72 69 67 69 6e 61 6c 20 22 65 74 6f 70 6f 32  original "etopo2
1fb0: 22 20 63 6f 6c 6f 72 20 72 75 6c 65 20 28 47 52  " color rule (GR
1fc0: 41 53 53 20 47 49 53 29 3c 2f 41 62 73 74 72 61  ASS GIS)</Abstra
1fd0: 63 74 3e 0d 0a 09 3c 2f 44 65 73 63 72 69 70 74  ct>...</Descript
1fe0: 69 6f 6e 3e 0d 0a 09 3c 4f 70 61 63 69 74 79 3e  ion>...<Opacity>
1ff0: 31 2e 30 3c 2f 4f 70 61 63 69 74 79 3e 0d 0a 09  1.0</Opacity>...
2000: 3c 43 6f 6c 6f 72 4d 61 70 3e 0d 0a 09 09 3c 49  <ColorMap>....<I
2010: 6e 74 65 72 70 6f 6c 61 74 65 20 66 61 6c 6c 62  nterpolate fallb
2020: 61 63 6b 56 61 6c 75 65 3d 22 23 66 66 66 66 66  ackValue="#fffff
2030: 66 22 3e 0d 0a 09 09 09 3c 4c 6f 6f 6b 75 70 56  f">.....<LookupV
2040: 61 6c 75 65 3e 52 61 73 74 65 72 64 61 74 61 3c  alue>Rasterdata<
2050: 2f 4c 6f 6f 6b 75 70 56 61 6c 75 65 3e 0d 0a 09  /LookupValue>...
2060: 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e  ..<Interpolation
2070: 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61 74  Point>......<Dat
2080: 61 3e 2d 31 31 30 30 30 2e 30 30 30 30 30 30 30  a>-11000.0000000
2090: 30 3c 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 56  0</Data>......<V
20a0: 61 6c 75 65 3e 23 30 30 30 30 30 30 3c 2f 56 61  alue>#000000</Va
20b0: 6c 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 72  lue>.....</Inter
20c0: 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a  polationPoint>..
20d0: 09 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f  ...<Interpolatio
20e0: 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61  nPoint>......<Da
20f0: 74 61 3e 2d 35 30 30 30 2e 30 30 30 30 30 30 30  ta>-5000.0000000
2100: 30 3c 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 56  0</Data>......<V
2110: 61 6c 75 65 3e 23 30 30 30 30 36 34 3c 2f 56 61  alue>#000064</Va
2120: 6c 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 72  lue>.....</Inter
2130: 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a  polationPoint>..
2140: 09 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f  ...<Interpolatio
2150: 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61  nPoint>......<Da
2160: 74 61 3e 2d 31 30 30 30 2e 30 30 30 30 30 30 30  ta>-1000.0000000
2170: 30 3c 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 56  0</Data>......<V
2180: 61 6c 75 65 3e 23 33 32 33 32 63 38 3c 2f 56 61  alue>#3232c8</Va
2190: 6c 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 72  lue>.....</Inter
21a0: 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a  polationPoint>..
21b0: 09 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f  ...<Interpolatio
21c0: 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61  nPoint>......<Da
21d0: 74 61 3e 2d 31 2e 30 30 30 30 30 30 30 30 3c 2f  ta>-1.00000000</
21e0: 44 61 74 61 3e 0d 0a 09 09 09 09 3c 56 61 6c 75  Data>......<Valu
21f0: 65 3e 23 39 36 39 36 66 66 3c 2f 56 61 6c 75 65  e>#9696ff</Value
2200: 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 72 70 6f 6c  >.....</Interpol
2210: 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09  ationPoint>.....
2220: 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e 50 6f  <InterpolationPo
2230: 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61 74 61 3e  int>......<Data>
2240: 30 2e 30 30 30 30 30 30 30 30 3c 2f 44 61 74 61  0.00000000</Data
2250: 3e 0d 0a 09 09 09 09 3c 56 61 6c 75 65 3e 23 30  >......<Value>#0
2260: 30 39 36 30 30 3c 2f 56 61 6c 75 65 3e 0d 0a 09  09600</Value>...
2270: 09 09 3c 2f 49 6e 74 65 72 70 6f 6c 61 74 69 6f  ..</Interpolatio
2280: 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 3c 49 6e 74  nPoint>.....<Int
2290: 65 72 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e  erpolationPoint>
22a0: 0d 0a 09 09 09 09 3c 44 61 74 61 3e 32 37 30 2e  ......<Data>270.
22b0: 30 30 30 30 30 30 30 30 3c 2f 44 61 74 61 3e 0d  00000000</Data>.
22c0: 0a 09 09 09 09 3c 56 61 6c 75 65 3e 23 35 61 61  .....<Value>#5aa
22d0: 35 35 61 3c 2f 56 61 6c 75 65 3e 0d 0a 09 09 09  55a</Value>.....
22e0: 3c 2f 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e 50  </InterpolationP
22f0: 6f 69 6e 74 3e 0d 0a 09 09 09 3c 49 6e 74 65 72  oint>.....<Inter
2300: 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a  polationPoint>..
2310: 09 09 09 09 3c 44 61 74 61 3e 33 30 30 2e 30 30  ....<Data>300.00
2320: 30 30 30 30 30 30 3c 2f 44 61 74 61 3e 0d 0a 09  000000</Data>...
2330: 09 09 09 3c 56 61 6c 75 65 3e 23 35 61 61 66 35  ...<Value>#5aaf5
2340: 61 3c 2f 56 61 6c 75 65 3e 0d 0a 09 09 09 3c 2f  a</Value>.....</
2350: 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e 50 6f 69  InterpolationPoi
2360: 6e 74 3e 0d 0a 09 09 09 3c 49 6e 74 65 72 70 6f  nt>.....<Interpo
2370: 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09  lationPoint>....
2380: 09 09 3c 44 61 74 61 3e 35 30 30 2e 30 30 30 30  ..<Data>500.0000
2390: 30 30 30 30 3c 2f 44 61 74 61 3e 0d 0a 09 09 09  0000</Data>.....
23a0: 09 3c 56 61 6c 75 65 3e 23 33 32 62 34 33 32 3c  .<Value>#32b432<
23b0: 2f 56 61 6c 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e  /Value>.....</In
23c0: 74 65 72 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74  terpolationPoint
23d0: 3e 0d 0a 09 09 09 3c 49 6e 74 65 72 70 6f 6c 61  >.....<Interpola
23e0: 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 09  tionPoint>......
23f0: 3c 44 61 74 61 3e 35 30 30 2e 30 30 30 30 30 30  <Data>500.000000
2400: 30 30 3c 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c  00</Data>......<
2410: 56 61 6c 75 65 3e 23 34 36 61 61 34 36 3c 2f 56  Value>#46aa46</V
2420: 61 6c 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65  alue>.....</Inte
2430: 72 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d  rpolationPoint>.
2440: 0a 09 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69  ....<Interpolati
2450: 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44  onPoint>......<D
2460: 61 74 61 3e 31 30 30 30 2e 30 30 30 30 30 30 30  ata>1000.0000000
2470: 30 3c 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 56  0</Data>......<V
2480: 61 6c 75 65 3e 23 34 36 39 31 34 62 3c 2f 56 61  alue>#46914b</Va
2490: 6c 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 72  lue>.....</Inter
24a0: 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a  polationPoint>..
24b0: 09 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f  ...<Interpolatio
24c0: 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61  nPoint>......<Da
24d0: 74 61 3e 31 30 30 30 2e 30 30 30 30 30 30 30 30  ta>1000.00000000
24e0: 3c 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 56 61  </Data>......<Va
24f0: 6c 75 65 3e 23 34 36 39 62 34 62 3c 2f 56 61 6c  lue>#469b4b</Val
2500: 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 72 70  ue>.....</Interp
2510: 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09  olationPoint>...
2520: 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e  ..<Interpolation
2530: 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61 74  Point>......<Dat
2540: 61 3e 32 30 30 30 2e 30 30 30 30 30 30 30 30 3c  a>2000.00000000<
2550: 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 56 61 6c  /Data>......<Val
2560: 75 65 3e 23 39 36 39 63 36 34 3c 2f 56 61 6c 75  ue>#969c64</Valu
2570: 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 72 70 6f  e>.....</Interpo
2580: 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09  lationPoint>....
2590: 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e 50  .<InterpolationP
25a0: 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61 74 61  oint>......<Data
25b0: 3e 33 30 30 30 2e 30 30 30 30 30 30 30 30 3c 2f  >3000.00000000</
25c0: 44 61 74 61 3e 0d 0a 09 09 09 09 3c 56 61 6c 75  Data>......<Valu
25d0: 65 3e 23 64 63 64 63 64 63 3c 2f 56 61 6c 75 65  e>#dcdcdc</Value
25e0: 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 72 70 6f 6c  >.....</Interpol
25f0: 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09  ationPoint>.....
2600: 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e 50 6f  <InterpolationPo
2610: 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61 74 61 3e  int>......<Data>
2620: 34 30 30 30 2e 30 30 30 30 30 30 30 30 3c 2f 44  4000.00000000</D
2630: 61 74 61 3e 0d 0a 09 09 09 09 3c 56 61 6c 75 65  ata>......<Value
2640: 3e 23 66 35 66 35 66 35 3c 2f 56 61 6c 75 65 3e  >#f5f5f5</Value>
2650: 0d 0a 09 09 09 3c 2f 49 6e 74 65 72 70 6f 6c 61  .....</Interpola
2660: 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 3c  tionPoint>.....<
2670: 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e 50 6f 69  InterpolationPoi
2680: 6e 74 3e 0d 0a 09 09 09 09 3c 44 61 74 61 3e 38  nt>......<Data>8
2690: 38 35 30 2e 30 30 30 30 30 30 30 30 3c 2f 44 61  850.00000000</Da
26a0: 74 61 3e 0d 0a 09 09 09 09 3c 56 61 6c 75 65 3e  ta>......<Value>
26b0: 23 66 66 66 66 66 66 3c 2f 56 61 6c 75 65 3e 0d  #ffffff</Value>.
26c0: 0a 09 09 09 3c 2f 49 6e 74 65 72 70 6f 6c 61 74  ....</Interpolat
26d0: 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 3c 2f 49  ionPoint>....</I
26e0: 6e 74 65 72 70 6f 6c 61 74 65 3e 0d 0a 09 3c 2f  nterpolate>...</
26f0: 43 6f 6c 6f 72 4d 61 70 3e 0d 0a 3c 2f 52 61 73  ColorMap>..</Ras
2700: 74 65 72 53 79 6d 62 6f 6c 69 7a 65 72 3e 0d 0a  terSymbolizer>..
2710: 3c 2f 76 65 72 62 61 74 69 6d 3e 0d 0a 59 6f 75  </verbatim>..You
2720: 27 76 65 20 61 6c 72 65 61 64 79 20 67 6f 74 20  've already got 
2730: 66 65 77 20 62 61 73 69 63 20 6e 6f 74 69 6f 6e  few basic notion
2740: 73 20 61 62 6f 75 74 20 3c 62 3e 3c 69 3e 52 61  s about <b><i>Ra
2750: 73 74 65 72 53 79 6d 62 6f 6c 69 7a 65 72 3c 2f  sterSymbolizer</
2760: 69 3e 3c 2f 62 3e 20 64 75 72 69 6e 67 20 74 68  i></b> during th
2770: 65 20 70 72 65 76 69 6f 75 73 20 3c 62 3e 54 72  e previous <b>Tr
2780: 69 65 73 74 65 3c 2f 62 3e 20 61 6e 64 20 3c 62  ieste</b> and <b
2790: 3e 4f 72 62 65 74 65 6c 6c 6f 3c 2f 62 3e 20 74  >Orbetello</b> t
27a0: 75 74 6f 72 69 61 6c 73 3a 20 6e 6f 77 20 77 65  utorials: now we
27b0: 27 6c 6c 20 65 78 61 6d 69 6e 65 20 61 20 64 69  'll examine a di
27c0: 66 66 65 72 65 6e 74 20 53 79 6d 62 6f 6c 69 7a  fferent Symboliz
27d0: 65 72 2c 20 69 2e 65 2e 20 3c 62 3e 3c 69 3e 43  er, i.e. <b><i>C
27e0: 6f 6c 6f 72 4d 61 70 3c 2f 69 3e 3c 2f 62 3e 3a  olorMap</i></b>:
27f0: 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 61 20 43 6f  ..<ul>..<li>a Co
2800: 6c 6f 72 20 4d 61 70 20 73 69 6d 70 6c 79 20 72  lor Map simply r
2810: 65 70 72 65 73 65 6e 74 73 20 61 20 3c 61 20 68  epresents a <a h
2820: 72 65 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77  ref="http://en.w
2830: 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b  ikipedia.org/wik
2840: 69 2f 4c 6f 6f 6b 75 70 5f 74 61 62 6c 65 22 3e  i/Lookup_table">
2850: 6c 6f 6f 6b 75 70 20 74 61 62 6c 65 3c 2f 61 3e  lookup table</a>
2860: 2e 20 59 6f 75 20 63 61 6e 20 66 72 65 65 6c 79  . You can freely
2870: 20 64 65 66 69 6e 65 20 6f 6e 65 20 28 6f 72 20   define one (or 
2880: 70 6f 73 73 69 62 6c 79 20 6d 6f 72 65 20 74 68  possibly more th
2890: 61 6e 20 6f 6e 65 29 20 3c 61 20 68 72 65 66 3d  an one) <a href=
28a0: 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 69 6b 69 70  "http://en.wikip
28b0: 65 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 49 6e  edia.org/wiki/In
28c0: 74 65 72 76 61 6c 5f 25 32 38 6d 61 74 68 65 6d  terval_%28mathem
28d0: 61 74 69 63 73 25 32 39 22 3e 69 6e 74 65 72 76  atics%29">interv
28e0: 61 6c 73 3c 2f 61 3e 2c 20 61 6e 64 20 69 6e 20  als</a>, and in 
28f0: 74 68 65 20 6f 75 74 70 75 74 20 69 6d 61 67 65  the output image
2900: 20 65 61 63 68 20 70 69 78 65 6c 20 77 69 6c 6c   each pixel will
2910: 20 74 68 65 6e 20 72 65 63 65 69 76 65 20 74 68   then receive th
2920: 65 20 61 70 70 72 6f 70 72 69 61 74 65 20 63 6f  e appropriate co
2930: 6c 6f 72 20 6d 61 74 63 68 69 6e 67 20 74 68 65  lor matching the
2940: 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 69   corresponding i
2950: 6e 74 65 72 76 61 6c 2e 3c 2f 6c 69 3e 0d 0a 3c  nterval.</li>..<
2960: 6c 69 3e 3c 75 3e 52 65 63 61 6c 6c 3c 2f 75 3e  li><u>Recall</u>
2970: 3a 20 74 68 65 20 3c 62 3e 3c 69 3e 45 54 4f 50  : the <b><i>ETOP
2980: 4f 31 3c 2f 69 3e 3c 2f 62 3e 20 73 61 6d 70 6c  O1</i></b> sampl
2990: 65 20 69 73 20 61 20 44 69 67 69 74 61 6c 20 45  e is a Digital E
29a0: 6c 65 76 61 74 69 6f 6e 20 4d 6f 64 65 6c 20 61  levation Model a
29b0: 6e 64 20 65 61 63 68 20 70 69 78 65 6c 20 76 61  nd each pixel va
29c0: 6c 75 65 20 63 6f 72 72 65 73 70 6f 6e 64 73 20  lue corresponds 
29d0: 74 6f 20 61 6e 20 3c 75 3e 3c 69 3e 65 6c 65 76  to an <u><i>elev
29e0: 61 74 69 6f 6e 20 6d 65 61 73 75 72 65 3c 2f 69  ation measure</i
29f0: 3e 3c 2f 75 3e 2e 20 53 6f 20 79 6f 75 20 63 61  ></u>. So you ca
2a00: 6e 20 6e 6f 77 20 64 65 66 69 6e 65 20 61 73 20  n now define as 
2a10: 6d 75 63 68 20 65 6c 65 76 61 74 69 6f 6e 20 69  much elevation i
2a20: 6e 74 65 72 76 61 6c 73 20 61 73 20 79 6f 75 20  ntervals as you 
2a30: 77 69 73 68 2c 20 61 6e 64 20 65 61 63 68 20 69  wish, and each i
2a40: 6e 74 65 72 76 61 6c 20 77 69 6c 6c 20 63 6f 72  nterval will cor
2a50: 72 65 73 70 6f 6e 64 20 74 6f 20 73 6f 6d 65 20  respond to some 
2a60: 63 6f 6c 6f 72 20 6f 66 20 79 6f 75 72 20 63 68  color of your ch
2a70: 6f 69 63 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e  oice.</li>..<li>
2a80: 3c 62 3e 3c 69 3e 43 6f 6c 6f 72 4d 61 70 3c 2f  <b><i>ColorMap</
2a90: 69 3e 3c 2f 62 3e 20 73 75 70 70 6f 72 74 73 20  i></b> supports 
2aa0: 74 77 6f 20 64 69 66 66 65 72 65 6e 74 20 66 6c  two different fl
2ab0: 61 76 6f 72 73 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c  avors:..<ul>..<l
2ac0: 69 3e 3c 62 3e 3c 69 3e 49 6e 74 65 72 70 6f 6c  i><b><i>Interpol
2ad0: 61 74 65 3c 2f 69 3e 3c 2f 62 3e 20 69 6e 74 65  ate</i></b> inte
2ae0: 6e 64 73 20 74 68 61 74 20 65 61 63 68 20 69 6e  nds that each in
2af0: 74 65 72 76 61 6c 20 68 61 73 20 61 20 3c 75 3e  terval has a <u>
2b00: 3c 69 3e 73 74 61 72 74 3c 2f 69 3e 3c 2f 75 3e  <i>start</i></u>
2b10: 20 61 6e 64 20 61 20 3c 75 3e 3c 69 3e 73 74 6f   and a <u><i>sto
2b20: 70 20 63 6f 6c 6f 72 3c 2f 69 3e 3c 2f 75 3e 3a  p color</i></u>:
2b30: 20 74 68 65 20 61 63 74 75 61 6c 20 70 69 78 65   the actual pixe
2b40: 6c 20 63 6f 6c 6f 72 20 77 69 6c 6c 20 74 68 65  l color will the
2b50: 6e 20 62 65 20 74 68 65 20 6f 6e 65 20 70 72 65  n be the one pre
2b60: 63 69 73 65 6c 79 20 6d 61 74 63 68 69 6e 67 20  cisely matching 
2b70: 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e  the correspondin
2b80: 67 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70 3a  g <a href="http:
2b90: 2f 2f 65 6e 2e 77 69 6b 69 70 65 64 69 61 2e 6f  //en.wikipedia.o
2ba0: 72 67 2f 77 69 6b 69 2f 43 6f 6c 6f 72 5f 67 72  rg/wiki/Color_gr
2bb0: 61 64 69 65 6e 74 22 3e 63 6f 6c 6f 72 20 67 72  adient">color gr
2bc0: 61 64 69 65 6e 74 3c 2f 61 3e 2e 3c 2f 6c 69 3e  adient</a>.</li>
2bd0: 0d 0a 3c 6c 69 3e 3c 62 3e 3c 69 3e 43 61 74 65  ..<li><b><i>Cate
2be0: 67 6f 72 69 7a 65 3c 2f 69 3e 3c 2f 62 3e 20 6f  gorize</i></b> o
2bf0: 6e 20 74 68 65 20 6f 74 68 65 72 20 68 61 6e 64  n the other hand
2c00: 20 69 6e 74 65 6e 64 73 20 74 68 61 74 20 61 6e   intends that an
2c10: 79 20 70 69 78 65 6c 73 20 76 61 6c 75 65 20 6d  y pixels value m
2c20: 61 74 63 68 69 6e 67 20 61 6e 20 69 6e 74 65 72  atching an inter
2c30: 76 61 6c 20 77 69 6c 6c 20 61 6c 77 61 79 73 20  val will always 
2c40: 62 65 20 72 65 70 72 65 73 65 6e 74 65 64 20 62  be represented b
2c50: 79 20 74 68 65 20 73 61 6d 65 20 69 64 65 6e 74  y the same ident
2c60: 69 63 61 6c 20 63 6f 6c 6f 72 2e 3c 2f 6c 69 3e  ical color.</li>
2c70: 0d 0a 3c 2f 75 6c 3e 3c 2f 6c 69 3e 0d 0a 3c 2f  ..</ul></li>..</
2c80: 75 6c 3e 0d 0a 3c 68 34 3e 34 2e 33 29 20 69 6d  ul>..<h4>4.3) im
2c90: 70 6f 72 74 69 6e 67 20 61 6c 6c 20 52 61 73 74  porting all Rast
2ca0: 65 72 53 79 6d 62 6f 6c 69 7a 65 72 73 20 69 6e  erSymbolizers in
2cb0: 74 6f 20 74 68 65 20 44 42 2d 66 69 6c 65 3c 2f  to the DB-file</
2cc0: 68 34 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d  h4>..<verbatim>.
2cd0: 0a 24 20 73 71 6c 69 74 65 33 20 65 61 72 74 68  .$ sqlite3 earth
2ce0: 2e 73 71 6c 69 74 65 0d 0a 53 51 4c 69 74 65 20  .sqlite..SQLite 
2cf0: 76 65 72 73 69 6f 6e 20 33 2e 38 2e 34 2e 32 20  version 3.8.4.2 
2d00: 32 30 31 34 2d 30 33 2d 32 36 20 31 38 3a 35 31  2014-03-26 18:51
2d10: 3a 31 39 0d 0a 45 6e 74 65 72 20 22 2e 68 65 6c  :19..Enter ".hel
2d20: 70 22 20 66 6f 72 20 75 73 61 67 65 20 68 69 6e  p" for usage hin
2d30: 74 73 2e 0d 0a 73 71 6c 69 74 65 3e 20 2e 6e 75  ts...sqlite> .nu
2d40: 6c 6c 20 4e 55 4c 4c 0d 0a 73 71 6c 69 74 65 3e  ll NULL..sqlite>
2d50: 20 53 45 4c 45 43 54 20 6c 6f 61 64 5f 65 78 74   SELECT load_ext
2d60: 65 6e 73 69 6f 6e 28 27 6d 6f 64 5f 73 70 61 74  ension('mod_spat
2d70: 69 61 6c 69 74 65 27 29 3b 0d 0a 4e 55 4c 4c 0d  ialite');..NULL.
2d80: 0a 73 71 6c 69 74 65 3e 20 53 45 4c 45 43 54 20  .sqlite> SELECT 
2d90: 43 72 65 61 74 65 53 74 79 6c 69 6e 67 54 61 62  CreateStylingTab
2da0: 6c 65 73 28 29 3b 0d 0a 31 0d 0a 73 71 6c 69 74  les();..1..sqlit
2db0: 65 3e 20 53 45 4c 45 43 54 20 52 65 67 69 73 74  e> SELECT Regist
2dc0: 65 72 52 61 73 74 65 72 53 74 79 6c 65 64 4c 61  erRasterStyledLa
2dd0: 79 65 72 28 27 65 74 6f 70 6f 31 5f 64 65 6d 27  yer('etopo1_dem'
2de0: 2c 0d 0a 20 20 20 2e 2e 2e 3e 20 58 42 5f 43 72  ,..   ...> XB_Cr
2df0: 65 61 74 65 28 58 42 5f 4c 6f 61 64 58 4d 4c 28  eate(XB_LoadXML(
2e00: 27 2e 2f 65 74 6f 70 6f 31 5f 73 74 79 6c 65 73  './etopo1_styles
2e10: 2f 65 74 6f 70 6f 2e 78 6d 6c 27 29 2c 20 31 2c  /etopo.xml'), 1,
2e20: 20 31 29 29 3b 0d 0a 31 0d 0a 73 71 6c 69 74 65   1));..1..sqlite
2e30: 3e 20 53 45 4c 45 43 54 20 52 65 67 69 73 74 65  > SELECT Registe
2e40: 72 52 61 73 74 65 72 53 74 79 6c 65 64 4c 61 79  rRasterStyledLay
2e50: 65 72 28 27 65 74 6f 70 6f 31 5f 64 65 6d 27 2c  er('etopo1_dem',
2e60: 0d 0a 20 20 20 2e 2e 2e 3e 20 58 42 5f 43 72 65  ..   ...> XB_Cre
2e70: 61 74 65 28 58 42 5f 4c 6f 61 64 58 4d 4c 28 27  ate(XB_LoadXML('
2e80: 2e 2f 65 74 6f 70 6f 31 5f 73 74 79 6c 65 73 2f  ./etopo1_styles/
2e90: 65 74 6f 70 6f 5f 63 61 74 65 67 6f 72 69 7a 65  etopo_categorize
2ea0: 2e 78 6d 6c 27 29 2c 20 31 2c 20 31 29 29 3b 0d  .xml'), 1, 1));.
2eb0: 0a 31 0d 0a 73 71 6c 69 74 65 3e 20 53 45 4c 45  .1..sqlite> SELE
2ec0: 43 54 20 52 65 67 69 73 74 65 72 52 61 73 74 65  CT RegisterRaste
2ed0: 72 53 74 79 6c 65 64 4c 61 79 65 72 28 27 65 74  rStyledLayer('et
2ee0: 6f 70 6f 31 5f 64 65 6d 27 2c 0d 0a 20 20 20 2e  opo1_dem',..   .
2ef0: 2e 2e 3e 20 58 42 5f 43 72 65 61 74 65 28 58 42  ..> XB_Create(XB
2f00: 5f 4c 6f 61 64 58 4d 4c 28 27 2e 2f 65 74 6f 70  _LoadXML('./etop
2f10: 6f 31 5f 73 74 79 6c 65 73 2f 74 65 72 72 61 69  o1_styles/terrai
2f20: 6e 2e 78 6d 6c 27 29 2c 20 31 2c 20 31 29 29 3b  n.xml'), 1, 1));
2f30: 0d 0a 31 0d 0a 73 71 6c 69 74 65 3e 20 53 45 4c  ..1..sqlite> SEL
2f40: 45 43 54 20 52 65 67 69 73 74 65 72 52 61 73 74  ECT RegisterRast
2f50: 65 72 53 74 79 6c 65 64 4c 61 79 65 72 28 27 65  erStyledLayer('e
2f60: 74 6f 70 6f 31 5f 64 65 6d 27 2c 0d 0a 20 20 20  topo1_dem',..   
2f70: 2e 2e 2e 3e 20 58 42 5f 43 72 65 61 74 65 28 58  ...> XB_Create(X
2f80: 42 5f 4c 6f 61 64 58 4d 4c 28 27 2e 2f 65 74 6f  B_LoadXML('./eto
2f90: 70 6f 31 5f 73 74 79 6c 65 73 2f 73 72 74 6d 5f  po1_styles/srtm_
2fa0: 70 6c 75 73 2e 78 6d 6c 27 29 2c 20 31 2c 20 31  plus.xml'), 1, 1
2fb0: 29 29 3b 0d 0a 31 0d 0a 73 71 6c 69 74 65 3e 20  ));..1..sqlite> 
2fc0: 2e 71 75 69 74 0d 0a 24 0d 0a 3c 2f 76 65 72 62  .quit..$..</verb
2fd0: 61 74 69 6d 3e 0d 0a 54 68 69 73 20 73 74 65 70  atim>..This step
2fe0: 20 65 78 61 63 74 6c 79 20 63 6f 72 72 65 73 70   exactly corresp
2ff0: 6f 6e 64 73 20 74 6f 20 74 68 65 20 74 61 73 6b  onds to the task
3000: 20 61 6c 72 65 61 64 79 20 65 78 70 6c 61 69 6e   already explain
3010: 65 64 20 69 6e 20 74 68 65 20 3c 62 3e 3c 69 3e  ed in the <b><i>
3020: 54 72 69 65 73 74 65 3c 2f 69 3e 3c 2f 62 3e 20  Trieste</i></b> 
3030: 61 6e 64 20 3c 62 3e 3c 69 3e 4f 72 62 65 74 65  and <b><i>Orbete
3040: 6c 6c 6f 3c 2f 69 3e 3c 2f 62 3e 20 74 75 74 6f  llo</i></b> tuto
3050: 72 69 61 6c 73 2e 0d 0a 3c 68 33 3e 53 74 65 70  rials...<h3>Step
3060: 20 35 29 20 74 65 73 74 69 6e 67 20 74 68 65 20   5) testing the 
3070: 45 54 4f 50 4f 31 5f 44 45 4d 20 73 61 6d 70 6c  ETOPO1_DEM sampl
3080: 65 20 28 61 6e 64 20 70 6c 61 79 69 6e 67 20 77  e (and playing w
3090: 69 74 68 20 53 74 79 6c 65 73 29 3c 2f 68 33 3e  ith Styles)</h3>
30a0: 0d 0a 41 73 20 79 6f 75 27 76 65 20 61 6c 72 65  ..As you've alre
30b0: 61 64 79 20 64 6f 6e 65 20 69 6e 20 61 6e 79 20  ady done in any 
30c0: 70 72 65 76 69 6f 75 73 20 3c 62 3e 3c 69 3e 74  previous <b><i>t
30d0: 75 74 6f 72 69 61 6c 3c 2f 69 3e 3c 2f 62 3e 20  utorial</i></b> 
30e0: 79 6f 75 20 63 61 6e 20 6e 6f 77 20 64 69 72 65  you can now dire
30f0: 63 74 6c 79 20 74 65 73 74 20 74 68 65 20 45 54  ctly test the ET
3100: 4f 50 4f 31 5f 44 45 4d 20 43 6f 76 65 72 61 67  OPO1_DEM Coverag
3110: 65 20 62 79 20 70 75 62 6c 69 73 68 69 6e 67 20  e by publishing 
3120: 61 20 73 74 61 6e 64 61 72 64 20 57 4d 53 20 73  a standard WMS s
3130: 65 72 76 69 63 65 2e 3c 62 72 3e 0d 0a 59 6f 75  ervice.<br>..You
3140: 20 73 69 6d 70 6c 79 20 68 61 76 65 20 74 6f 20   simply have to 
3150: 73 74 61 72 74 20 74 68 65 20 3c 62 3e 3c 69 3e  start the <b><i>
3160: 77 6d 73 6c 69 74 65 3c 2f 69 3e 3c 2f 62 3e 20  wmslite</i></b> 
3170: 6c 69 67 68 74 2d 77 65 69 67 68 74 20 73 65 72  light-weight ser
3180: 76 65 72 2c 20 74 68 65 6e 20 63 6f 6e 6e 65 63  ver, then connec
3190: 74 69 6e 67 20 73 6f 6d 65 20 57 4d 53 20 76 69  ting some WMS vi
31a0: 65 77 65 72 20 28 65 2e 67 2e 20 3c 62 3e 3c 69  ewer (e.g. <b><i
31b0: 3e 4c 69 62 72 65 57 4d 53 3c 2f 69 3e 3c 2f 62  >LibreWMS</i></b
31c0: 3e 29 20 74 6f 20 74 68 65 20 73 65 72 76 69 63  >) to the servic
31d0: 65 20 62 65 69 6e 67 20 70 75 62 6c 69 73 68 65  e being publishe
31e0: 64 20 6f 6e 20 3c 62 3e 3c 69 3e 6c 6f 63 61 6c  d on <b><i>local
31f0: 68 6f 73 74 3c 2f 69 3e 3c 2f 62 3e 20 61 6b 61  host</i></b> aka
3200: 20 49 50 20 61 64 64 72 65 73 73 20 3c 62 3e 3c   IP address <b><
3210: 69 3e 31 32 37 2e 30 2e 30 2e 31 3c 2f 69 3e 3c  i>127.0.0.1</i><
3220: 2f 62 3e 2c 20 70 6f 72 74 20 3c 62 3e 3c 69 3e  /b>, port <b><i>
3230: 38 30 38 30 3c 2f 69 3e 3c 2f 62 3e 2e 3c 62 72  8080</i></b>.<br
3240: 3e 3c 62 72 3e 0d 0a 3c 69 6d 67 20 73 72 63 3d  ><br>..<img src=
3250: 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69  "https://www.gai
3260: 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69  a-gis.it/gaia-si
3270: 6e 73 2f 72 61 73 74 65 72 6c 69 74 65 32 2d 70  ns/rasterlite2-p
3280: 69 63 2f 65 74 6f 70 6f 31 2d 64 65 66 61 75 6c  ic/etopo1-defaul
3290: 74 2e 70 6e 67 22 20 61 6c 74 3d 22 45 54 4f 50  t.png" alt="ETOP
32a0: 4f 31 20 64 65 66 61 75 6c 74 22 3e 3c 62 72 3e  O1 default"><br>
32b0: 0d 0a 54 68 69 73 20 66 69 72 73 74 20 65 78 61  ..This first exa
32c0: 6d 70 6c 65 20 63 6f 72 72 65 73 70 6f 6e 64 73  mple corresponds
32d0: 20 74 6f 20 74 68 65 20 3c 75 3e 64 65 66 61 75   to the <u>defau
32e0: 6c 74 3c 2f 75 3e 20 53 74 79 6c 65 20 28 6e 6f  lt</u> Style (no
32f0: 20 52 61 73 74 65 72 53 79 6d 62 6f 6c 69 7a 65   RasterSymbolize
3300: 72 20 61 74 20 61 6c 6c 29 3a 20 69 6e 20 74 68  r at all): in th
3310: 69 73 20 63 61 73 65 20 6a 75 73 74 20 61 20 62  is case just a b
3320: 61 73 69 63 20 47 72 61 79 73 63 61 6c 65 20 72  asic Grayscale r
3330: 65 6e 64 65 72 69 6e 67 20 69 73 20 61 70 70 6c  endering is appl
3340: 69 65 64 2e 20 4e 6f 74 20 61 20 72 65 61 6c 6c  ied. Not a reall
3350: 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 6f 70  y interesting op
3360: 74 69 6f 6e 2e 3c 62 72 3e 3c 62 72 3e 0d 0a 3c  tion.<br><br>..<
3370: 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f  img src="https:/
3380: 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74  /www.gaia-gis.it
3390: 2f 67 61 69 61 2d 73 69 6e 73 2f 72 61 73 74 65  /gaia-sins/raste
33a0: 72 6c 69 74 65 32 2d 70 69 63 2f 65 74 6f 70 6f  rlite2-pic/etopo
33b0: 31 2d 65 74 6f 70 6f 2d 63 61 74 65 67 6f 72 69  1-etopo-categori
33c0: 7a 65 2e 70 6e 67 22 20 61 6c 74 3d 22 45 54 4f  ze.png" alt="ETO
33d0: 50 4f 31 20 63 61 74 65 67 6f 72 69 7a 65 22 3e  PO1 categorize">
33e0: 3c 62 72 3e 0d 0a 54 68 69 73 20 73 65 63 6f 6e  <br>..This secon
33f0: 64 20 65 78 61 6d 70 6c 65 20 63 6f 72 72 65 73  d example corres
3400: 70 6f 6e 64 73 20 74 6f 20 74 68 65 20 3c 62 3e  ponds to the <b>
3410: 65 74 6f 70 6f 5f 63 61 74 65 67 6f 72 69 7a 65  etopo_categorize
3420: 3c 2f 62 3e 20 73 74 79 6c 65 2e 3c 62 72 3e 0d  </b> style.<br>.
3430: 0a 59 6f 75 20 63 61 6e 20 6e 6f 77 20 66 75 6c  .You can now ful
3440: 6c 79 20 61 70 70 72 65 63 69 61 74 65 20 77 68  ly appreciate wh
3450: 61 74 20 61 20 3c 62 3e 43 6f 6c 6f 72 4d 61 70  at a <b>ColorMap
3460: 3c 2f 62 3e 20 6f 66 20 74 68 65 20 3c 62 3e 43  </b> of the <b>C
3470: 61 74 65 67 6f 72 69 7a 65 3c 2f 62 3e 20 74 79  ategorize</b> ty
3480: 70 65 20 72 65 61 6c 6c 79 20 6d 65 61 6e 73 3b  pe really means;
3490: 20 61 6c 6c 20 65 6c 65 76 61 74 69 6f 6e 73 20   all elevations 
34a0: 66 61 6c 6c 69 6e 67 20 77 69 74 68 69 6e 20 74  falling within t
34b0: 68 65 20 73 61 6d 65 20 63 6c 61 73 73 20 69 6e  he same class in
34c0: 74 65 72 76 61 6c 20 68 61 76 65 20 20 74 68 65  terval have  the
34d0: 20 73 61 6d 65 20 69 64 65 6e 74 69 63 61 6c 20   same identical 
34e0: 63 6f 6c 6f 72 2c 20 61 6e 64 20 74 68 65 20 66  color, and the f
34f0: 69 6e 61 6c 20 72 65 73 75 6c 74 20 69 73 20 61  inal result is a
3500: 6e 20 75 6e 70 6c 65 61 73 61 6e 74 20 75 67 6c  n unpleasant ugl
3510: 79 20 6d 61 70 2e 3c 62 72 3e 3c 62 72 3e 20 0d  y map.<br><br> .
3520: 0a 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73  .<img src="https
3530: 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e  ://www.gaia-gis.
3540: 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 72 61 73  it/gaia-sins/ras
3550: 74 65 72 6c 69 74 65 32 2d 70 69 63 2f 65 74 6f  terlite2-pic/eto
3560: 70 6f 31 2d 65 74 6f 70 6f 2e 70 6e 67 22 20 61  po1-etopo.png" a
3570: 6c 74 3d 22 45 54 4f 50 4f 31 20 65 74 6f 70 6f  lt="ETOPO1 etopo
3580: 20 73 74 79 6c 65 22 3e 3c 62 72 3e 0d 0a 54 68   style"><br>..Th
3590: 69 73 20 74 68 69 72 64 20 65 78 61 6d 70 6c 65  is third example
35a0: 20 63 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f 20   corresponds to 
35b0: 74 68 65 20 3c 62 3e 65 74 6f 70 6f 3c 2f 62 3e  the <b>etopo</b>
35c0: 20 73 74 79 6c 65 3b 20 6e 6f 77 20 74 68 65 20   style; now the 
35d0: 3c 62 3e 43 6f 6c 6f 72 4d 61 70 3c 2f 62 3e 20  <b>ColorMap</b> 
35e0: 69 73 20 6f 66 20 74 68 65 20 3c 62 3e 49 6e 74  is of the <b>Int
35f0: 65 72 70 6f 6c 61 74 65 3c 2f 62 3e 20 74 79 70  erpolate</b> typ
3600: 65 2c 20 61 6e 64 20 74 68 65 20 66 69 6e 61 6c  e, and the final
3610: 20 72 65 73 75 6c 74 20 69 73 20 6d 75 63 68 20   result is much 
3620: 6d 6f 72 65 20 62 72 69 6c 6c 69 61 6e 74 20 74  more brilliant t
3630: 68 65 6e 20 62 65 66 6f 72 65 2e 3c 62 72 3e 0d  hen before.<br>.
3640: 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 20  .<u>Please note 
3650: 77 65 6c 6c 3c 2f 75 3e 3a 20 62 6f 74 68 20 74  well</u>: both t
3660: 68 65 20 3c 62 3e 65 74 6f 70 6f 5f 63 61 74 65  he <b>etopo_cate
3670: 67 6f 72 69 7a 65 3c 2f 62 3e 20 61 6e 64 20 74  gorize</b> and t
3680: 68 65 20 3c 62 3e 65 74 6f 70 6f 3c 2f 62 3e 20  he <b>etopo</b> 
3690: 73 74 79 6c 65 20 73 68 61 72 65 20 65 78 61 63  style share exac
36a0: 74 6c 79 20 74 68 65 20 73 61 6d 65 20 69 64 65  tly the same ide
36b0: 6e 74 69 63 61 6c 20 3c 62 3e 43 6f 6c 6f 72 4d  ntical <b>ColorM
36c0: 61 70 3c 2f 62 3e 3b 20 62 75 74 20 74 68 65 20  ap</b>; but the 
36d0: 3c 62 3e 65 74 6f 70 6f 3c 2f 62 3e 20 73 74 79  <b>etopo</b> sty
36e0: 6c 65 20 73 75 70 70 6f 72 74 73 20 74 68 65 20  le supports the 
36f0: 3c 62 3e 49 6e 74 65 72 70 6f 6c 61 74 65 3c 2f  <b>Interpolate</
3700: 62 3e 20 72 65 6e 64 65 72 69 6e 67 2c 20 74 68  b> rendering, th
3710: 75 73 20 70 72 6f 64 75 63 69 6e 67 20 61 20 77  us producing a w
3720: 69 64 65 20 72 61 6e 67 65 20 6f 66 20 64 69 66  ide range of dif
3730: 66 65 72 65 6e 74 20 63 6f 6c 6f 72 20 73 68 61  ferent color sha
3740: 64 65 73 2c 20 61 6e 64 20 74 68 65 20 6f 76 65  des, and the ove
3750: 72 61 6c 6c 20 65 66 66 65 63 74 20 73 75 72 65  rall effect sure
3760: 6c 79 20 69 73 20 61 20 70 6c 65 61 73 61 6e 74  ly is a pleasant
3770: 20 6f 6e 65 2e 3c 62 72 3e 3c 62 72 3e 0d 0a 3c   one.<br><br>..<
3780: 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f  img src="https:/
3790: 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74  /www.gaia-gis.it
37a0: 2f 67 61 69 61 2d 73 69 6e 73 2f 72 61 73 74 65  /gaia-sins/raste
37b0: 72 6c 69 74 65 32 2d 70 69 63 2f 65 74 6f 70 6f  rlite2-pic/etopo
37c0: 31 2d 74 65 72 72 61 69 6e 2e 70 6e 67 22 20 61  1-terrain.png" a
37d0: 6c 74 3d 22 45 54 4f 50 4f 31 20 74 65 72 72 61  lt="ETOPO1 terra
37e0: 69 6e 22 3e 3c 62 72 3e 0d 0a 54 68 69 73 20 66  in"><br>..This f
37f0: 6f 75 72 74 68 20 65 78 61 6d 70 6c 65 20 63 6f  ourth example co
3800: 72 72 65 73 70 6f 6e 64 73 20 74 6f 20 74 68 65  rresponds to the
3810: 20 3c 62 3e 74 65 72 72 61 69 6e 3c 2f 62 3e 20   <b>terrain</b> 
3820: 73 74 79 6c 65 3b 20 69 74 27 73 20 76 65 72 79  style; it's very
3830: 20 73 69 6d 69 6c 61 72 20 74 6f 20 3c 62 3e 65   similar to <b>e
3840: 74 6f 70 6f 3c 2f 62 3e 2c 20 62 75 74 20 69 6e  topo</b>, but in
3850: 20 74 68 69 73 20 63 61 73 65 20 64 65 65 70 20   this case deep 
3860: 77 61 74 65 72 73 20 61 72 65 20 73 69 6d 70 6c  waters are simpl
3870: 79 20 72 65 70 72 65 73 65 6e 74 65 64 20 61 73  y represented as
3880: 20 62 6c 61 63 6b 20 61 72 65 61 73 2c 20 73 6f   black areas, so
3890: 20 74 6f 20 66 6f 63 75 73 20 74 68 65 20 61 74   to focus the at
38a0: 74 65 6e 74 69 6f 6e 20 6f 6e 20 4c 61 6e 64 73  tention on Lands
38b0: 20 61 6e 64 20 6e 65 61 72 62 79 20 73 68 61 6c   and nearby shal
38c0: 6c 6f 77 20 77 61 74 65 72 73 2e 3c 62 72 3e 3c  low waters.<br><
38d0: 62 72 3e 0d 0a 3c 69 6d 67 20 73 72 63 3d 22 68  br>..<img src="h
38e0: 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d  ttps://www.gaia-
38f0: 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73  gis.it/gaia-sins
3900: 2f 72 61 73 74 65 72 6c 69 74 65 32 2d 70 69 63  /rasterlite2-pic
3910: 2f 65 74 6f 70 6f 31 2d 73 72 74 6d 2d 70 6c 75  /etopo1-srtm-plu
3920: 73 2e 70 6e 67 22 20 61 6c 74 3d 22 45 54 4f 50  s.png" alt="ETOP
3930: 4f 31 20 73 72 74 6d 5f 70 6c 75 73 22 3e 3c 62  O1 srtm_plus"><b
3940: 72 3e 0d 0a 54 68 69 73 20 66 69 6e 61 6c 20 65  r>..This final e
3950: 78 61 6d 70 6c 65 20 63 6f 72 72 65 73 70 6f 6e  xample correspon
3960: 64 73 20 74 6f 20 74 68 65 20 3c 62 3e 73 72 74  ds to the <b>srt
3970: 6d 5f 70 6c 75 73 3c 2f 62 3e 20 73 74 79 6c 65  m_plus</b> style
3980: 2e 20 41 73 20 79 6f 75 20 63 61 6e 20 65 61 73  . As you can eas
3990: 69 6c 79 20 6e 6f 74 69 63 65 2c 20 69 74 27 73  ily notice, it's
39a0: 20 6e 6f 74 20 61 74 20 61 6c 6c 20 64 69 66 66   not at all diff
39b0: 69 63 75 6c 74 20 63 72 65 61 74 69 6e 67 20 63  icult creating c
39c0: 6f 6d 70 6c 65 74 65 6c 79 20 64 69 66 66 65 72  ompletely differ
39d0: 65 6e 74 20 6d 61 70 73 20 73 74 61 72 74 69 6e  ent maps startin
39e0: 67 20 66 72 6f 6d 20 74 68 65 20 73 61 6d 65 20  g from the same 
39f0: 69 64 65 6e 74 69 63 61 6c 20 44 45 4d 20 43 6f  identical DEM Co
3a00: 76 65 72 61 67 65 3b 20 79 6f 75 20 61 72 65 20  verage; you are 
3a10: 73 69 6d 70 6c 79 20 72 65 71 75 69 72 65 64 20  simply required 
3a20: 74 6f 20 64 65 66 69 6e 65 20 66 65 77 20 61 6c  to define few al
3a30: 74 65 72 6e 61 74 69 76 65 20 53 74 79 6c 65 73  ternative Styles
3a40: 20 61 6e 64 20 74 68 61 74 27 73 20 61 6c 6c 2e   and that's all.
3a50: 3c 62 72 3e 0d 0a 41 6e 64 20 75 73 69 6e 67 20  <br>..And using 
3a60: 74 68 65 20 73 74 61 6e 64 61 72 64 20 63 61 70  the standard cap
3a70: 61 62 69 6c 69 74 69 65 73 20 73 75 70 70 6f 72  abilities suppor
3a80: 74 65 64 20 62 79 20 74 68 65 20 57 4d 53 20 70  ted by the WMS p
3a90: 72 6f 74 6f 63 6f 6c 20 73 77 69 74 63 68 69 6e  rotocol switchin
3aa0: 67 20 66 72 6f 6d 20 61 20 53 74 79 6c 65 20 74  g from a Style t
3ab0: 6f 20 74 68 65 20 6f 74 68 65 72 20 63 61 6e 20  o the other can 
3ac0: 62 65 20 70 65 72 66 6f 72 6d 65 64 20 69 6e 20  be performed in 
3ad0: 74 68 65 20 6d 6f 73 74 20 73 69 6d 70 6c 65 20  the most simple 
3ae0: 61 6e 64 20 64 79 6e 61 6d 69 63 20 77 61 79 2e  and dynamic way.
3af0: 0d 0a 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 68 72 3e  ..<br><br>..<hr>
3b00: 3c 62 72 3e 0d 0a 42 61 63 6b 20 74 6f 20 3c 61  <br>..Back to <a
3b10: 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 77   href="https://w
3b20: 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 66  ww.gaia-gis.it/f
3b30: 6f 73 73 69 6c 2f 6c 69 62 72 61 73 74 65 72 6c  ossil/librasterl
3b40: 69 74 65 32 2f 77 69 6b 69 3f 6e 61 6d 65 3d 74  ite2/wiki?name=t
3b50: 75 74 6f 72 69 61 6c 73 22 3e 52 61 73 74 65 72  utorials">Raster
3b60: 4c 69 74 65 32 20 54 75 74 6f 72 69 61 6c 73 20  Lite2 Tutorials 
3b70: 69 6e 64 65 78 3c 2f 61 3e 0a 5a 20 33 64 30 31  index</a>.Z 3d01
3b80: 34 66 63 62 62 38 66 61 38 34 64 37 32 61 38 65  4fcbb8fa84d72a8e
3b90: 64 61 33 36 37 34 34 36 39 62 37 33 0a           da3674469b73.