Artifact
f5a4ec1d34be3ee8cf4b5d6e6fdc9ffd12288be9:
Wiki page
[ETOPO1] by
sandro
2014-07-22 16:08:35.
0000: 44 20 32 30 31 34 2d 30 37 2d 32 32 54 31 36 3a D 2014-07-22T16:
0010: 30 38 3a 33 35 2e 38 35 39 0a 4c 20 45 54 4f 50 08:35.859.L ETOP
0020: 4f 31 0a 50 20 38 37 61 63 33 30 63 33 36 62 33 O1.P 87ac30c36b3
0030: 65 30 66 39 62 66 39 34 31 33 33 35 36 66 30 38 e0f9bf9413356f08
0040: 39 62 62 63 36 62 64 62 32 38 30 38 30 0a 55 20 9bbc6bdb28080.U
0050: 73 61 6e 64 72 6f 0a 57 20 31 35 31 33 31 0a 42 sandro.W 15131.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 73 69 6e 73 2f is.it/gaia-sins/
1d10: 72 61 73 74 65 72 6c 69 74 65 32 2d 72 65 73 6f rasterlite2-reso
1d20: 75 72 63 65 73 2f 65 74 6f 70 6f 31 5f 73 74 79 urces/etopo1_sty
1d30: 6c 65 73 2e 7a 69 70 22 3e 68 65 72 65 3c 2f 61 les.zip">here</a
1d40: 3e 3b 20 69 74 20 63 6f 6e 74 61 69 6e 73 20 61 >; it contains a
1d50: 6e 79 20 53 4c 44 2f 53 45 20 52 61 73 74 65 72 ny SLD/SE Raster
1d60: 53 79 6d 62 6f 6c 69 7a 65 72 20 72 65 71 75 69 Symbolizer requi
1d70: 72 65 64 20 62 79 20 74 68 69 73 20 74 75 74 6f red by this tuto
1d80: 72 69 61 6c 2e 0d 0a 3c 68 34 3e 34 2e 32 29 20 rial...<h4>4.2)
1d90: 65 78 70 6c 6f 72 69 6e 67 20 74 68 65 20 53 4c exploring the SL
1da0: 44 2f 53 45 20 52 61 73 74 65 72 53 79 6d 62 6f D/SE RasterSymbo
1db0: 6c 69 7a 65 72 20 61 6e 61 74 6f 6d 79 3c 2f 68 lizer anatomy</h
1dc0: 34 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 4>..<verbatim>..
1dd0: 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 <?xml version="1
1de0: 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54 .0" encoding="UT
1df0: 46 2d 38 22 3f 3e 0d 0a 3c 52 61 73 74 65 72 53 F-8"?>..<RasterS
1e00: 79 6d 62 6f 6c 69 7a 65 72 20 76 65 72 73 69 6f ymbolizer versio
1e10: 6e 3d 22 31 2e 31 2e 30 22 20 0d 0a 09 09 78 73 n="1.1.0" ....xs
1e20: 69 3a 73 63 68 65 6d 61 4c 6f 63 61 74 69 6f 6e i:schemaLocation
1e30: 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e 6f 70 65 ="http://www.ope
1e40: 6e 67 69 73 2e 6e 65 74 2f 73 65 20 68 74 74 70 ngis.net/se http
1e50: 3a 2f 2f 73 63 68 65 6d 61 73 2e 6f 70 65 6e 67 ://schemas.openg
1e60: 69 73 2e 6e 65 74 2f 73 65 2f 31 2e 31 2e 30 2f is.net/se/1.1.0/
1e70: 53 79 6d 62 6f 6c 69 7a 65 72 2e 78 73 64 22 20 Symbolizer.xsd"
1e80: 0d 0a 09 09 78 6d 6c 6e 73 3d 22 68 74 74 70 3a ....xmlns="http:
1e90: 2f 2f 77 77 77 2e 6f 70 65 6e 67 69 73 2e 6e 65 //www.opengis.ne
1ea0: 74 2f 73 65 22 20 0d 0a 09 09 78 6d 6c 6e 73 3a t/se" ....xmlns:
1eb0: 6f 67 63 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e ogc="http://www.
1ec0: 6f 70 65 6e 67 69 73 2e 6e 65 74 2f 6f 67 63 22 opengis.net/ogc"
1ed0: 20 0d 0a 09 09 78 6d 6c 6e 73 3a 78 6c 69 6e 6b ....xmlns:xlink
1ee0: 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e 77 33 2e ="http://www.w3.
1ef0: 6f 72 67 2f 31 39 39 39 2f 78 6c 69 6e 6b 22 20 org/1999/xlink"
1f00: 0d 0a 09 09 78 6d 6c 6e 73 3a 78 73 69 3d 22 68 ....xmlns:xsi="h
1f10: 74 74 70 3a 2f 2f 77 77 77 2e 77 33 2e 6f 72 67 ttp://www.w3.org
1f20: 2f 32 30 30 31 2f 58 4d 4c 53 63 68 65 6d 61 2d /2001/XMLSchema-
1f30: 69 6e 73 74 61 6e 63 65 22 3e 0d 0a 09 3c 4e 61 instance">...<Na
1f40: 6d 65 3e 65 74 6f 70 6f 3c 2f 4e 61 6d 65 3e 0d me>etopo</Name>.
1f50: 0a 09 3c 44 65 73 63 72 69 70 74 69 6f 6e 3e 0d ..<Description>.
1f60: 0a 09 09 3c 54 69 74 6c 65 3e 45 54 4f 50 4f 31 ...<Title>ETOPO1
1f70: 20 43 6f 6c 6f 72 20 4d 61 70 3c 2f 54 69 74 6c Color Map</Titl
1f80: 65 3e 0d 0a 09 09 3c 41 62 73 74 72 61 63 74 3e e>....<Abstract>
1f90: 64 65 72 69 76 65 64 20 66 72 6f 6d 20 74 68 65 derived from the
1fa0: 20 6f 72 69 67 69 6e 61 6c 20 22 65 74 6f 70 6f original "etopo
1fb0: 32 22 20 63 6f 6c 6f 72 20 72 75 6c 65 20 28 47 2" color rule (G
1fc0: 52 41 53 53 20 47 49 53 29 3c 2f 41 62 73 74 72 RASS GIS)</Abstr
1fd0: 61 63 74 3e 0d 0a 09 3c 2f 44 65 73 63 72 69 70 act>...</Descrip
1fe0: 74 69 6f 6e 3e 0d 0a 09 3c 4f 70 61 63 69 74 79 tion>...<Opacity
1ff0: 3e 31 2e 30 3c 2f 4f 70 61 63 69 74 79 3e 0d 0a >1.0</Opacity>..
2000: 09 3c 43 6f 6c 6f 72 4d 61 70 3e 0d 0a 09 09 3c .<ColorMap>....<
2010: 49 6e 74 65 72 70 6f 6c 61 74 65 20 66 61 6c 6c Interpolate fall
2020: 62 61 63 6b 56 61 6c 75 65 3d 22 23 66 66 66 66 backValue="#ffff
2030: 66 66 22 3e 0d 0a 09 09 09 3c 4c 6f 6f 6b 75 70 ff">.....<Lookup
2040: 56 61 6c 75 65 3e 52 61 73 74 65 72 64 61 74 61 Value>Rasterdata
2050: 3c 2f 4c 6f 6f 6b 75 70 56 61 6c 75 65 3e 0d 0a </LookupValue>..
2060: 09 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f ...<Interpolatio
2070: 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61 nPoint>......<Da
2080: 74 61 3e 2d 31 31 30 30 30 2e 30 30 30 30 30 30 ta>-11000.000000
2090: 30 30 3c 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 00</Data>......<
20a0: 56 61 6c 75 65 3e 23 30 30 30 30 30 30 3c 2f 56 Value>#000000</V
20b0: 61 6c 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 alue>.....</Inte
20c0: 72 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d rpolationPoint>.
20d0: 0a 09 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 ....<Interpolati
20e0: 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 onPoint>......<D
20f0: 61 74 61 3e 2d 35 30 30 30 2e 30 30 30 30 30 30 ata>-5000.000000
2100: 30 30 3c 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 00</Data>......<
2110: 56 61 6c 75 65 3e 23 30 30 30 30 36 34 3c 2f 56 Value>#000064</V
2120: 61 6c 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 alue>.....</Inte
2130: 72 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d rpolationPoint>.
2140: 0a 09 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 ....<Interpolati
2150: 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 onPoint>......<D
2160: 61 74 61 3e 2d 31 30 30 30 2e 30 30 30 30 30 30 ata>-1000.000000
2170: 30 30 3c 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 00</Data>......<
2180: 56 61 6c 75 65 3e 23 33 32 33 32 63 38 3c 2f 56 Value>#3232c8</V
2190: 61 6c 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 alue>.....</Inte
21a0: 72 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d rpolationPoint>.
21b0: 0a 09 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 ....<Interpolati
21c0: 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 onPoint>......<D
21d0: 61 74 61 3e 2d 31 2e 30 30 30 30 30 30 30 30 3c ata>-1.00000000<
21e0: 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 56 61 6c /Data>......<Val
21f0: 75 65 3e 23 39 36 39 36 66 66 3c 2f 56 61 6c 75 ue>#9696ff</Valu
2200: 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 72 70 6f e>.....</Interpo
2210: 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 lationPoint>....
2220: 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e 50 .<InterpolationP
2230: 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61 74 61 oint>......<Data
2240: 3e 30 2e 30 30 30 30 30 30 30 30 3c 2f 44 61 74 >0.00000000</Dat
2250: 61 3e 0d 0a 09 09 09 09 3c 56 61 6c 75 65 3e 23 a>......<Value>#
2260: 30 30 39 36 30 30 3c 2f 56 61 6c 75 65 3e 0d 0a 009600</Value>..
2270: 09 09 09 3c 2f 49 6e 74 65 72 70 6f 6c 61 74 69 ...</Interpolati
2280: 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 3c 49 6e onPoint>.....<In
2290: 74 65 72 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 terpolationPoint
22a0: 3e 0d 0a 09 09 09 09 3c 44 61 74 61 3e 32 37 30 >......<Data>270
22b0: 2e 30 30 30 30 30 30 30 30 3c 2f 44 61 74 61 3e .00000000</Data>
22c0: 0d 0a 09 09 09 09 3c 56 61 6c 75 65 3e 23 35 61 ......<Value>#5a
22d0: 61 35 35 61 3c 2f 56 61 6c 75 65 3e 0d 0a 09 09 a55a</Value>....
22e0: 09 3c 2f 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e .</Interpolation
22f0: 50 6f 69 6e 74 3e 0d 0a 09 09 09 3c 49 6e 74 65 Point>.....<Inte
2300: 72 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d rpolationPoint>.
2310: 0a 09 09 09 09 3c 44 61 74 61 3e 33 30 30 2e 30 .....<Data>300.0
2320: 30 30 30 30 30 30 30 3c 2f 44 61 74 61 3e 0d 0a 0000000</Data>..
2330: 09 09 09 09 3c 56 61 6c 75 65 3e 23 35 61 61 66 ....<Value>#5aaf
2340: 35 61 3c 2f 56 61 6c 75 65 3e 0d 0a 09 09 09 3c 5a</Value>.....<
2350: 2f 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e 50 6f /InterpolationPo
2360: 69 6e 74 3e 0d 0a 09 09 09 3c 49 6e 74 65 72 70 int>.....<Interp
2370: 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 olationPoint>...
2380: 09 09 09 3c 44 61 74 61 3e 35 30 30 2e 30 30 30 ...<Data>500.000
2390: 30 30 30 30 30 3c 2f 44 61 74 61 3e 0d 0a 09 09 00000</Data>....
23a0: 09 09 3c 56 61 6c 75 65 3e 23 33 32 62 34 33 32 ..<Value>#32b432
23b0: 3c 2f 56 61 6c 75 65 3e 0d 0a 09 09 09 3c 2f 49 </Value>.....</I
23c0: 6e 74 65 72 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e nterpolationPoin
23d0: 74 3e 0d 0a 09 09 09 3c 49 6e 74 65 72 70 6f 6c t>.....<Interpol
23e0: 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 ationPoint>.....
23f0: 09 3c 44 61 74 61 3e 35 30 30 2e 30 30 30 30 30 .<Data>500.00000
2400: 30 30 30 3c 2f 44 61 74 61 3e 0d 0a 09 09 09 09 000</Data>......
2410: 3c 56 61 6c 75 65 3e 23 34 36 61 61 34 36 3c 2f <Value>#46aa46</
2420: 56 61 6c 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 Value>.....</Int
2430: 65 72 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e erpolationPoint>
2440: 0d 0a 09 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 .....<Interpolat
2450: 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c ionPoint>......<
2460: 44 61 74 61 3e 31 30 30 30 2e 30 30 30 30 30 30 Data>1000.000000
2470: 30 30 3c 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 00</Data>......<
2480: 56 61 6c 75 65 3e 23 34 36 39 31 34 62 3c 2f 56 Value>#46914b</V
2490: 61 6c 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 alue>.....</Inte
24a0: 72 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d rpolationPoint>.
24b0: 0a 09 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 ....<Interpolati
24c0: 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 onPoint>......<D
24d0: 61 74 61 3e 31 30 30 30 2e 30 30 30 30 30 30 30 ata>1000.0000000
24e0: 30 3c 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 56 0</Data>......<V
24f0: 61 6c 75 65 3e 23 34 36 39 62 34 62 3c 2f 56 61 alue>#469b4b</Va
2500: 6c 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 72 lue>.....</Inter
2510: 70 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a polationPoint>..
2520: 09 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f ...<Interpolatio
2530: 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61 nPoint>......<Da
2540: 74 61 3e 32 30 30 30 2e 30 30 30 30 30 30 30 30 ta>2000.00000000
2550: 3c 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 56 61 </Data>......<Va
2560: 6c 75 65 3e 23 39 36 39 63 36 34 3c 2f 56 61 6c lue>#969c64</Val
2570: 75 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 72 70 ue>.....</Interp
2580: 6f 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 olationPoint>...
2590: 09 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e ..<Interpolation
25a0: 50 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61 74 Point>......<Dat
25b0: 61 3e 33 30 30 30 2e 30 30 30 30 30 30 30 30 3c a>3000.00000000<
25c0: 2f 44 61 74 61 3e 0d 0a 09 09 09 09 3c 56 61 6c /Data>......<Val
25d0: 75 65 3e 23 64 63 64 63 64 63 3c 2f 56 61 6c 75 ue>#dcdcdc</Valu
25e0: 65 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 72 70 6f e>.....</Interpo
25f0: 6c 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 lationPoint>....
2600: 09 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e 50 .<InterpolationP
2610: 6f 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61 74 61 oint>......<Data
2620: 3e 34 30 30 30 2e 30 30 30 30 30 30 30 30 3c 2f >4000.00000000</
2630: 44 61 74 61 3e 0d 0a 09 09 09 09 3c 56 61 6c 75 Data>......<Valu
2640: 65 3e 23 66 35 66 35 66 35 3c 2f 56 61 6c 75 65 e>#f5f5f5</Value
2650: 3e 0d 0a 09 09 09 3c 2f 49 6e 74 65 72 70 6f 6c >.....</Interpol
2660: 61 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 09 ationPoint>.....
2670: 3c 49 6e 74 65 72 70 6f 6c 61 74 69 6f 6e 50 6f <InterpolationPo
2680: 69 6e 74 3e 0d 0a 09 09 09 09 3c 44 61 74 61 3e int>......<Data>
2690: 38 38 35 30 2e 30 30 30 30 30 30 30 30 3c 2f 44 8850.00000000</D
26a0: 61 74 61 3e 0d 0a 09 09 09 09 3c 56 61 6c 75 65 ata>......<Value
26b0: 3e 23 66 66 66 66 66 66 3c 2f 56 61 6c 75 65 3e >#ffffff</Value>
26c0: 0d 0a 09 09 09 3c 2f 49 6e 74 65 72 70 6f 6c 61 .....</Interpola
26d0: 74 69 6f 6e 50 6f 69 6e 74 3e 0d 0a 09 09 3c 2f tionPoint>....</
26e0: 49 6e 74 65 72 70 6f 6c 61 74 65 3e 0d 0a 09 3c Interpolate>...<
26f0: 2f 43 6f 6c 6f 72 4d 61 70 3e 0d 0a 3c 2f 52 61 /ColorMap>..</Ra
2700: 73 74 65 72 53 79 6d 62 6f 6c 69 7a 65 72 3e 0d sterSymbolizer>.
2710: 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 0d 0a 59 6f .</verbatim>..Yo
2720: 75 27 76 65 20 61 6c 72 65 61 64 79 20 67 6f 74 u've already got
2730: 20 66 65 77 20 62 61 73 69 63 20 6e 6f 74 69 6f few basic notio
2740: 6e 73 20 61 62 6f 75 74 20 3c 62 3e 3c 69 3e 52 ns about <b><i>R
2750: 61 73 74 65 72 53 79 6d 62 6f 6c 69 7a 65 72 3c asterSymbolizer<
2760: 2f 69 3e 3c 2f 62 3e 20 64 75 72 69 6e 67 20 74 /i></b> during t
2770: 68 65 20 70 72 65 76 69 6f 75 73 20 3c 62 3e 54 he previous <b>T
2780: 72 69 65 73 74 65 3c 2f 62 3e 20 61 6e 64 20 3c rieste</b> and <
2790: 62 3e 4f 72 62 65 74 65 6c 6c 6f 3c 2f 62 3e 20 b>Orbetello</b>
27a0: 74 75 74 6f 72 69 61 6c 73 3a 20 6e 6f 77 20 77 tutorials: now w
27b0: 65 27 6c 6c 20 65 78 61 6d 69 6e 65 20 61 20 64 e'll examine a d
27c0: 69 66 66 65 72 65 6e 74 20 53 79 6d 62 6f 6c 69 ifferent Symboli
27d0: 7a 65 72 2c 20 69 2e 65 2e 20 3c 62 3e 3c 69 3e zer, i.e. <b><i>
27e0: 43 6f 6c 6f 72 4d 61 70 3c 2f 69 3e 3c 2f 62 3e ColorMap</i></b>
27f0: 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 61 20 43 :..<ul>..<li>a C
2800: 6f 6c 6f 72 20 4d 61 70 20 73 69 6d 70 6c 79 20 olor Map simply
2810: 72 65 70 72 65 73 65 6e 74 73 20 61 20 3c 61 20 represents a <a
2820: 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e href="http://en.
2830: 77 69 6b 69 70 65 64 69 61 2e 6f 72 67 2f 77 69 wikipedia.org/wi
2840: 6b 69 2f 4c 6f 6f 6b 75 70 5f 74 61 62 6c 65 22 ki/Lookup_table"
2850: 3e 6c 6f 6f 6b 75 70 20 74 61 62 6c 65 3c 2f 61 >lookup table</a
2860: 3e 2e 20 59 6f 75 20 63 61 6e 20 66 72 65 65 6c >. You can freel
2870: 79 20 64 65 66 69 6e 65 20 6f 6e 65 20 28 6f 72 y define one (or
2880: 20 70 6f 73 73 69 62 6c 79 20 6d 6f 72 65 20 74 possibly more t
2890: 68 61 6e 20 6f 6e 65 29 20 3c 61 20 68 72 65 66 han one) <a href
28a0: 3d 22 68 74 74 70 3a 2f 2f 65 6e 2e 77 69 6b 69 ="http://en.wiki
28b0: 70 65 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 49 pedia.org/wiki/I
28c0: 6e 74 65 72 76 61 6c 5f 25 32 38 6d 61 74 68 65 nterval_%28mathe
28d0: 6d 61 74 69 63 73 25 32 39 22 3e 69 6e 74 65 72 matics%29">inter
28e0: 76 61 6c 73 3c 2f 61 3e 2c 20 61 6e 64 20 69 6e vals</a>, and in
28f0: 20 74 68 65 20 6f 75 74 70 75 74 20 69 6d 61 67 the output imag
2900: 65 20 65 61 63 68 20 70 69 78 65 6c 20 77 69 6c e each pixel wil
2910: 6c 20 74 68 65 6e 20 72 65 63 65 69 76 65 20 74 l then receive t
2920: 68 65 20 61 70 70 72 6f 70 72 69 61 74 65 20 63 he appropriate c
2930: 6f 6c 6f 72 20 6d 61 74 63 68 69 6e 67 20 74 68 olor matching th
2940: 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 e corresponding
2950: 69 6e 74 65 72 76 61 6c 2e 3c 2f 6c 69 3e 0d 0a interval.</li>..
2960: 3c 6c 69 3e 3c 75 3e 52 65 63 61 6c 6c 3c 2f 75 <li><u>Recall</u
2970: 3e 3a 20 74 68 65 20 3c 62 3e 3c 69 3e 45 54 4f >: the <b><i>ETO
2980: 50 4f 31 3c 2f 69 3e 3c 2f 62 3e 20 73 61 6d 70 PO1</i></b> samp
2990: 6c 65 20 69 73 20 61 20 44 69 67 69 74 61 6c 20 le is a Digital
29a0: 45 6c 65 76 61 74 69 6f 6e 20 4d 6f 64 65 6c 20 Elevation Model
29b0: 61 6e 64 20 65 61 63 68 20 70 69 78 65 6c 20 76 and each pixel v
29c0: 61 6c 75 65 20 63 6f 72 72 65 73 70 6f 6e 64 73 alue corresponds
29d0: 20 74 6f 20 61 6e 20 3c 75 3e 3c 69 3e 65 6c 65 to an <u><i>ele
29e0: 76 61 74 69 6f 6e 20 6d 65 61 73 75 72 65 3c 2f vation measure</
29f0: 69 3e 3c 2f 75 3e 2e 20 53 6f 20 79 6f 75 20 63 i></u>. So you c
2a00: 61 6e 20 6e 6f 77 20 64 65 66 69 6e 65 20 61 73 an now define as
2a10: 20 6d 75 63 68 20 65 6c 65 76 61 74 69 6f 6e 20 much elevation
2a20: 69 6e 74 65 72 76 61 6c 73 20 61 73 20 79 6f 75 intervals as you
2a30: 20 77 69 73 68 2c 20 61 6e 64 20 65 61 63 68 20 wish, and each
2a40: 69 6e 74 65 72 76 61 6c 20 77 69 6c 6c 20 63 6f interval will co
2a50: 72 72 65 73 70 6f 6e 64 20 74 6f 20 73 6f 6d 65 rrespond to some
2a60: 20 63 6f 6c 6f 72 20 6f 66 20 79 6f 75 72 20 63 color of your c
2a70: 68 6f 69 63 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 hoice.</li>..<li
2a80: 3e 3c 62 3e 3c 69 3e 43 6f 6c 6f 72 4d 61 70 3c ><b><i>ColorMap<
2a90: 2f 69 3e 3c 2f 62 3e 20 73 75 70 70 6f 72 74 73 /i></b> supports
2aa0: 20 74 77 6f 20 64 69 66 66 65 72 65 6e 74 20 66 two different f
2ab0: 6c 61 76 6f 72 73 3a 0d 0a 3c 75 6c 3e 0d 0a 3c lavors:..<ul>..<
2ac0: 6c 69 3e 3c 62 3e 3c 69 3e 49 6e 74 65 72 70 6f li><b><i>Interpo
2ad0: 6c 61 74 65 3c 2f 69 3e 3c 2f 62 3e 20 69 6e 74 late</i></b> int
2ae0: 65 6e 64 73 20 74 68 61 74 20 65 61 63 68 20 69 ends that each i
2af0: 6e 74 65 72 76 61 6c 20 68 61 73 20 61 20 3c 75 nterval has a <u
2b00: 3e 3c 69 3e 73 74 61 72 74 3c 2f 69 3e 3c 2f 75 ><i>start</i></u
2b10: 3e 20 61 6e 64 20 61 20 3c 75 3e 3c 69 3e 73 74 > and a <u><i>st
2b20: 6f 70 20 63 6f 6c 6f 72 3c 2f 69 3e 3c 2f 75 3e op color</i></u>
2b30: 3a 20 74 68 65 20 61 63 74 75 61 6c 20 70 69 78 : the actual pix
2b40: 65 6c 20 63 6f 6c 6f 72 20 77 69 6c 6c 20 74 68 el color will th
2b50: 65 6e 20 62 65 20 74 68 65 20 6f 6e 65 20 70 72 en be the one pr
2b60: 65 63 69 73 65 6c 79 20 6d 61 74 63 68 69 6e 67 ecisely matching
2b70: 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 the correspondi
2b80: 6e 67 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70 ng <a href="http
2b90: 3a 2f 2f 65 6e 2e 77 69 6b 69 70 65 64 69 61 2e ://en.wikipedia.
2ba0: 6f 72 67 2f 77 69 6b 69 2f 43 6f 6c 6f 72 5f 67 org/wiki/Color_g
2bb0: 72 61 64 69 65 6e 74 22 3e 63 6f 6c 6f 72 20 67 radient">color g
2bc0: 72 61 64 69 65 6e 74 3c 2f 61 3e 2e 3c 2f 6c 69 radient</a>.</li
2bd0: 3e 0d 0a 3c 6c 69 3e 3c 62 3e 3c 69 3e 43 61 74 >..<li><b><i>Cat
2be0: 65 67 6f 72 69 7a 65 3c 2f 69 3e 3c 2f 62 3e 20 egorize</i></b>
2bf0: 6f 6e 20 74 68 65 20 6f 74 68 65 72 20 68 61 6e on the other han
2c00: 64 20 69 6e 74 65 6e 64 73 20 74 68 61 74 20 61 d intends that a
2c10: 6e 79 20 70 69 78 65 6c 73 20 76 61 6c 75 65 20 ny pixels value
2c20: 6d 61 74 63 68 69 6e 67 20 61 6e 20 69 6e 74 65 matching an inte
2c30: 72 76 61 6c 20 77 69 6c 6c 20 61 6c 77 61 79 73 rval will always
2c40: 20 62 65 20 72 65 70 72 65 73 65 6e 74 65 64 20 be represented
2c50: 62 79 20 74 68 65 20 73 61 6d 65 20 69 64 65 6e by the same iden
2c60: 74 69 63 61 6c 20 63 6f 6c 6f 72 2e 3c 2f 6c 69 tical color.</li
2c70: 3e 0d 0a 3c 2f 75 6c 3e 3c 2f 6c 69 3e 0d 0a 3c >..</ul></li>..<
2c80: 2f 75 6c 3e 0d 0a 3c 68 34 3e 34 2e 33 29 20 69 /ul>..<h4>4.3) i
2c90: 6d 70 6f 72 74 69 6e 67 20 61 6c 6c 20 52 61 73 mporting all Ras
2ca0: 74 65 72 53 79 6d 62 6f 6c 69 7a 65 72 73 20 69 terSymbolizers i
2cb0: 6e 74 6f 20 74 68 65 20 44 42 2d 66 69 6c 65 3c nto the DB-file<
2cc0: 2f 68 34 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e /h4>..<verbatim>
2cd0: 0d 0a 24 20 73 71 6c 69 74 65 33 20 65 61 72 74 ..$ sqlite3 eart
2ce0: 68 2e 73 71 6c 69 74 65 0d 0a 53 51 4c 69 74 65 h.sqlite..SQLite
2cf0: 20 76 65 72 73 69 6f 6e 20 33 2e 38 2e 34 2e 32 version 3.8.4.2
2d00: 20 32 30 31 34 2d 30 33 2d 32 36 20 31 38 3a 35 2014-03-26 18:5
2d10: 31 3a 31 39 0d 0a 45 6e 74 65 72 20 22 2e 68 65 1:19..Enter ".he
2d20: 6c 70 22 20 66 6f 72 20 75 73 61 67 65 20 68 69 lp" for usage hi
2d30: 6e 74 73 2e 0d 0a 73 71 6c 69 74 65 3e 20 2e 6e nts...sqlite> .n
2d40: 75 6c 6c 20 4e 55 4c 4c 0d 0a 73 71 6c 69 74 65 ull NULL..sqlite
2d50: 3e 20 53 45 4c 45 43 54 20 6c 6f 61 64 5f 65 78 > SELECT load_ex
2d60: 74 65 6e 73 69 6f 6e 28 27 6d 6f 64 5f 73 70 61 tension('mod_spa
2d70: 74 69 61 6c 69 74 65 27 29 3b 0d 0a 4e 55 4c 4c tialite');..NULL
2d80: 0d 0a 73 71 6c 69 74 65 3e 20 53 45 4c 45 43 54 ..sqlite> SELECT
2d90: 20 43 72 65 61 74 65 53 74 79 6c 69 6e 67 54 61 CreateStylingTa
2da0: 62 6c 65 73 28 29 3b 0d 0a 31 0d 0a 73 71 6c 69 bles();..1..sqli
2db0: 74 65 3e 20 53 45 4c 45 43 54 20 52 65 67 69 73 te> SELECT Regis
2dc0: 74 65 72 52 61 73 74 65 72 53 74 79 6c 65 64 4c terRasterStyledL
2dd0: 61 79 65 72 28 27 65 74 6f 70 6f 31 5f 64 65 6d ayer('etopo1_dem
2de0: 27 2c 0d 0a 20 20 20 2e 2e 2e 3e 20 58 42 5f 43 ',.. ...> XB_C
2df0: 72 65 61 74 65 28 58 42 5f 4c 6f 61 64 58 4d 4c reate(XB_LoadXML
2e00: 28 27 2e 2f 65 74 6f 70 6f 31 5f 73 74 79 6c 65 ('./etopo1_style
2e10: 73 2f 65 74 6f 70 6f 2e 78 6d 6c 27 29 2c 20 31 s/etopo.xml'), 1
2e20: 2c 20 31 29 29 3b 0d 0a 31 0d 0a 73 71 6c 69 74 , 1));..1..sqlit
2e30: 65 3e 20 53 45 4c 45 43 54 20 52 65 67 69 73 74 e> SELECT Regist
2e40: 65 72 52 61 73 74 65 72 53 74 79 6c 65 64 4c 61 erRasterStyledLa
2e50: 79 65 72 28 27 65 74 6f 70 6f 31 5f 64 65 6d 27 yer('etopo1_dem'
2e60: 2c 0d 0a 20 20 20 2e 2e 2e 3e 20 58 42 5f 43 72 ,.. ...> XB_Cr
2e70: 65 61 74 65 28 58 42 5f 4c 6f 61 64 58 4d 4c 28 eate(XB_LoadXML(
2e80: 27 2e 2f 65 74 6f 70 6f 31 5f 73 74 79 6c 65 73 './etopo1_styles
2e90: 2f 65 74 6f 70 6f 5f 63 61 74 65 67 6f 72 69 7a /etopo_categoriz
2ea0: 65 2e 78 6d 6c 27 29 2c 20 31 2c 20 31 29 29 3b e.xml'), 1, 1));
2eb0: 0d 0a 31 0d 0a 73 71 6c 69 74 65 3e 20 53 45 4c ..1..sqlite> SEL
2ec0: 45 43 54 20 52 65 67 69 73 74 65 72 52 61 73 74 ECT RegisterRast
2ed0: 65 72 53 74 79 6c 65 64 4c 61 79 65 72 28 27 65 erStyledLayer('e
2ee0: 74 6f 70 6f 31 5f 64 65 6d 27 2c 0d 0a 20 20 20 topo1_dem',..
2ef0: 2e 2e 2e 3e 20 58 42 5f 43 72 65 61 74 65 28 58 ...> XB_Create(X
2f00: 42 5f 4c 6f 61 64 58 4d 4c 28 27 2e 2f 65 74 6f B_LoadXML('./eto
2f10: 70 6f 31 5f 73 74 79 6c 65 73 2f 74 65 72 72 61 po1_styles/terra
2f20: 69 6e 2e 78 6d 6c 27 29 2c 20 31 2c 20 31 29 29 in.xml'), 1, 1))
2f30: 3b 0d 0a 31 0d 0a 73 71 6c 69 74 65 3e 20 53 45 ;..1..sqlite> SE
2f40: 4c 45 43 54 20 52 65 67 69 73 74 65 72 52 61 73 LECT RegisterRas
2f50: 74 65 72 53 74 79 6c 65 64 4c 61 79 65 72 28 27 terStyledLayer('
2f60: 65 74 6f 70 6f 31 5f 64 65 6d 27 2c 0d 0a 20 20 etopo1_dem',..
2f70: 20 2e 2e 2e 3e 20 58 42 5f 43 72 65 61 74 65 28 ...> XB_Create(
2f80: 58 42 5f 4c 6f 61 64 58 4d 4c 28 27 2e 2f 65 74 XB_LoadXML('./et
2f90: 6f 70 6f 31 5f 73 74 79 6c 65 73 2f 73 72 74 6d opo1_styles/srtm
2fa0: 5f 70 6c 75 73 2e 78 6d 6c 27 29 2c 20 31 2c 20 _plus.xml'), 1,
2fb0: 31 29 29 3b 0d 0a 31 0d 0a 73 71 6c 69 74 65 3e 1));..1..sqlite>
2fc0: 20 2e 71 75 69 74 0d 0a 24 0d 0a 3c 2f 76 65 72 .quit..$..</ver
2fd0: 62 61 74 69 6d 3e 0d 0a 54 68 69 73 20 73 74 65 batim>..This ste
2fe0: 70 20 65 78 61 63 74 6c 79 20 63 6f 72 72 65 73 p exactly corres
2ff0: 70 6f 6e 64 73 20 74 6f 20 74 68 65 20 74 61 73 ponds to the tas
3000: 6b 20 61 6c 72 65 61 64 79 20 65 78 70 6c 61 69 k already explai
3010: 6e 65 64 20 69 6e 20 74 68 65 20 3c 62 3e 3c 69 ned in the <b><i
3020: 3e 54 72 69 65 73 74 65 3c 2f 69 3e 3c 2f 62 3e >Trieste</i></b>
3030: 20 61 6e 64 20 3c 62 3e 3c 69 3e 4f 72 62 65 74 and <b><i>Orbet
3040: 65 6c 6c 6f 3c 2f 69 3e 3c 2f 62 3e 20 74 75 74 ello</i></b> tut
3050: 6f 72 69 61 6c 73 2e 0d 0a 3c 68 33 3e 53 74 65 orials...<h3>Ste
3060: 70 20 35 29 20 74 65 73 74 69 6e 67 20 74 68 65 p 5) testing the
3070: 20 45 54 4f 50 4f 31 5f 44 45 4d 20 73 61 6d 70 ETOPO1_DEM samp
3080: 6c 65 20 28 61 6e 64 20 70 6c 61 79 69 6e 67 20 le (and playing
3090: 77 69 74 68 20 53 74 79 6c 65 73 29 3c 2f 68 33 with Styles)</h3
30a0: 3e 0d 0a 41 73 20 79 6f 75 27 76 65 20 61 6c 72 >..As you've alr
30b0: 65 61 64 79 20 64 6f 6e 65 20 69 6e 20 61 6e 79 eady done in any
30c0: 20 70 72 65 76 69 6f 75 73 20 3c 62 3e 3c 69 3e previous <b><i>
30d0: 74 75 74 6f 72 69 61 6c 3c 2f 69 3e 3c 2f 62 3e tutorial</i></b>
30e0: 20 79 6f 75 20 63 61 6e 20 6e 6f 77 20 64 69 72 you can now dir
30f0: 65 63 74 6c 79 20 74 65 73 74 20 74 68 65 20 45 ectly test the E
3100: 54 4f 50 4f 31 5f 44 45 4d 20 43 6f 76 65 72 61 TOPO1_DEM Covera
3110: 67 65 20 62 79 20 70 75 62 6c 69 73 68 69 6e 67 ge by publishing
3120: 20 61 20 73 74 61 6e 64 61 72 64 20 57 4d 53 20 a standard WMS
3130: 73 65 72 76 69 63 65 2e 3c 62 72 3e 0d 0a 59 6f service.<br>..Yo
3140: 75 20 73 69 6d 70 6c 79 20 68 61 76 65 20 74 6f u simply have to
3150: 20 73 74 61 72 74 20 74 68 65 20 3c 62 3e 3c 69 start the <b><i
3160: 3e 77 6d 73 6c 69 74 65 3c 2f 69 3e 3c 2f 62 3e >wmslite</i></b>
3170: 20 6c 69 67 68 74 2d 77 65 69 67 68 74 20 73 65 light-weight se
3180: 72 76 65 72 2c 20 74 68 65 6e 20 63 6f 6e 6e 65 rver, then conne
3190: 63 74 69 6e 67 20 73 6f 6d 65 20 57 4d 53 20 76 cting some WMS v
31a0: 69 65 77 65 72 20 28 65 2e 67 2e 20 3c 62 3e 3c iewer (e.g. <b><
31b0: 69 3e 4c 69 62 72 65 57 4d 53 3c 2f 69 3e 3c 2f i>LibreWMS</i></
31c0: 62 3e 29 20 74 6f 20 74 68 65 20 73 65 72 76 69 b>) to the servi
31d0: 63 65 20 62 65 69 6e 67 20 70 75 62 6c 69 73 68 ce being publish
31e0: 65 64 20 6f 6e 20 3c 62 3e 3c 69 3e 6c 6f 63 61 ed on <b><i>loca
31f0: 6c 68 6f 73 74 3c 2f 69 3e 3c 2f 62 3e 20 61 6b lhost</i></b> ak
3200: 61 20 49 50 20 61 64 64 72 65 73 73 20 3c 62 3e a IP address <b>
3210: 3c 69 3e 31 32 37 2e 30 2e 30 2e 31 3c 2f 69 3e <i>127.0.0.1</i>
3220: 3c 2f 62 3e 2c 20 70 6f 72 74 20 3c 62 3e 3c 69 </b>, port <b><i
3230: 3e 38 30 38 30 3c 2f 69 3e 3c 2f 62 3e 2e 3c 62 >8080</i></b>.<b
3240: 72 3e 3c 62 72 3e 0d 0a 3c 69 6d 67 20 73 72 63 r><br>..<img src
3250: 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 ="https://www.ga
3260: 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 ia-gis.it/gaia-s
3270: 69 6e 73 2f 72 61 73 74 65 72 6c 69 74 65 32 2d ins/rasterlite2-
3280: 70 69 63 2f 65 74 6f 70 6f 31 2d 64 65 66 61 75 pic/etopo1-defau
3290: 6c 74 2e 70 6e 67 22 20 61 6c 74 3d 22 45 54 4f lt.png" alt="ETO
32a0: 50 4f 31 20 64 65 66 61 75 6c 74 22 3e 3c 62 72 PO1 default"><br
32b0: 3e 0d 0a 54 68 69 73 20 66 69 72 73 74 20 65 78 >..This first ex
32c0: 61 6d 70 6c 65 20 63 6f 72 72 65 73 70 6f 6e 64 ample correspond
32d0: 73 20 74 6f 20 74 68 65 20 3c 75 3e 64 65 66 61 s to the <u>defa
32e0: 75 6c 74 3c 2f 75 3e 20 53 74 79 6c 65 20 28 6e ult</u> Style (n
32f0: 6f 20 52 61 73 74 65 72 53 79 6d 62 6f 6c 69 7a o RasterSymboliz
3300: 65 72 20 61 74 20 61 6c 6c 29 3a 20 69 6e 20 74 er at all): in t
3310: 68 69 73 20 63 61 73 65 20 6a 75 73 74 20 61 20 his case just a
3320: 62 61 73 69 63 20 47 72 61 79 73 63 61 6c 65 20 basic Grayscale
3330: 72 65 6e 64 65 72 69 6e 67 20 69 73 20 61 70 70 rendering is app
3340: 6c 69 65 64 2e 20 4e 6f 74 20 61 20 72 65 61 6c lied. Not a real
3350: 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 6f ly interesting o
3360: 70 74 69 6f 6e 2e 3c 62 72 3e 3c 62 72 3e 0d 0a ption.<br><br>..
3370: 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a <img src="https:
3380: 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 //www.gaia-gis.i
3390: 74 2f 67 61 69 61 2d 73 69 6e 73 2f 72 61 73 74 t/gaia-sins/rast
33a0: 65 72 6c 69 74 65 32 2d 70 69 63 2f 65 74 6f 70 erlite2-pic/etop
33b0: 6f 31 2d 65 74 6f 70 6f 2d 63 61 74 65 67 6f 72 o1-etopo-categor
33c0: 69 7a 65 2e 70 6e 67 22 20 61 6c 74 3d 22 45 54 ize.png" alt="ET
33d0: 4f 50 4f 31 20 63 61 74 65 67 6f 72 69 7a 65 22 OPO1 categorize"
33e0: 3e 3c 62 72 3e 0d 0a 54 68 69 73 20 73 65 63 6f ><br>..This seco
33f0: 6e 64 20 65 78 61 6d 70 6c 65 20 63 6f 72 72 65 nd example corre
3400: 73 70 6f 6e 64 73 20 74 6f 20 74 68 65 20 3c 62 sponds to the <b
3410: 3e 65 74 6f 70 6f 5f 63 61 74 65 67 6f 72 69 7a >etopo_categoriz
3420: 65 3c 2f 62 3e 20 73 74 79 6c 65 2e 3c 62 72 3e e</b> style.<br>
3430: 0d 0a 59 6f 75 20 63 61 6e 20 6e 6f 77 20 66 75 ..You can now fu
3440: 6c 6c 79 20 61 70 70 72 65 63 69 61 74 65 20 77 lly appreciate w
3450: 68 61 74 20 61 20 3c 62 3e 43 6f 6c 6f 72 4d 61 hat a <b>ColorMa
3460: 70 3c 2f 62 3e 20 6f 66 20 74 68 65 20 3c 62 3e p</b> of the <b>
3470: 43 61 74 65 67 6f 72 69 7a 65 3c 2f 62 3e 20 74 Categorize</b> t
3480: 79 70 65 20 72 65 61 6c 6c 79 20 6d 65 61 6e 73 ype really means
3490: 3b 20 61 6c 6c 20 65 6c 65 76 61 74 69 6f 6e 73 ; all elevations
34a0: 20 66 61 6c 6c 69 6e 67 20 77 69 74 68 69 6e 20 falling within
34b0: 74 68 65 20 73 61 6d 65 20 63 6c 61 73 73 20 69 the same class i
34c0: 6e 74 65 72 76 61 6c 20 68 61 76 65 20 20 74 68 nterval have th
34d0: 65 20 73 61 6d 65 20 69 64 65 6e 74 69 63 61 6c e same identical
34e0: 20 63 6f 6c 6f 72 2c 20 61 6e 64 20 74 68 65 20 color, and the
34f0: 66 69 6e 61 6c 20 72 65 73 75 6c 74 20 69 73 20 final result is
3500: 61 6e 20 75 6e 70 6c 65 61 73 61 6e 74 20 75 67 an unpleasant ug
3510: 6c 79 20 6d 61 70 2e 3c 62 72 3e 3c 62 72 3e 20 ly map.<br><br>
3520: 0d 0a 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 ..<img src="http
3530: 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 s://www.gaia-gis
3540: 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 72 61 .it/gaia-sins/ra
3550: 73 74 65 72 6c 69 74 65 32 2d 70 69 63 2f 65 74 sterlite2-pic/et
3560: 6f 70 6f 31 2d 65 74 6f 70 6f 2e 70 6e 67 22 20 opo1-etopo.png"
3570: 61 6c 74 3d 22 45 54 4f 50 4f 31 20 65 74 6f 70 alt="ETOPO1 etop
3580: 6f 20 73 74 79 6c 65 22 3e 3c 62 72 3e 0d 0a 54 o style"><br>..T
3590: 68 69 73 20 74 68 69 72 64 20 65 78 61 6d 70 6c his third exampl
35a0: 65 20 63 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f e corresponds to
35b0: 20 74 68 65 20 3c 62 3e 65 74 6f 70 6f 3c 2f 62 the <b>etopo</b
35c0: 3e 20 73 74 79 6c 65 3b 20 6e 6f 77 20 74 68 65 > style; now the
35d0: 20 3c 62 3e 43 6f 6c 6f 72 4d 61 70 3c 2f 62 3e <b>ColorMap</b>
35e0: 20 69 73 20 6f 66 20 74 68 65 20 3c 62 3e 49 6e is of the <b>In
35f0: 74 65 72 70 6f 6c 61 74 65 3c 2f 62 3e 20 74 79 terpolate</b> ty
3600: 70 65 2c 20 61 6e 64 20 74 68 65 20 66 69 6e 61 pe, and the fina
3610: 6c 20 72 65 73 75 6c 74 20 69 73 20 6d 75 63 68 l result is much
3620: 20 6d 6f 72 65 20 62 72 69 6c 6c 69 61 6e 74 20 more brilliant
3630: 74 68 65 6e 20 62 65 66 6f 72 65 2e 3c 62 72 3e then before.<br>
3640: 0d 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 ..<u>Please note
3650: 20 77 65 6c 6c 3c 2f 75 3e 3a 20 62 6f 74 68 20 well</u>: both
3660: 74 68 65 20 3c 62 3e 65 74 6f 70 6f 5f 63 61 74 the <b>etopo_cat
3670: 65 67 6f 72 69 7a 65 3c 2f 62 3e 20 61 6e 64 20 egorize</b> and
3680: 74 68 65 20 3c 62 3e 65 74 6f 70 6f 3c 2f 62 3e the <b>etopo</b>
3690: 20 73 74 79 6c 65 20 73 68 61 72 65 20 65 78 61 style share exa
36a0: 63 74 6c 79 20 74 68 65 20 73 61 6d 65 20 69 64 ctly the same id
36b0: 65 6e 74 69 63 61 6c 20 3c 62 3e 43 6f 6c 6f 72 entical <b>Color
36c0: 4d 61 70 3c 2f 62 3e 3b 20 62 75 74 20 74 68 65 Map</b>; but the
36d0: 20 3c 62 3e 65 74 6f 70 6f 3c 2f 62 3e 20 73 74 <b>etopo</b> st
36e0: 79 6c 65 20 73 75 70 70 6f 72 74 73 20 74 68 65 yle supports the
36f0: 20 3c 62 3e 49 6e 74 65 72 70 6f 6c 61 74 65 3c <b>Interpolate<
3700: 2f 62 3e 20 72 65 6e 64 65 72 69 6e 67 2c 20 74 /b> rendering, t
3710: 68 75 73 20 70 72 6f 64 75 63 69 6e 67 20 61 20 hus producing a
3720: 77 69 64 65 20 72 61 6e 67 65 20 6f 66 20 64 69 wide range of di
3730: 66 66 65 72 65 6e 74 20 63 6f 6c 6f 72 20 73 68 fferent color sh
3740: 61 64 65 73 2c 20 61 6e 64 20 74 68 65 20 6f 76 ades, and the ov
3750: 65 72 61 6c 6c 20 65 66 66 65 63 74 20 73 75 72 erall effect sur
3760: 65 6c 79 20 69 73 20 61 20 70 6c 65 61 73 61 6e ely is a pleasan
3770: 74 20 6f 6e 65 2e 3c 62 72 3e 3c 62 72 3e 0d 0a t one.<br><br>..
3780: 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a <img src="https:
3790: 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 //www.gaia-gis.i
37a0: 74 2f 67 61 69 61 2d 73 69 6e 73 2f 72 61 73 74 t/gaia-sins/rast
37b0: 65 72 6c 69 74 65 32 2d 70 69 63 2f 65 74 6f 70 erlite2-pic/etop
37c0: 6f 31 2d 74 65 72 72 61 69 6e 2e 70 6e 67 22 20 o1-terrain.png"
37d0: 61 6c 74 3d 22 45 54 4f 50 4f 31 20 74 65 72 72 alt="ETOPO1 terr
37e0: 61 69 6e 22 3e 3c 62 72 3e 0d 0a 54 68 69 73 20 ain"><br>..This
37f0: 66 6f 75 72 74 68 20 65 78 61 6d 70 6c 65 20 63 fourth example c
3800: 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f 20 74 68 orresponds to th
3810: 65 20 3c 62 3e 74 65 72 72 61 69 6e 3c 2f 62 3e e <b>terrain</b>
3820: 20 73 74 79 6c 65 3b 20 69 74 27 73 20 76 65 72 style; it's ver
3830: 79 20 73 69 6d 69 6c 61 72 20 74 6f 20 3c 62 3e y similar to <b>
3840: 65 74 6f 70 6f 3c 2f 62 3e 2c 20 62 75 74 20 69 etopo</b>, but i
3850: 6e 20 74 68 69 73 20 63 61 73 65 20 64 65 65 70 n this case deep
3860: 20 77 61 74 65 72 73 20 61 72 65 20 73 69 6d 70 waters are simp
3870: 6c 79 20 72 65 70 72 65 73 65 6e 74 65 64 20 61 ly represented a
3880: 73 20 62 6c 61 63 6b 20 61 72 65 61 73 2c 20 73 s black areas, s
3890: 6f 20 74 6f 20 66 6f 63 75 73 20 74 68 65 20 61 o to focus the a
38a0: 74 74 65 6e 74 69 6f 6e 20 6f 6e 20 4c 61 6e 64 ttention on Land
38b0: 73 20 61 6e 64 20 6e 65 61 72 62 79 20 73 68 61 s and nearby sha
38c0: 6c 6c 6f 77 20 77 61 74 65 72 73 2e 3c 62 72 3e llow waters.<br>
38d0: 3c 62 72 3e 0d 0a 3c 69 6d 67 20 73 72 63 3d 22 <br>..<img src="
38e0: 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 https://www.gaia
38f0: 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e -gis.it/gaia-sin
3900: 73 2f 72 61 73 74 65 72 6c 69 74 65 32 2d 70 69 s/rasterlite2-pi
3910: 63 2f 65 74 6f 70 6f 31 2d 73 72 74 6d 2d 70 6c c/etopo1-srtm-pl
3920: 75 73 2e 70 6e 67 22 20 61 6c 74 3d 22 45 54 4f us.png" alt="ETO
3930: 50 4f 31 20 73 72 74 6d 5f 70 6c 75 73 22 3e 3c PO1 srtm_plus"><
3940: 62 72 3e 0d 0a 54 68 69 73 20 66 69 6e 61 6c 20 br>..This final
3950: 65 78 61 6d 70 6c 65 20 63 6f 72 72 65 73 70 6f example correspo
3960: 6e 64 73 20 74 6f 20 74 68 65 20 3c 62 3e 73 72 nds to the <b>sr
3970: 74 6d 5f 70 6c 75 73 3c 2f 62 3e 20 73 74 79 6c tm_plus</b> styl
3980: 65 2e 20 41 73 20 79 6f 75 20 63 61 6e 20 65 61 e. As you can ea
3990: 73 69 6c 79 20 6e 6f 74 69 63 65 2c 20 69 74 27 sily notice, it'
39a0: 73 20 6e 6f 74 20 61 74 20 61 6c 6c 20 64 69 66 s not at all dif
39b0: 66 69 63 75 6c 74 20 63 72 65 61 74 69 6e 67 20 ficult creating
39c0: 63 6f 6d 70 6c 65 74 65 6c 79 20 64 69 66 66 65 completely diffe
39d0: 72 65 6e 74 20 6d 61 70 73 20 73 74 61 72 74 69 rent maps starti
39e0: 6e 67 20 66 72 6f 6d 20 74 68 65 20 73 61 6d 65 ng from the same
39f0: 20 69 64 65 6e 74 69 63 61 6c 20 44 45 4d 20 43 identical DEM C
3a00: 6f 76 65 72 61 67 65 3b 20 79 6f 75 20 61 72 65 overage; you are
3a10: 20 73 69 6d 70 6c 79 20 72 65 71 75 69 72 65 64 simply required
3a20: 20 74 6f 20 64 65 66 69 6e 65 20 66 65 77 20 61 to define few a
3a30: 6c 74 65 72 6e 61 74 69 76 65 20 53 74 79 6c 65 lternative Style
3a40: 73 20 61 6e 64 20 74 68 61 74 27 73 20 61 6c 6c s and that's all
3a50: 2e 3c 62 72 3e 0d 0a 41 6e 64 20 75 73 69 6e 67 .<br>..And using
3a60: 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 63 61 the standard ca
3a70: 70 61 62 69 6c 69 74 69 65 73 20 73 75 70 70 6f pabilities suppo
3a80: 72 74 65 64 20 62 79 20 74 68 65 20 57 4d 53 20 rted by the WMS
3a90: 70 72 6f 74 6f 63 6f 6c 20 73 77 69 74 63 68 69 protocol switchi
3aa0: 6e 67 20 66 72 6f 6d 20 61 20 53 74 79 6c 65 20 ng from a Style
3ab0: 74 6f 20 74 68 65 20 6f 74 68 65 72 20 63 61 6e to the other can
3ac0: 20 62 65 20 70 65 72 66 6f 72 6d 65 64 20 69 6e be performed in
3ad0: 20 74 68 65 20 6d 6f 73 74 20 73 69 6d 70 6c 65 the most simple
3ae0: 20 61 6e 64 20 64 79 6e 61 6d 69 63 20 77 61 79 and dynamic way
3af0: 2e 0d 0a 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 68 72 ...<br><br>..<hr
3b00: 3e 3c 62 72 3e 0d 0a 42 61 63 6b 20 74 6f 20 3c ><br>..Back to <
3b10: 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f a href="https://
3b20: 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f www.gaia-gis.it/
3b30: 66 6f 73 73 69 6c 2f 6c 69 62 72 61 73 74 65 72 fossil/libraster
3b40: 6c 69 74 65 32 2f 77 69 6b 69 3f 6e 61 6d 65 3d lite2/wiki?name=
3b50: 74 75 74 6f 72 69 61 6c 73 22 3e 52 61 73 74 65 tutorials">Raste
3b60: 72 4c 69 74 65 32 20 54 75 74 6f 72 69 61 6c 73 rLite2 Tutorials
3b70: 20 69 6e 64 65 78 3c 2f 61 3e 0a 5a 20 65 37 30 index</a>.Z e70
3b80: 38 30 63 64 65 61 33 32 38 39 62 31 64 38 62 62 80cdea3289b1d8bb
3b90: 39 31 38 30 35 35 35 37 39 63 64 31 37 0a 918055579cd17.