Artifact
6a5493ef7650c843cea8b78ad233507363996956:
Wiki page
[ETOPO1] by
sandro
2014-04-06 21:21:16.
0000: 44 20 32 30 31 34 2d 30 34 2d 30 36 54 32 31 3a D 2014-04-06T21:
0010: 32 31 3a 31 36 2e 32 30 39 0a 4c 20 45 54 4f 50 21:16.209.L ETOP
0020: 4f 31 0a 55 20 73 61 6e 64 72 6f 0a 57 20 31 32 O1.U sandro.W 12
0030: 31 34 37 0a 42 61 63 6b 20 74 6f 20 3c 61 20 68 147.Back to <a h
0040: 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 ref="https://www
0050: 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 66 6f 73 .gaia-gis.it/fos
0060: 73 69 6c 2f 6c 69 62 72 61 73 74 65 72 6c 69 74 sil/librasterlit
0070: 65 32 2f 77 69 6b 69 3f 6e 61 6d 65 3d 74 75 74 e2/wiki?name=tut
0080: 6f 72 69 61 6c 73 22 3e 52 61 73 74 65 72 4c 69 orials">RasterLi
0090: 74 65 32 20 54 75 74 6f 72 69 61 6c 73 20 69 6e te2 Tutorials in
00a0: 64 65 78 3c 2f 61 3e 3c 68 72 3e 3c 62 72 3e 0d dex</a><hr><br>.
00b0: 0a 3c 68 31 3e 54 75 74 6f 72 69 61 6c 3a 20 61 .<h1>Tutorial: a
00c0: 64 64 69 6e 67 20 61 20 73 74 79 6c 65 64 20 44 dding a styled D
00d0: 45 4d 20 74 6f 20 74 68 65 20 50 6c 61 6e 65 74 EM to the Planet
00e0: 20 45 61 72 74 68 20 73 61 6d 70 6c 65 3c 2f 68 Earth sample</h
00f0: 31 3e 0d 0a 49 6e 20 74 68 69 73 20 74 75 74 6f 1>..In this tuto
0100: 72 69 61 6c 20 77 65 27 6c 6c 20 75 73 65 20 74 rial we'll use t
0110: 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 69 6e 70 he following inp
0120: 75 74 20 4f 70 65 6e 20 44 61 74 61 20 64 61 74 ut Open Data dat
0130: 61 73 6f 75 72 63 65 3a 20 70 6c 65 61 73 65 20 asource: please
0140: 64 6f 77 6e 6c 6f 61 64 20 69 74 20 72 69 67 68 download it righ
0150: 74 20 6e 6f 77 2e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c t now...<ul>..<l
0160: 69 3e 3c 61 20 68 72 65 66 3d 22 68 74 74 70 3a i><a href="http:
0170: 2f 2f 77 77 77 2e 6e 67 64 63 2e 6e 6f 61 61 2e //www.ngdc.noaa.
0180: 67 6f 76 2f 6d 67 67 2f 67 6c 6f 62 61 6c 2f 72 gov/mgg/global/r
0190: 65 6c 69 65 66 2f 45 54 4f 50 4f 31 2f 64 61 74 elief/ETOPO1/dat
01a0: 61 2f 69 63 65 5f 73 75 72 66 61 63 65 2f 63 65 a/ice_surface/ce
01b0: 6c 6c 5f 72 65 67 69 73 74 65 72 65 64 2f 67 65 ll_registered/ge
01c0: 6f 72 65 66 65 72 65 6e 63 65 64 5f 74 69 66 66 oreferenced_tiff
01d0: 2f 45 54 4f 50 4f 31 5f 49 63 65 5f 63 5f 67 65 /ETOPO1_Ice_c_ge
01e0: 6f 74 69 66 66 2e 7a 69 70 22 3e 45 54 4f 50 4f otiff.zip">ETOPO
01f0: 31 3c 2f 61 3e 3a 20 61 20 72 61 77 20 47 6c 6f 1</a>: a raw Glo
0200: 62 61 6c 20 52 65 6c 69 65 66 20 4d 6f 64 65 6c bal Relief Model
0210: 20 72 65 6c 65 61 73 65 64 20 66 72 6f 6d 20 4e released from N
0220: 4f 41 41 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e OAA.</li>..</ul>
0230: 0d 0a 49 66 20 79 6f 75 20 72 65 6d 65 6d 62 65 ..If you remembe
0240: 72 2c 20 79 6f 75 27 76 65 20 61 6c 72 65 61 64 r, you've alread
0250: 79 20 75 73 65 64 20 61 6e 20 45 54 4f 50 4f 31 y used an ETOPO1
0260: 20 64 61 74 61 73 6f 75 72 63 65 20 69 6e 20 74 datasource in t
0270: 68 65 20 70 72 65 76 69 6f 75 73 20 3c 62 3e 3c he previous <b><
0280: 69 3e 50 6c 61 6e 65 74 20 45 61 72 74 68 3c 2f i>Planet Earth</
0290: 69 3e 3c 2f 62 3e 20 74 75 74 6f 72 69 61 6c 3b i></b> tutorial;
02a0: 20 62 75 74 20 69 74 20 77 61 73 20 61 20 70 72 but it was a pr
02b0: 65 2d 72 65 6e 64 65 72 65 64 2c 20 66 75 6c 6c e-rendered, full
02c0: 20 63 6f 6c 6f 72 20 76 65 72 73 69 6f 6e 2e 3c color version.<
02d0: 62 72 3e 0d 0a 4e 6f 77 20 79 6f 75 27 6c 6c 20 br>..Now you'll
02e0: 75 73 65 20 65 78 61 63 74 6c 79 20 74 68 65 20 use exactly the
02f0: 73 61 6d 65 20 69 64 65 6e 74 69 63 61 6c 20 64 same identical d
0300: 61 74 61 73 65 74 2c 20 62 75 74 20 74 68 69 73 ataset, but this
0310: 20 74 69 6d 65 20 79 6f 75 27 6c 6c 20 6c 65 61 time you'll lea
0320: 72 6e 20 68 6f 77 20 74 6f 20 64 69 72 65 63 74 rn how to direct
0330: 6c 79 20 61 63 63 65 73 73 20 61 20 3c 69 3e 72 ly access a <i>r
0340: 61 77 3c 2f 69 3e 20 3c 61 20 68 72 65 66 3d 22 aw</i> <a href="
0350: 68 74 74 70 3a 2f 2f 65 6e 2e 77 69 6b 69 70 65 http://en.wikipe
0360: 64 69 61 2e 6f 72 67 2f 77 69 6b 69 2f 44 69 67 dia.org/wiki/Dig
0370: 69 74 61 6c 5f 65 6c 65 76 61 74 69 6f 6e 5f 6d ital_elevation_m
0380: 6f 64 65 6c 22 3e 44 45 4d 3c 2f 61 3e 2c 20 61 odel">DEM</a>, a
0390: 6e 64 20 68 6f 77 20 74 6f 20 61 70 70 6c 79 20 nd how to apply
03a0: 79 6f 75 72 20 6f 77 6e 20 63 75 73 74 6f 6d 20 your own custom
03b0: 73 74 79 6c 65 73 20 74 6f 20 69 74 2e 3c 62 72 styles to it.<br
03c0: 3e 0d 0a 59 6f 75 27 6c 6c 20 70 6f 73 73 69 62 >..You'll possib
03d0: 6c 79 20 75 73 65 20 79 65 74 20 61 67 61 69 6e ly use yet again
03e0: 20 74 68 65 20 73 61 6d 65 20 3c 62 3e 65 61 72 the same <b>ear
03f0: 74 68 2e 73 71 6c 69 74 65 3c 2f 62 3e 20 44 42 th.sqlite</b> DB
0400: 2d 66 69 6c 65 20 75 73 65 64 20 69 6e 20 74 68 -file used in th
0410: 65 20 70 72 65 76 69 6f 75 73 20 3c 62 3e 3c 69 e previous <b><i
0420: 3e 50 6c 61 6e 65 74 20 45 61 72 74 68 3c 2f 69 >Planet Earth</i
0430: 3e 3c 2f 62 3e 20 74 75 74 6f 72 61 6c 2c 20 61 ></b> tutoral, a
0440: 6e 64 20 74 68 69 73 20 77 69 6c 6c 20 61 6c 6c nd this will all
0450: 6f 77 20 79 6f 75 20 74 6f 20 69 6d 6d 65 64 69 ow you to immedi
0460: 61 74 65 6c 79 20 70 65 72 63 65 69 76 65 20 61 ately perceive a
0470: 6e 79 20 72 65 6c 65 76 61 6e 74 20 64 69 66 66 ny relevant diff
0480: 65 72 65 6e 63 65 20 62 65 74 77 65 65 6e 20 74 erence between t
0490: 68 65 73 65 20 74 77 6f 20 64 69 66 66 65 72 65 hese two differe
04a0: 6e 74 20 61 70 70 72 6f 61 63 68 65 73 2e 0d 0a nt approaches...
04b0: 3c 68 33 3e 53 74 65 70 20 31 29 20 72 65 74 72 <h3>Step 1) retr
04c0: 69 65 76 65 20 61 6c 6c 20 62 61 73 69 63 20 69 ieve all basic i
04d0: 6e 66 6f 72 6d 61 74 69 6f 6e 73 20 61 62 6f 75 nformations abou
04e0: 74 20 74 68 65 20 45 54 4f 50 4f 31 20 44 45 4d t the ETOPO1 DEM
04f0: 3c 2f 68 33 3e 0d 0a 3c 76 65 72 62 61 74 69 6d </h3>..<verbatim
0500: 3e 0d 0a 24 20 74 69 66 66 69 6e 66 6f 20 45 54 >..$ tiffinfo ET
0510: 4f 50 4f 31 5f 49 63 65 5f 63 5f 67 65 6f 74 69 OPO1_Ice_c_geoti
0520: 66 66 2e 74 69 66 0d 0a 54 49 46 46 20 44 69 72 ff.tif..TIFF Dir
0530: 65 63 74 6f 72 79 20 61 74 20 6f 66 66 73 65 74 ectory at offset
0540: 20 30 78 38 20 28 38 29 0d 0a 20 20 49 6d 61 67 0x8 (8).. Imag
0550: 65 20 57 69 64 74 68 3a 20 32 31 36 30 30 20 49 e Width: 21600 I
0560: 6d 61 67 65 20 4c 65 6e 67 74 68 3a 20 31 30 38 mage Length: 108
0570: 30 30 0d 0a 20 20 42 69 74 73 2f 53 61 6d 70 6c 00.. Bits/Sampl
0580: 65 3a 20 31 36 0d 0a 20 20 53 61 6d 70 6c 65 20 e: 16.. Sample
0590: 46 6f 72 6d 61 74 3a 20 73 69 67 6e 65 64 20 69 Format: signed i
05a0: 6e 74 65 67 65 72 0d 0a 20 20 43 6f 6d 70 72 65 nteger.. Compre
05b0: 73 73 69 6f 6e 20 53 63 68 65 6d 65 3a 20 4e 6f ssion Scheme: No
05c0: 6e 65 0d 0a 20 20 50 68 6f 74 6f 6d 65 74 72 69 ne.. Photometri
05d0: 63 20 49 6e 74 65 72 70 72 65 74 61 74 69 6f 6e c Interpretation
05e0: 3a 20 6d 69 6e 2d 69 73 2d 62 6c 61 63 6b 0d 0a : min-is-black..
05f0: 20 20 53 61 6d 70 6c 65 73 2f 50 69 78 65 6c 3a Samples/Pixel:
0600: 20 31 0d 0a 20 20 52 6f 77 73 2f 53 74 72 69 70 1.. Rows/Strip
0610: 3a 20 31 0d 0a 20 20 50 6c 61 6e 61 72 20 43 6f : 1.. Planar Co
0620: 6e 66 69 67 75 72 61 74 69 6f 6e 3a 20 73 69 6e nfiguration: sin
0630: 67 6c 65 20 69 6d 61 67 65 20 70 6c 61 6e 65 0d gle image plane.
0640: 0a 20 20 54 61 67 20 33 33 35 35 30 3a 20 30 2e . Tag 33550: 0.
0650: 30 31 36 36 36 37 2c 30 2e 30 31 36 36 36 37 2c 016667,0.016667,
0660: 30 2e 30 30 30 30 30 30 0d 0a 20 20 54 61 67 20 0.000000.. Tag
0670: 33 33 39 32 32 3a 20 30 2e 30 30 30 30 30 30 2c 33922: 0.000000,
0680: 30 2e 30 30 30 30 30 30 2c 30 2e 30 30 30 30 30 0.000000,0.00000
0690: 30 2c 2d 31 38 30 2e 30 30 30 30 30 30 2c 39 30 0,-180.000000,90
06a0: 2e 30 30 30 30 30 30 2c 30 2e 30 30 30 30 30 30 .000000,0.000000
06b0: 0d 0a 20 20 54 61 67 20 34 32 31 31 32 3a 20 3c .. Tag 42112: <
06c0: 47 44 41 4c 4d 65 74 61 64 61 74 61 3e 0d 0a 20 GDALMetadata>..
06d0: 20 3c 49 74 65 6d 20 6e 61 6d 65 3d 22 4e 43 5f <Item name="NC_
06e0: 47 4c 4f 42 41 4c 23 43 6f 6e 76 65 6e 74 69 6f GLOBAL#Conventio
06f0: 6e 73 22 3e 43 4f 41 52 44 53 2f 43 46 2d 31 2e ns">COARDS/CF-1.
0700: 30 3c 2f 49 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 0</Item>.. <Ite
0710: 6d 20 6e 61 6d 65 3d 22 4e 43 5f 47 4c 4f 42 41 m name="NC_GLOBA
0720: 4c 23 74 69 74 6c 65 22 3e 45 54 4f 50 4f 31 5f L#title">ETOPO1_
0730: 49 63 65 5f 63 5f 67 6d 74 34 2e 67 72 64 3c 2f Ice_c_gmt4.grd</
0740: 49 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 6d 20 6e Item>.. <Item n
0750: 61 6d 65 3d 22 4e 43 5f 47 4c 4f 42 41 4c 23 68 ame="NC_GLOBAL#h
0760: 69 73 74 6f 72 79 22 3e 67 72 64 73 61 6d 70 6c istory">grdsampl
0770: 65 20 2d 56 20 45 54 4f 50 4f 31 5f 49 63 65 5f e -V ETOPO1_Ice_
0780: 67 5f 67 6d 74 34 2e 67 72 64 20 2d 47 45 54 4f g_gmt4.grd -GETO
0790: 50 4f 31 5f 49 63 65 0d 0a 5f 63 5f 67 6d 74 34 PO1_Ice.._c_gmt4
07a0: 2e 67 72 64 3d 6e 69 20 2d 54 3c 2f 49 74 65 6d .grd=ni -T</Item
07b0: 3e 0d 0a 20 20 3c 49 74 65 6d 20 6e 61 6d 65 3d >.. <Item name=
07c0: 22 4e 43 5f 47 4c 4f 42 41 4c 23 47 4d 54 5f 76 "NC_GLOBAL#GMT_v
07d0: 65 72 73 69 6f 6e 22 3e 34 2e 34 2e 30 3c 2f 49 ersion">4.4.0</I
07e0: 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 6d 20 6e 61 tem>.. <Item na
07f0: 6d 65 3d 22 4e 43 5f 47 4c 4f 42 41 4c 23 6e 6f me="NC_GLOBAL#no
0800: 64 65 5f 6f 66 66 73 65 74 22 3e 31 3c 2f 49 74 de_offset">1</It
0810: 65 6d 3e 0d 0a 20 20 3c 49 74 65 6d 20 6e 61 6d em>.. <Item nam
0820: 65 3d 22 7a 23 6c 6f 6e 67 5f 6e 61 6d 65 22 3e e="z#long_name">
0830: 7a 3c 2f 49 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 z</Item>.. <Ite
0840: 6d 20 6e 61 6d 65 3d 22 7a 23 5f 46 69 6c 6c 56 m name="z#_FillV
0850: 61 6c 75 65 22 3e 2d 32 31 34 37 34 38 33 36 34 alue">-214748364
0860: 38 3c 2f 49 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 8</Item>.. <Ite
0870: 6d 20 6e 61 6d 65 3d 22 7a 23 61 63 74 75 61 6c m name="z#actual
0880: 5f 72 61 6e 67 65 22 3e 2d 31 30 38 30 33 2c 20 _range">-10803,
0890: 38 33 33 33 3c 2f 49 74 65 6d 3e 0d 0a 20 20 3c 8333</Item>.. <
08a0: 49 74 65 6d 20 6e 61 6d 65 3d 22 78 23 6c 6f 6e Item name="x#lon
08b0: 67 5f 6e 61 6d 65 22 3e 4c 6f 6e 67 69 74 75 64 g_name">Longitud
08c0: 65 3c 2f 49 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 e</Item>.. <Ite
08d0: 6d 20 6e 61 6d 65 3d 22 78 23 61 63 74 75 61 6c m name="x#actual
08e0: 5f 72 61 6e 67 65 22 3e 2d 31 38 30 2c 20 31 38 _range">-180, 18
08f0: 30 3c 2f 49 74 65 6d 3e 0d 0a 20 20 3c 49 74 65 0</Item>.. <Ite
0900: 6d 20 6e 61 6d 65 3d 22 78 23 75 6e 69 74 73 22 m name="x#units"
0910: 3e 64 65 67 72 65 65 73 3c 2f 49 74 65 6d 3e 0d >degrees</Item>.
0920: 0a 20 20 3c 49 74 65 6d 20 6e 61 6d 65 3d 22 79 . <Item name="y
0930: 23 6c 6f 6e 67 5f 6e 61 6d 65 22 3e 4c 61 74 69 #long_name">Lati
0940: 74 75 64 65 3c 2f 49 74 65 6d 3e 0d 0a 20 20 3c tude</Item>.. <
0950: 49 74 65 6d 20 6e 61 6d 65 3d 22 79 23 61 63 74 Item name="y#act
0960: 75 61 6c 5f 72 61 6e 67 65 22 3e 2d 39 30 2c 20 ual_range">-90,
0970: 39 30 3c 2f 49 74 65 6d 3e 0d 0a 20 20 3c 49 74 90</Item>.. <It
0980: 65 6d 20 6e 61 6d 65 3d 22 79 23 75 6e 69 74 73 em name="y#units
0990: 22 3e 64 65 67 72 65 65 73 3c 2f 49 74 65 6d 3e ">degrees</Item>
09a0: 0d 0a 20 20 3c 49 74 65 6d 20 6e 61 6d 65 3d 22 .. <Item name="
09b0: 4e 45 54 43 44 46 5f 56 41 52 4e 41 4d 45 22 20 NETCDF_VARNAME"
09c0: 73 61 6d 70 6c 65 3d 22 30 22 3e 7a 3c 2f 49 74 sample="0">z</It
09d0: 65 6d 3e 0d 0a 3c 2f 47 44 41 4c 4d 65 74 61 64 em>..</GDALMetad
09e0: 61 74 61 3e 0d 0a 0d 0a 20 20 54 61 67 20 34 32 ata>.... Tag 42
09f0: 31 31 33 3a 20 2d 32 31 34 37 34 38 33 36 34 38 113: -2147483648
0a00: 0d 0a 24 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e ..$..</verbatim>
0a10: 0d 0a 41 73 20 72 65 70 6f 72 74 65 64 20 62 79 ..As reported by
0a20: 20 74 68 65 20 3c 62 3e 3c 69 3e 74 69 66 66 69 the <b><i>tiffi
0a30: 6e 66 6f 3c 2f 69 3e 3c 2f 62 3e 20 74 6f 6f 6c nfo</i></b> tool
0a40: 2c 20 74 68 69 73 20 54 49 46 46 20 66 69 6c 65 , this TIFF file
0a50: 20 63 6f 6e 74 61 69 6e 73 20 61 20 3c 62 3e 32 contains a <b>2
0a60: 31 2c 36 30 30 3c 2f 62 3e 20 78 20 3c 62 3e 31 1,600</b> x <b>1
0a70: 30 2c 38 30 30 3c 2f 62 3e 20 72 61 73 74 65 72 0,800</b> raster
0a80: 3b 20 74 68 65 20 73 75 67 67 65 73 74 65 64 20 ; the suggested
0a90: 70 68 6f 74 6f 6d 65 74 72 69 63 20 69 6e 74 65 photometric inte
0aa0: 72 70 72 65 74 61 74 69 6f 6e 20 69 73 20 3c 62 rpretation is <b
0ab0: 3e 47 72 61 79 73 63 61 6c 65 3c 2f 62 3e 20 28 >Grayscale</b> (
0ac0: 3c 62 3e 3c 69 3e 6d 69 6e 2d 69 73 2d 62 6c 61 <b><i>min-is-bla
0ad0: 63 6b 3c 2f 69 3e 3c 2f 62 3e 29 2c 20 61 6e 64 ck</i></b>), and
0ae0: 20 70 69 78 65 6c 20 76 61 6c 75 65 73 20 61 72 pixel values ar
0af0: 65 20 6f 66 20 74 68 65 20 3c 62 3e 49 4e 54 31 e of the <b>INT1
0b00: 36 3c 2f 62 3e 20 74 79 70 65 20 28 3c 62 3e 3c 6</b> type (<b><
0b10: 69 3e 53 61 6d 70 6c 65 20 46 6f 72 6d 61 74 3a i>Sample Format:
0b20: 20 73 69 67 6e 65 64 20 69 6e 74 65 67 65 72 3c signed integer<
0b30: 2f 62 3e 3c 2f 69 3e 20 61 6e 64 20 3c 62 3e 3c /b></i> and <b><
0b40: 69 3e 42 69 74 73 2f 53 61 6d 70 6c 65 3a 20 31 i>Bits/Sample: 1
0b50: 36 3c 2f 69 3e 3c 2f 62 3e 29 2e 3c 62 72 3e 0d 6</i></b>).<br>.
0b60: 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c .<u>Please note<
0b70: 2f 75 3e 3a 20 73 69 6e 63 65 20 6e 6f 77 20 79 /u>: since now y
0b80: 6f 75 27 76 65 20 63 6f 73 74 61 6e 74 6c 79 20 ou've costantly
0b90: 65 6e 63 6f 75 6e 74 65 72 65 64 20 3c 62 3e 3c encountered <b><
0ba0: 69 3e 75 6e 73 69 67 6e 65 64 20 69 6e 74 65 67 i>unsigned integ
0bb0: 65 72 3c 2f 69 3e 3c 2f 62 3e 20 73 61 6d 70 6c er</i></b> sampl
0bc0: 65 73 3b 20 62 75 74 20 45 54 4f 50 4f 31 20 69 es; but ETOPO1 i
0bd0: 73 20 61 20 47 6c 6f 62 61 6c 20 3c 62 3e 44 45 s a Global <b>DE
0be0: 4d 3c 2f 62 3e 20 63 6f 76 65 72 69 6e 67 20 62 M</b> covering b
0bf0: 6f 74 68 20 43 6f 6e 74 69 6e 65 6e 74 20 73 75 oth Continent su
0c00: 72 66 61 63 65 73 20 61 6e 64 20 4f 63 65 61 6e rfaces and Ocean
0c10: 20 66 6c 6f 6f 72 73 2c 20 61 6e 64 20 65 61 63 floors, and eac
0c20: 68 20 70 69 78 65 6c 20 76 61 6c 75 65 20 63 6f h pixel value co
0c30: 72 72 65 73 70 6f 6e 64 73 20 74 6f 20 61 6e 20 rresponds to an
0c40: 3c 75 3e 3c 69 3e 65 6c 65 76 61 74 69 6f 6e 20 <u><i>elevation
0c50: 6d 65 61 73 75 72 65 3c 2f 69 3e 3c 2f 75 3e 2e measure</i></u>.
0c60: 20 53 6f 20 69 6e 20 74 68 69 73 20 73 70 65 63 So in this spec
0c70: 69 66 69 63 20 63 61 73 65 20 75 73 69 6e 67 20 ific case using
0c80: 3c 62 3e 3c 69 3e 73 69 67 6e 65 64 20 69 6e 74 <b><i>signed int
0c90: 65 67 65 72 73 3c 2f 69 3e 3c 2f 62 3e 20 69 73 egers</i></b> is
0ca0: 20 61 20 70 65 72 66 65 63 74 6c 79 20 72 65 61 a perfectly rea
0cb0: 73 6f 6e 61 62 6c 65 20 73 6f 6c 75 74 69 6f 6e sonable solution
0cc0: 2c 20 62 65 63 61 75 73 65 20 77 65 27 6c 6c 20 , because we'll
0cd0: 68 61 76 65 20 3c 75 3e 3c 69 3e 70 6f 73 69 74 have <u><i>posit
0ce0: 69 76 65 3c 2f 69 3e 3c 2f 75 3e 20 65 6c 65 76 ive</i></u> elev
0cf0: 61 74 69 6f 6e 73 20 61 62 6f 76 65 20 73 65 61 ations above sea
0d00: 20 6c 65 76 65 6c 20 61 6e 64 20 3c 75 3e 3c 69 level and <u><i
0d10: 3e 6e 65 67 61 74 69 76 65 3c 2f 69 3e 3c 2f 75 >negative</i></u
0d20: 3e 20 65 6c 65 76 61 74 69 6f 6e 73 20 62 65 6c > elevations bel
0d30: 6f 77 20 73 65 61 20 6c 65 76 65 6c 2e 20 0d 0a ow sea level. ..
0d40: 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 24 20 6c 69 <verbatim>..$ li
0d50: 73 74 67 65 6f 20 45 54 4f 50 4f 31 5f 49 63 65 stgeo ETOPO1_Ice
0d60: 5f 63 5f 67 65 6f 74 69 66 66 2e 74 69 66 0d 0a _c_geotiff.tif..
0d70: 47 65 6f 74 69 66 66 5f 49 6e 66 6f 72 6d 61 74 Geotiff_Informat
0d80: 69 6f 6e 3a 0d 0a 20 20 20 56 65 72 73 69 6f 6e ion:.. Version
0d90: 3a 20 31 0d 0a 20 20 20 4b 65 79 5f 52 65 76 69 : 1.. Key_Revi
0da0: 73 69 6f 6e 3a 20 31 2e 30 0d 0a 20 20 20 54 61 sion: 1.0.. Ta
0db0: 67 67 65 64 5f 49 6e 66 6f 72 6d 61 74 69 6f 6e gged_Information
0dc0: 3a 0d 0a 20 20 20 20 20 20 4d 6f 64 65 6c 54 69 :.. ModelTi
0dd0: 65 70 6f 69 6e 74 54 61 67 20 28 32 2c 33 29 3a epointTag (2,3):
0de0: 0d 0a 20 20 20 20 20 20 20 20 20 30 20 20 20 20 .. 0
0df0: 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 20 0
0e00: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 0
0e10: 0d 0a 20 20 20 20 20 20 20 20 20 2d 31 38 30 20 .. -180
0e20: 20 20 20 20 20 20 20 20 20 20 20 20 20 39 30 20 90
0e30: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 0
0e40: 0d 0a 20 20 20 20 20 20 4d 6f 64 65 6c 50 69 78 .. ModelPix
0e50: 65 6c 53 63 61 6c 65 54 61 67 20 28 31 2c 33 29 elScaleTag (1,3)
0e60: 3a 0d 0a 20 20 20 20 20 20 20 20 20 30 2e 30 31 :.. 0.01
0e70: 36 36 36 36 36 36 36 36 36 36 36 36 36 37 20 30 66666666666667 0
0e80: 2e 30 31 36 36 36 36 36 36 36 36 36 36 36 36 36 .016666666666666
0e90: 37 20 30 0d 0a 20 20 20 20 20 20 45 6e 64 5f 4f 7 0.. End_O
0ea0: 66 5f 54 61 67 73 2e 0d 0a 20 20 20 4b 65 79 65 f_Tags... Keye
0eb0: 64 5f 49 6e 66 6f 72 6d 61 74 69 6f 6e 3a 0d 0a d_Information:..
0ec0: 20 20 20 20 20 20 45 6e 64 5f 4f 66 5f 4b 65 79 End_Of_Key
0ed0: 73 2e 0d 0a 20 20 20 45 6e 64 5f 4f 66 5f 47 65 s... End_Of_Ge
0ee0: 6f 74 69 66 66 2e 0d 0a 24 0d 0a 3c 2f 76 65 72 otiff...$..</ver
0ef0: 62 61 74 69 6d 3e 0d 0a 54 68 65 20 3c 62 3e 3c batim>..The <b><
0f00: 69 3e 6c 69 73 74 67 65 6f 3c 2f 69 3e 3c 2f 62 i>listgeo</i></b
0f10: 3e 20 74 6f 6f 6c 20 63 6f 6e 66 69 72 6d 73 20 > tool confirms
0f20: 74 68 61 74 20 74 68 69 73 20 61 63 74 75 61 6c that this actual
0f30: 6c 79 20 69 73 20 47 65 6f 54 49 46 46 3a 20 75 ly is GeoTIFF: u
0f40: 6e 68 61 70 70 69 6c 79 20 69 74 27 73 20 61 20 nhappily it's a
0f50: 62 6f 67 75 73 20 47 65 6f 54 49 46 46 2c 20 6d bogus GeoTIFF, m
0f60: 69 73 73 69 6e 67 20 74 6f 20 64 65 63 6c 61 72 issing to declar
0f70: 65 20 6d 61 6e 79 20 72 65 6c 65 76 61 6e 74 20 e many relevant
0f80: 69 6e 66 6f 72 6d 61 74 69 6f 6e 73 20 28 65 2e informations (e.
0f90: 67 2e 20 74 68 65 20 69 6e 74 65 6e 64 65 64 20 g. the intended
0fa0: 52 65 66 65 72 65 6e 63 65 20 53 79 73 74 65 6d Reference System
0fb0: 29 2e 20 53 6f 20 69 74 27 73 20 70 72 61 63 74 ). So it's pract
0fc0: 69 63 61 6c 6c 79 20 75 73 65 6c 65 73 73 2e 0d ically useless..
0fd0: 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 30 2e 30 .<verbatim>..0.0
0fe0: 31 36 36 36 36 36 36 36 36 36 36 36 36 36 37 0d 166666666666667.
0ff0: 0a 30 2e 30 30 30 30 30 0d 0a 30 2e 30 30 30 30 .0.00000..0.0000
1000: 30 0d 0a 2d 30 2e 30 31 36 36 36 36 36 36 36 36 0..-0.0166666666
1010: 36 36 36 36 36 37 0d 0a 2d 31 38 30 2e 30 30 30 666667..-180.000
1020: 30 30 0d 0a 39 30 2e 30 30 30 30 30 0d 0a 3c 2f 00..90.00000..</
1030: 76 65 72 62 61 74 69 6d 3e 0d 0a 41 6e 79 77 61 verbatim>..Anywa
1040: 79 20 74 68 69 73 20 69 73 6e 27 74 20 61 20 62 y this isn't a b
1050: 6c 6f 63 6b 69 6e 67 20 69 73 73 75 65 3a 20 79 locking issue: y
1060: 6f 75 20 63 6f 75 6c 64 20 65 61 73 69 6c 79 20 ou could easily
1070: 61 64 64 20 62 79 20 79 6f 75 72 73 65 6c 66 20 add by yourself
1080: 61 20 57 6f 72 6c 64 46 69 6c 65 20 73 75 70 70 a WorldFile supp
1090: 6f 72 74 69 6e 67 20 74 68 65 20 54 49 46 46 20 orting the TIFF
10a0: 28 61 73 20 65 78 65 6d 70 6c 69 66 69 65 64 20 (as exemplified
10b0: 69 6e 20 74 68 65 20 61 62 6f 76 65 20 73 6e 69 in the above sni
10c0: 70 70 65 74 29 3b 20 6f 72 20 79 6f 75 20 63 6f ppet); or you co
10d0: 75 6c 64 20 65 76 65 6e 74 75 61 6c 6c 79 20 6a uld eventually j
10e0: 75 73 74 20 64 6f 77 6e 6c 6f 61 64 20 69 74 20 ust download it
10f0: 66 72 6f 6d 20 3c 61 20 68 72 65 66 3d 22 68 74 from <a href="ht
1100: 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 tps://www.gaia-g
1110: 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f is.it/gaia-sins/
1120: 72 61 73 74 65 72 6c 69 74 65 32 2d 72 65 73 6f rasterlite2-reso
1130: 75 72 63 65 73 2f 45 54 4f 50 4f 31 5f 49 63 65 urces/ETOPO1_Ice
1140: 5f 63 5f 67 65 6f 74 69 66 66 2e 74 66 77 22 3e _c_geotiff.tfw">
1150: 68 65 72 65 3c 2f 61 3e 2e 20 0d 0a 3c 68 33 3e here</a>. ..<h3>
1160: 53 74 65 70 20 32 29 20 63 72 65 61 74 69 6e 67 Step 2) creating
1170: 20 74 68 65 20 45 74 6f 70 6f 31 5f 44 45 4d 20 the Etopo1_DEM
1180: 43 6f 76 65 72 61 67 65 3c 2f 68 33 3e 0d 0a 3c Coverage</h3>..<
1190: 76 65 72 62 61 74 69 6d 3e 0d 0a 24 20 72 6c 32 verbatim>..$ rl2
11a0: 74 6f 6f 6c 20 43 52 45 41 54 45 20 2d 64 62 20 tool CREATE -db
11b0: 65 61 72 74 68 2e 73 71 6c 69 74 65 20 2d 63 6f earth.sqlite -co
11c0: 76 20 45 74 6f 70 6f 31 5f 44 45 4d 20 2d 73 6d v Etopo1_DEM -sm
11d0: 70 20 49 4e 54 31 36 20 5c 0d 0a 2d 70 78 6c 20 p INT16 \..-pxl
11e0: 44 41 54 41 47 52 49 44 20 2d 63 70 72 20 4c 5a DATAGRID -cpr LZ
11f0: 4d 41 20 2d 73 72 69 64 20 34 33 32 36 20 2d 72 MA -srid 4326 -r
1200: 65 73 20 30 2e 30 31 36 36 36 36 36 36 36 36 36 es 0.01666666666
1210: 36 36 36 36 37 20 2d 6e 64 20 2d 39 39 39 39 0d 66667 -nd -9999.
1220: 0a 0d 0a 72 6c 32 5f 74 6f 6f 6c 3a 20 72 65 71 ...rl2_tool: req
1230: 75 65 73 74 20 69 73 20 43 52 45 41 54 45 0d 0a uest is CREATE..
1240: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1250: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1260: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1270: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0d 0a 20 20 20 ===========..
1280: 20 20 20 20 20 20 20 20 20 20 20 44 42 20 70 61 DB pa
1290: 74 68 3a 20 65 61 72 74 68 2e 73 71 6c 69 74 65 th: earth.sqlite
12a0: 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 43 .. C
12b0: 6f 76 65 72 61 67 65 3a 20 45 74 6f 70 6f 31 5f overage: Etopo1_
12c0: 44 45 4d 0d 0a 20 20 20 20 20 20 20 20 20 20 53 DEM.. S
12d0: 61 6d 70 6c 65 20 54 79 70 65 3a 20 49 4e 54 31 ample Type: INT1
12e0: 36 0d 0a 20 20 20 20 20 20 20 20 20 20 20 50 69 6.. Pi
12f0: 78 65 6c 20 54 79 70 65 3a 20 44 41 54 41 47 52 xel Type: DATAGR
1300: 49 44 0d 0a 20 20 20 20 20 20 4e 75 6d 62 65 72 ID.. Number
1310: 20 6f 66 20 42 61 6e 64 73 3a 20 31 0d 0a 20 20 of Bands: 1..
1320: 20 20 20 20 20 20 4e 4f 2d 44 41 54 41 20 70 69 NO-DATA pi
1330: 78 65 6c 3a 20 2d 39 39 39 39 0d 0a 20 20 20 20 xel: -9999..
1340: 20 20 20 20 20 20 43 6f 6d 70 72 65 73 73 69 6f Compressio
1350: 6e 3a 20 4c 5a 4d 41 20 28 37 2d 7a 69 70 2c 20 n: LZMA (7-zip,
1360: 6c 6f 73 73 6c 65 73 73 29 0d 0a 20 20 20 54 69 lossless).. Ti
1370: 6c 65 20 73 69 7a 65 20 28 70 69 78 65 6c 73 29 le size (pixels)
1380: 3a 20 35 31 32 20 78 20 35 31 32 0d 0a 20 20 20 : 512 x 512..
1390: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 72 Sr
13a0: 69 64 3a 20 34 33 32 36 0d 0a 50 69 78 65 6c 20 id: 4326..Pixel
13b0: 62 61 73 65 20 72 65 73 6f 6c 75 74 69 6f 6e 3a base resolution:
13c0: 20 58 3d 30 2e 30 31 36 36 36 36 36 36 36 36 36 X=0.01666666666
13d0: 36 36 36 36 37 20 59 3d 30 2e 30 31 36 36 36 36 66667 Y=0.016666
13e0: 36 36 36 36 36 36 36 36 36 37 0d 0a 3d 3d 3d 3d 6666666667..====
13f0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1400: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1410: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1420: 3d 3d 3d 3d 3d 3d 3d 0d 0a 0d 0a 20 20 20 20 20 =======....
1430: 53 51 4c 69 74 65 20 76 65 72 73 69 6f 6e 3a 20 SQLite version:
1440: 33 2e 38 2e 34 2e 32 0d 0a 20 53 70 61 74 69 61 3.8.4.2.. Spatia
1450: 4c 69 74 65 20 76 65 72 73 69 6f 6e 3a 20 34 2e Lite version: 4.
1460: 32 2e 30 2d 64 65 76 65 6c 0d 0a 52 61 73 74 65 2.0-devel..Raste
1470: 72 4c 69 74 65 32 20 76 65 72 73 69 6f 6e 3a 20 rLite2 version:
1480: 30 2e 38 0d 0a 0d 0a 52 61 73 74 65 72 20 43 6f 0.8....Raster Co
1490: 76 65 72 61 67 65 20 22 45 74 6f 70 6f 31 5f 44 verage "Etopo1_D
14a0: 45 4d 22 20 73 75 63 63 65 73 73 66 75 6c 6c 79 EM" successfully
14b0: 20 63 72 65 61 74 65 64 0d 0a 0d 0a 4f 70 65 72 created....Oper
14c0: 61 74 69 6f 6e 20 43 52 45 41 54 45 20 73 75 63 ation CREATE suc
14d0: 63 65 73 73 66 75 6c 6c 79 20 63 6f 6d 70 6c 65 cessfully comple
14e0: 74 65 64 0d 0a 24 0d 0a 3c 2f 76 65 72 62 61 74 ted..$..</verbat
14f0: 69 6d 3e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 45 im>..<ul>..<li>E
1500: 78 61 63 74 6c 79 20 61 73 20 79 6f 75 20 61 6c xactly as you al
1510: 72 65 61 64 79 20 64 69 64 20 69 6e 20 61 6e 79 ready did in any
1520: 20 70 72 65 76 69 6f 75 73 20 3c 62 3e 3c 69 3e previous <b><i>
1530: 74 75 74 6f 72 69 61 6c 3c 2f 69 3e 3c 2f 62 3e tutorial</i></b>
1540: 20 79 6f 75 27 6c 6c 20 69 6e 76 6f 6b 65 20 3c you'll invoke <
1550: 62 3e 3c 69 3e 72 6c 32 74 6f 6f 6c 3c 2f 69 3e b><i>rl2tool</i>
1560: 3c 2f 62 3e 20 66 72 6f 6d 20 74 68 65 20 63 6f </b> from the co
1570: 6d 6d 61 6e 64 20 73 68 65 6c 6c 2e 3c 2f 6c 69 mmand shell.</li
1580: 3e 0d 0a 3c 6c 69 3e 74 68 65 20 6d 6f 73 74 20 >..<li>the most
1590: 72 65 6c 65 76 61 6e 74 20 61 72 67 75 6d 65 6e relevant argumen
15a0: 74 73 20 77 69 6c 6c 20 62 65 20 65 78 70 6c 61 ts will be expla
15b0: 69 6e 65 64 20 6f 6e 65 20 62 79 20 6f 6e 65 3a ined one by one:
15c0: 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 2d ..<ul>..<li><b>-
15d0: 73 6d 70 20 49 4e 54 31 36 3c 2f 62 3e 20 74 68 smp INT16</b> th
15e0: 69 73 20 73 70 65 63 69 66 69 65 73 20 74 68 65 is specifies the
15f0: 20 43 6f 76 65 72 61 67 65 27 73 20 53 61 6d 70 Coverage's Samp
1600: 6c 65 20 54 79 70 65 2e 3c 2f 6c 69 3e 0d 0a 3c le Type.</li>..<
1610: 6c 69 3e 3c 62 3e 2d 70 78 6c 20 44 41 54 41 47 li><b>-pxl DATAG
1620: 52 49 44 3c 2f 62 3e 20 74 68 69 73 20 73 70 65 RID</b> this spe
1630: 63 69 66 69 65 73 20 74 68 65 20 43 6f 76 65 72 cifies the Cover
1640: 61 67 65 27 73 20 50 69 78 65 6c 20 54 79 70 65 age's Pixel Type
1650: 2e 3c 62 72 3e 0d 0a 3c 6c 69 3e 3c 62 3e 2d 63 .<br>..<li><b>-c
1660: 70 72 20 4c 5a 4d 41 3c 2f 62 3e 20 74 68 69 73 pr LZMA</b> this
1670: 20 73 70 65 63 69 66 69 65 73 20 74 68 61 74 20 specifies that
1680: 61 6c 6c 20 54 69 6c 65 73 20 69 6e 20 74 68 69 all Tiles in thi
1690: 73 20 43 6f 76 65 72 61 67 65 20 6d 75 73 74 20 s Coverage must
16a0: 62 65 20 20 63 6f 6d 70 72 65 73 73 65 64 20 75 be compressed u
16b0: 73 69 6e 67 20 74 68 65 20 3c 75 3e 3c 69 3e 6c sing the <u><i>l
16c0: 6f 73 73 6c 65 73 73 3c 2f 69 3e 3c 2f 75 3e 20 ossless</i></u>
16d0: 3c 62 3e 4c 5a 4d 41 3c 2f 62 3e 20 61 6c 67 6f <b>LZMA</b> algo
16e0: 72 69 74 68 6d 2e 3c 62 72 3e 0d 0a 3c 75 3e 50 rithm.<br>..<u>P
16f0: 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 lease note</u>:
1700: 69 6e 20 74 68 69 73 20 63 61 73 65 20 75 73 69 in this case usi
1710: 6e 67 20 74 68 65 20 63 6f 6d 6d 6f 6e 20 3c 62 ng the common <b
1720: 3e 4a 50 45 47 3c 2f 62 3e 20 63 6f 6d 70 72 65 >JPEG</b> compre
1730: 73 73 69 6f 6e 20 69 73 20 63 6f 6d 70 6c 65 74 ssion is complet
1740: 65 6c 79 20 6f 75 74 20 6f 66 20 64 69 73 63 75 ely out of discu
1750: 73 73 69 6f 6e 2c 20 62 65 63 61 75 73 65 20 4a ssion, because J
1760: 50 45 47 20 64 6f 65 73 6e 27 74 20 73 75 70 70 PEG doesn't supp
1770: 6f 72 74 20 31 36 20 62 69 74 20 70 69 78 65 6c ort 16 bit pixel
1780: 73 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 3c 2f s.</li>..</ul></
1790: 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 68 33 3e li>..</ul>..<h3>
17a0: 53 74 65 70 20 33 29 20 70 6f 70 75 6c 61 74 69 Step 3) populati
17b0: 6e 67 20 74 68 65 20 45 74 6f 70 6f 31 5f 44 45 ng the Etopo1_DE
17c0: 4d 20 43 6f 76 65 72 61 67 65 3c 2f 68 33 3e 0d M Coverage</h3>.
17d0: 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 24 20 72 .<verbatim>..$ r
17e0: 6c 32 74 6f 6f 6c 20 49 4d 50 4f 52 54 20 2d 64 l2tool IMPORT -d
17f0: 62 20 65 61 72 74 68 2e 73 71 6c 69 74 65 20 2d b earth.sqlite -
1800: 63 6f 76 20 45 74 6f 70 6f 31 5f 44 45 4d 20 2d cov Etopo1_DEM -
1810: 73 72 69 64 20 34 33 32 36 20 2d 77 66 20 5c 0d srid 4326 -wf \.
1820: 0a 2d 73 72 63 20 45 54 4f 50 4f 31 5f 49 63 65 .-src ETOPO1_Ice
1830: 5f 63 5f 67 65 6f 74 69 66 66 2e 74 69 66 20 2d _c_geotiff.tif -
1840: 70 79 72 0d 0a 0d 0a 72 6c 32 5f 74 6f 6f 6c 3b pyr....rl2_tool;
1850: 20 72 65 71 75 65 73 74 20 69 73 20 49 4d 50 4f request is IMPO
1860: 52 54 0d 0a 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d RT..============
1870: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1880: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
1890: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0d ===============.
18a0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 . D
18b0: 42 20 70 61 74 68 3a 20 65 61 72 74 68 2e 73 71 B path: earth.sq
18c0: 6c 69 74 65 0d 0a 20 20 20 20 49 6e 70 75 74 20 lite.. Input
18d0: 53 6f 75 72 63 65 20 70 61 74 68 3a 20 45 54 4f Source path: ETO
18e0: 50 4f 31 5f 49 63 65 5f 63 5f 67 65 6f 74 69 66 PO1_Ice_c_geotif
18f0: 66 2e 74 69 66 0d 0a 20 20 20 20 20 20 20 20 20 f.tif..
1900: 20 20 20 20 43 6f 76 65 72 61 67 65 3a 20 45 74 Coverage: Et
1910: 6f 70 6f 31 5f 44 45 4d 0d 0a 20 20 20 20 20 20 opo1_DEM..
1920: 20 20 20 20 20 20 20 20 53 65 63 74 69 6f 6e 3a Section:
1930: 20 66 72 6f 6d 20 66 69 6c 65 20 6e 61 6d 65 0d from file name.
1940: 0a 55 73 69 6e 67 20 74 68 65 20 57 6f 72 6c 64 .Using the World
1950: 46 69 6c 65 0d 0a 20 20 20 20 20 20 20 20 20 20 File..
1960: 46 6f 72 63 65 64 20 53 52 49 44 3a 20 34 33 32 Forced SRID: 432
1970: 36 0d 0a 49 6d 6d 65 64 69 61 74 65 6c 79 20 62 6..Immediately b
1980: 75 69 6c 64 69 6e 67 20 50 79 72 61 6d 69 64 20 uilding Pyramid
1990: 4c 65 76 65 6c 73 0d 0a 3d 3d 3d 3d 3d 3d 3d 3d Levels..========
19a0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
19b0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
19c0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
19d0: 3d 3d 3d 0d 0a 0d 0a 20 20 20 20 20 53 51 4c 69 ===.... SQLi
19e0: 74 65 20 76 65 72 73 69 6f 6e 3a 20 33 2e 38 2e te version: 3.8.
19f0: 34 2e 32 0d 0a 20 53 70 61 74 69 61 4c 69 74 65 4.2.. SpatiaLite
1a00: 20 76 65 72 73 69 6f 6e 3a 20 34 2e 32 2e 30 2d version: 4.2.0-
1a10: 64 65 76 65 6c 0d 0a 52 61 73 74 65 72 4c 69 74 devel..RasterLit
1a20: 65 32 20 76 65 72 73 69 6f 6e 3a 20 30 2e 38 0d e2 version: 0.8.
1a30: 0a 0d 0a 49 6d 70 6f 72 74 69 6e 67 3a 20 45 54 ...Importing: ET
1a40: 4f 50 4f 31 5f 49 63 65 5f 63 5f 67 65 6f 74 69 OPO1_Ice_c_geoti
1a50: 66 66 2e 74 69 66 0d 0a 2d 2d 2d 2d 2d 2d 2d 2d ff.tif..--------
1a60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 0a 20 20 20 20 ----------..
1a70: 49 6d 61 67 65 20 53 69 7a 65 20 28 70 69 78 65 Image Size (pixe
1a80: 6c 73 29 3a 20 32 31 36 30 30 20 78 20 31 30 38 ls): 21600 x 108
1a90: 30 30 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 00..
1aa0: 20 20 20 20 20 20 20 53 52 49 44 3a 20 34 33 32 SRID: 432
1ab0: 36 0d 0a 20 20 20 20 20 20 20 4c 6f 77 65 72 4c 6.. LowerL
1ac0: 65 66 74 20 43 6f 72 6e 65 72 3a 20 58 3d 2d 31 eft Corner: X=-1
1ad0: 38 30 2e 30 30 20 59 3d 2d 39 30 2e 30 30 0d 0a 80.00 Y=-90.00..
1ae0: 20 20 20 20 20 20 55 70 70 65 72 52 69 67 68 74 UpperRight
1af0: 20 43 6f 72 6e 65 72 3a 20 58 3d 31 38 30 2e 30 Corner: X=180.0
1b00: 30 20 59 3d 39 30 2e 30 30 0d 0a 20 20 20 20 20 0 Y=90.00..
1b10: 20 20 50 69 78 65 6c 20 72 65 73 6f 6c 75 74 69 Pixel resoluti
1b20: 6f 6e 3a 20 58 3d 30 2e 30 31 36 36 36 36 36 36 on: X=0.01666666
1b30: 36 36 36 36 36 36 36 37 20 59 3d 30 2e 30 31 36 66666667 Y=0.016
1b40: 36 36 36 36 36 36 36 36 36 36 36 36 37 0d 0a 20 6666666666667..
1b50: 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 0a 20 20 20 ----------..
1b60: 20 50 79 72 61 6d 69 64 20 6c 65 76 65 6c 73 20 Pyramid levels
1b70: 73 75 63 63 65 73 73 66 75 6c 6c 79 20 62 75 69 successfully bui
1b80: 6c 74 20 66 6f 72 3a 20 45 54 4f 50 4f 31 5f 49 lt for: ETOPO1_I
1b90: 63 65 5f 63 5f 67 65 6f 74 69 66 66 0d 0a 0d 0a ce_c_geotiff....
1ba0: 4f 70 65 72 61 74 69 6f 6e 20 49 4d 50 4f 52 54 Operation IMPORT
1bb0: 20 73 75 63 63 65 73 73 66 75 6c 6c 79 20 63 6f successfully co
1bc0: 6d 70 6c 65 74 65 64 0d 0a 24 0d 0a 3c 2f 76 65 mpleted..$..</ve
1bd0: 72 62 61 74 69 6d 3e 0d 0a 45 78 61 63 74 6c 79 rbatim>..Exactly
1be0: 20 61 73 20 79 6f 75 20 61 6c 72 65 61 64 79 20 as you already
1bf0: 64 69 64 20 69 6e 20 61 6e 79 20 6f 74 68 65 72 did in any other
1c00: 20 70 72 65 76 69 6f 75 73 20 74 75 74 6f 72 69 previous tutori
1c10: 61 6c 2e 0d 0a 3c 68 33 3e 53 74 65 70 20 34 29 al...<h3>Step 4)
1c20: 20 63 72 65 61 74 69 6e 67 20 61 6e 64 20 6c 6f creating and lo
1c30: 61 64 69 6e 67 20 79 6f 75 72 20 6f 77 6e 20 63 ading your own c
1c40: 75 73 74 6f 6d 20 52 61 73 74 65 72 20 53 74 79 ustom Raster Sty
1c50: 6c 65 73 3c 2f 68 33 3e 0d 0a 3c 68 34 3e 34 2e les</h3>..<h4>4.
1c60: 31 29 20 64 6f 77 6e 6c 6f 61 64 69 6e 67 20 74 1) downloading t
1c70: 68 65 20 45 54 4f 50 4f 31 20 73 74 79 6c 65 73 he ETOPO1 styles
1c80: 3c 2f 68 34 3e 0d 0a 4a 75 73 74 20 64 6f 77 6e </h4>..Just down
1c90: 6c 6f 61 64 20 74 68 65 20 61 70 70 72 6f 70 72 load the appropr
1ca0: 69 61 74 65 20 72 65 73 6f 75 72 63 65 2d 70 61 iate resource-pa
1cb0: 63 6b 20 66 72 6f 6d 20 3c 61 20 68 72 65 66 3d ck from <a href=
1cc0: 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 "https://www.gai
1cd0: 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 67 69 a-gis.it/gaia-gi
1ce0: 73 2f 72 61 73 74 65 72 6c 69 74 65 32 2d 72 65 s/rasterlite2-re
1cf0: 73 6f 75 72 63 65 73 2f 65 74 6f 70 6f 31 5f 73 sources/etopo1_s
1d00: 74 79 6c 65 73 2e 7a 69 70 22 3e 68 65 72 65 3c tyles.zip">here<
1d10: 2f 61 3e 3b 20 69 74 20 63 6f 6e 74 61 69 6e 73 /a>; it contains
1d20: 20 61 6e 79 20 53 4c 44 2f 53 45 20 52 61 73 74 any SLD/SE Rast
1d30: 65 72 53 79 6d 62 6f 6c 69 7a 65 72 20 72 65 71 erSymbolizer req
1d40: 75 69 72 65 64 20 62 79 20 74 68 69 73 20 74 75 uired by this tu
1d50: 74 6f 72 69 61 6c 2e 0d 0a 3c 68 34 3e 34 2e 32 torial...<h4>4.2
1d60: 29 20 65 78 70 6c 6f 72 69 6e 67 20 74 68 65 20 ) exploring the
1d70: 53 4c 44 2f 53 45 20 52 61 73 74 65 72 53 79 6d SLD/SE RasterSym
1d80: 62 6f 6c 69 7a 65 72 20 61 6e 61 74 6f 6d 79 3c bolizer anatomy<
1d90: 2f 68 34 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e /h4>..<verbatim>
1da0: 0d 0a 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d ..<?xml version=
1db0: 22 31 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 "1.0" encoding="
1dc0: 55 54 46 2d 38 22 3f 3e 0d 0a 3c 52 61 73 74 65 UTF-8"?>..<Raste
1dd0: 72 53 79 6d 62 6f 6c 69 7a 65 72 20 76 65 72 73 rSymbolizer vers
1de0: 69 6f 6e 3d 22 31 2e 31 2e 30 22 20 0d 0a 09 09 ion="1.1.0" ....
1df0: 78 73 69 3a 73 63 68 65 6d 61 4c 6f 63 61 74 69 xsi:schemaLocati
1e00: 6f 6e 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e 6f on="http://www.o
1e10: 70 65 6e 67 69 73 2e 6e 65 74 2f 73 65 20 68 74 pengis.net/se ht
1e20: 74 70 3a 2f 2f 73 63 68 65 6d 61 73 2e 6f 70 65 tp://schemas.ope
1e30: 6e 67 69 73 2e 6e 65 74 2f 73 65 2f 31 2e 31 2e ngis.net/se/1.1.
1e40: 30 2f 53 79 6d 62 6f 6c 69 7a 65 72 2e 78 73 64 0/Symbolizer.xsd
1e50: 22 0d 0a 09 09 78 6d 6c 6e 73 3d 22 68 74 74 70 "....xmlns="http
1e60: 3a 2f 2f 77 77 77 2e 6f 70 65 6e 67 69 73 2e 6e ://www.opengis.n
1e70: 65 74 2f 73 65 22 0d 0a 09 09 78 6d 6c 6e 73 3a et/se"....xmlns:
1e80: 6f 67 63 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e ogc="http://www.
1e90: 6f 70 65 6e 67 69 73 2e 6e 65 74 2f 6f 67 63 22 opengis.net/ogc"
1ea0: 0d 0a 09 09 78 6d 6c 6e 73 3a 78 6c 69 6e 6b 3d ....xmlns:xlink=
1eb0: 22 68 74 74 70 3a 2f 2f 77 77 77 2e 77 33 2e 6f "http://www.w3.o
1ec0: 72 67 2f 31 39 39 39 2f 78 6c 69 6e 6b 22 0d 0a rg/1999/xlink"..
1ed0: 09 09 78 6d 6c 6e 73 3a 78 73 69 3d 22 68 74 74 ..xmlns:xsi="htt
1ee0: 70 3a 2f 2f 77 77 77 2e 77 33 2e 6f 72 67 2f 32 p://www.w3.org/2
1ef0: 30 30 31 2f 58 4d 4c 53 63 68 65 6d 61 2d 69 6e 001/XMLSchema-in
1f00: 73 74 61 6e 63 65 22 3e 0d 0a 09 3c 4e 61 6d 65 stance">...<Name
1f10: 3e 74 72 69 65 73 74 65 5f 67 61 6d 6d 61 5f 31 >trieste_gamma_1
1f20: 2e 35 3c 2f 4e 61 6d 65 3e 0d 0a 09 3c 44 65 73 .5</Name>...<Des
1f30: 63 72 69 70 74 69 6f 6e 3e 0d 0a 09 09 3c 54 69 cription>....<Ti
1f40: 74 6c 65 3e 43 6f 6e 74 72 61 73 74 20 45 6e 68 tle>Contrast Enh
1f50: 61 6e 63 65 6d 65 6e 74 3a 20 47 61 6d 6d 61 56 ancement: GammaV
1f60: 61 6c 75 65 3d 31 2e 35 3c 2f 54 69 74 6c 65 3e alue=1.5</Title>
1f70: 0d 0a 09 09 3c 41 62 73 74 72 61 63 74 3e 61 20 ....<Abstract>a
1f80: 73 74 79 6c 65 64 20 31 36 2d 62 69 74 20 67 72 styled 16-bit gr
1f90: 61 79 73 63 61 6c 65 20 72 61 73 74 65 72 20 73 ayscale raster s
1fa0: 75 70 70 6f 72 74 69 6e 67 20 63 6f 6e 74 72 61 upporting contra
1fb0: 73 74 20 65 6e 68 61 6e 63 65 6d 65 6e 74 3b 20 st enhancement;
1fc0: 47 61 6d 6d 61 56 61 6c 75 65 20 6d 65 74 68 6f GammaValue metho
1fd0: 64 20 28 63 6f 65 66 66 3d 31 2e 35 29 3c 2f 41 d (coeff=1.5)</A
1fe0: 62 73 74 72 61 63 74 3e 0d 0a 09 3c 2f 44 65 73 bstract>...</Des
1ff0: 63 72 69 70 74 69 6f 6e 3e 0d 0a 09 3c 4f 70 61 cription>...<Opa
2000: 63 69 74 79 3e 31 2e 30 3c 2f 4f 70 61 63 69 74 city>1.0</Opacit
2010: 79 3e 0d 0a 09 3c 43 6f 6e 74 72 61 73 74 45 6e y>...<ContrastEn
2020: 68 61 6e 63 65 6d 65 6e 74 3e 0d 0a 09 09 3c 47 hancement>....<G
2030: 61 6d 6d 61 56 61 6c 75 65 3e 31 2e 35 3c 2f 47 ammaValue>1.5</G
2040: 61 6d 6d 61 56 61 6c 75 65 3e 0d 0a 09 3c 2f 43 ammaValue>...</C
2050: 6f 6e 74 72 61 73 74 45 6e 68 61 6e 63 65 6d 65 ontrastEnhanceme
2060: 6e 74 3e 0d 0a 3c 2f 52 61 73 74 65 72 53 79 6d nt>..</RasterSym
2070: 62 6f 6c 69 7a 65 72 3e 0d 0a 3c 2f 76 65 72 62 bolizer>..</verb
2080: 61 74 69 6d 3e 0d 0a 41 6e 79 20 52 61 73 74 65 atim>..Any Raste
2090: 72 53 79 6d 62 6f 6c 69 7a 65 72 20 73 69 6d 70 rSymbolizer simp
20a0: 6c 79 20 69 73 20 61 6e 20 3c 62 3e 3c 69 3e 58 ly is an <b><i>X
20b0: 4d 4c 20 44 6f 63 75 6d 65 6e 74 3c 2f 69 3e 3c ML Document</i><
20c0: 2f 62 3e 2c 20 69 2e 65 2e 20 61 20 3c 62 3e 3c /b>, i.e. a <b><
20d0: 69 3e 74 65 78 74 20 66 69 6c 65 3c 2f 69 3e 3c i>text file</i><
20e0: 2f 62 3e 3b 20 79 6f 75 20 63 61 6e 20 73 61 66 /b>; you can saf
20f0: 65 6c 79 20 75 73 65 20 61 6e 79 20 6f 72 64 69 ely use any ordi
2100: 6e 61 72 79 20 74 65 78 74 20 65 64 69 74 6f 72 nary text editor
2110: 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 76 69 65 in order to vie
2120: 77 20 61 6e 64 20 65 76 65 6e 74 75 61 6c 6c 79 w and eventually
2130: 20 6d 6f 64 69 66 79 20 61 20 52 61 73 74 65 72 modify a Raster
2140: 53 79 6d 62 6f 6c 69 7a 65 72 3a 0d 0a 0d 0a 0d Symbolizer:.....
2150: 0a 0d 0a 0d 0a 0d 0a 3c 68 34 3e 34 2e 33 29 20 .......<h4>4.3)
2160: 69 6d 70 6f 72 74 69 6e 67 20 61 6c 6c 20 52 61 importing all Ra
2170: 73 74 65 72 53 79 6d 62 6f 6c 69 7a 65 72 73 20 sterSymbolizers
2180: 69 6e 74 6f 20 74 68 65 20 44 42 2d 66 69 6c 65 into the DB-file
2190: 3c 2f 68 34 3e 0d 0a 3c 76 65 72 62 61 74 69 6d </h4>..<verbatim
21a0: 3e 0d 0a 24 20 73 71 6c 69 74 65 33 20 65 61 72 >..$ sqlite3 ear
21b0: 74 68 2e 73 71 6c 69 74 65 0d 0a 53 51 4c 69 74 th.sqlite..SQLit
21c0: 65 20 76 65 72 73 69 6f 6e 20 33 2e 38 2e 34 2e e version 3.8.4.
21d0: 32 20 32 30 31 34 2d 30 33 2d 32 36 20 31 38 3a 2 2014-03-26 18:
21e0: 35 31 3a 31 39 0d 0a 45 6e 74 65 72 20 22 2e 68 51:19..Enter ".h
21f0: 65 6c 70 22 20 66 6f 72 20 75 73 61 67 65 20 68 elp" for usage h
2200: 69 6e 74 73 2e 0d 0a 73 71 6c 69 74 65 3e 20 2e ints...sqlite> .
2210: 6e 75 6c 6c 20 4e 55 4c 4c 0d 0a 73 71 6c 69 74 null NULL..sqlit
2220: 65 3e 20 53 45 4c 45 43 54 20 6c 6f 61 64 5f 65 e> SELECT load_e
2230: 78 74 65 6e 73 69 6f 6e 28 27 6d 6f 64 5f 73 70 xtension('mod_sp
2240: 61 74 69 61 6c 69 74 65 27 29 3b 0d 0a 4e 55 4c atialite');..NUL
2250: 4c 0d 0a 73 71 6c 69 74 65 3e 20 53 45 4c 45 43 L..sqlite> SELEC
2260: 54 20 43 72 65 61 74 65 53 74 79 6c 69 6e 67 54 T CreateStylingT
2270: 61 62 6c 65 73 28 29 3b 0d 0a 31 0d 0a 73 71 6c ables();..1..sql
2280: 69 74 65 3e 20 53 45 4c 45 43 54 20 52 65 67 69 ite> SELECT Regi
2290: 73 74 65 72 52 61 73 74 65 72 53 74 79 6c 65 64 sterRasterStyled
22a0: 4c 61 79 65 72 28 27 65 74 6f 70 6f 31 5f 64 65 Layer('etopo1_de
22b0: 6d 27 2c 0d 0a 20 20 20 2e 2e 2e 3e 20 58 42 5f m',.. ...> XB_
22c0: 43 72 65 61 74 65 28 58 42 5f 4c 6f 61 64 58 4d Create(XB_LoadXM
22d0: 4c 28 27 2e 2f 65 74 6f 70 6f 31 5f 73 74 79 6c L('./etopo1_styl
22e0: 65 73 2f 65 74 6f 70 6f 2e 78 6d 6c 27 29 2c 20 es/etopo.xml'),
22f0: 31 2c 20 31 29 29 3b 0d 0a 31 0d 0a 73 71 6c 69 1, 1));..1..sqli
2300: 74 65 3e 20 53 45 4c 45 43 54 20 52 65 67 69 73 te> SELECT Regis
2310: 74 65 72 52 61 73 74 65 72 53 74 79 6c 65 64 4c terRasterStyledL
2320: 61 79 65 72 28 27 65 74 6f 70 6f 31 5f 64 65 6d ayer('etopo1_dem
2330: 27 2c 0d 0a 20 20 20 2e 2e 2e 3e 20 58 42 5f 43 ',.. ...> XB_C
2340: 72 65 61 74 65 28 58 42 5f 4c 6f 61 64 58 4d 4c reate(XB_LoadXML
2350: 28 27 2e 2f 65 74 6f 70 6f 31 5f 73 74 79 6c 65 ('./etopo1_style
2360: 73 2f 65 74 6f 70 6f 5f 63 61 74 65 67 6f 72 69 s/etopo_categori
2370: 7a 65 2e 78 6d 6c 27 29 2c 20 31 2c 20 31 29 29 ze.xml'), 1, 1))
2380: 3b 0d 0a 31 0d 0a 73 71 6c 69 74 65 3e 20 53 45 ;..1..sqlite> SE
2390: 4c 45 43 54 20 52 65 67 69 73 74 65 72 52 61 73 LECT RegisterRas
23a0: 74 65 72 53 74 79 6c 65 64 4c 61 79 65 72 28 27 terStyledLayer('
23b0: 65 74 6f 70 6f 31 5f 64 65 6d 27 2c 0d 0a 20 20 etopo1_dem',..
23c0: 20 2e 2e 2e 3e 20 58 42 5f 43 72 65 61 74 65 28 ...> XB_Create(
23d0: 58 42 5f 4c 6f 61 64 58 4d 4c 28 27 2e 2f 65 74 XB_LoadXML('./et
23e0: 6f 70 6f 31 5f 73 74 79 6c 65 73 2f 74 65 72 72 opo1_styles/terr
23f0: 61 69 6e 2e 78 6d 6c 27 29 2c 20 31 2c 20 31 29 ain.xml'), 1, 1)
2400: 29 3b 0d 0a 31 0d 0a 73 71 6c 69 74 65 3e 20 53 );..1..sqlite> S
2410: 45 4c 45 43 54 20 52 65 67 69 73 74 65 72 52 61 ELECT RegisterRa
2420: 73 74 65 72 53 74 79 6c 65 64 4c 61 79 65 72 28 sterStyledLayer(
2430: 27 65 74 6f 70 6f 31 5f 64 65 6d 27 2c 0d 0a 20 'etopo1_dem',..
2440: 20 20 2e 2e 2e 3e 20 58 42 5f 43 72 65 61 74 65 ...> XB_Create
2450: 28 58 42 5f 4c 6f 61 64 58 4d 4c 28 27 2e 2f 65 (XB_LoadXML('./e
2460: 74 6f 70 6f 31 5f 73 74 79 6c 65 73 2f 73 72 74 topo1_styles/srt
2470: 6d 5f 70 6c 75 73 2e 78 6d 6c 27 29 2c 20 31 2c m_plus.xml'), 1,
2480: 20 31 29 29 3b 0d 0a 31 0d 0a 73 71 6c 69 74 65 1));..1..sqlite
2490: 3e 20 2e 71 75 69 74 0d 0a 24 0d 0a 3c 2f 76 65 > .quit..$..</ve
24a0: 72 62 61 74 69 6d 3e 0d 0a 54 68 69 73 20 73 74 rbatim>..This st
24b0: 65 70 20 65 78 61 63 74 6c 79 20 63 6f 72 72 65 ep exactly corre
24c0: 73 70 6f 6e 64 73 20 74 6f 20 74 68 65 20 74 61 sponds to the ta
24d0: 73 6b 20 61 6c 72 65 61 64 79 20 65 78 70 6c 61 sk already expla
24e0: 69 6e 65 64 20 69 6e 20 74 68 65 20 3c 62 3e 3c ined in the <b><
24f0: 69 3e 54 72 69 65 73 74 65 3c 2f 69 3e 3c 2f 62 i>Trieste</i></b
2500: 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 4f 72 62 65 > and <b><i>Orbe
2510: 74 65 6c 6c 6f 3c 2f 69 3e 3c 2f 62 3e 20 74 75 tello</i></b> tu
2520: 74 6f 72 69 61 6c 73 2e 0d 0a 3c 68 33 3e 53 74 torials...<h3>St
2530: 65 70 20 35 29 20 74 65 73 74 69 6e 67 20 74 68 ep 5) testing th
2540: 65 20 45 54 4f 50 4f 31 5f 44 45 4d 20 73 61 6d e ETOPO1_DEM sam
2550: 70 6c 65 20 28 61 6e 64 20 70 6c 61 79 69 6e 67 ple (and playing
2560: 20 77 69 74 68 20 53 74 79 6c 65 73 29 3c 2f 68 with Styles)</h
2570: 33 3e 0d 0a 41 73 20 79 6f 75 27 76 65 20 61 6c 3>..As you've al
2580: 72 65 61 64 79 20 64 6f 6e 65 20 69 6e 20 61 6e ready done in an
2590: 79 20 70 72 65 76 69 6f 75 73 20 3c 62 3e 3c 69 y previous <b><i
25a0: 3e 74 75 74 6f 72 69 61 6c 3c 2f 69 3e 3c 2f 62 >tutorial</i></b
25b0: 3e 20 79 6f 75 20 63 61 6e 20 6e 6f 77 20 64 69 > you can now di
25c0: 72 65 63 74 6c 79 20 74 65 73 74 20 74 68 65 20 rectly test the
25d0: 45 54 4f 50 4f 31 5f 44 45 4d 20 43 6f 76 65 72 ETOPO1_DEM Cover
25e0: 61 67 65 20 62 79 20 70 75 62 6c 69 73 68 69 6e age by publishin
25f0: 67 20 61 20 73 74 61 6e 64 61 72 64 20 57 4d 53 g a standard WMS
2600: 20 73 65 72 76 69 63 65 2e 3c 62 72 3e 0d 0a 59 service.<br>..Y
2610: 6f 75 20 73 69 6d 70 6c 79 20 68 61 76 65 20 74 ou simply have t
2620: 6f 20 73 74 61 72 74 20 74 68 65 20 3c 62 3e 3c o start the <b><
2630: 69 3e 77 6d 73 6c 69 74 65 3c 2f 69 3e 3c 2f 62 i>wmslite</i></b
2640: 3e 20 6c 69 67 68 74 2d 77 65 69 67 68 74 20 73 > light-weight s
2650: 65 72 76 65 72 2c 20 74 68 65 6e 20 63 6f 6e 6e erver, then conn
2660: 65 63 74 69 6e 67 20 73 6f 6d 65 20 57 4d 53 20 ecting some WMS
2670: 76 69 65 77 65 72 20 28 65 2e 67 2e 20 3c 62 3e viewer (e.g. <b>
2680: 3c 69 3e 4c 69 62 72 65 57 4d 53 3c 2f 69 3e 3c <i>LibreWMS</i><
2690: 2f 62 3e 29 20 74 6f 20 74 68 65 20 73 65 72 76 /b>) to the serv
26a0: 69 63 65 20 62 65 69 6e 67 20 70 75 62 6c 69 73 ice being publis
26b0: 68 65 64 20 6f 6e 20 3c 62 3e 3c 69 3e 6c 6f 63 hed on <b><i>loc
26c0: 61 6c 68 6f 73 74 3c 2f 69 3e 3c 2f 62 3e 20 61 alhost</i></b> a
26d0: 6b 61 20 49 50 20 61 64 64 72 65 73 73 20 3c 62 ka IP address <b
26e0: 3e 3c 69 3e 31 32 37 2e 30 2e 30 2e 31 3c 2f 69 ><i>127.0.0.1</i
26f0: 3e 3c 2f 62 3e 2c 20 70 6f 72 74 20 3c 62 3e 3c ></b>, port <b><
2700: 69 3e 38 30 38 30 3c 2f 69 3e 3c 2f 62 3e 2e 3c i>8080</i></b>.<
2710: 62 72 3e 3c 62 72 3e 0d 0a 3c 69 6d 67 20 73 72 br><br>..<img sr
2720: 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 c="https://www.g
2730: 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d aia-gis.it/gaia-
2740: 73 69 6e 73 2f 72 61 73 74 65 72 6c 69 74 65 32 sins/rasterlite2
2750: 2d 70 69 63 2f 65 74 6f 70 6f 31 2d 64 65 66 61 -pic/etopo1-defa
2760: 75 6c 74 2e 70 6e 67 22 20 61 6c 74 3d 22 45 54 ult.png" alt="ET
2770: 4f 50 4f 31 20 64 65 66 61 75 6c 74 22 3e 3c 62 OPO1 default"><b
2780: 72 3e 0d 0a 54 68 69 73 20 66 69 72 73 74 20 65 r>..This first e
2790: 78 61 6d 70 6c 65 20 63 6f 72 72 65 73 70 6f 6e xample correspon
27a0: 64 73 20 74 6f 20 74 68 65 20 3c 75 3e 64 65 66 ds to the <u>def
27b0: 61 75 6c 74 3c 2f 75 3e 20 53 74 79 6c 65 20 28 ault</u> Style (
27c0: 6e 6f 20 52 61 73 74 65 72 53 79 6d 62 6f 6c 69 no RasterSymboli
27d0: 7a 65 72 20 61 74 20 61 6c 6c 29 3a 20 69 6e 20 zer at all): in
27e0: 74 68 69 73 20 63 61 73 65 20 6a 75 73 74 20 61 this case just a
27f0: 20 62 61 73 69 63 20 47 72 61 79 73 63 61 6c 65 basic Grayscale
2800: 20 72 65 6e 64 65 72 69 6e 67 20 69 73 20 61 70 rendering is ap
2810: 70 6c 79 65 64 2e 20 4e 6f 74 20 61 20 72 65 61 plyed. Not a rea
2820: 6c 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 lly interesting
2830: 6f 70 74 69 6f 6e 2e 3c 62 72 3e 3c 62 72 3e 0d option.<br><br>.
2840: 0a 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 .<img src="https
2850: 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e ://www.gaia-gis.
2860: 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 72 61 73 it/gaia-sins/ras
2870: 74 65 72 6c 69 74 65 32 2d 70 69 63 2f 65 74 6f terlite2-pic/eto
2880: 70 6f 31 2d 65 74 6f 70 6f 2d 63 61 74 65 67 6f po1-etopo-catego
2890: 72 69 7a 65 2e 70 6e 67 22 20 61 6c 74 3d 22 45 rize.png" alt="E
28a0: 54 4f 50 4f 31 20 63 61 74 65 67 6f 72 69 7a 65 TOPO1 categorize
28b0: 22 3e 3c 62 72 3e 0d 0a 54 68 69 73 20 73 65 63 "><br>..This sec
28c0: 6f 6e 64 20 65 78 61 6d 70 6c 65 20 63 6f 72 72 ond example corr
28d0: 65 73 70 6f 6e 64 73 20 74 6f 20 74 68 65 20 3c esponds to the <
28e0: 62 3e 65 74 6f 70 6f 5f 63 61 74 65 67 6f 72 69 b>etopo_categori
28f0: 7a 65 3c 2f 62 3e 20 73 74 79 6c 65 2e 3c 62 72 ze</b> style.<br
2900: 3e 0d 0a 59 6f 75 20 63 61 6e 20 66 75 6c 6c 79 >..You can fully
2910: 20 61 70 70 72 65 63 69 61 74 65 20 77 68 61 74 appreciate what
2920: 20 61 20 3c 62 3e 43 6f 6c 6f 72 4d 61 70 3c 2f a <b>ColorMap</
2930: 62 3e 20 6f 66 20 74 68 65 20 3c 62 3e 43 61 74 b> of the <b>Cat
2940: 65 67 6f 72 69 7a 65 3c 2f 62 3e 20 74 79 70 65 egorize</b> type
2950: 20 69 6d 70 6c 69 65 73 3b 20 61 6c 6c 20 65 6c implies; all el
2960: 65 76 61 74 69 6f 6e 73 20 66 61 6c 6c 69 6e 67 evations falling
2970: 20 74 68 65 20 73 61 6d 65 20 63 6c 61 73 73 20 the same class
2980: 69 6e 74 65 72 76 61 6c 20 68 61 76 65 20 6e 6f interval have no
2990: 77 20 72 65 63 65 69 76 65 64 20 74 68 65 20 73 w received the s
29a0: 61 6d 65 20 69 64 65 6e 74 69 63 61 6c 20 63 6f ame identical co
29b0: 6c 6f 72 3b 20 61 6e 64 20 74 68 65 20 66 69 6e lor; and the fin
29c0: 61 6c 20 72 65 73 75 6c 74 20 69 73 20 61 6e 20 al result is an
29d0: 75 6e 70 6c 65 61 73 61 6e 74 20 75 67 6c 79 20 unpleasant ugly
29e0: 6d 61 70 2e 3c 62 72 3e 3c 62 72 3e 20 0d 0a 3c map.<br><br> ..<
29f0: 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f img src="https:/
2a00: 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 /www.gaia-gis.it
2a10: 2f 67 61 69 61 2d 73 69 6e 73 2f 72 61 73 74 65 /gaia-sins/raste
2a20: 72 6c 69 74 65 32 2d 70 69 63 2f 65 74 6f 70 6f rlite2-pic/etopo
2a30: 31 2d 65 74 6f 70 6f 2e 70 6e 67 22 20 61 6c 74 1-etopo.png" alt
2a40: 3d 22 45 54 4f 50 4f 31 20 65 74 6f 70 6f 20 73 ="ETOPO1 etopo s
2a50: 74 79 6c 65 22 3e 3c 62 72 3e 0d 0a 54 68 69 73 tyle"><br>..This
2a60: 20 74 68 69 72 64 20 65 78 61 6d 70 6c 65 20 63 third example c
2a70: 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f 20 74 68 orresponds to th
2a80: 65 20 3c 62 3e 65 74 6f 70 6f 3c 2f 62 3e 20 73 e <b>etopo</b> s
2a90: 74 79 6c 65 3b 20 6e 6f 77 20 74 68 65 20 3c 62 tyle; now the <b
2aa0: 3e 43 6f 6c 6f 72 4d 61 70 3c 2f 62 3e 20 69 73 >ColorMap</b> is
2ab0: 20 6f 66 20 74 68 65 20 3c 62 3e 49 6e 74 65 72 of the <b>Inter
2ac0: 70 6f 6c 61 74 65 3c 2f 62 3e 20 74 79 70 65 2c polate</b> type,
2ad0: 20 61 6e 64 20 74 68 65 20 66 69 6e 61 6c 20 72 and the final r
2ae0: 65 73 75 6c 74 20 69 73 20 6d 75 63 68 20 6d 6f esult is much mo
2af0: 72 65 20 62 72 69 6c 6c 69 61 6e 74 20 74 68 65 re brilliant the
2b00: 6e 20 62 65 66 6f 72 65 2e 3c 62 72 3e 0d 0a 3c n before.<br>..<
2b10: 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 20 77 65 u>Please note we
2b20: 6c 6c 3c 2f 75 3e 3a 20 62 6f 74 68 20 74 68 65 ll</u>: both the
2b30: 20 3c 62 3e 65 74 6f 70 6f 5f 63 61 74 65 67 6f <b>etopo_catego
2b40: 72 69 7a 65 3c 2f 62 3e 20 61 6e 64 20 74 68 65 rize</b> and the
2b50: 20 3c 62 3e 65 74 6f 70 6f 3c 2f 62 3e 20 73 74 <b>etopo</b> st
2b60: 79 6c 65 20 73 68 61 72 65 20 65 78 61 63 74 6c yle share exactl
2b70: 79 20 74 68 65 20 73 61 6d 65 20 69 64 65 6e 74 y the same ident
2b80: 69 63 61 6c 20 3c 62 3e 43 6f 6c 6f 72 4d 61 70 ical <b>ColorMap
2b90: 3c 2f 62 3e 3b 20 62 75 74 20 74 68 65 20 3c 62 </b>; but the <b
2ba0: 3e 65 74 6f 70 6f 3c 2f 62 3e 20 73 74 79 6c 65 >etopo</b> style
2bb0: 20 73 75 70 70 6f 72 74 73 20 74 68 65 20 3c 62 supports the <b
2bc0: 3e 49 6e 74 65 72 70 6f 6c 61 74 65 3c 2f 62 3e >Interpolate</b>
2bd0: 20 72 65 6e 64 65 72 69 6e 67 2c 20 74 68 75 73 rendering, thus
2be0: 20 70 72 6f 64 75 63 69 6e 67 20 61 20 77 69 64 producing a wid
2bf0: 65 20 72 61 6e 67 65 20 6f 66 20 64 69 66 66 65 e range of diffe
2c00: 72 65 6e 74 20 63 6f 6c 6f 72 20 73 68 61 64 65 rent color shade
2c10: 73 2c 20 61 6e 64 20 74 68 65 20 6f 76 65 72 61 s, and the overa
2c20: 6c 6c 20 65 66 66 65 63 74 20 73 75 72 65 6c 79 ll effect surely
2c30: 20 69 73 20 61 20 70 6c 65 61 73 61 6e 74 20 6f is a pleasant o
2c40: 6e 65 2e 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 69 6d ne.<br><br>..<im
2c50: 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 g src="https://w
2c60: 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 ww.gaia-gis.it/g
2c70: 61 69 61 2d 73 69 6e 73 2f 72 61 73 74 65 72 6c aia-sins/rasterl
2c80: 69 74 65 32 2d 70 69 63 2f 65 74 6f 70 6f 31 2d ite2-pic/etopo1-
2c90: 74 65 72 72 61 69 6e 2e 70 6e 67 22 20 61 6c 74 terrain.png" alt
2ca0: 3d 22 45 54 4f 50 4f 31 20 74 65 72 72 61 69 6e ="ETOPO1 terrain
2cb0: 22 3e 3c 62 72 3e 0d 0a 54 68 69 73 20 66 6f 75 "><br>..This fou
2cc0: 72 74 68 20 65 78 61 6d 70 6c 65 20 63 6f 72 72 rth example corr
2cd0: 65 73 70 6f 6e 64 73 20 74 6f 20 74 68 65 20 3c esponds to the <
2ce0: 62 3e 74 65 72 72 61 69 6e 3c 2f 62 3e 20 73 74 b>terrain</b> st
2cf0: 79 6c 65 3b 20 69 74 27 73 20 76 65 72 79 20 73 yle; it's very s
2d00: 69 6d 69 6c 61 72 20 74 6f 20 3c 62 3e 65 74 6f imilar to <b>eto
2d10: 70 6f 3c 2f 62 3e 2c 20 62 75 74 20 69 6e 20 74 po</b>, but in t
2d20: 68 69 73 20 63 61 73 65 20 64 65 65 70 20 77 61 his case deep wa
2d30: 74 65 72 73 20 61 72 65 20 73 69 6d 70 6c 79 20 ters are simply
2d40: 72 65 70 72 65 73 65 6e 74 65 64 20 61 73 20 62 represented as b
2d50: 6c 61 63 6b 20 61 72 65 61 73 2c 20 73 6f 20 74 lack areas, so t
2d60: 6f 20 66 6f 63 75 73 20 74 68 65 20 61 74 74 65 o focus the atte
2d70: 6e 74 69 6f 6e 20 6f 6e 20 4c 61 6e 64 73 20 61 ntion on Lands a
2d80: 6e 64 20 6e 65 61 72 62 79 20 73 68 61 6c 6c 6f nd nearby shallo
2d90: 77 20 77 61 74 65 72 73 2e 3c 62 72 3e 3c 62 72 w waters.<br><br
2da0: 3e 0d 0a 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 >..<img src="htt
2db0: 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 ps://www.gaia-gi
2dc0: 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 72 s.it/gaia-sins/r
2dd0: 61 73 74 65 72 6c 69 74 65 32 2d 70 69 63 2f 65 asterlite2-pic/e
2de0: 74 6f 70 6f 31 2d 73 72 74 6d 2d 70 6c 75 73 2e topo1-srtm-plus.
2df0: 70 6e 67 22 20 61 6c 74 3d 22 45 54 4f 50 4f 31 png" alt="ETOPO1
2e00: 20 73 72 74 6d 5f 70 6c 75 73 22 3e 3c 62 72 3e srtm_plus"><br>
2e10: 0d 0a 54 68 69 73 20 66 69 6e 61 6c 20 65 78 61 ..This final exa
2e20: 6d 70 6c 65 20 63 6f 72 72 65 73 70 6f 6e 64 73 mple corresponds
2e30: 20 74 6f 20 74 68 65 20 3c 62 3e 73 72 74 6d 5f to the <b>srtm_
2e40: 70 6c 75 73 3c 2f 62 3e 20 73 74 79 6c 65 2e 20 plus</b> style.
2e50: 41 73 20 79 6f 75 20 63 61 6e 20 65 61 73 69 6c As you can easil
2e60: 79 20 6e 6f 74 69 63 65 2c 20 69 74 27 73 20 6e y notice, it's n
2e70: 6f 74 20 61 74 20 61 6c 6c 20 64 69 66 66 69 63 ot at all diffic
2e80: 75 6c 74 20 63 72 65 61 74 69 6e 67 20 63 6f 6d ult creating com
2e90: 70 6c 65 74 65 6c 79 20 64 69 66 66 65 72 65 6e pletely differen
2ea0: 74 20 6d 61 70 73 20 73 74 61 72 74 69 6e 67 20 t maps starting
2eb0: 66 72 6f 6d 20 74 68 65 20 73 61 6d 65 20 69 64 from the same id
2ec0: 65 6e 74 69 63 61 6c 20 44 45 4d 20 43 6f 76 65 entical DEM Cove
2ed0: 72 61 67 65 3b 20 79 6f 75 20 61 72 65 20 73 69 rage; you are si
2ee0: 6d 70 6c 79 20 72 65 71 75 69 72 65 64 20 74 6f mply required to
2ef0: 20 64 65 66 69 6e 65 20 66 65 77 20 61 6c 74 65 define few alte
2f00: 72 6e 61 74 69 76 65 20 53 74 79 6c 65 73 20 61 rnative Styles a
2f10: 6e 64 20 74 68 61 74 27 73 20 61 6c 6c 2e 0d 0a nd that's all...
2f20: 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 68 72 3e 3c 62 <br><br>..<hr><b
2f30: 72 3e 0d 0a 42 61 63 6b 20 74 6f 20 3c 61 20 68 r>..Back to <a h
2f40: 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 ref="https://www
2f50: 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 66 6f 73 .gaia-gis.it/fos
2f60: 73 69 6c 2f 6c 69 62 72 61 73 74 65 72 6c 69 74 sil/librasterlit
2f70: 65 32 2f 77 69 6b 69 3f 6e 61 6d 65 3d 74 75 74 e2/wiki?name=tut
2f80: 6f 72 69 61 6c 73 22 3e 52 61 73 74 65 72 4c 69 orials">RasterLi
2f90: 74 65 32 20 54 75 74 6f 72 69 61 6c 73 20 69 6e te2 Tutorials in
2fa0: 64 65 78 3c 2f 61 3e 0a 5a 20 36 38 39 30 36 35 dex</a>.Z 689065
2fb0: 62 35 36 31 31 39 30 38 32 39 66 66 35 30 36 64 b561190829ff506d
2fc0: 65 33 35 36 35 34 32 34 38 64 0a e35654248d.