Hex Artifact Content
Not logged in

Artifact 65d945f7828daab7e6c896542705b2beb964792b:

Wiki page [sql_reference_list] by sandro 2021-02-05 18:49:49.
0000: 44 20 32 30 32 31 2d 30 32 2d 30 35 54 31 38 3a  D 2021-02-05T18:
0010: 34 39 3a 34 39 2e 38 30 32 0a 4c 20 73 71 6c 5f  49:49.802.L sql_
0020: 72 65 66 65 72 65 6e 63 65 5f 6c 69 73 74 0a 50  reference_list.P
0030: 20 35 32 32 35 31 62 36 32 31 64 62 32 38 63 64   52251b621db28cd
0040: 32 37 66 39 61 35 31 63 63 36 30 36 31 66 35 31  27f9a51cc6061f51
0050: 32 65 33 37 30 31 33 63 65 0a 55 20 73 61 6e 64  2e37013ce.U sand
0060: 72 6f 0a 57 20 31 35 39 37 38 36 0a 42 61 63 6b  ro.W 159786.Back
0070: 20 74 6f 20 3c 61 20 68 72 65 66 3d 22 68 74 74   to <a href="htt
0080: 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69  ps://www.gaia-gi
0090: 73 2e 69 74 2f 66 6f 73 73 69 6c 2f 6c 69 62 72  s.it/fossil/libr
00a0: 61 73 74 65 72 6c 69 74 65 32 2f 77 69 6b 69 3f  asterlite2/wiki?
00b0: 6e 61 6d 65 3d 72 61 73 74 65 72 6c 69 74 65 32  name=rasterlite2
00c0: 2d 64 6f 63 22 3e 52 61 73 74 65 72 4c 69 74 65  -doc">RasterLite
00d0: 32 20 64 6f 63 20 69 6e 64 65 78 3c 2f 61 3e 3c  2 doc index</a><
00e0: 68 72 3e 3c 62 72 3e 0a 0a 3c 68 31 3e 57 6f 72  hr><br>..<h1>Wor
00f0: 6b 20 69 6e 20 70 72 6f 67 72 65 73 73 3c 2f 68  k in progress</h
0100: 31 3e 0a 0a 3c 68 31 3e 52 61 73 74 65 72 4c 69  1>..<h1>RasterLi
0110: 74 65 32 20 53 51 4c 20 66 75 6e 63 74 69 6f 6e  te2 SQL function
0120: 73 20 2d 20 72 65 66 65 72 65 6e 63 65 20 6c 69  s - reference li
0130: 73 74 3c 2f 68 31 3e 0a 3c 68 72 3e 0a 3c 68 32  st</h1>.<hr>.<h2
0140: 3e 53 51 4c 20 66 75 6e 63 74 69 6f 6e 73 20 73  >SQL functions s
0150: 75 70 70 6f 72 74 69 6e 67 20 56 65 72 73 69 6f  upporting Versio
0160: 6e 20 61 6e 64 20 41 72 63 68 69 74 65 63 74 75  n and Architectu
0170: 72 65 3c 2f 68 32 3e 20 0a 3c 74 61 62 6c 65 20  re</h2> .<table 
0180: 77 69 64 74 68 3d 22 31 30 30 25 22 20 62 6f 72  width="100%" bor
0190: 64 65 72 3d 22 31 22 20 62 67 63 6f 6c 6f 72 3d  der="1" bgcolor=
01a0: 22 23 66 66 66 66 65 30 22 20 63 65 6c 6c 65 73  "#ffffe0" celles
01b0: 70 61 63 69 6e 67 3d 22 34 22 20 63 65 6c 6c 70  pacing="4" cellp
01c0: 61 64 64 69 6e 67 3d 22 36 22 3e 0a 3c 74 72 3e  adding="6">.<tr>
01d0: 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 65 30  <th bgcolor="#e0
01e0: 65 30 65 30 22 20 77 69 64 74 68 3d 22 35 30 25  e0e0" width="50%
01f0: 22 3e 53 79 6e 74 61 78 3c 2f 74 68 3e 3c 74 68  ">Syntax</th><th
0200: 20 62 67 63 6f 6c 6f 72 3d 22 23 65 30 65 30 65   bgcolor="#e0e0e
0210: 30 22 20 77 69 64 74 68 3d 22 35 30 25 22 3e 53  0" width="50%">S
0220: 75 6d 6d 61 72 79 3c 2f 74 68 3e 3c 2f 74 72 3e  ummary</th></tr>
0230: 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32  .<tr>.<td><b>RL2
0240: 5f 56 65 72 73 69 6f 6e 3c 2f 62 3e 20 28 29 20  _Version</b> () 
0250: 3a 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 3c  : <i>String</i><
0260: 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65  /td>.<td>Will re
0270: 74 75 72 6e 20 74 68 65 20 76 65 72 73 69 6f 6e  turn the version
0280: 20 6f 66 20 52 61 73 74 65 72 4c 69 74 65 32 20   of RasterLite2 
0290: 63 75 72 72 65 6e 74 6c 79 20 69 6e 20 75 73 65  currently in use
02a0: 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72  .</td>.</tr>.<tr
02b0: 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 54 61 72  >.<td><b>RL2_Tar
02c0: 67 65 74 5f 43 50 55 3c 2f 62 3e 20 28 29 20 3a  get_CPU</b> () :
02d0: 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 3c 2f   <i>String</i></
02e0: 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74  td>.<td>Will ret
02f0: 75 72 6e 20 74 68 65 20 6e 61 6d 65 20 6f 66 20  urn the name of 
0300: 74 68 65 20 43 50 55 20 61 72 63 68 69 74 65 63  the CPU architec
0310: 74 75 72 65 20 63 75 72 72 65 6e 74 6c 79 20 69  ture currently i
0320: 6e 20 75 73 65 2e 3c 2f 74 64 3e 0a 3c 2f 74 72  n use.</td>.</tr
0330: 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c  >.<tr>.<td><b>RL
0340: 32 5f 43 61 69 72 6f 5f 56 65 72 73 69 6f 6e 3c  2_Cairo_Version<
0350: 2f 62 3e 20 28 29 20 3a 20 3c 69 3e 53 74 72 69  /b> () : <i>Stri
0360: 6e 67 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e  ng</i></td>.<td>
0370: 57 69 6c 6c 20 72 65 74 75 72 6e 20 74 68 65 20  Will return the 
0380: 76 65 72 73 69 6f 6e 20 6f 66 20 6c 69 62 63 61  version of libca
0390: 69 72 6f 20 63 75 72 72 65 6e 74 6c 79 20 69 6e  iro currently in
03a0: 20 75 73 65 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e   use.</td>.</tr>
03b0: 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32  .<tr>.<td><b>RL2
03c0: 5f 43 75 72 6c 5f 56 65 72 73 69 6f 6e 3c 2f 62  _Curl_Version</b
03d0: 3e 20 28 29 20 3a 20 3c 69 3e 53 74 72 69 6e 67  > () : <i>String
03e0: 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69  </i></td>.<td>Wi
03f0: 6c 6c 20 72 65 74 75 72 6e 20 74 68 65 20 76 65  ll return the ve
0400: 72 73 69 6f 6e 20 6f 66 20 6c 69 62 63 75 72 6c  rsion of libcurl
0410: 20 63 75 72 72 65 6e 74 6c 79 20 69 6e 20 75 73   currently in us
0420: 65 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74  e.</td>.</tr>.<t
0430: 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 5a 6c  r>.<td><b>RL2_Zl
0440: 69 62 5f 56 65 72 73 69 6f 6e 3c 2f 62 3e 20 28  ib_Version</b> (
0450: 29 20 3a 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  ) : <i>String</i
0460: 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20  ></td>.<td>Will 
0470: 72 65 74 75 72 6e 20 74 68 65 20 76 65 72 73 69  return the versi
0480: 6f 6e 20 6f 66 20 7a 6c 69 62 20 28 3c 69 3e 44  on of zlib (<i>D
0490: 45 46 4c 41 54 45 3c 2f 69 3e 29 20 63 75 72 72  EFLATE</i>) curr
04a0: 65 6e 74 6c 79 20 69 6e 20 75 73 65 2e 3c 2f 74  ently in use.</t
04b0: 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74  d>.</tr>.<tr>.<t
04c0: 64 3e 3c 62 3e 52 4c 32 5f 4c 5a 4d 41 5f 56 65  d><b>RL2_LZMA_Ve
04d0: 72 73 69 6f 6e 3c 2f 62 3e 20 28 29 20 3a 20 3c  rsion</b> () : <
04e0: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 3c 2f 74 64  i>String</i></td
04f0: 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72  >.<td>Will retur
0500: 6e 20 74 68 65 20 76 65 72 73 69 6f 6e 20 6f 66  n the version of
0510: 20 6c 69 62 6c 7a 6d 61 20 63 75 72 72 65 6e 74   liblzma current
0520: 6c 79 20 69 6e 20 75 73 65 2e 3c 2f 74 64 3e 0a  ly in use.</td>.
0530: 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c  </tr>.<tr>.<td><
0540: 62 3e 52 4c 32 5f 4c 5a 34 5f 56 65 72 73 69 6f  b>RL2_LZ4_Versio
0550: 6e 3c 2f 62 3e 20 28 29 20 3a 20 3c 69 3e 53 74  n</b> () : <i>St
0560: 72 69 6e 67 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74  ring</i></td>.<t
0570: 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 74 68  d>Will return th
0580: 65 20 76 65 72 73 69 6f 6e 20 6f 66 20 6c 69 62  e version of lib
0590: 6c 7a 34 20 63 75 72 72 65 6e 74 6c 79 20 69 6e  lz4 currently in
05a0: 20 75 73 65 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e   use.</td>.</tr>
05b0: 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32  .<tr>.<td><b>RL2
05c0: 5f 5a 53 54 44 5f 56 65 72 73 69 6f 6e 3c 2f 62  _ZSTD_Version</b
05d0: 3e 20 28 29 20 3a 20 3c 69 3e 53 74 72 69 6e 67  > () : <i>String
05e0: 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69  </i></td>.<td>Wi
05f0: 6c 6c 20 72 65 74 75 72 6e 20 74 68 65 20 76 65  ll return the ve
0600: 72 73 69 6f 6e 20 6f 66 20 6c 69 62 7a 73 74 64  rsion of libzstd
0610: 20 63 75 72 72 65 6e 74 6c 79 20 69 6e 20 75 73   currently in us
0620: 65 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74  e.</td>.</tr>.<t
0630: 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 50 4e  r>.<td><b>RL2_PN
0640: 47 5f 56 65 72 73 69 6f 6e 3c 2f 62 3e 20 28 29  G_Version</b> ()
0650: 20 3a 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e   : <i>String</i>
0660: 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72  </td>.<td>Will r
0670: 65 74 75 72 6e 20 74 68 65 20 76 65 72 73 69 6f  eturn the versio
0680: 6e 20 6f 66 20 6c 69 62 70 6e 67 20 63 75 72 72  n of libpng curr
0690: 65 6e 74 6c 79 20 69 6e 20 75 73 65 2e 3c 2f 74  ently in use.</t
06a0: 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74  d>.</tr>.<tr>.<t
06b0: 64 3e 3c 62 3e 52 4c 32 5f 4a 50 45 47 5f 56 65  d><b>RL2_JPEG_Ve
06c0: 72 73 69 6f 6e 3c 2f 62 3e 20 28 29 20 3a 20 3c  rsion</b> () : <
06d0: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 3c 2f 74 64  i>String</i></td
06e0: 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72  >.<td>Will retur
06f0: 6e 20 74 68 65 20 76 65 72 73 69 6f 6e 20 6f 66  n the version of
0700: 20 6c 69 62 6a 70 65 67 20 28 6f 72 20 6c 69 62   libjpeg (or lib
0710: 6a 70 65 67 2d 74 75 72 62 6f 29 20 63 75 72 72  jpeg-turbo) curr
0720: 65 6e 74 6c 79 20 69 6e 20 75 73 65 2e 3c 2f 74  ently in use.</t
0730: 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74  d>.</tr>.<tr>.<t
0740: 64 3e 3c 62 3e 52 4c 32 5f 54 49 46 46 5f 56 65  d><b>RL2_TIFF_Ve
0750: 72 73 69 6f 6e 3c 2f 62 3e 20 28 29 20 3a 20 3c  rsion</b> () : <
0760: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 3c 2f 74 64  i>String</i></td
0770: 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72  >.<td>Will retur
0780: 6e 20 74 68 65 20 76 65 72 73 69 6f 6e 20 6f 66  n the version of
0790: 20 6c 69 62 74 69 66 66 20 63 75 72 72 65 6e 74   libtiff current
07a0: 6c 79 20 69 6e 20 75 73 65 2e 3c 2f 74 64 3e 0a  ly in use.</td>.
07b0: 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c  </tr>.<tr>.<td><
07c0: 62 3e 52 4c 32 5f 47 65 6f 54 49 46 46 5f 56 65  b>RL2_GeoTIFF_Ve
07d0: 72 73 69 6f 6e 3c 2f 62 3e 20 28 29 20 3a 20 3c  rsion</b> () : <
07e0: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 3c 2f 74 64  i>String</i></td
07f0: 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72  >.<td>Will retur
0800: 6e 20 74 68 65 20 76 65 72 73 69 6f 6e 20 6f 66  n the version of
0810: 20 6c 69 62 67 65 6f 74 69 66 66 20 63 75 72 72   libgeotiff curr
0820: 65 6e 74 6c 79 20 69 6e 20 75 73 65 2e 3c 2f 74  ently in use.</t
0830: 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74  d>.</tr>.<tr>.<t
0840: 64 3e 3c 62 3e 52 4c 32 5f 57 45 42 50 5f 56 65  d><b>RL2_WEBP_Ve
0850: 72 73 69 6f 6e 3c 2f 62 3e 20 28 29 20 3a 20 3c  rsion</b> () : <
0860: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 3c 2f 74 64  i>String</i></td
0870: 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72  >.<td>Will retur
0880: 6e 20 74 68 65 20 76 65 72 73 69 6f 6e 20 6f 66  n the version of
0890: 20 6c 69 62 77 65 62 70 20 63 75 72 72 65 6e 74   libwebp current
08a0: 6c 79 20 69 6e 20 75 73 65 2e 3c 2f 74 64 3e 0a  ly in use.</td>.
08b0: 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c  </tr>.<tr>.<td><
08c0: 62 3e 52 4c 32 5f 4f 70 65 6e 4a 50 45 47 5f 56  b>RL2_OpenJPEG_V
08d0: 65 72 73 69 6f 6e 3c 2f 62 3e 20 28 29 20 3a 20  ersion</b> () : 
08e0: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 3c 2f 74  <i>String</i></t
08f0: 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75  d>.<td>Will retu
0900: 72 6e 20 74 68 65 20 76 65 72 73 69 6f 6e 20 6f  rn the version o
0910: 66 20 6c 69 62 6f 70 65 6e 6a 70 32 20 28 3c 69  f libopenjp2 (<i
0920: 3e 4a 70 65 67 32 30 30 30 3c 2f 69 3e 29 20 63  >Jpeg2000</i>) c
0930: 75 72 72 65 6e 74 6c 79 20 69 6e 20 75 73 65 2e  urrently in use.
0940: 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 2f 74 61  </td>.</tr>.</ta
0950: 62 6c 65 3e 3c 62 72 3e 0a 3c 68 72 3e 0a 3c 68  ble><br>.<hr>.<h
0960: 32 3e 53 51 4c 20 66 75 6e 63 74 69 6f 6e 73 20  2>SQL functions 
0970: 74 65 73 74 69 6e 67 20 77 68 69 63 68 20 63 6f  testing which co
0980: 64 65 63 73 20 61 72 65 20 61 63 74 75 61 6c 6c  decs are actuall
0990: 79 20 73 75 70 70 6f 72 74 65 64 20 62 79 20 74  y supported by t
09a0: 68 65 20 6c 69 62 72 61 72 79 3c 2f 68 32 3e 20  he library</h2> 
09b0: 0a 3c 74 61 62 6c 65 20 77 69 64 74 68 3d 22 31  .<table width="1
09c0: 30 30 25 22 20 62 6f 72 64 65 72 3d 22 31 22 20  00%" border="1" 
09d0: 62 67 63 6f 6c 6f 72 3d 22 23 66 66 66 66 65 30  bgcolor="#ffffe0
09e0: 22 20 63 65 6c 6c 65 73 70 61 63 69 6e 67 3d 22  " cellespacing="
09f0: 34 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22  4" cellpadding="
0a00: 36 22 3e 0a 3c 74 72 3e 3c 74 68 20 62 67 63 6f  6">.<tr><th bgco
0a10: 6c 6f 72 3d 22 23 65 30 65 30 65 30 22 20 77 69  lor="#e0e0e0" wi
0a20: 64 74 68 3d 22 35 30 25 22 3e 53 79 6e 74 61 78  dth="50%">Syntax
0a30: 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f 72  </th><th bgcolor
0a40: 3d 22 23 65 30 65 30 65 30 22 20 77 69 64 74 68  ="#e0e0e0" width
0a50: 3d 22 35 30 25 22 3e 53 75 6d 6d 61 72 79 3c 2f  ="50%">Summary</
0a60: 74 68 3e 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74  th></tr>.<tr>.<t
0a70: 64 3e 3c 62 3e 52 4c 32 5f 68 61 73 5f 63 6f 64  d><b>RL2_has_cod
0a80: 65 63 5f 6e 6f 6e 65 3c 2f 62 3e 20 28 29 20 3a  ec_none</b> () :
0a90: 20 3c 69 3e 42 6f 6f 6c 65 61 6e 3c 2f 69 3e 3c   <i>Boolean</i><
0aa0: 2f 74 64 3e 0a 3c 74 64 3e 54 65 73 74 73 20 69  /td>.<td>Tests i
0ab0: 66 20 74 68 65 20 4e 4f 4e 45 20 63 6f 64 65 63  f the NONE codec
0ac0: 20 69 73 20 63 75 72 72 65 6e 74 6c 79 20 73 75   is currently su
0ad0: 70 70 6f 72 74 65 64 2e 0a 3c 62 72 3e 57 69 6c  pported..<br>Wil
0ae0: 6c 20 63 6f 73 74 61 6e 74 6c 79 20 72 65 74 75  l costantly retu
0af0: 72 6e 20 31 20 28 54 52 55 45 29 2e 3c 2f 74 64  rn 1 (TRUE).</td
0b00: 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64  >.</tr>.<tr>.<td
0b10: 3e 3c 62 3e 52 4c 32 5f 68 61 73 5f 63 6f 64 65  ><b>RL2_has_code
0b20: 63 5f 64 65 66 6c 61 74 65 3c 2f 62 3e 20 28 29  c_deflate</b> ()
0b30: 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e 3c 2f 69   : <i>Boolean</i
0b40: 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 54 65 73 74 73  ></td>.<td>Tests
0b50: 20 69 66 20 74 68 65 20 44 45 46 4c 41 54 45 20   if the DEFLATE 
0b60: 28 7a 69 70 3a 20 77 69 74 68 20 44 65 6c 74 61  (zip: with Delta
0b70: 20 46 69 6c 74 65 72 29 20 63 6f 64 65 63 20 69   Filter) codec i
0b80: 73 20 63 75 72 72 65 6e 74 6c 79 20 73 75 70 70  s currently supp
0b90: 6f 72 74 65 64 2e 0a 3c 62 72 3e 57 69 6c 6c 20  orted..<br>Will 
0ba0: 63 6f 73 74 61 6e 74 6c 79 20 72 65 74 75 72 6e  costantly return
0bb0: 20 31 20 28 54 52 55 45 29 2e 3c 2f 74 64 3e 0a   1 (TRUE).</td>.
0bc0: 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c  </tr>.<tr>.<td><
0bd0: 62 3e 52 4c 32 5f 68 61 73 5f 63 6f 64 65 63 5f  b>RL2_has_codec_
0be0: 64 65 66 6c 61 74 65 5f 6e 6f 3c 2f 62 3e 20 28  deflate_no</b> (
0bf0: 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e 3c 2f  ) : <i>Boolean</
0c00: 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 54 65 73 74  i></td>.<td>Test
0c10: 73 20 69 66 20 74 68 65 20 44 45 46 4c 41 54 45  s if the DEFLATE
0c20: 5f 4e 4f 20 28 7a 69 70 3a 20 77 69 74 68 6f 75  _NO (zip: withou
0c30: 74 20 44 65 6c 74 61 20 46 69 6c 74 65 72 29 20  t Delta Filter) 
0c40: 63 6f 64 65 63 20 69 73 20 63 75 72 72 65 6e 74  codec is current
0c50: 6c 79 20 73 75 70 70 6f 72 74 65 64 2e 0a 3c 62  ly supported..<b
0c60: 72 3e 57 69 6c 6c 20 63 6f 73 74 61 6e 74 6c 79  r>Will costantly
0c70: 20 72 65 74 75 72 6e 20 31 20 28 54 52 55 45 29   return 1 (TRUE)
0c80: 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72  .</td>.</tr>.<tr
0c90: 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 68 61 73  >.<td><b>RL2_has
0ca0: 5f 63 6f 64 65 63 5f 6c 7a 6d 61 3c 2f 62 3e 20  _codec_lzma</b> 
0cb0: 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e 3c  () : <i>Boolean<
0cc0: 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 54 65 73  /i></td>.<td>Tes
0cd0: 74 73 20 69 66 20 74 68 65 20 4c 5a 4d 41 20 28  ts if the LZMA (
0ce0: 37 2d 7a 69 70 3a 20 77 69 74 68 20 44 65 6c 74  7-zip: with Delt
0cf0: 61 20 46 69 6c 74 65 72 29 20 63 6f 64 65 63 20  a Filter) codec 
0d00: 69 73 20 63 75 72 72 65 6e 74 6c 79 20 73 75 70  is currently sup
0d10: 70 6f 72 74 65 64 2e 0a 3c 62 72 3e 57 69 6c 6c  ported..<br>Will
0d20: 20 72 65 74 75 72 6e 20 31 20 28 54 52 55 45 29   return 1 (TRUE)
0d30: 20 6f 72 20 30 20 28 46 41 4c 53 45 29 20 61 63   or 0 (FALSE) ac
0d40: 63 6f 72 64 69 6e 67 6c 79 20 74 6f 20 61 63 74  cordingly to act
0d50: 75 61 6c 20 63 6f 6e 66 69 67 75 72 61 74 69 6f  ual configuratio
0d60: 6e 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74  n.</td>.</tr>.<t
0d70: 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 68 61  r>.<td><b>RL2_ha
0d80: 73 5f 63 6f 64 65 63 5f 6c 7a 6d 61 5f 6e 6f 3c  s_codec_lzma_no<
0d90: 2f 62 3e 20 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c  /b> () : <i>Bool
0da0: 65 61 6e 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64  ean</i></td>.<td
0db0: 3e 54 65 73 74 73 20 69 66 20 74 68 65 20 4c 5a  >Tests if the LZ
0dc0: 4d 41 5f 4e 4f 20 28 37 2d 7a 69 70 3a 20 77 69  MA_NO (7-zip: wi
0dd0: 74 68 6f 75 74 20 44 65 6c 74 61 20 46 69 6c 74  thout Delta Filt
0de0: 65 72 29 20 63 6f 64 65 63 20 69 73 20 63 75 72  er) codec is cur
0df0: 72 65 6e 74 6c 79 20 73 75 70 70 6f 72 74 65 64  rently supported
0e00: 2e 0a 3c 62 72 3e 57 69 6c 6c 20 72 65 74 75 72  ..<br>Will retur
0e10: 6e 20 31 20 28 54 52 55 45 29 20 6f 72 20 30 20  n 1 (TRUE) or 0 
0e20: 28 46 41 4c 53 45 29 20 61 63 63 6f 72 64 69 6e  (FALSE) accordin
0e30: 67 6c 79 20 74 6f 20 61 63 74 75 61 6c 20 63 6f  gly to actual co
0e40: 6e 66 69 67 75 72 61 74 69 6f 6e 2e 3c 2f 74 64  nfiguration.</td
0e50: 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64  >.</tr>.<tr>.<td
0e60: 3e 3c 62 3e 52 4c 32 5f 68 61 73 5f 63 6f 64 65  ><b>RL2_has_code
0e70: 63 5f 6c 7a 34 3c 2f 62 3e 20 28 29 20 3a 20 3c  c_lz4</b> () : <
0e80: 69 3e 42 6f 6f 6c 65 61 6e 3c 2f 69 3e 3c 2f 74  i>Boolean</i></t
0e90: 64 3e 0a 3c 74 64 3e 54 65 73 74 73 20 69 66 20  d>.<td>Tests if 
0ea0: 74 68 65 20 4c 5a 34 20 28 66 61 73 74 20 6c 6f  the LZ4 (fast lo
0eb0: 73 73 6c 65 73 73 3a 20 77 69 74 68 20 44 65 6c  ssless: with Del
0ec0: 74 61 20 46 69 6c 74 65 72 29 20 63 6f 64 65 63  ta Filter) codec
0ed0: 20 69 73 20 63 75 72 72 65 6e 74 6c 79 20 73 75   is currently su
0ee0: 70 70 6f 72 74 65 64 2e 0a 3c 62 72 3e 57 69 6c  pported..<br>Wil
0ef0: 6c 20 72 65 74 75 72 6e 20 31 20 28 54 52 55 45  l return 1 (TRUE
0f00: 29 20 6f 72 20 30 20 28 46 41 4c 53 45 29 20 61  ) or 0 (FALSE) a
0f10: 63 63 6f 72 64 69 6e 67 6c 79 20 74 6f 20 61 63  ccordingly to ac
0f20: 74 75 61 6c 20 63 6f 6e 66 69 67 75 72 61 74 69  tual configurati
0f30: 6f 6e 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c  on.</td>.</tr>.<
0f40: 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 68  tr>.<td><b>RL2_h
0f50: 61 73 5f 63 6f 64 65 63 5f 6c 7a 34 5f 6e 6f 3c  as_codec_lz4_no<
0f60: 2f 62 3e 20 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c  /b> () : <i>Bool
0f70: 65 61 6e 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64  ean</i></td>.<td
0f80: 3e 54 65 73 74 73 20 69 66 20 74 68 65 20 4c 5a  >Tests if the LZ
0f90: 34 5f 4e 4f 20 28 66 61 73 74 20 6c 6f 73 65 6c  4_NO (fast losel
0fa0: 65 73 73 3a 20 77 69 74 68 6f 75 74 20 44 65 6c  ess: without Del
0fb0: 74 61 20 46 69 6c 74 65 72 29 20 63 6f 64 65 63  ta Filter) codec
0fc0: 20 69 73 20 63 75 72 72 65 6e 74 6c 79 20 73 75   is currently su
0fd0: 70 70 6f 72 74 65 64 2e 0a 3c 62 72 3e 57 69 6c  pported..<br>Wil
0fe0: 6c 20 72 65 74 75 72 6e 20 31 20 28 54 52 55 45  l return 1 (TRUE
0ff0: 29 20 6f 72 20 30 20 28 46 41 4c 53 45 29 20 61  ) or 0 (FALSE) a
1000: 63 63 6f 72 64 69 6e 67 6c 79 20 74 6f 20 61 63  ccordingly to ac
1010: 74 75 61 6c 20 63 6f 6e 66 69 67 75 72 61 74 69  tual configurati
1020: 6f 6e 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c  on.</td>.</tr>.<
1030: 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 68  tr>.<td><b>RL2_h
1040: 61 73 5f 63 6f 64 65 63 5f 7a 73 74 64 3c 2f 62  as_codec_zstd</b
1050: 3e 20 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61  > () : <i>Boolea
1060: 6e 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 54  n</i></td>.<td>T
1070: 65 73 74 73 20 69 66 20 74 68 65 20 5a 53 54 44  ests if the ZSTD
1080: 20 28 5a 73 74 61 6e 64 61 72 64 3a 20 77 69 74   (Zstandard: wit
1090: 68 20 44 65 6c 74 61 20 46 69 6c 74 65 72 29 20  h Delta Filter) 
10a0: 63 6f 64 65 63 20 69 73 20 63 75 72 72 65 6e 74  codec is current
10b0: 6c 79 20 73 75 70 70 6f 72 74 65 64 2e 0a 3c 62  ly supported..<b
10c0: 72 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 31 20  r>Will return 1 
10d0: 28 54 52 55 45 29 20 6f 72 20 30 20 28 46 41 4c  (TRUE) or 0 (FAL
10e0: 53 45 29 20 61 63 63 6f 72 64 69 6e 67 6c 79 20  SE) accordingly 
10f0: 74 6f 20 61 63 74 75 61 6c 20 63 6f 6e 66 69 67  to actual config
1100: 75 72 61 74 69 6f 6e 2e 3c 2f 74 64 3e 0a 3c 2f  uration.</td>.</
1110: 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e  tr>.<tr>.<td><b>
1120: 52 4c 32 5f 68 61 73 5f 63 6f 64 65 63 5f 7a 73  RL2_has_codec_zs
1130: 74 64 5f 6e 6f 3c 2f 62 3e 20 28 29 20 3a 20 3c  td_no</b> () : <
1140: 69 3e 42 6f 6f 6c 65 61 6e 3c 2f 69 3e 3c 2f 74  i>Boolean</i></t
1150: 64 3e 0a 3c 74 64 3e 54 65 73 74 73 20 69 66 20  d>.<td>Tests if 
1160: 74 68 65 20 5a 53 54 44 5f 4e 4f 20 28 5a 73 74  the ZSTD_NO (Zst
1170: 61 6e 64 61 72 64 3a 20 77 69 74 68 6f 75 74 20  andard: without 
1180: 44 65 6c 74 61 20 46 69 6c 74 65 72 29 20 63 6f  Delta Filter) co
1190: 64 65 63 20 69 73 20 63 75 72 72 65 6e 74 6c 79  dec is currently
11a0: 20 73 75 70 70 6f 72 74 65 64 2e 0a 3c 62 72 3e   supported..<br>
11b0: 57 69 6c 6c 20 72 65 74 75 72 6e 20 31 20 28 54  Will return 1 (T
11c0: 52 55 45 29 20 6f 72 20 30 20 28 46 41 4c 53 45  RUE) or 0 (FALSE
11d0: 29 20 61 63 63 6f 72 64 69 6e 67 6c 79 20 74 6f  ) accordingly to
11e0: 20 61 63 74 75 61 6c 20 63 6f 6e 66 69 67 75 72   actual configur
11f0: 61 74 69 6f 6e 2e 3c 2f 74 64 3e 0a 3c 2f 74 72  ation.</td>.</tr
1200: 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c  >.<tr>.<td><b>RL
1210: 32 5f 68 61 73 5f 63 6f 64 65 63 5f 70 6e 67 3c  2_has_codec_png<
1220: 2f 62 3e 20 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c  /b> () : <i>Bool
1230: 65 61 6e 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64  ean</i></td>.<td
1240: 3e 54 65 73 74 73 20 69 66 20 74 68 65 20 50 4e  >Tests if the PN
1250: 47 20 63 6f 64 65 63 20 69 73 20 63 75 72 72 65  G codec is curre
1260: 6e 74 6c 79 20 73 75 70 70 6f 72 74 65 64 2e 0a  ntly supported..
1270: 3c 62 72 3e 57 69 6c 6c 20 63 6f 73 74 61 6e 74  <br>Will costant
1280: 6c 79 20 72 65 74 75 72 6e 20 31 20 28 54 52 55  ly return 1 (TRU
1290: 45 29 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c  E).</td>.</tr>.<
12a0: 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 68  tr>.<td><b>RL2_h
12b0: 61 73 5f 63 6f 64 65 63 5f 6a 70 65 67 3c 2f 62  as_codec_jpeg</b
12c0: 3e 20 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61  > () : <i>Boolea
12d0: 6e 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 54  n</i></td>.<td>T
12e0: 65 73 74 73 20 69 66 20 74 68 65 20 4a 50 45 47  ests if the JPEG
12f0: 20 63 6f 64 65 63 20 69 73 20 63 75 72 72 65 6e   codec is curren
1300: 74 6c 79 20 73 75 70 70 6f 72 74 65 64 2e 0a 3c  tly supported..<
1310: 62 72 3e 57 69 6c 6c 20 63 6f 73 74 61 6e 74 6c  br>Will costantl
1320: 79 20 72 65 74 75 72 6e 20 31 20 28 54 52 55 45  y return 1 (TRUE
1330: 29 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74  ).</td>.</tr>.<t
1340: 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 68 61  r>.<td><b>RL2_ha
1350: 73 5f 63 6f 64 65 63 5f 66 61 78 34 3c 2f 62 3e  s_codec_fax4</b>
1360: 20 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e   () : <i>Boolean
1370: 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 54 65  </i></td>.<td>Te
1380: 73 74 73 20 69 66 20 74 68 65 20 46 41 58 34 20  sts if the FAX4 
1390: 63 6f 64 65 63 20 69 73 20 63 75 72 72 65 6e 74  codec is current
13a0: 6c 79 20 73 75 70 70 6f 72 74 65 64 2e 0a 3c 62  ly supported..<b
13b0: 72 3e 57 69 6c 6c 20 63 6f 73 74 61 6e 74 6c 79  r>Will costantly
13c0: 20 72 65 74 75 72 6e 20 31 20 28 54 52 55 45 29   return 1 (TRUE)
13d0: 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72  .</td>.</tr>.<tr
13e0: 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 68 61 73  >.<td><b>RL2_has
13f0: 5f 63 6f 64 65 63 5f 77 65 62 70 3c 2f 62 3e 20  _codec_webp</b> 
1400: 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e 3c  () : <i>Boolean<
1410: 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 54 65 73  /i></td>.<td>Tes
1420: 74 73 20 69 66 20 74 68 65 20 57 65 62 50 20 28  ts if the WebP (
1430: 6c 6f 73 73 79 29 20 63 6f 64 65 63 20 69 73 20  lossy) codec is 
1440: 63 75 72 72 65 6e 74 6c 79 20 73 75 70 70 6f 72  currently suppor
1450: 74 65 64 2e 0a 3c 62 72 3e 57 69 6c 6c 20 72 65  ted..<br>Will re
1460: 74 75 72 6e 20 31 20 28 54 52 55 45 29 20 6f 72  turn 1 (TRUE) or
1470: 20 30 20 28 46 41 4c 53 45 29 20 61 63 63 6f 72   0 (FALSE) accor
1480: 64 69 6e 67 6c 79 20 74 6f 20 61 63 74 75 61 6c  dingly to actual
1490: 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 2e 3c   configuration.<
14a0: 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a  /td>.</tr>.<tr>.
14b0: 3c 74 64 3e 3c 62 3e 52 4c 32 5f 68 61 73 5f 63  <td><b>RL2_has_c
14c0: 6f 64 65 63 5f 6c 6c 5f 77 65 62 70 3c 2f 62 3e  odec_ll_webp</b>
14d0: 20 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e   () : <i>Boolean
14e0: 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 54 65  </i></td>.<td>Te
14f0: 73 74 73 20 69 66 20 74 68 65 20 57 65 62 50 20  sts if the WebP 
1500: 28 6c 6f 73 73 6c 65 73 73 29 20 63 6f 64 65 63  (lossless) codec
1510: 20 69 73 20 63 75 72 72 65 6e 74 6c 79 20 73 75   is currently su
1520: 70 70 6f 72 74 65 64 2e 0a 3c 62 72 3e 57 69 6c  pported..<br>Wil
1530: 6c 20 72 65 74 75 72 6e 20 31 20 28 54 52 55 45  l return 1 (TRUE
1540: 29 20 6f 72 20 30 20 28 46 41 4c 53 45 29 20 61  ) or 0 (FALSE) a
1550: 63 63 6f 72 64 69 6e 67 6c 79 20 74 6f 20 61 63  ccordingly to ac
1560: 74 75 61 6c 20 63 6f 6e 66 69 67 75 72 61 74 69  tual configurati
1570: 6f 6e 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c  on.</td>.</tr>.<
1580: 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 68  tr>.<td><b>RL2_h
1590: 61 73 5f 63 6f 64 65 63 5f 6a 70 32 3c 2f 62 3e  as_codec_jp2</b>
15a0: 20 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e   () : <i>Boolean
15b0: 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 54 65  </i></td>.<td>Te
15c0: 73 74 73 20 69 66 20 74 68 65 20 4f 70 65 6e 4a  sts if the OpenJ
15d0: 70 65 67 20 28 4a 70 65 67 32 30 30 30 20 6c 6f  peg (Jpeg2000 lo
15e0: 73 73 79 29 20 63 6f 64 65 63 20 69 73 20 63 75  ssy) codec is cu
15f0: 72 72 65 6e 74 6c 79 20 73 75 70 70 6f 72 74 65  rrently supporte
1600: 64 2e 0a 3c 62 72 3e 57 69 6c 6c 20 72 65 74 75  d..<br>Will retu
1610: 72 6e 20 31 20 28 54 52 55 45 29 20 6f 72 20 30  rn 1 (TRUE) or 0
1620: 20 28 46 41 4c 53 45 29 20 61 63 63 6f 72 64 69   (FALSE) accordi
1630: 6e 67 6c 79 20 74 6f 20 61 63 74 75 61 6c 20 63  ngly to actual c
1640: 6f 6e 66 69 67 75 72 61 74 69 6f 6e 2e 3c 2f 74  onfiguration.</t
1650: 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74  d>.</tr>.<tr>.<t
1660: 64 3e 3c 62 3e 52 4c 32 5f 68 61 73 5f 63 6f 64  d><b>RL2_has_cod
1670: 65 63 5f 6c 6c 5f 6a 70 32 3c 2f 62 3e 20 28 29  ec_ll_jp2</b> ()
1680: 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e 3c 2f 69   : <i>Boolean</i
1690: 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 54 65 73 74 73  ></td>.<td>Tests
16a0: 20 69 66 20 74 68 65 20 4f 70 65 6e 4a 70 65 67   if the OpenJpeg
16b0: 20 28 4a 70 65 67 32 30 30 30 20 6c 6f 73 73 6c   (Jpeg2000 lossl
16c0: 65 73 73 29 20 63 6f 64 65 63 20 69 73 20 63 75  ess) codec is cu
16d0: 72 72 65 6e 74 6c 79 20 73 75 70 70 6f 72 74 65  rrently supporte
16e0: 64 2e 0a 3c 62 72 3e 57 69 6c 6c 20 72 65 74 75  d..<br>Will retu
16f0: 72 6e 20 31 20 28 54 52 55 45 29 20 6f 72 20 30  rn 1 (TRUE) or 0
1700: 20 28 46 41 4c 53 45 29 20 61 63 63 6f 72 64 69   (FALSE) accordi
1710: 6e 67 6c 79 20 74 6f 20 61 63 74 75 61 6c 20 63  ngly to actual c
1720: 6f 6e 66 69 67 75 72 61 74 69 6f 6e 2e 3c 2f 74  onfiguration.</t
1730: 64 3e 0a 3c 2f 74 72 3e 0a 3c 2f 74 61 62 6c 65  d>.</tr>.</table
1740: 3e 3c 62 72 3e 0a 3c 68 72 3e 0a 3c 68 32 3e 53  ><br>.<hr>.<h2>S
1750: 51 4c 20 66 75 6e 63 74 69 6f 6e 73 20 63 6f 6e  QL functions con
1760: 74 72 6f 6c 6c 69 6e 67 20 70 61 72 61 6c 6c 65  trolling paralle
1770: 6c 20 65 78 65 63 75 74 69 6f 6e 3c 2f 68 32 3e  l execution</h2>
1780: 20 0a 3c 74 61 62 6c 65 20 77 69 64 74 68 3d 22   .<table width="
1790: 31 30 30 25 22 20 62 6f 72 64 65 72 3d 22 31 22  100%" border="1"
17a0: 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 66 66 65   bgcolor="#ffffe
17b0: 30 22 20 63 65 6c 6c 65 73 70 61 63 69 6e 67 3d  0" cellespacing=
17c0: 22 34 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d  "4" cellpadding=
17d0: 22 36 22 3e 0a 3c 74 72 3e 3c 74 68 20 62 67 63  "6">.<tr><th bgc
17e0: 6f 6c 6f 72 3d 22 23 65 30 65 30 65 30 22 20 77  olor="#e0e0e0" w
17f0: 69 64 74 68 3d 22 35 30 25 22 3e 53 79 6e 74 61  idth="50%">Synta
1800: 78 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f  x</th><th bgcolo
1810: 72 3d 22 23 65 30 65 30 65 30 22 20 77 69 64 74  r="#e0e0e0" widt
1820: 68 3d 22 35 30 25 22 3e 53 75 6d 6d 61 72 79 3c  h="50%">Summary<
1830: 2f 74 68 3e 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c  /th></tr>.<tr>.<
1840: 74 64 3e 3c 62 3e 52 4c 32 5f 47 65 74 4d 61 78  td><b>RL2_GetMax
1850: 54 68 72 65 61 64 73 3c 2f 62 3e 20 28 29 20 3a  Threads</b> () :
1860: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
1870: 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65  /td>.<td>Will re
1880: 74 75 72 6e 20 74 68 65 20 63 75 72 72 65 6e 74  turn the current
1890: 6c 79 20 73 65 74 20 4d 41 58 20 6e 75 6d 62 65  ly set MAX numbe
18a0: 72 20 6f 66 20 63 6f 6e 63 75 72 72 65 6e 74 20  r of concurrent 
18b0: 74 68 72 65 61 64 73 20 61 6c 6c 6f 77 65 64 20  threads allowed 
18c0: 66 6f 72 20 70 61 72 61 6c 6c 65 6c 20 65 78 65  for parallel exe
18d0: 63 75 74 69 6f 6e 2e 3c 2f 74 64 3e 0a 3c 2f 74  cution.</td>.</t
18e0: 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52  r>.<tr>.<td><b>R
18f0: 4c 32 5f 53 65 74 4d 61 78 54 68 72 65 61 64 73  L2_SetMaxThreads
1900: 3c 2f 62 3e 20 28 20 3c 62 3e 6d 61 78 3c 2f 62  </b> ( <b>max</b
1910: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
1920: 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c   ) : <i>Integer<
1930: 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c  /i></td>.<td>Wil
1940: 6c 20 73 65 74 20 74 68 65 20 4d 41 58 20 6e 75  l set the MAX nu
1950: 6d 62 65 72 20 6f 66 20 63 6f 6e 63 75 72 72 65  mber of concurre
1960: 6e 74 20 74 68 72 65 61 64 73 20 61 6c 6c 6f 77  nt threads allow
1970: 65 64 20 66 6f 72 20 70 61 72 61 6c 6c 65 6c 20  ed for parallel 
1980: 65 78 65 63 75 74 69 6f 6e 2e 3c 62 72 3e 0a 57  execution.<br>.W
1990: 69 6c 6c 20 72 65 74 75 72 6e 20 74 68 65 20 4d  ill return the M
19a0: 41 58 20 6e 75 6d 62 65 72 20 6f 66 20 63 6f 6e  AX number of con
19b0: 63 75 72 72 65 6e 74 20 74 68 72 65 61 64 73 20  current threads 
19c0: 61 66 74 65 72 20 74 68 69 73 20 63 61 6c 6c 2e  after this call.
19d0: 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e  </td>.</tr>.<tr>
19e0: 3c 74 64 20 62 67 63 6f 6c 6f 72 3d 22 64 30 66  <td bgcolor="d0f
19f0: 66 64 30 22 20 63 6f 6c 73 70 61 6e 3d 22 32 22  fd0" colspan="2"
1a00: 3e 0a 3c 68 32 3e 4e 6f 74 65 3c 2f 68 32 3e 0a  >.<h2>Note</h2>.
1a10: 54 68 65 20 4d 41 58 20 6e 75 6d 62 65 72 20 6f  The MAX number o
1a20: 66 20 63 6f 6e 63 75 72 72 65 6e 74 20 74 68 72  f concurrent thr
1a30: 65 61 64 73 20 69 73 20 61 20 3c 62 3e 67 6c 6f  eads is a <b>glo
1a40: 62 61 6c 20 6f 70 74 69 6f 6e 3c 2f 62 3e 20 73  bal option</b> s
1a50: 65 74 20 61 74 20 74 68 65 20 3c 62 3e 44 42 20  et at the <b>DB 
1a60: 63 6f 6e 6e 65 63 74 69 6f 6e 3c 2f 62 3e 20 6c  connection</b> l
1a70: 65 76 65 6c 2e 3c 62 72 3e 0a 4f 6e 63 65 20 73  evel.<br>.Once s
1a80: 65 74 2c 20 69 74 20 77 69 6c 6c 20 69 6e 66 6c  et, it will infl
1a90: 75 65 6e 63 65 20 61 6e 79 20 73 75 62 73 65 71  uence any subseq
1aa0: 75 65 6e 74 20 63 61 6c 6c 20 74 6f 20 61 6e 79  uent call to any
1ab0: 20 53 51 4c 20 66 75 6e 63 74 69 6f 6e 20 73 75   SQL function su
1ac0: 70 70 6f 72 74 69 6e 67 20 70 61 72 61 6c 6c 65  pporting paralle
1ad0: 6c 20 65 78 65 63 75 74 69 6f 6e 2e 3c 62 72 3e  l execution.<br>
1ae0: 0a 54 68 65 20 69 6e 69 74 69 61 6c 20 76 61 6c  .The initial val
1af0: 75 65 20 66 6f 72 20 61 6e 79 20 6e 65 77 20 3c  ue for any new <
1b00: 62 3e 63 6f 6e 6e 65 63 74 69 6f 6e 3c 2f 62 3e  b>connection</b>
1b10: 20 69 73 20 61 6c 77 61 79 73 20 3c 62 3e 30 3c   is always <b>0<
1b20: 2f 62 3e 2c 20 74 68 61 74 20 69 73 20 6e 6f 20  /b>, that is no 
1b30: 70 61 72 61 6c 6c 65 6c 20 65 78 65 63 75 74 69  parallel executi
1b40: 6f 6e 20 61 74 20 61 6c 6c 2e 0a 3c 2f 74 64 3e  on at all..</td>
1b50: 3c 2f 74 72 3e 0a 3c 2f 74 61 62 6c 65 3e 3c 62  </tr>.</table><b
1b60: 72 3e 0a 3c 68 72 3e 0a 3c 68 32 3e 53 51 4c 20  r>.<hr>.<h2>SQL 
1b70: 66 75 6e 63 74 69 6f 6e 73 20 63 6f 6e 74 72 6f  functions contro
1b80: 6c 6c 69 6e 67 20 57 4d 53 20 72 65 71 75 65 73  lling WMS reques
1b90: 74 73 3c 2f 68 32 3e 20 0a 3c 74 61 62 6c 65 20  ts</h2> .<table 
1ba0: 77 69 64 74 68 3d 22 31 30 30 25 22 20 62 6f 72  width="100%" bor
1bb0: 64 65 72 3d 22 31 22 20 62 67 63 6f 6c 6f 72 3d  der="1" bgcolor=
1bc0: 22 23 66 66 66 66 65 30 22 20 63 65 6c 6c 65 73  "#ffffe0" celles
1bd0: 70 61 63 69 6e 67 3d 22 34 22 20 63 65 6c 6c 70  pacing="4" cellp
1be0: 61 64 64 69 6e 67 3d 22 36 22 3e 0a 3c 74 72 3e  adding="6">.<tr>
1bf0: 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 65 30  <th bgcolor="#e0
1c00: 65 30 65 30 22 20 77 69 64 74 68 3d 22 35 30 25  e0e0" width="50%
1c10: 22 3e 53 79 6e 74 61 78 3c 2f 74 68 3e 3c 74 68  ">Syntax</th><th
1c20: 20 62 67 63 6f 6c 6f 72 3d 22 23 65 30 65 30 65   bgcolor="#e0e0e
1c30: 30 22 20 77 69 64 74 68 3d 22 35 30 25 22 3e 53  0" width="50%">S
1c40: 75 6d 6d 61 72 79 3c 2f 74 68 3e 3c 2f 74 72 3e  ummary</th></tr>
1c50: 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32  .<tr>.<td><b>RL2
1c60: 5f 47 65 74 4d 61 78 57 6d 73 52 65 74 72 69 65  _GetMaxWmsRetrie
1c70: 73 3c 2f 62 3e 20 28 29 20 3a 20 3c 69 3e 49 6e  s</b> () : <i>In
1c80: 74 65 67 65 72 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c  teger</i></td>.<
1c90: 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 74  td>Will return t
1ca0: 68 65 20 63 75 72 72 65 6e 74 6c 79 20 73 65 74  he currently set
1cb0: 20 4d 41 58 20 6e 75 6d 62 65 72 20 6f 66 20 72   MAX number of r
1cc0: 65 74 72 69 65 73 20 61 6c 6c 6f 77 65 64 20 66  etries allowed f
1cd0: 6f 72 20 66 6f 72 20 65 61 63 68 20 66 61 69 6c  or for each fail
1ce0: 69 6e 67 20 57 4d 53 20 72 65 71 75 65 73 74 2e  ing WMS request.
1cf0: 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e  </td>.</tr>.<tr>
1d00: 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 53 65 74 4d  .<td><b>RL2_SetM
1d10: 61 78 57 6d 73 52 65 74 72 69 65 73 3c 2f 62 3e  axWmsRetries</b>
1d20: 20 28 20 3c 62 3e 6d 61 78 3c 2f 62 3e 20 3c 69   ( <b>max</b> <i
1d30: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a  >Integer</i> ) :
1d40: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
1d50: 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 73 65  /td>.<td>Will se
1d60: 74 20 74 68 65 20 4d 41 58 20 6e 75 6d 62 65 72  t the MAX number
1d70: 20 6f 66 20 72 65 74 72 69 65 73 20 61 6c 6c 6f   of retries allo
1d80: 77 65 64 20 66 6f 72 20 65 61 63 68 20 66 61 69  wed for each fai
1d90: 6c 69 6e 67 20 57 4d 53 20 72 65 71 75 65 73 74  ling WMS request
1da0: 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75 72  .<br>.Will retur
1db0: 6e 20 74 68 65 20 4d 41 58 20 6e 75 6d 62 65 72  n the MAX number
1dc0: 20 6f 66 20 57 4d 53 20 72 65 74 72 69 65 73 20   of WMS retries 
1dd0: 61 66 74 65 72 20 74 68 69 73 20 63 61 6c 6c 2e  after this call.
1de0: 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e  </td>.</tr>.<tr>
1df0: 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47 65 74 57  .<td><b>RL2_GetW
1e00: 6d 73 50 61 75 73 65 3c 2f 62 3e 20 28 29 20 3a  msPause</b> () :
1e10: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
1e20: 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65  /td>.<td>Will re
1e30: 74 75 72 6e 20 74 68 65 20 63 75 72 72 65 6e 74  turn the current
1e40: 6c 79 20 73 65 74 20 70 61 75 73 65 20 74 69 6d  ly set pause tim
1e50: 65 20 28 65 78 70 72 65 73 73 65 64 20 69 6e 20  e (expressed in 
1e60: 6d 69 6c 6c 69 73 65 63 6f 6e 64 73 29 20 62 65  milliseconds) be
1e70: 74 77 65 65 6e 20 61 20 66 61 69 6c 69 6e 67 20  tween a failing 
1e80: 57 4d 53 20 72 65 71 75 65 73 74 20 61 6e 64 20  WMS request and 
1e90: 74 68 65 20 6e 65 78 74 20 72 65 74 72 79 2e 3c  the next retry.<
1ea0: 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a  /td>.</tr>.<tr>.
1eb0: 3c 74 64 3e 3c 62 3e 52 4c 32 5f 53 65 74 57 6d  <td><b>RL2_SetWm
1ec0: 73 50 61 75 73 65 3c 2f 62 3e 20 28 20 3c 62 3e  sPause</b> ( <b>
1ed0: 6d 69 6c 6c 69 73 3c 2f 62 3e 20 3c 69 3e 49 6e  millis</b> <i>In
1ee0: 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69  teger</i> ) : <i
1ef0: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74 64  >Integer</i></td
1f00: 3e 0a 3c 74 64 3e 57 69 6c 6c 20 73 65 74 20 74  >.<td>Will set t
1f10: 68 65 20 70 61 75 73 65 20 74 69 6d 65 20 28 65  he pause time (e
1f20: 78 70 72 65 73 73 65 64 20 69 6e 20 6d 69 6c 6c  xpressed in mill
1f30: 69 73 65 63 6f 6e 64 73 29 20 62 65 74 77 65 65  iseconds) betwee
1f40: 6e 20 61 20 66 61 69 6c 69 6e 67 20 57 4d 53 20  n a failing WMS 
1f50: 72 65 71 75 65 73 74 20 61 6e 64 20 74 68 65 20  request and the 
1f60: 6e 65 78 74 20 72 65 74 72 79 2e 3c 62 72 3e 0a  next retry.<br>.
1f70: 57 69 6c 6c 20 72 65 74 75 72 6e 20 74 68 65 20  Will return the 
1f80: 70 61 75 73 65 20 74 69 6d 65 20 61 66 74 65 72  pause time after
1f90: 20 74 68 69 73 20 63 61 6c 6c 2e 3c 2f 74 64 3e   this call.</td>
1fa0: 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 3c 74 64 20 62  .</tr>.<tr><td b
1fb0: 67 63 6f 6c 6f 72 3d 22 64 30 66 66 64 30 22 20  gcolor="d0ffd0" 
1fc0: 63 6f 6c 73 70 61 6e 3d 22 32 22 3e 0a 3c 68 32  colspan="2">.<h2
1fd0: 3e 4e 6f 74 65 3c 2f 68 32 3e 0a 54 68 65 20 57  >Note</h2>.The W
1fe0: 4d 53 20 6f 70 74 69 6f 6e 73 20 61 72 65 20 3c  MS options are <
1ff0: 62 3e 67 6c 6f 62 61 6c 20 6f 70 74 69 6f 73 6e  b>global optiosn
2000: 3c 2f 62 3e 20 73 65 74 20 61 74 20 74 68 65 20  </b> set at the 
2010: 3c 62 3e 44 42 20 63 6f 6e 6e 65 63 74 69 6f 6e  <b>DB connection
2020: 3c 2f 62 3e 20 6c 65 76 65 6c 2e 3c 62 72 3e 0a  </b> level.<br>.
2030: 4f 6e 63 65 20 73 65 74 2c 20 74 68 65 79 20 77  Once set, they w
2040: 69 6c 6c 20 69 6e 66 6c 75 65 6e 63 65 20 61 6e  ill influence an
2050: 79 20 73 75 62 73 65 71 75 65 6e 74 20 63 61 6c  y subsequent cal
2060: 6c 20 74 6f 20 61 6e 79 20 53 51 4c 20 66 75 6e  l to any SQL fun
2070: 63 74 69 6f 6e 20 70 65 72 66 6f 72 6d 69 6e 67  ction performing
2080: 20 57 4d 53 20 72 65 71 75 65 73 74 73 20 65 69   WMS requests ei
2090: 74 68 65 72 20 64 69 72 65 63 74 6c 79 20 6f 72  ther directly or
20a0: 20 69 6e 64 69 72 65 63 74 6c 79 2e 3c 62 72 3e   indirectly.<br>
20b0: 0a 54 68 65 20 69 6e 69 74 69 61 6c 20 64 65 66  .The initial def
20c0: 61 75 6c 74 20 76 61 6c 75 65 73 20 66 6f 72 20  ault values for 
20d0: 61 6e 79 20 6e 65 77 20 3c 62 3e 63 6f 6e 6e 65  any new <b>conne
20e0: 63 74 69 6f 6e 3c 2f 62 3e 20 61 72 65 3a 0a 3c  ction</b> are:.<
20f0: 75 6c 3e 0a 3c 6c 69 3e 4d 61 78 20 72 65 74 72  ul>.<li>Max retr
2100: 69 65 73 3a 20 3c 62 3e 35 3c 2f 62 3e 3c 2f 6c  ies: <b>5</b></l
2110: 69 3e 0a 3c 6c 69 3e 50 61 75 73 65 3a 20 3c 62  i>.<li>Pause: <b
2120: 3e 35 3c 2f 62 3e 20 3c 69 3e 6d 69 6c 6c 69 73  >5</b> <i>millis
2130: 65 63 6f 6e 64 73 3c 2f 69 3e 3c 2f 6c 69 3e 0a  econds</i></li>.
2140: 3c 2f 75 6c 3e 0a 3c 2f 74 64 3e 3c 2f 74 72 3e  </ul>.</td></tr>
2150: 0a 3c 2f 74 61 62 6c 65 3e 3c 62 72 3e 0a 3c 68  .</table><br>.<h
2160: 72 3e 0a 3c 68 32 3e 53 51 4c 20 66 75 6e 63 74  r>.<h2>SQL funct
2170: 69 6f 6e 73 20 63 6f 6e 74 72 6f 6c 6c 69 6e 67  ions controlling
2180: 20 74 68 65 20 73 74 61 6e 64 61 72 64 20 50 44   the standard PD
2190: 46 20 70 61 67 65 20 66 6f 72 6d 61 74 3c 2f 68  F page format</h
21a0: 32 3e 20 0a 3c 74 61 62 6c 65 20 77 69 64 74 68  2> .<table width
21b0: 3d 22 31 30 30 25 22 20 62 6f 72 64 65 72 3d 22  ="100%" border="
21c0: 31 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 66  1" bgcolor="#fff
21d0: 66 65 30 22 20 63 65 6c 6c 65 73 70 61 63 69 6e  fe0" cellespacin
21e0: 67 3d 22 34 22 20 63 65 6c 6c 70 61 64 64 69 6e  g="4" cellpaddin
21f0: 67 3d 22 36 22 3e 0a 3c 74 72 3e 3c 74 68 20 62  g="6">.<tr><th b
2200: 67 63 6f 6c 6f 72 3d 22 23 65 30 65 30 65 30 22  gcolor="#e0e0e0"
2210: 20 77 69 64 74 68 3d 22 35 30 25 22 3e 53 79 6e   width="50%">Syn
2220: 74 61 78 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f  tax</th><th bgco
2230: 6c 6f 72 3d 22 23 65 30 65 30 65 30 22 20 77 69  lor="#e0e0e0" wi
2240: 64 74 68 3d 22 35 30 25 22 3e 53 75 6d 6d 61 72  dth="50%">Summar
2250: 79 3c 2f 74 68 3e 3c 2f 74 72 3e 0a 3c 74 72 3e  y</th></tr>.<tr>
2260: 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47 65 74 50  .<td><b>RL2_GetP
2270: 64 66 4d 61 72 67 69 6e 55 4f 4d 3c 2f 62 3e 20  dfMarginUOM</b> 
2280: 28 29 20 3a 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  () : <i>String</
2290: 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c  i></td>.<td>Will
22a0: 20 72 65 74 75 72 6e 20 74 68 65 20 63 75 72 72   return the curr
22b0: 65 6e 74 6c 79 20 73 65 74 20 3c 62 3e 55 3c 2f  ently set <b>U</
22c0: 62 3e 6e 69 74 20 3c 62 3e 4f 3c 2f 62 3e 66 20  b>nit <b>O</b>f 
22d0: 3c 62 3e 4d 65 61 73 75 72 65 3c 2f 62 3e 20 66  <b>Measure</b> f
22e0: 6f 72 20 50 44 46 20 70 61 67 65 20 64 69 6d 65  or PDF page dime
22f0: 6e 73 69 6f 6e 73 2e 20 56 61 6c 69 64 20 76 61  nsions. Valid va
2300: 6c 75 65 73 20 61 72 65 3a 0a 3c 75 6c 3e 0a 3c  lues are:.<ul>.<
2310: 6c 69 3e 3c 62 3e 6d 6d 3c 2f 62 3e 20 3c 69 3e  li><b>mm</b> <i>
2320: 6d 69 6c 6c 69 6d 65 74 65 72 73 3c 2f 69 3e 3c  millimeters</i><
2330: 2f 6c 69 3e 0a 3c 6c 69 3e 3c 62 3e 69 6e 3c 2f  /li>.<li><b>in</
2340: 62 3e 20 3c 69 3e 69 6e 63 68 65 73 3c 2f 69 3e  b> <i>inches</i>
2350: 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 3c 2f 74 64 3e  </li>.</ul></td>
2360: 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e  .</tr>.<tr>.<td>
2370: 3c 62 3e 52 4c 32 5f 53 65 74 50 64 66 4d 61 72  <b>RL2_SetPdfMar
2380: 67 69 6e 55 4f 4d 3c 2f 62 3e 20 28 20 3c 62 3e  ginUOM</b> ( <b>
2390: 75 6f 6d 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  uom</b> <i>Strin
23a0: 67 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74  g</i> ) : <i>Int
23b0: 65 67 65 72 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74  eger</i></td>.<t
23c0: 64 3e 57 69 6c 6c 20 73 65 74 20 74 68 65 20 3c  d>Will set the <
23d0: 62 3e 55 3c 2f 62 3e 6e 69 74 20 3c 62 3e 4f 3c  b>U</b>nit <b>O<
23e0: 2f 62 3e 66 20 3c 62 3e 4d 65 61 73 75 72 65 3c  /b>f <b>Measure<
23f0: 2f 62 3e 20 66 6f 72 20 50 44 46 20 70 61 67 65  /b> for PDF page
2400: 20 64 69 6d 65 6e 73 69 6f 6e 73 2e 20 56 61 6c   dimensions. Val
2410: 69 64 20 76 61 6c 75 65 73 20 61 72 65 3a 0a 3c  id values are:.<
2420: 75 6c 3e 0a 3c 6c 69 3e 3c 62 3e 6d 6d 3c 2f 62  ul>.<li><b>mm</b
2430: 3e 20 3c 69 3e 6d 69 6c 6c 69 6d 65 74 65 72 73  > <i>millimeters
2440: 3c 2f 69 3e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 3c 62  </i></li>.<li><b
2450: 3e 69 6e 3c 2f 62 3e 20 3c 69 3e 69 6e 63 68 65  >in</b> <i>inche
2460: 73 3c 2f 69 3e 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e  s</i></li>.</ul>
2470: 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75 72  .<br>.Will retur
2480: 6e 20 74 68 65 20 50 44 46 20 70 61 67 65 20 55  n the PDF page U
2490: 4f 4d 20 61 66 74 65 72 20 74 68 69 73 20 63 61  OM after this ca
24a0: 6c 6c 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c  ll.</td>.</tr>.<
24b0: 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47  tr>.<td><b>RL2_G
24c0: 65 74 50 64 66 4d 61 72 67 69 6e 73 48 6f 72 7a  etPdfMarginsHorz
24d0: 3c 2f 62 3e 20 28 29 20 3a 20 3c 69 3e 49 6e 74  </b> () : <i>Int
24e0: 65 67 65 72 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74  eger</i></td>.<t
24f0: 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 74 68  d>Will return th
2500: 65 20 63 75 72 72 65 6e 74 6c 79 20 73 65 74 20  e currently set 
2510: 3c 62 3e 68 6f 72 69 7a 6f 6e 74 61 6c 20 6d 61  <b>horizontal ma
2520: 72 67 69 6e 3c 2f 62 3e 20 28 62 6f 74 68 20 6c  rgin</b> (both l
2530: 65 66 74 20 61 6e 64 20 72 69 67 68 74 29 20 6d  eft and right) m
2540: 65 61 73 75 72 65 64 20 69 6e 20 74 68 65 20 63  easured in the c
2550: 75 72 72 65 6e 74 6c 79 20 73 65 74 20 55 4f 4d  urrently set UOM
2560: 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72  .</td>.</tr>.<tr
2570: 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 53 65 74  >.<td><b>RL2_Set
2580: 50 64 66 4d 61 72 67 69 6e 48 6f 72 7a 3c 2f 62  PdfMarginHorz</b
2590: 3e 20 28 20 3c 62 3e 73 69 7a 65 3c 2f 62 3e 20  > ( <b>size</b> 
25a0: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29  <i>Integer</i> )
25b0: 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69   : <i>Integer</i
25c0: 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20  ></td>.<td>Will 
25d0: 73 65 74 20 74 68 65 20 3c 62 3e 68 6f 72 69 7a  set the <b>horiz
25e0: 6f 6e 74 61 6c 20 6d 61 72 67 69 6e 3c 2f 62 3e  ontal margin</b>
25f0: 20 28 62 6f 74 68 20 6c 65 66 74 20 61 6e 64 20   (both left and 
2600: 72 69 67 68 74 29 20 6d 65 61 73 75 72 65 64 20  right) measured 
2610: 69 6e 20 74 68 65 20 63 75 72 72 65 6e 74 6c 79  in the currently
2620: 20 73 65 74 20 55 4f 4d 2e 3c 62 72 3e 0a 57 69   set UOM.<br>.Wi
2630: 6c 6c 20 72 65 74 75 72 6e 20 74 68 65 20 76 65  ll return the ve
2640: 72 74 69 63 61 6c 20 6d 61 72 67 69 6e 20 73 69  rtical margin si
2650: 7a 65 20 61 66 74 65 72 20 74 68 69 73 20 63 61  ze after this ca
2660: 6c 6c 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c  ll.</td>.</tr>.<
2670: 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47  tr>.<td><b>RL2_G
2680: 65 74 50 64 66 4d 61 72 67 69 6e 73 56 65 72 74  etPdfMarginsVert
2690: 3c 2f 62 3e 20 28 29 20 3a 20 3c 69 3e 49 6e 74  </b> () : <i>Int
26a0: 65 67 65 72 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74  eger</i></td>.<t
26b0: 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 74 68  d>Will return th
26c0: 65 20 63 75 72 72 65 6e 74 6c 79 20 73 65 74 20  e currently set 
26d0: 3c 62 3e 76 65 72 74 69 63 61 6c 20 6d 61 72 67  <b>vertical marg
26e0: 69 6e 3c 2f 62 3e 20 28 62 6f 74 68 20 75 70 70  in</b> (both upp
26f0: 65 72 20 61 6e 64 20 6c 6f 77 65 72 29 20 6d 65  er and lower) me
2700: 61 73 75 72 65 64 20 69 6e 20 74 68 65 20 63 75  asured in the cu
2710: 72 72 65 6e 74 6c 79 20 73 65 74 20 55 4f 4d 2e  rrently set UOM.
2720: 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e  </td>.</tr>.<tr>
2730: 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 53 65 74 50  .<td><b>RL2_SetP
2740: 64 66 4d 61 72 67 69 6e 56 65 72 74 3c 2f 62 3e  dfMarginVert</b>
2750: 20 28 20 3c 62 3e 73 69 7a 65 3c 2f 62 3e 20 3c   ( <b>size</b> <
2760: 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20  i>Integer</i> ) 
2770: 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  : <i>Integer</i>
2780: 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 73  </td>.<td>Will s
2790: 65 74 20 74 68 65 20 3c 62 3e 76 65 72 74 69 63  et the <b>vertic
27a0: 61 6c 20 6d 61 72 67 69 6e 3c 2f 62 3e 20 28 62  al margin</b> (b
27b0: 6f 74 68 20 75 70 70 65 72 20 61 6e 64 20 6c 6f  oth upper and lo
27c0: 77 65 72 29 20 6d 65 61 73 75 72 65 64 20 69 6e  wer) measured in
27d0: 20 74 68 65 20 63 75 72 72 65 6e 74 6c 79 20 73   the currently s
27e0: 65 74 20 55 4f 4d 2e 3c 62 72 3e 0a 57 69 6c 6c  et UOM.<br>.Will
27f0: 20 72 65 74 75 72 6e 20 74 68 65 20 76 65 72 74   return the vert
2800: 69 63 61 6c 20 6d 61 72 67 69 6e 20 73 69 7a 65  ical margin size
2810: 20 61 66 74 65 72 20 74 68 69 73 20 63 61 6c 6c   after this call
2820: 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72  .</td>.</tr>.<tr
2830: 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47 65 74  >.<td><b>RL2_Get
2840: 50 64 66 50 61 70 65 72 46 6f 72 6d 61 74 3c 2f  PdfPaperFormat</
2850: 62 3e 20 28 29 20 3a 20 3c 69 3e 53 74 72 69 6e  b> () : <i>Strin
2860: 67 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57  g</i></td>.<td>W
2870: 69 6c 6c 20 72 65 74 75 72 6e 20 74 68 65 20 63  ill return the c
2880: 75 72 72 65 6e 74 6c 79 20 73 65 74 20 50 44 46  urrently set PDF
2890: 20 70 61 67 65 20 66 6f 72 6d 61 74 2e 20 56 61   page format. Va
28a0: 6c 69 64 20 76 61 6c 75 65 73 20 61 72 65 20 3c  lid values are <
28b0: 62 3e 41 30 3c 2f 62 3e 2c 20 3c 62 3e 41 31 3c  b>A0</b>, <b>A1<
28c0: 2f 62 3e 2c 20 3c 62 3e 41 32 3c 2f 62 3e 2c 20  /b>, <b>A2</b>, 
28d0: 3c 62 3e 41 33 3c 2f 62 3e 2c 20 3c 62 3e 41 34  <b>A3</b>, <b>A4
28e0: 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 41 35 3c 2f  </b> and <b>A5</
28f0: 62 3e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74  b></td>.</tr>.<t
2900: 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 53 65  r>.<td><b>RL2_Se
2910: 74 50 64 66 50 61 70 65 72 46 6f 72 6d 61 74 3c  tPdfPaperFormat<
2920: 2f 62 3e 20 28 20 3c 62 3e 66 6f 72 6d 61 74 3c  /b> ( <b>format<
2930: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
2940: 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72  > ) : <i>Integer
2950: 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69  </i></td>.<td>Wi
2960: 6c 6c 20 73 65 74 20 74 68 65 20 50 44 46 20 70  ll set the PDF p
2970: 61 67 65 20 66 6f 72 6d 61 74 2e 20 56 61 6c 69  age format. Vali
2980: 64 20 76 61 6c 75 65 73 20 61 72 65 61 72 65 20  d values areare 
2990: 3c 62 3e 41 30 3c 2f 62 3e 2c 20 3c 62 3e 41 31  <b>A0</b>, <b>A1
29a0: 3c 2f 62 3e 2c 20 3c 62 3e 41 32 3c 2f 62 3e 2c  </b>, <b>A2</b>,
29b0: 20 3c 62 3e 41 33 3c 2f 62 3e 2c 20 3c 62 3e 41   <b>A3</b>, <b>A
29c0: 34 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 41 35 3c  4</b> and <b>A5<
29d0: 2f 62 3e 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65  /b>.<br>.Will re
29e0: 74 75 72 6e 20 74 68 65 20 50 44 46 20 70 61 67  turn the PDF pag
29f0: 65 20 66 6f 72 6d 61 74 20 61 66 74 65 72 20 74  e format after t
2a00: 68 69 73 20 63 61 6c 6c 2e 3c 2f 74 64 3e 0a 3c  his call.</td>.<
2a10: 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 72 3e 3c 74  /tr>.<tr>.<tr><t
2a20: 64 20 62 67 63 6f 6c 6f 72 3d 22 64 30 66 66 64  d bgcolor="d0ffd
2a30: 30 22 20 63 6f 6c 73 70 61 6e 3d 22 32 22 3e 0a  0" colspan="2">.
2a40: 3c 68 32 3e 4e 6f 74 65 3c 2f 68 32 3e 0a 54 68  <h2>Note</h2>.Th
2a50: 65 20 4d 41 58 20 6e 75 6d 62 65 72 20 6f 66 20  e MAX number of 
2a60: 63 6f 6e 63 75 72 72 65 6e 74 20 74 68 72 65 61  concurrent threa
2a70: 64 73 20 69 73 20 61 20 3c 62 3e 67 6c 6f 62 61  ds is a <b>globa
2a80: 6c 20 6f 70 74 69 6f 6e 3c 2f 62 3e 20 73 65 74  l option</b> set
2a90: 20 61 74 20 74 68 65 20 3c 62 3e 44 42 20 63 6f   at the <b>DB co
2aa0: 6e 6e 65 63 74 69 6f 6e 3c 2f 62 3e 20 6c 65 76  nnection</b> lev
2ab0: 65 6c 2e 3c 62 72 3e 0a 4f 6e 63 65 20 73 65 74  el.<br>.Once set
2ac0: 2c 20 69 74 20 77 69 6c 6c 20 69 6e 66 6c 75 65  , it will influe
2ad0: 6e 63 65 20 61 6e 79 20 73 75 62 73 65 71 75 65  nce any subseque
2ae0: 6e 74 20 63 61 6c 6c 20 74 6f 20 61 6e 79 20 53  nt call to any S
2af0: 51 4c 20 66 75 6e 63 74 69 6f 6e 20 73 75 70 70  QL function supp
2b00: 6f 72 74 69 6e 67 20 70 61 72 61 6c 6c 65 6c 20  orting parallel 
2b10: 65 78 65 63 75 74 69 6f 6e 2e 3c 62 72 3e 0a 54  execution.<br>.T
2b20: 68 65 20 69 6e 69 74 69 61 6c 20 76 61 6c 75 65  he initial value
2b30: 20 66 6f 72 20 61 6e 79 20 6e 65 77 20 3c 62 3e   for any new <b>
2b40: 63 6f 6e 6e 65 63 74 69 6f 6e 3c 2f 62 3e 20 69  connection</b> i
2b50: 73 20 61 6c 77 61 79 73 20 3c 62 3e 30 3c 2f 62  s always <b>0</b
2b60: 3e 2c 20 74 68 61 74 20 69 73 20 6e 6f 20 70 61  >, that is no pa
2b70: 72 61 6c 6c 65 6c 20 65 78 65 63 75 74 69 6f 6e  rallel execution
2b80: 20 61 74 20 61 6c 6c 2e 0a 3c 2f 74 64 3e 3c 2f   at all..</td></
2b90: 74 72 3e 0a 3c 2f 74 61 62 6c 65 3e 3c 62 72 3e  tr>.</table><br>
2ba0: 0a 3c 68 72 3e 0a 0a 0a 3c 68 32 3e 53 51 4c 20  .<hr>...<h2>SQL 
2bb0: 66 75 6e 63 74 69 6f 6e 73 20 63 6f 6e 74 72 6f  functions contro
2bc0: 6c 6c 69 6e 67 20 54 65 78 74 20 53 79 6d 62 6f  lling Text Symbo
2bd0: 6c 69 7a 65 72 73 20 28 4d 61 70 20 4c 61 62 65  lizers (Map Labe
2be0: 6c 73 29 3c 2f 68 32 3e 20 0a 3c 74 61 62 6c 65  ls)</h2> .<table
2bf0: 20 77 69 64 74 68 3d 22 31 30 30 25 22 20 62 6f   width="100%" bo
2c00: 72 64 65 72 3d 22 31 22 20 62 67 63 6f 6c 6f 72  rder="1" bgcolor
2c10: 3d 22 23 66 66 66 66 65 30 22 20 63 65 6c 6c 65  ="#ffffe0" celle
2c20: 73 70 61 63 69 6e 67 3d 22 34 22 20 63 65 6c 6c  spacing="4" cell
2c30: 70 61 64 64 69 6e 67 3d 22 36 22 3e 0a 3c 74 72  padding="6">.<tr
2c40: 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 65  ><th bgcolor="#e
2c50: 30 65 30 65 30 22 20 77 69 64 74 68 3d 22 35 30  0e0e0" width="50
2c60: 25 22 3e 53 79 6e 74 61 78 3c 2f 74 68 3e 3c 74  %">Syntax</th><t
2c70: 68 20 62 67 63 6f 6c 6f 72 3d 22 23 65 30 65 30  h bgcolor="#e0e0
2c80: 65 30 22 20 77 69 64 74 68 3d 22 35 30 25 22 3e  e0" width="50%">
2c90: 53 75 6d 6d 61 72 79 3c 2f 74 68 3e 3c 2f 74 72  Summary</th></tr
2ca0: 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c  >.<tr>.<td><b>RL
2cb0: 32 5f 49 73 41 6e 74 69 4c 61 62 65 6c 43 6f 6c  2_IsAntiLabelCol
2cc0: 6c 69 73 69 6f 6e 45 6e 61 62 6c 65 64 3c 2f 62  lisionEnabled</b
2cd0: 3e 20 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61  > () : <i>Boolea
2ce0: 6e 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 54  n</i></td>.<td>T
2cf0: 65 73 74 73 20 69 66 20 74 68 65 20 41 6e 74 69  ests if the Anti
2d00: 4c 61 62 65 6c 43 6f 6c 6c 69 73 69 6f 6e 20 67  LabelCollision g
2d10: 6c 6f 62 61 6c 20 6f 70 74 69 6f 6e 20 69 73 20  lobal option is 
2d20: 63 75 72 72 65 6e 74 6c 79 20 61 63 74 69 76 61  currently activa
2d30: 74 65 64 20 6f 72 20 6e 6f 74 2e 0a 3c 62 72 3e  ted or not..<br>
2d40: 57 69 6c 6c 20 72 65 74 75 72 6e 20 31 20 28 54  Will return 1 (T
2d50: 52 55 45 29 20 6f 72 20 30 20 28 46 41 4c 53 45  RUE) or 0 (FALSE
2d60: 29 20 61 63 63 6f 72 64 69 6e 67 6c 79 20 74 6f  ) accordingly to
2d70: 20 61 63 74 75 61 6c 20 73 65 74 74 69 6e 67 2e   actual setting.
2d80: 3c 2f 74 64 3e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e  </td></td>.</tr>
2d90: 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32  .<tr>.<td><b>RL2
2da0: 5f 45 6e 61 62 6c 65 41 6e 74 69 4c 61 62 65 6c  _EnableAntiLabel
2db0: 43 6f 6c 6c 69 73 69 6f 6e 3c 2f 62 3e 20 28 29  Collision</b> ()
2dc0: 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e 3c 2f 69   : <i>Boolean</i
2dd0: 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 41 63 74 69 76  ></td>.<td>Activ
2de0: 61 74 65 73 20 74 68 65 20 41 6e 74 69 4c 61 62  ates the AntiLab
2df0: 65 6c 43 6f 6c 6c 69 73 69 6f 6e 20 67 6c 6f 62  elCollision glob
2e00: 61 6c 20 6f 70 74 69 6f 6e 2e 0a 3c 62 72 3e 53  al option..<br>S
2e10: 61 6d 65 20 72 65 74 75 72 6e 20 76 61 6c 75 65  ame return value
2e20: 20 61 73 20 69 6e 20 52 4c 32 5f 49 73 41 6e 74   as in RL2_IsAnt
2e30: 69 4c 61 62 65 6c 43 6f 6c 6c 69 73 69 6f 6e 45  iLabelCollisionE
2e40: 6e 61 62 6c 65 64 28 29 3c 2f 74 64 3e 3c 2f 74  nabled()</td></t
2e50: 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74  d>.</tr>.<tr>.<t
2e60: 64 3e 3c 62 3e 52 4c 32 5f 44 69 73 61 62 6c 65  d><b>RL2_Disable
2e70: 41 6e 74 69 4c 61 62 65 6c 43 6f 6c 6c 69 73 69  AntiLabelCollisi
2e80: 6f 6e 3c 2f 62 3e 20 28 29 20 3a 20 3c 69 3e 42  on</b> () : <i>B
2e90: 6f 6f 6c 65 61 6e 3c 2f 69 3e 3c 2f 74 64 3e 0a  oolean</i></td>.
2ea0: 3c 74 64 3e 44 65 61 63 74 69 76 61 74 65 73 20  <td>Deactivates 
2eb0: 74 68 65 20 41 6e 74 69 4c 61 62 65 6c 43 6f 6c  the AntiLabelCol
2ec0: 6c 69 73 69 6f 6e 20 67 6c 6f 62 61 6c 20 6f 70  lision global op
2ed0: 74 69 6f 6e 2e 0a 3c 62 72 3e 53 61 6d 65 20 72  tion..<br>Same r
2ee0: 65 74 75 72 6e 20 76 61 6c 75 65 20 61 73 20 69  eturn value as i
2ef0: 6e 20 52 4c 32 5f 49 73 41 6e 74 69 4c 61 62 65  n RL2_IsAntiLabe
2f00: 6c 43 6f 6c 6c 69 73 69 6f 6e 45 6e 61 62 6c 65  lCollisionEnable
2f10: 64 28 29 3c 2f 74 64 3e 3c 2f 74 64 3e 0a 3c 2f  d()</td></td>.</
2f20: 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e  tr>.<tr>.<td><b>
2f30: 52 4c 32 5f 49 73 4c 61 62 65 6c 57 72 61 70 54  RL2_IsLabelWrapT
2f40: 65 78 74 45 6e 61 62 6c 65 64 3c 2f 62 3e 20 28  extEnabled</b> (
2f50: 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e 3c 2f  ) : <i>Boolean</
2f60: 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 54 65 73 74  i></td>.<td>Test
2f70: 73 20 69 66 20 74 68 65 20 4c 61 62 65 6c 57 72  s if the LabelWr
2f80: 61 70 54 65 78 74 20 67 6c 6f 62 61 6c 20 6f 70  apText global op
2f90: 74 69 6f 6e 20 69 73 20 63 75 72 72 65 6e 74 6c  tion is currentl
2fa0: 79 20 61 63 74 69 76 61 74 65 64 20 6f 72 20 6e  y activated or n
2fb0: 6f 74 2e 0a 3c 62 72 3e 57 69 6c 6c 20 72 65 74  ot..<br>Will ret
2fc0: 75 72 6e 20 31 20 28 54 52 55 45 29 20 6f 72 20  urn 1 (TRUE) or 
2fd0: 30 20 28 46 41 4c 53 45 29 20 61 63 63 6f 72 64  0 (FALSE) accord
2fe0: 69 6e 67 6c 79 20 74 6f 20 61 63 74 75 61 6c 20  ingly to actual 
2ff0: 73 65 74 74 69 6e 67 2e 3c 2f 74 64 3e 3c 2f 74  setting.</td></t
3000: 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74  d>.</tr>.<tr>.<t
3010: 64 3e 3c 62 3e 52 4c 32 5f 45 6e 61 62 6c 65 4c  d><b>RL2_EnableL
3020: 61 62 65 6c 57 72 61 70 54 65 78 74 3c 2f 62 3e  abelWrapText</b>
3030: 20 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e   () : <i>Boolean
3040: 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 41 63  </i></td>.<td>Ac
3050: 74 69 76 61 74 65 73 20 74 68 65 20 4c 61 62 65  tivates the Labe
3060: 6c 57 72 61 70 54 65 78 74 20 67 6c 6f 62 61 6c  lWrapText global
3070: 20 6f 70 74 69 6f 6e 2e 0a 3c 62 72 3e 53 61 6d   option..<br>Sam
3080: 65 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 61  e return value a
3090: 73 20 69 6e 20 52 4c 32 5f 49 73 4c 61 62 65 6c  s in RL2_IsLabel
30a0: 57 72 61 70 54 65 78 74 45 6e 61 62 6c 65 64 28  WrapTextEnabled(
30b0: 29 3c 2f 74 64 3e 3c 2f 74 64 3e 0a 3c 2f 74 72  )</td></td>.</tr
30c0: 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c  >.<tr>.<td><b>RL
30d0: 32 5f 44 69 73 61 62 6c 65 4c 61 62 65 6c 57 72  2_DisableLabelWr
30e0: 61 70 54 65 78 74 3c 2f 62 3e 20 28 29 20 3a 20  apText</b> () : 
30f0: 3c 69 3e 42 6f 6f 6c 65 61 6e 3c 2f 69 3e 3c 2f  <i>Boolean</i></
3100: 74 64 3e 0a 3c 74 64 3e 44 65 61 63 74 69 76 61  td>.<td>Deactiva
3110: 74 65 73 20 74 68 65 20 4c 61 62 65 6c 57 72 61  tes the LabelWra
3120: 70 54 65 78 74 20 67 6c 6f 62 61 6c 20 6f 70 74  pText global opt
3130: 69 6f 6e 2e 0a 3c 62 72 3e 53 61 6d 65 20 72 65  ion..<br>Same re
3140: 74 75 72 6e 20 76 61 6c 75 65 20 61 73 20 69 6e  turn value as in
3150: 20 52 4c 32 5f 49 73 4c 61 62 65 6c 57 72 61 70   RL2_IsLabelWrap
3160: 54 65 78 74 45 6e 61 62 6c 65 64 28 29 3c 2f 74  TextEnabled()</t
3170: 64 3e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74  d></td>.</tr>.<t
3180: 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 49 73  r>.<td><b>RL2_Is
3190: 4c 61 62 65 6c 41 75 74 6f 72 6f 74 61 74 65 45  LabelAutorotateE
31a0: 6e 61 62 6c 65 64 3c 2f 62 3e 20 28 29 20 3a 20  nabled</b> () : 
31b0: 3c 69 3e 42 6f 6f 6c 65 61 6e 3c 2f 69 3e 3c 2f  <i>Boolean</i></
31c0: 74 64 3e 0a 3c 74 64 3e 54 65 73 74 73 20 69 66  td>.<td>Tests if
31d0: 20 74 68 65 20 4c 61 62 65 6c 41 75 74 6f 72 6f   the LabelAutoro
31e0: 74 61 74 65 20 67 6c 6f 62 61 6c 20 6f 70 74 69  tate global opti
31f0: 6f 6e 20 69 73 20 63 75 72 72 65 6e 74 6c 79 20  on is currently 
3200: 61 63 74 69 76 61 74 65 64 20 6f 72 20 6e 6f 74  activated or not
3210: 2e 0a 3c 62 72 3e 57 69 6c 6c 20 72 65 74 75 72  ..<br>Will retur
3220: 6e 20 31 20 28 54 52 55 45 29 20 6f 72 20 30 20  n 1 (TRUE) or 0 
3230: 28 46 41 4c 53 45 29 20 61 63 63 6f 72 64 69 6e  (FALSE) accordin
3240: 67 6c 79 20 74 6f 20 61 63 74 75 61 6c 20 73 65  gly to actual se
3250: 74 74 69 6e 67 2e 3c 2f 74 64 3e 3c 2f 74 64 3e  tting.</td></td>
3260: 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e  .</tr>.<tr>.<td>
3270: 3c 62 3e 52 4c 32 5f 45 6e 61 62 6c 65 4c 61 62  <b>RL2_EnableLab
3280: 65 6c 41 75 74 6f 72 6f 74 61 74 65 3c 2f 62 3e  elAutorotate</b>
3290: 20 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e   () : <i>Boolean
32a0: 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 41 63  </i></td>.<td>Ac
32b0: 74 69 76 61 74 65 73 20 74 68 65 20 4c 61 62 65  tivates the Labe
32c0: 6c 41 75 74 6f 72 6f 74 61 74 65 20 67 6c 6f 62  lAutorotate glob
32d0: 61 6c 20 6f 70 74 69 6f 6e 2e 0a 3c 62 72 3e 53  al option..<br>S
32e0: 61 6d 65 20 72 65 74 75 72 6e 20 76 61 6c 75 65  ame return value
32f0: 20 61 73 20 69 6e 20 52 4c 32 5f 49 73 4c 61 62   as in RL2_IsLab
3300: 65 6c 41 75 74 6f 72 6f 74 61 74 65 45 6e 61 62  elAutorotateEnab
3310: 6c 65 64 28 29 3c 2f 74 64 3e 3c 2f 74 64 3e 0a  led()</td></td>.
3320: 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c  </tr>.<tr>.<td><
3330: 62 3e 52 4c 32 5f 44 69 73 61 62 6c 65 4c 61 62  b>RL2_DisableLab
3340: 65 6c 41 75 74 6f 72 6f 74 61 74 65 3c 2f 62 3e  elAutorotate</b>
3350: 20 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e   () : <i>Boolean
3360: 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 44 65  </i></td>.<td>De
3370: 61 63 74 69 76 61 74 65 73 20 74 68 65 20 4c 61  activates the La
3380: 62 65 6c 41 75 74 6f 72 6f 74 61 74 65 20 67 6c  belAutorotate gl
3390: 6f 62 61 6c 20 6f 70 74 69 6f 6e 2e 0a 3c 62 72  obal option..<br
33a0: 3e 53 61 6d 65 20 72 65 74 75 72 6e 20 76 61 6c  >Same return val
33b0: 75 65 20 61 73 20 69 6e 20 52 4c 32 5f 49 73 4c  ue as in RL2_IsL
33c0: 61 62 65 6c 41 75 74 6f 72 6f 74 61 74 65 45 6e  abelAutorotateEn
33d0: 61 62 6c 65 64 28 29 3c 2f 74 64 3e 3c 2f 74 64  abled()</td></td
33e0: 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64  >.</tr>.<tr>.<td
33f0: 3e 3c 62 3e 52 4c 32 5f 49 73 4c 61 62 65 6c 53  ><b>RL2_IsLabelS
3400: 68 69 66 50 6f 73 69 74 69 6f 6e 45 6e 61 62 6c  hifPositionEnabl
3410: 65 64 3c 2f 62 3e 20 28 29 20 3a 20 3c 69 3e 42  ed</b> () : <i>B
3420: 6f 6f 6c 65 61 6e 3c 2f 69 3e 3c 2f 74 64 3e 0a  oolean</i></td>.
3430: 3c 74 64 3e 54 65 73 74 73 20 69 66 20 74 68 65  <td>Tests if the
3440: 20 4c 61 62 65 6c 53 68 69 66 50 6f 73 69 74 69   LabelShifPositi
3450: 6f 6e 20 67 6c 6f 62 61 6c 20 6f 70 74 69 6f 6e  on global option
3460: 20 69 73 20 63 75 72 72 65 6e 74 6c 79 20 61 63   is currently ac
3470: 74 69 76 61 74 65 64 20 6f 72 20 6e 6f 74 2e 0a  tivated or not..
3480: 3c 62 72 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20  <br>Will return 
3490: 31 20 28 54 52 55 45 29 20 6f 72 20 30 20 28 46  1 (TRUE) or 0 (F
34a0: 41 4c 53 45 29 20 61 63 63 6f 72 64 69 6e 67 6c  ALSE) accordingl
34b0: 79 20 74 6f 20 61 63 74 75 61 6c 20 73 65 74 74  y to actual sett
34c0: 69 6e 67 2e 3c 2f 74 64 3e 3c 2f 74 64 3e 0a 3c  ing.</td></td>.<
34d0: 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62  /tr>.<tr>.<td><b
34e0: 3e 52 4c 32 5f 45 6e 61 62 6c 65 4c 61 62 65 6c  >RL2_EnableLabel
34f0: 53 68 69 66 50 6f 73 69 74 69 6f 6e 3c 2f 62 3e  ShifPosition</b>
3500: 20 28 29 20 3a 20 3c 69 3e 42 6f 6f 6c 65 61 6e   () : <i>Boolean
3510: 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 41 63  </i></td>.<td>Ac
3520: 74 69 76 61 74 65 73 20 74 68 65 20 4c 61 62 65  tivates the Labe
3530: 6c 53 68 69 66 50 6f 73 69 74 69 6f 6e 20 67 6c  lShifPosition gl
3540: 6f 62 61 6c 20 6f 70 74 69 6f 6e 2e 0a 3c 62 72  obal option..<br
3550: 3e 53 61 6d 65 20 72 65 74 75 72 6e 20 76 61 6c  >Same return val
3560: 75 65 20 61 73 20 69 6e 20 52 4c 32 5f 49 73 4c  ue as in RL2_IsL
3570: 61 62 65 6c 53 68 69 66 50 6f 73 69 74 69 6f 6e  abelShifPosition
3580: 45 6e 61 62 6c 65 64 28 29 3c 2f 74 64 3e 3c 2f  Enabled()</td></
3590: 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c  td>.</tr>.<tr>.<
35a0: 74 64 3e 3c 62 3e 52 4c 32 5f 44 69 73 61 62 6c  td><b>RL2_Disabl
35b0: 65 4c 61 62 65 6c 53 68 69 66 50 6f 73 69 74 69  eLabelShifPositi
35c0: 6f 6e 3c 2f 62 3e 20 28 29 20 3a 20 3c 69 3e 42  on</b> () : <i>B
35d0: 6f 6f 6c 65 61 6e 3c 2f 69 3e 3c 2f 74 64 3e 0a  oolean</i></td>.
35e0: 3c 74 64 3e 44 65 61 63 74 69 76 61 74 65 73 20  <td>Deactivates 
35f0: 74 68 65 20 4c 61 62 65 6c 53 68 69 66 50 6f 73  the LabelShifPos
3600: 69 74 69 6f 6e 20 67 6c 6f 62 61 6c 20 6f 70 74  ition global opt
3610: 69 6f 6e 2e 0a 3c 62 72 3e 53 61 6d 65 20 72 65  ion..<br>Same re
3620: 74 75 72 6e 20 76 61 6c 75 65 20 61 73 20 69 6e  turn value as in
3630: 20 52 4c 32 5f 49 73 4c 61 62 65 6c 53 68 69 66   RL2_IsLabelShif
3640: 50 6f 73 69 74 69 6f 6e 45 6e 61 62 6c 65 64 28  PositionEnabled(
3650: 29 3c 2f 74 64 3e 3c 2f 74 64 3e 0a 3c 2f 74 72  )</td></td>.</tr
3660: 3e 0a 3c 74 72 3e 3c 74 64 20 62 67 63 6f 6c 6f  >.<tr><td bgcolo
3670: 72 3d 22 64 30 66 66 64 30 22 20 63 6f 6c 73 70  r="d0ffd0" colsp
3680: 61 6e 3d 22 32 22 3e 0a 3c 68 32 3e 4e 6f 74 65  an="2">.<h2>Note
3690: 3c 2f 68 32 3e 0a 41 6c 6c 20 74 68 65 20 61 62  </h2>.All the ab
36a0: 6f 76 65 20 3c 62 3e 67 6c 6f 62 61 6c 20 6f 70  ove <b>global op
36b0: 74 69 6f 6e 73 3c 2f 62 3e 20 61 72 65 20 73 65  tions</b> are se
36c0: 74 20 61 74 20 74 68 65 20 3c 62 3e 44 42 20 63  t at the <b>DB c
36d0: 6f 6e 6e 65 63 74 69 6f 6e 3c 2f 62 3e 20 6c 65  onnection</b> le
36e0: 76 65 6c 2e 3c 62 72 3e 0a 4f 6e 63 65 20 73 65  vel.<br>.Once se
36f0: 74 2c 20 65 61 63 68 20 6f 6e 65 20 6f 66 20 74  t, each one of t
3700: 68 65 6d 20 77 69 6c 6c 20 69 6e 66 6c 75 65 6e  hem will influen
3710: 63 65 20 61 6e 79 20 73 75 62 73 65 71 75 65 6e  ce any subsequen
3720: 74 20 63 61 6c 6c 20 74 6f 20 61 6e 79 20 53 51  t call to any SQ
3730: 4c 20 66 75 6e 63 74 69 6f 6e 20 73 75 70 70 6f  L function suppo
3740: 72 74 69 6e 67 20 54 65 78 74 20 53 79 6d 62 6f  rting Text Symbo
3750: 6c 69 7a 65 72 73 2e 3c 62 72 3e 0a 54 68 65 20  lizers.<br>.The 
3760: 69 6e 69 74 69 61 6c 20 76 61 6c 75 65 20 66 6f  initial value fo
3770: 72 20 61 6e 79 20 6e 65 77 20 3c 62 3e 63 6f 6e  r any new <b>con
3780: 6e 65 63 74 69 6f 6e 3c 2f 62 3e 20 69 73 20 61  nection</b> is a
3790: 6c 77 61 79 73 20 3c 62 3e 30 3c 2f 62 3e 20 66  lways <b>0</b> f
37a0: 6f 72 20 61 6c 6c 20 74 68 65 6d 2c 20 74 68 61  or all them, tha
37b0: 74 20 69 73 20 6e 6f 20 73 70 65 63 69 61 6c 20  t is no special 
37c0: 54 65 78 74 2f 4c 61 62 65 6c 20 6f 70 74 69 6f  Text/Label optio
37d0: 6e 73 20 61 74 20 61 6c 6c 2e 0a 3c 2f 74 64 3e  ns at all..</td>
37e0: 3c 2f 74 72 3e 0a 3c 2f 74 61 62 6c 65 3e 3c 62  </tr>.</table><b
37f0: 72 3e 0a 3c 68 72 3e 0a 3c 68 32 3e 53 51 4c 20  r>.<hr>.<h2>SQL 
3800: 66 75 6e 63 74 69 6f 6e 73 20 73 75 70 70 6f 72  functions suppor
3810: 74 69 6e 67 20 42 4c 4f 42 20 73 65 72 69 61 6c  ting BLOB serial
3820: 69 7a 65 64 20 50 69 78 65 6c 20 6f 62 6a 65 63  ized Pixel objec
3830: 74 73 3c 2f 68 32 3e 20 0a 3c 74 61 62 6c 65 20  ts</h2> .<table 
3840: 77 69 64 74 68 3d 22 31 30 30 25 22 20 62 6f 72  width="100%" bor
3850: 64 65 72 3d 22 31 22 20 62 67 63 6f 6c 6f 72 3d  der="1" bgcolor=
3860: 22 23 66 66 66 66 65 30 22 20 63 65 6c 6c 65 73  "#ffffe0" celles
3870: 70 61 63 69 6e 67 3d 22 34 22 20 63 65 6c 6c 70  pacing="4" cellp
3880: 61 64 64 69 6e 67 3d 22 36 22 3e 0a 3c 74 72 3e  adding="6">.<tr>
3890: 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 65 30  <th bgcolor="#e0
38a0: 65 30 65 30 22 20 77 69 64 74 68 3d 22 35 30 25  e0e0" width="50%
38b0: 22 3e 53 79 6e 74 61 78 3c 2f 74 68 3e 3c 74 68  ">Syntax</th><th
38c0: 20 62 67 63 6f 6c 6f 72 3d 22 23 65 30 65 30 65   bgcolor="#e0e0e
38d0: 30 22 20 77 69 64 74 68 3d 22 35 30 25 22 3e 53  0" width="50%">S
38e0: 75 6d 6d 61 72 79 3c 2f 74 68 3e 3c 2f 74 72 3e  ummary</th></tr>
38f0: 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32  .<tr>.<td><b>RL2
3900: 5f 49 73 56 61 6c 69 64 50 69 78 65 6c 3c 2f 62  _IsValidPixel</b
3910: 3e 20 28 20 3c 62 3e 70 69 78 65 6c 3c 2f 62 3e  > ( <b>pixel</b>
3920: 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 20 2c 20 3c   <i>BLOB</i> , <
3930: 62 3e 73 61 6d 70 6c 65 54 79 70 65 3c 2f 62 3e  b>sampleType</b>
3940: 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
3950: 20 3c 62 3e 6e 75 6d 42 61 6e 64 73 3c 2f 62 3e   <b>numBands</b>
3960: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
3970: 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
3980: 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c  i></td>.<td>Will
3990: 20 74 65 73 74 20 61 20 42 4c 4f 42 20 73 65 72   test a BLOB ser
39a0: 69 61 6c 69 7a 65 64 20 3c 62 3e 3c 69 3e 70 69  ialized <b><i>pi
39b0: 78 65 6c 3c 2f 69 3e 3c 2f 62 3e 20 6f 62 6a 65  xel</i></b> obje
39c0: 63 74 20 66 6f 72 20 76 61 6c 69 64 69 74 79 2e  ct for validity.
39d0: 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75 72 6e  <br>.Will return
39e0: 20 3c 62 3e 31 3c 2f 62 3e 20 28 54 52 55 45 29   <b>1</b> (TRUE)
39f0: 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41   or <b>0</b> (FA
3a00: 4c 53 45 29 3a 20 6f 72 20 3c 62 3e 2d 31 3c 2f  LSE): or <b>-1</
3a10: 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72  b> on invalid ar
3a20: 67 75 6d 65 6e 74 73 20 6f 72 20 69 66 20 61 6e  guments or if an
3a30: 79 20 65 72 72 6f 72 20 6f 63 63 75 72 72 65 64  y error occurred
3a40: 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72  .</td>.</tr>.<tr
3a50: 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 43 72 65  >.<td><b>RL2_Cre
3a60: 61 74 65 50 69 78 65 6c 3c 2f 62 3e 20 28 20 3c  atePixel</b> ( <
3a70: 62 3e 73 61 6d 70 6c 65 54 79 70 65 3c 2f 62 3e  b>sampleType</b>
3a80: 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
3a90: 20 3c 62 3e 70 69 78 65 6c 54 79 70 65 3c 2f 62   <b>pixelType</b
3aa0: 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
3ab0: 2c 20 3c 62 3e 6e 75 6d 42 61 6e 64 73 3c 2f 62  , <b>numBands</b
3ac0: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
3ad0: 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e   ) : <i>BLOB</i>
3ae0: 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72  </td>.<td>Will r
3af0: 65 74 75 72 6e 20 61 20 42 4c 4f 42 20 63 6f 72  eturn a BLOB cor
3b00: 72 65 73 70 6f 6e 64 69 6e 67 20 74 6f 20 61 20  responding to a 
3b10: 50 69 78 65 6c 20 73 65 72 69 61 6c 69 7a 65 64  Pixel serialized
3b20: 20 6f 62 6a 65 63 74 3a 20 3c 62 3e 4e 55 4c 4c   object: <b>NULL
3b30: 3c 2f 62 3e 20 77 69 6c 6c 20 62 65 20 72 65 74  </b> will be ret
3b40: 75 72 6e 65 64 20 6f 6e 20 69 6e 76 61 6c 69 64  urned on invalid
3b50: 20 61 72 67 75 6d 65 6e 74 73 20 6f 72 20 69 66   arguments or if
3b60: 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 72   any error occur
3b70: 72 65 64 2e 3c 62 72 3e 0a 41 6c 6c 20 50 69 78  red.<br>.All Pix
3b80: 65 6c 20 63 6f 6d 70 6f 6e 65 6e 74 73 20 77 69  el components wi
3b90: 6c 6c 20 62 65 20 69 6e 69 74 69 61 6c 6c 79 20  ll be initially 
3ba0: 73 65 74 20 74 6f 20 3c 62 3e 5a 45 52 4f 3c 2f  set to <b>ZERO</
3bb0: 62 3e 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c  b>.</td>.</tr>.<
3bc0: 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47  tr>.<td><b>RL2_G
3bd0: 65 74 50 69 78 65 6c 54 79 70 65 3c 2f 62 3e 20  etPixelType</b> 
3be0: 28 20 3c 62 3e 70 69 78 65 6c 3c 2f 62 3e 20 3c  ( <b>pixel</b> <
3bf0: 69 3e 42 4c 4f 42 3c 2f 69 3e 20 29 20 3a 20 3c  i>BLOB</i> ) : <
3c00: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 3c 2f 74 64  i>String</i></td
3c10: 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72  >.<td>Will retur
3c20: 6e 20 74 68 65 20 6d 6e 65 6d 6f 6e 69 63 20 50  n the mnemonic P
3c30: 69 78 65 6c 54 79 70 65 20 66 72 6f 6d 20 61 20  ixelType from a 
3c40: 50 69 78 65 6c 20 73 65 72 69 61 6c 69 7a 65 64  Pixel serialized
3c50: 20 6f 62 6a 65 63 74 3a 20 3c 62 3e 4e 55 4c 4c   object: <b>NULL
3c60: 3c 2f 62 3e 20 77 69 6c 6c 20 62 65 20 72 65 74  </b> will be ret
3c70: 75 72 6e 65 64 20 6f 6e 20 69 6e 76 61 6c 69 64  urned on invalid
3c80: 20 61 72 67 75 6d 65 6e 74 73 20 6f 72 20 69 66   arguments or if
3c90: 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 72   any error occur
3ca0: 72 65 64 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a  red.</td>.</tr>.
3cb0: 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f  <tr>.<td><b>RL2_
3cc0: 47 65 74 50 69 78 65 6c 53 61 6d 70 6c 65 54 79  GetPixelSampleTy
3cd0: 70 65 3c 2f 62 3e 20 28 20 3c 62 3e 70 69 78 65  pe</b> ( <b>pixe
3ce0: 6c 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69  l</b> <i>BLOB</i
3cf0: 3e 20 29 20 3a 20 3c 69 3e 53 74 72 69 6e 67 3c  > ) : <i>String<
3d00: 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c  /i></td>.<td>Wil
3d10: 6c 20 72 65 74 75 72 6e 20 74 68 65 20 6d 6e 65  l return the mne
3d20: 6d 6f 6e 69 63 20 53 61 6d 70 6c 65 54 79 70 65  monic SampleType
3d30: 20 66 72 6f 6d 20 61 20 50 69 78 65 6c 20 73 65   from a Pixel se
3d40: 72 69 61 6c 69 7a 65 64 20 6f 62 6a 65 63 74 3a  rialized object:
3d50: 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 20 77 69 6c   <b>NULL</b> wil
3d60: 6c 20 62 65 20 72 65 74 75 72 6e 65 64 20 6f 6e  l be returned on
3d70: 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e   invalid argumen
3d80: 74 73 20 6f 72 20 69 66 20 61 6e 79 20 65 72 72  ts or if any err
3d90: 6f 72 20 6f 63 63 75 72 72 65 64 2e 3c 2f 74 64  or occurred.</td
3da0: 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64  >.</tr>.<tr>.<td
3db0: 3e 3c 62 3e 52 4c 32 5f 47 65 74 50 69 78 65 6c  ><b>RL2_GetPixel
3dc0: 4e 75 6d 42 61 6e 64 73 3c 2f 62 3e 20 28 20 3c  NumBands</b> ( <
3dd0: 62 3e 70 69 78 65 6c 3c 2f 62 3e 20 3c 69 3e 42  b>pixel</b> <i>B
3de0: 4c 4f 42 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49  LOB</i> ) : <i>I
3df0: 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74 64 3e 0a  nteger</i></td>.
3e00: 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20  <td>Will return 
3e10: 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 42 61  the number of Ba
3e20: 6e 64 73 20 66 72 6f 6d 20 61 20 50 69 78 65 6c  nds from a Pixel
3e30: 20 73 65 72 69 61 6c 69 7a 65 64 20 6f 62 6a 65   serialized obje
3e40: 63 74 3a 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 20  ct: <b>NULL</b> 
3e50: 77 69 6c 6c 20 62 65 20 72 65 74 75 72 6e 65 64  will be returned
3e60: 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75   on invalid argu
3e70: 6d 65 6e 74 73 20 6f 72 20 69 66 20 61 6e 79 20  ments or if any 
3e80: 65 72 72 6f 72 20 6f 63 63 75 72 72 65 64 2e 3c  error occurred.<
3e90: 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a  /td>.</tr>.<tr>.
3ea0: 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47 65 74 50 69  <td><b>RL2_GetPi
3eb0: 78 65 6c 56 61 6c 75 65 3c 2f 62 3e 20 28 20 3c  xelValue</b> ( <
3ec0: 62 3e 70 69 78 65 6c 3c 2f 62 3e 20 3c 69 3e 42  b>pixel</b> <i>B
3ed0: 4c 4f 42 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e  LOB</i> , <b>ban
3ee0: 64 49 6e 64 65 78 3c 2f 62 3e 20 3c 69 3e 49 6e  dIndex</b> <i>In
3ef0: 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69  teger</i> ) : <i
3f00: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e  >Integer</i><br>
3f10: 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 47 65 74 50  <br>.<b>RL2_GetP
3f20: 69 78 65 6c 56 61 6c 75 65 3c 2f 62 3e 20 28 20  ixelValue</b> ( 
3f30: 3c 62 3e 70 69 78 65 6c 3c 2f 62 3e 20 3c 69 3e  <b>pixel</b> <i>
3f40: 42 4c 4f 42 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61  BLOB</i> , <b>ba
3f50: 6e 64 49 6e 64 65 78 3c 2f 62 3e 20 3c 69 3e 49  ndIndex</b> <i>I
3f60: 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c  nteger</i> ) : <
3f70: 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 3c 2f 74 64  i>Double</i></td
3f80: 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72  >.<td>Will retur
3f90: 6e 20 74 68 65 20 63 75 72 72 65 6e 74 20 73 61  n the current sa
3fa0: 6d 70 6c 65 56 61 6c 75 65 20 28 64 61 74 61 2d  mpleValue (data-
3fb0: 74 79 70 65 20 77 69 6c 6c 20 6d 61 74 63 68 20  type will match 
3fc0: 74 68 65 20 50 69 78 65 6c 27 73 20 73 61 6d 70  the Pixel's samp
3fd0: 6c 65 54 79 70 65 29 20 66 72 6f 6d 20 61 20 50  leType) from a P
3fe0: 69 78 65 6c 20 73 65 72 69 61 6c 69 7a 65 64 20  ixel serialized 
3ff0: 6f 62 6a 65 63 74 3a 20 3c 62 3e 4e 55 4c 4c 3c  object: <b>NULL<
4000: 2f 62 3e 20 77 69 6c 6c 20 62 65 20 72 65 74 75  /b> will be retu
4010: 72 6e 65 64 20 6f 6e 20 69 6e 76 61 6c 69 64 20  rned on invalid 
4020: 61 72 67 75 6d 65 6e 74 73 20 6f 72 20 69 66 20  arguments or if 
4030: 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 72 72  any error occurr
4040: 65 64 2e 3c 62 72 3e 3c 75 3e 50 6c 65 61 73 65  ed.<br><u>Please
4050: 20 6e 6f 74 65 3c 2f 75 3e 3a 20 74 68 65 20 66   note</u>: the f
4060: 69 72 73 74 20 42 61 6e 64 20 61 6c 77 61 79 73  irst Band always
4070: 20 63 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f 20   corresponds to 
4080: 69 6e 64 65 78 20 3c 62 3e 5a 45 52 4f 3c 2f 62  index <b>ZERO</b
4090: 3e 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74  >.</td>.</tr>.<t
40a0: 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 53 65  r>.<td><b>RL2_Se
40b0: 74 50 69 78 65 6c 56 61 6c 75 65 3c 2f 62 3e 20  tPixelValue</b> 
40c0: 28 20 3c 62 3e 70 69 78 65 6c 3c 2f 62 3e 20 3c  ( <b>pixel</b> <
40d0: 69 3e 42 4c 4f 42 3c 2f 69 3e 20 2c 20 3c 62 3e  i>BLOB</i> , <b>
40e0: 62 61 6e 64 49 6e 64 65 78 3c 2f 62 3e 20 3c 69  bandIndex</b> <i
40f0: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
4100: 62 3e 73 61 6d 70 6c 65 56 61 6c 75 65 3c 2f 62  b>sampleValue</b
4110: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
4120: 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e   ) : <i>BLOB</i>
4130: 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f  <br><br>.<b>RL2_
4140: 53 65 74 50 69 78 65 6c 56 61 6c 75 65 3c 2f 62  SetPixelValue</b
4150: 3e 20 28 20 3c 62 3e 70 69 78 65 6c 3c 2f 62 3e  > ( <b>pixel</b>
4160: 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 20 2c 20 3c   <i>BLOB</i> , <
4170: 62 3e 62 61 6e 64 49 6e 64 65 78 3c 2f 62 3e 20  b>bandIndex</b> 
4180: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
4190: 20 3c 62 3e 73 61 6d 70 6c 65 56 61 6c 75 65 3c   <b>sampleValue<
41a0: 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
41b0: 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69  > ) : <i>BLOB</i
41c0: 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20  ></td>.<td>Will 
41d0: 72 65 74 75 72 6e 20 61 20 6e 65 77 20 42 4c 4f  return a new BLO
41e0: 42 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20  B corresponding 
41f0: 74 6f 20 61 20 50 69 78 65 6c 20 73 65 72 69 61  to a Pixel seria
4200: 6c 69 7a 65 64 20 6f 62 6a 65 63 74 20 73 75 70  lized object sup
4210: 70 6f 72 74 69 6e 67 20 74 68 65 20 72 65 71 75  porting the requ
4220: 65 73 74 65 64 20 73 61 6d 70 6c 65 56 61 6c 75  ested sampleValu
4230: 65 20 28 77 68 69 63 68 20 69 73 20 65 78 70 65  e (which is expe
4240: 63 74 65 64 20 74 6f 20 72 65 73 70 65 63 74 20  cted to respect 
4250: 74 68 65 20 70 72 65 63 69 73 69 6f 6e 20 64 65  the precision de
4260: 63 6c 61 72 65 64 20 62 79 20 74 68 65 20 73 61  clared by the sa
4270: 6d 70 6c 65 54 79 70 65 29 3a 20 3c 62 3e 4e 55  mpleType): <b>NU
4280: 4c 4c 3c 2f 62 3e 20 77 69 6c 6c 20 62 65 20 72  LL</b> will be r
4290: 65 74 75 72 6e 65 64 20 6f 6e 20 69 6e 76 61 6c  eturned on inval
42a0: 69 64 20 61 72 67 75 6d 65 6e 74 73 20 6f 72 20  id arguments or 
42b0: 69 66 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63  if any error occ
42c0: 75 72 72 65 64 2e 3c 62 72 3e 3c 75 3e 50 6c 65  urred.<br><u>Ple
42d0: 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 74 68  ase note</u>: th
42e0: 65 20 66 69 72 73 74 20 42 61 6e 64 20 61 6c 77  e first Band alw
42f0: 61 79 73 20 63 6f 72 72 65 73 70 6f 6e 64 73 20  ays corresponds 
4300: 74 6f 20 69 6e 64 65 78 20 3c 62 3e 5a 45 52 4f  to index <b>ZERO
4310: 3c 2f 62 3e 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e  </b>.</td>.</tr>
4320: 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32  .<tr>.<td><b>RL2
4330: 5f 49 73 54 72 61 6e 73 70 61 72 65 6e 74 50 69  _IsTransparentPi
4340: 78 65 6c 3c 2f 62 3e 20 28 20 3c 62 3e 70 69 78  xel</b> ( <b>pix
4350: 65 6c 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 3c 2f  el</b> <i>BLOB</
4360: 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65  i> ) : <i>Intege
4370: 72 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57  r</i></td>.<td>W
4380: 69 6c 6c 20 74 65 73 74 20 61 20 42 4c 4f 42 20  ill test a BLOB 
4390: 73 65 72 69 61 6c 69 7a 65 64 20 3c 62 3e 3c 69  serialized <b><i
43a0: 3e 70 69 78 65 6c 3c 2f 69 3e 3c 2f 62 3e 20 6f  >pixel</i></b> o
43b0: 62 6a 65 63 74 20 66 6f 72 20 74 72 61 6e 73 70  bject for transp
43c0: 61 72 65 6e 63 79 2e 3c 62 72 3e 0a 57 69 6c 6c  arency.<br>.Will
43d0: 20 72 65 74 75 72 6e 20 3c 62 3e 31 3c 2f 62 3e   return <b>1</b>
43e0: 20 28 54 52 55 45 29 20 6f 72 20 3c 62 3e 30 3c   (TRUE) or <b>0<
43f0: 2f 62 3e 20 28 46 41 4c 53 45 29 3a 20 6f 72 20  /b> (FALSE): or 
4400: 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20 69 6e 76  <b>-1</b> on inv
4410: 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 20 6f  alid arguments o
4420: 72 20 69 66 20 61 6e 79 20 65 72 72 6f 72 20 6f  r if any error o
4430: 63 63 75 72 72 65 64 2e 3c 2f 74 64 3e 0a 3c 2f  ccurred.</td>.</
4440: 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e  tr>.<tr>.<td><b>
4450: 52 4c 32 5f 49 73 4f 70 61 71 75 65 50 69 78 65  RL2_IsOpaquePixe
4460: 6c 3c 2f 62 3e 20 28 20 3c 62 3e 70 69 78 65 6c  l</b> ( <b>pixel
4470: 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e  </b> <i>BLOB</i>
4480: 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c   ) : <i>Integer<
4490: 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c  /i></td>.<td>Wil
44a0: 6c 20 74 65 73 74 20 61 20 42 4c 4f 42 20 73 65  l test a BLOB se
44b0: 72 69 61 6c 69 7a 65 64 20 3c 62 3e 3c 69 3e 70  rialized <b><i>p
44c0: 69 78 65 6c 3c 2f 69 3e 3c 2f 62 3e 20 6f 62 6a  ixel</i></b> obj
44d0: 65 63 74 20 66 6f 72 20 6f 70 61 63 69 74 79 2e  ect for opacity.
44e0: 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75 72 6e  <br>.Will return
44f0: 20 3c 62 3e 31 3c 2f 62 3e 20 28 54 52 55 45 29   <b>1</b> (TRUE)
4500: 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41   or <b>0</b> (FA
4510: 4c 53 45 29 3a 20 6f 72 20 3c 62 3e 2d 31 3c 2f  LSE): or <b>-1</
4520: 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72  b> on invalid ar
4530: 67 75 6d 65 6e 74 73 20 6f 72 20 69 66 20 61 6e  guments or if an
4540: 79 20 65 72 72 6f 72 20 6f 63 63 75 72 72 65 64  y error occurred
4550: 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72  .</td>.</tr>.<tr
4560: 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 53 65 74  >.<td><b>RL2_Set
4570: 54 72 61 6e 73 70 61 72 65 6e 74 50 69 78 65 6c  TransparentPixel
4580: 3c 2f 62 3e 20 28 20 3c 62 3e 70 69 78 65 6c 3c  </b> ( <b>pixel<
4590: 2f 62 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 20  /b> <i>BLOB</i> 
45a0: 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 3c  ) : <i>BLOB</i><
45b0: 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65  /td>.<td>Will re
45c0: 74 75 72 6e 20 61 20 6e 65 77 20 42 4c 4f 42 20  turn a new BLOB 
45d0: 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 74 6f  corresponding to
45e0: 20 61 20 74 72 61 6e 73 70 61 72 65 6e 74 20 50   a transparent P
45f0: 69 78 65 6c 20 73 65 72 69 61 6c 69 7a 65 64 20  ixel serialized 
4600: 6f 62 6a 65 63 74 3a 20 3c 62 3e 4e 55 4c 4c 3c  object: <b>NULL<
4610: 2f 62 3e 20 77 69 6c 6c 20 62 65 20 72 65 74 75  /b> will be retu
4620: 72 6e 65 64 20 6f 6e 20 69 6e 76 61 6c 69 64 20  rned on invalid 
4630: 61 72 67 75 6d 65 6e 74 73 20 6f 72 20 69 66 20  arguments or if 
4640: 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 72 72  any error occurr
4650: 65 64 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c  ed.</td>.</tr>.<
4660: 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 53  tr>.<td><b>RL2_S
4670: 65 74 4f 70 61 71 75 65 50 69 78 65 6c 3c 2f 62  etOpaquePixel</b
4680: 3e 20 28 20 3c 62 3e 70 69 78 65 6c 3c 2f 62 3e  > ( <b>pixel</b>
4690: 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 20 29 20 3a   <i>BLOB</i> ) :
46a0: 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 3c 2f 74 64   <i>BLOB</i></td
46b0: 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72  >.<td>Will retur
46c0: 6e 20 61 20 6e 65 77 20 42 4c 4f 42 20 63 6f 72  n a new BLOB cor
46d0: 72 65 73 70 6f 6e 64 69 6e 67 20 74 6f 20 61 6e  responding to an
46e0: 20 6f 70 61 71 75 65 20 50 69 78 65 6c 20 73 65   opaque Pixel se
46f0: 72 69 61 6c 69 7a 65 64 20 6f 62 6a 65 63 74 3a  rialized object:
4700: 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 20 77 69 6c   <b>NULL</b> wil
4710: 6c 20 62 65 20 72 65 74 75 72 6e 65 64 20 6f 6e  l be returned on
4720: 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e   invalid argumen
4730: 74 73 20 6f 72 20 69 66 20 61 6e 79 20 65 72 72  ts or if any err
4740: 6f 72 20 6f 63 63 75 72 72 65 64 2e 3c 2f 74 64  or occurred.</td
4750: 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64  >.</tr>.<tr>.<td
4760: 3e 3c 62 3e 52 4c 32 5f 50 69 78 65 6c 45 71 75  ><b>RL2_PixelEqu
4770: 61 6c 73 3c 2f 62 3e 20 28 20 3c 62 3e 70 69 78  als</b> ( <b>pix
4780: 65 6c 5f 31 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42  el_1</b> <i>BLOB
4790: 3c 2f 69 3e 20 2c 20 3c 62 3e 70 69 78 65 6c 5f  </i> , <b>pixel_
47a0: 32 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69  2</b> <i>BLOB</i
47b0: 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72  > ) : <i>Integer
47c0: 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69  </i></td>.<td>Wi
47d0: 6c 6c 20 63 6f 6d 70 61 72 65 20 74 77 6f 20 42  ll compare two B
47e0: 4c 4f 42 20 73 65 72 69 61 6c 69 7a 65 64 20 3c  LOB serialized <
47f0: 62 3e 3c 69 3e 70 69 78 65 6c 3c 2f 69 3e 3c 2f  b><i>pixel</i></
4800: 62 3e 20 6f 62 6a 65 63 74 73 20 66 6f 72 20 69  b> objects for i
4810: 64 65 6e 74 69 74 79 2e 3c 62 72 3e 0a 57 69 6c  dentity.<br>.Wil
4820: 6c 20 72 65 74 75 72 6e 20 3c 62 3e 31 3c 2f 62  l return <b>1</b
4830: 3e 20 28 54 52 55 45 29 20 6f 72 20 3c 62 3e 30  > (TRUE) or <b>0
4840: 3c 2f 62 3e 20 28 46 41 4c 53 45 29 3a 20 6f 72  </b> (FALSE): or
4850: 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20 69 6e   <b>-1</b> on in
4860: 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 20  valid arguments 
4870: 6f 72 20 69 66 20 61 6e 79 20 65 72 72 6f 72 20  or if any error 
4880: 6f 63 63 75 72 72 65 64 2e 3c 2f 74 64 3e 0a 3c  occurred.</td>.<
4890: 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62  /tr>.<tr>.<td><b
48a0: 3e 52 4c 32 5f 47 65 74 50 69 78 65 6c 46 72 6f  >RL2_GetPixelFro
48b0: 6d 52 61 73 74 65 72 42 79 50 6f 69 6e 74 3c 2f  mRasterByPoint</
48c0: 62 3e 20 28 20 3c 62 3e 64 62 5f 70 72 65 66 69  b> ( <b>db_prefi
48d0: 78 3c 2f 62 3e 20 3c 69 3e 54 65 78 74 3c 2f 69  x</b> <i>Text</i
48e0: 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 3c  > , <b>coverage<
48f0: 2f 62 3e 20 3c 69 3e 54 65 78 74 3c 2f 69 3e 20  /b> <i>Text</i> 
4900: 2c 20 3c 62 3e 70 6f 69 6e 74 3c 2f 62 3e 20 3c  , <b>point</b> <
4910: 69 3e 42 4c 4f 42 2d 47 65 6f 6d 3c 2f 69 3e 20  i>BLOB-Geom</i> 
4920: 2c 20 3c 62 3e 70 79 72 61 6d 79 64 5f 6c 65 76  , <b>pyramyd_lev
4930: 65 6c 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  el</b> <i>Intege
4940: 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f  r</i> ) : <i>BLO
4950: 42 2d 50 69 78 65 6c 3c 2f 69 3e 3c 62 72 3e 3c  B-Pixel</i><br><
4960: 62 72 3e 0a 3c 62 3e 52 4c 32 5f 47 65 74 50 69  br>.<b>RL2_GetPi
4970: 78 65 6c 46 72 6f 6d 52 61 73 74 65 72 42 79 50  xelFromRasterByP
4980: 6f 69 6e 74 3c 2f 62 3e 20 28 20 3c 62 3e 64 62  oint</b> ( <b>db
4990: 5f 70 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 54  _prefix</b> <i>T
49a0: 65 78 74 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76  ext</i> , <b>cov
49b0: 65 72 61 67 65 3c 2f 62 3e 20 3c 69 3e 54 65 78  erage</b> <i>Tex
49c0: 74 3c 2f 69 3e 20 2c 20 3c 62 3e 70 6f 69 6e 74  t</i> , <b>point
49d0: 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f  </b> <i>BLOB-Geo
49e0: 6d 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 5f  m</i> , <b>horz_
49f0: 72 65 73 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c  res</b> <i>Doubl
4a00: 65 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74 5f 72  e/i> , <b>vert_r
4a10: 65 73 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65  es</b> <i>Double
4a20: 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42  </i> ) : <i>BLOB
4a30: 2d 50 69 78 65 6c 3c 2f 69 3e 3c 2f 74 64 3e 0a  -Pixel</i></td>.
4a40: 3c 74 64 3e 57 69 6c 6c 20 65 78 74 72 61 63 74  <td>Will extract
4a50: 20 66 72 6f 6d 20 74 68 65 20 52 61 73 74 65 72   from the Raster
4a60: 20 43 6f 76 65 72 61 67 65 20 69 64 65 6e 74 69   Coverage identi
4a70: 66 69 65 64 20 62 79 20 3c 62 3e 64 62 5f 70 72  fied by <b>db_pr
4a80: 65 66 69 78 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e  efix</b> and <b>
4a90: 63 6f 76 65 72 61 67 65 3c 2f 62 3e 20 74 68 65  coverage</b> the
4aa0: 20 70 69 78 65 6c 20 6d 61 74 63 68 69 6e 67 20   pixel matching 
4ab0: 74 68 65 20 6d 61 70 20 63 6f 6f 72 64 69 6e 61  the map coordina
4ac0: 74 65 73 20 73 70 65 63 69 66 69 65 64 20 62 79  tes specified by
4ad0: 20 3c 62 3e 70 6f 69 6e 74 3c 2f 62 3e 3a 0a 3c   <b>point</b>:.<
4ae0: 75 6c 3e 0a 3c 6c 69 3e 61 20 3c 62 3e 4e 55 4c  ul>.<li>a <b>NUL
4af0: 4c 20 64 62 5f 70 72 65 66 69 78 3c 2f 62 3e 20  L db_prefix</b> 
4b00: 77 69 6c 6c 20 62 65 20 61 75 74 6f 6d 61 74 69  will be automati
4b10: 63 61 6c 6c 79 20 69 6e 74 65 72 70 72 65 74 65  cally interprete
4b20: 64 20 61 73 20 3c 62 3e 27 4d 41 49 4e 27 3c 2f  d as <b>'MAIN'</
4b30: 62 3e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65  b>.</li>.<li>the
4b40: 20 3c 62 3e 70 6f 69 6e 74 3c 2f 62 3e 20 47 65   <b>point</b> Ge
4b50: 6f 6d 65 74 72 79 20 6d 75 73 74 20 69 64 65 6e  ometry must iden
4b60: 74 69 66 79 20 61 20 73 69 6e 67 6c 65 20 50 4f  tify a single PO
4b70: 49 4e 54 2e 3c 62 72 3e 0a 49 66 20 74 68 65 20  INT.<br>.If the 
4b80: 53 52 49 44 20 64 65 63 6c 61 72 65 64 20 62 79  SRID declared by
4b90: 20 3c 62 3e 70 6f 69 6e 74 3c 2f 62 3e 20 69 73   <b>point</b> is
4ba0: 6e 27 74 20 74 68 65 20 73 61 6d 65 20 64 65 63  n't the same dec
4bb0: 6c 61 72 65 64 20 62 79 20 74 68 65 20 52 61 73  lared by the Ras
4bc0: 74 65 72 20 43 6f 76 65 72 61 67 65 20 74 68 65  ter Coverage the
4bd0: 6e 20 3c 62 3e 70 6f 69 6e 74 3c 2f 62 3e 20 77  n <b>point</b> w
4be0: 69 6c 6c 20 62 65 20 61 75 74 6f 6d 61 74 69 63  ill be automatic
4bf0: 61 6c 6c 79 20 72 65 70 72 6f 6a 65 63 74 65 64  ally reprojected
4c00: 20 69 6e 74 6f 20 74 68 65 20 52 61 73 74 65 72   into the Raster
4c10: 20 43 6f 76 65 72 61 67 65 20 6f 77 6e 20 53 52   Coverage own SR
4c20: 49 44 2e 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 3c 62  ID.</li>.</ul><b
4c30: 72 3e 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20 61  r>.Will return a
4c40: 20 42 4c 4f 42 20 73 65 72 69 61 6c 69 7a 65 64   BLOB serialized
4c50: 20 3c 62 3e 3c 69 3e 70 69 78 65 6c 3c 2f 69 3e   <b><i>pixel</i>
4c60: 3c 2f 62 3e 20 6f 62 6a 65 63 74 20 6f 72 20 3c  </b> object or <
4c70: 62 3e 4e 55 4c 4c 3c 2f 62 3e 20 6f 6e 20 69 6e  b>NULL</b> on in
4c80: 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 20  valid arguments 
4c90: 6f 72 20 69 66 20 61 6e 79 20 65 72 72 6f 72 20  or if any error 
4ca0: 6f 63 63 75 72 72 65 64 2e 3c 2f 74 64 3e 0a 3c  occurred.</td>.<
4cb0: 2f 74 72 3e 0a 3c 2f 74 61 62 6c 65 3e 3c 62 72  /tr>.</table><br
4cc0: 3e 0a 3c 68 72 3e 0a 3c 68 32 3e 53 51 4c 20 66  >.<hr>.<h2>SQL f
4cd0: 75 6e 63 74 69 6f 6e 73 20 73 75 70 70 6f 72 74  unctions support
4ce0: 69 6e 67 20 42 4c 4f 42 20 73 65 72 69 61 6c 69  ing BLOB seriali
4cf0: 7a 65 64 20 50 61 6c 65 74 74 65 20 6f 62 6a 65  zed Palette obje
4d00: 63 74 73 3c 2f 68 32 3e 20 0a 3c 74 61 62 6c 65  cts</h2> .<table
4d10: 20 77 69 64 74 68 3d 22 31 30 30 25 22 20 62 6f   width="100%" bo
4d20: 72 64 65 72 3d 22 31 22 20 62 67 63 6f 6c 6f 72  rder="1" bgcolor
4d30: 3d 22 23 66 66 66 66 65 30 22 20 63 65 6c 6c 65  ="#ffffe0" celle
4d40: 73 70 61 63 69 6e 67 3d 22 34 22 20 63 65 6c 6c  spacing="4" cell
4d50: 70 61 64 64 69 6e 67 3d 22 36 22 3e 0a 3c 74 72  padding="6">.<tr
4d60: 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 65  ><th bgcolor="#e
4d70: 30 65 30 65 30 22 20 77 69 64 74 68 3d 22 35 30  0e0e0" width="50
4d80: 25 22 3e 53 79 6e 74 61 78 3c 2f 74 68 3e 3c 74  %">Syntax</th><t
4d90: 68 20 62 67 63 6f 6c 6f 72 3d 22 23 65 30 65 30  h bgcolor="#e0e0
4da0: 65 30 22 20 77 69 64 74 68 3d 22 35 30 25 22 3e  e0" width="50%">
4db0: 53 75 6d 6d 61 72 79 3c 2f 74 68 3e 3c 2f 74 72  Summary</th></tr
4dc0: 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c  >.<tr>.<td><b>RL
4dd0: 32 5f 49 73 56 61 6c 69 64 52 61 73 74 65 72 50  2_IsValidRasterP
4de0: 61 6c 65 74 74 65 3c 2f 62 3e 20 28 20 3c 62 3e  alette</b> ( <b>
4df0: 70 61 6c 65 74 74 65 3c 2f 62 3e 20 3c 69 3e 42  palette</b> <i>B
4e00: 4c 4f 42 3c 2f 69 3e 20 2c 20 3c 62 3e 73 61 6d  LOB</i> , <b>sam
4e10: 70 6c 65 54 79 70 65 3c 2f 62 3e 20 3c 69 3e 53  pleType</b> <i>S
4e20: 74 72 69 6e 67 3c 2f 69 3e 20 29 20 3a 20 3c 69  tring</i> ) : <i
4e30: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74 64  >Integer</i></td
4e40: 3e 0a 3c 74 64 3e 57 69 6c 6c 20 74 65 73 74 20  >.<td>Will test 
4e50: 61 20 42 4c 4f 42 20 73 65 72 69 61 6c 69 7a 65  a BLOB serialize
4e60: 64 20 3c 62 3e 3c 69 3e 70 61 6c 65 74 74 65 3c  d <b><i>palette<
4e70: 2f 69 3e 3c 2f 62 3e 20 6f 62 6a 65 63 74 20 66  /i></b> object f
4e80: 6f 72 20 76 61 6c 69 64 69 74 79 2e 3c 62 72 3e  or validity.<br>
4e90: 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20 3c 62 3e  .Will return <b>
4ea0: 31 3c 2f 62 3e 20 28 54 52 55 45 29 20 6f 72 20  1</b> (TRUE) or 
4eb0: 3c 62 3e 30 3c 2f 62 3e 20 28 46 41 4c 53 45 29  <b>0</b> (FALSE)
4ec0: 3a 20 6f 72 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f  : or <b>-1</b> o
4ed0: 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65  n invalid argume
4ee0: 6e 74 73 20 6f 72 20 69 66 20 61 6e 79 20 65 72  nts or if any er
4ef0: 72 6f 72 20 6f 63 63 75 72 72 65 64 2e 3c 2f 74  ror occurred.</t
4f00: 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74  d>.</tr>.<tr>.<t
4f10: 64 3e 3c 62 3e 52 4c 32 5f 47 65 74 50 61 6c 65  d><b>RL2_GetPale
4f20: 74 74 65 4e 75 6d 45 6e 74 72 69 65 73 3c 2f 62  tteNumEntries</b
4f30: 3e 20 28 20 3c 62 3e 70 61 6c 65 74 74 65 3c 2f  > ( <b>palette</
4f40: 62 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 20 29  b> <i>BLOB</i> )
4f50: 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69   : <i>Integer</i
4f60: 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20  ></td>.<td>Will 
4f70: 72 65 74 75 72 6e 20 74 68 65 20 6e 75 6d 62 65  return the numbe
4f80: 72 20 6f 66 20 63 6f 6c 6f 72 20 65 6e 74 72 69  r of color entri
4f90: 65 73 20 66 72 6f 6d 20 61 20 50 61 6c 65 74 74  es from a Palett
4fa0: 65 20 73 65 72 69 61 6c 69 7a 65 64 20 6f 62 6a  e serialized obj
4fb0: 65 63 74 3a 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e  ect: <b>NULL</b>
4fc0: 20 77 69 6c 6c 20 62 65 20 72 65 74 75 72 6e 65   will be returne
4fd0: 64 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67  d on invalid arg
4fe0: 75 6d 65 6e 74 73 20 6f 72 20 69 66 20 61 6e 79  uments or if any
4ff0: 20 65 72 72 6f 72 20 6f 63 63 75 72 72 65 64 2e   error occurred.
5000: 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e  </td>.</tr>.<tr>
5010: 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47 65 74 50  .<td><b>RL2_GetP
5020: 61 6c 65 74 74 65 43 6f 6c 6f 72 45 6e 74 72 79  aletteColorEntry
5030: 3c 2f 62 3e 20 28 20 3c 62 3e 70 61 6c 65 74 74  </b> ( <b>palett
5040: 65 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69  e</b> <i>BLOB</i
5050: 3e 20 2c 20 3c 62 3e 65 6e 74 72 79 49 6e 64 65  > , <b>entryInde
5060: 78 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  x</b> <i>Integer
5070: 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 53 74 72 69  </i> ) : <i>Stri
5080: 6e 67 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e  ng</i></td>.<td>
5090: 57 69 6c 6c 20 72 65 74 75 72 6e 20 74 68 65 20  Will return the 
50a0: 63 75 72 72 65 6e 74 20 63 6f 6c 6f 72 20 28 48  current color (H
50b0: 45 58 2d 52 47 42 20 66 6f 72 6d 61 74 29 20 66  EX-RGB format) f
50c0: 72 6f 6d 20 61 20 73 65 72 69 61 6c 69 7a 65 64  rom a serialized
50d0: 20 50 61 6c 65 74 74 65 20 6f 62 6a 65 63 74 20   Palette object 
50e0: 45 6e 74 72 79 3a 20 3c 62 3e 4e 55 4c 4c 3c 2f  Entry: <b>NULL</
50f0: 62 3e 20 77 69 6c 6c 20 62 65 20 72 65 74 75 72  b> will be retur
5100: 6e 65 64 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61  ned on invalid a
5110: 72 67 75 6d 65 6e 74 73 20 6f 72 20 69 66 20 61  rguments or if a
5120: 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 72 72 65  ny error occurre
5130: 64 2e 3c 62 72 3e 3c 75 3e 50 6c 65 61 73 65 20  d.<br><u>Please 
5140: 6e 6f 74 65 3c 2f 75 3e 3a 20 74 68 65 20 66 69  note</u>: the fi
5150: 72 73 74 20 50 61 6c 65 74 74 65 20 45 6e 74 72  rst Palette Entr
5160: 79 20 61 6c 77 61 79 73 20 63 6f 72 72 65 73 70  y always corresp
5170: 6f 6e 64 73 20 74 6f 20 69 6e 64 65 78 20 3c 62  onds to index <b
5180: 3e 5a 45 52 4f 3c 2f 62 3e 2e 3c 2f 74 64 3e 0a  >ZERO</b>.</td>.
5190: 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c  </tr>.<tr>.<td><
51a0: 62 3e 52 4c 32 5f 53 65 74 50 61 6c 65 74 74 65  b>RL2_SetPalette
51b0: 43 6f 6c 6f 72 45 6e 74 72 79 3c 2f 62 3e 20 28  ColorEntry</b> (
51c0: 20 3c 62 3e 70 61 6c 65 74 74 65 3c 2f 62 3e 20   <b>palette</b> 
51d0: 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 20 2c 20 3c 62  <i>BLOB</i> , <b
51e0: 3e 65 6e 74 72 79 49 6e 64 65 78 3c 2f 62 3e 20  >entryIndex</b> 
51f0: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
5200: 20 3c 62 3e 68 65 78 52 67 62 43 6f 6c 6f 72 3c   <b>hexRgbColor<
5210: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
5220: 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69  > ) : <i>BLOB</i
5230: 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20  ></td>.<td>Will 
5240: 72 65 74 75 72 6e 20 61 20 6e 65 77 20 42 4c 4f  return a new BLO
5250: 42 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20  B corresponding 
5260: 74 6f 20 61 20 50 61 6c 65 74 74 65 20 73 65 72  to a Palette ser
5270: 69 61 6c 69 7a 65 64 20 6f 62 6a 65 63 74 20 73  ialized object s
5280: 75 70 70 6f 72 74 69 6e 67 20 74 68 65 20 63 68  upporting the ch
5290: 61 6e 67 65 64 20 63 6f 6c 6f 72 20 45 6e 74 72  anged color Entr
52a0: 79 2e 0a 54 68 65 20 63 6f 6c 6f 72 20 69 73 20  y..The color is 
52b0: 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 65  expected to be e
52c0: 78 70 72 65 73 73 65 64 20 69 6e 20 74 68 65 20  xpressed in the 
52d0: 63 61 6e 6f 6e 69 63 61 6c 20 57 45 42 20 48 45  canonical WEB HE
52e0: 58 2d 52 47 42 20 66 6f 72 6d 2c 20 61 73 20 69  X-RGB form, as i
52f0: 6e 20 3c 62 3e 27 23 66 66 38 30 38 30 27 3c 2f  n <b>'#ff8080'</
5300: 62 3e 2e 3c 62 72 3e 0a 3c 62 3e 4e 55 4c 4c 3c  b>.<br>.<b>NULL<
5310: 2f 62 3e 20 77 69 6c 6c 20 62 65 20 72 65 74 75  /b> will be retu
5320: 72 6e 65 64 20 6f 6e 20 69 6e 76 61 6c 69 64 20  rned on invalid 
5330: 61 72 67 75 6d 65 6e 74 73 20 6f 72 20 69 66 20  arguments or if 
5340: 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 72 72  any error occurr
5350: 65 64 2e 3c 62 72 3e 3c 75 3e 50 6c 65 61 73 65  ed.<br><u>Please
5360: 20 6e 6f 74 65 3c 2f 75 3e 3a 20 74 68 65 20 66   note</u>: the f
5370: 69 72 73 74 20 50 61 6c 65 74 74 65 20 45 6e 74  irst Palette Ent
5380: 72 79 20 61 6c 77 61 79 73 20 63 6f 72 72 65 73  ry always corres
5390: 70 6f 6e 64 73 20 74 6f 20 69 6e 64 65 78 20 3c  ponds to index <
53a0: 62 3e 5a 45 52 4f 3c 2f 62 3e 2e 3c 2f 74 64 3e  b>ZERO</b>.</td>
53b0: 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e  .</tr>.<tr>.<td>
53c0: 3c 62 3e 52 4c 32 5f 50 61 6c 65 74 74 65 45 71  <b>RL2_PaletteEq
53d0: 75 61 6c 73 3c 2f 62 3e 20 28 20 3c 62 3e 70 61  uals</b> ( <b>pa
53e0: 6c 65 74 74 65 5f 31 3c 2f 62 3e 20 3c 69 3e 42  lette_1</b> <i>B
53f0: 4c 4f 42 3c 2f 69 3e 20 2c 20 3c 62 3e 70 61 6c  LOB</i> , <b>pal
5400: 65 74 74 65 5f 32 3c 2f 62 3e 20 3c 69 3e 42 4c  ette_2</b> <i>BL
5410: 4f 42 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e  OB</i> ) : <i>In
5420: 74 65 67 65 72 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c  teger</i></td>.<
5430: 74 64 3e 57 69 6c 6c 20 63 6f 6d 70 61 72 65 20  td>Will compare 
5440: 74 77 6f 20 42 4c 4f 42 20 73 65 72 69 61 6c 69  two BLOB seriali
5450: 7a 65 64 20 3c 62 3e 3c 69 3e 70 61 6c 65 74 74  zed <b><i>palett
5460: 65 3c 2f 69 3e 3c 2f 62 3e 20 6f 62 6a 65 63 74  e</i></b> object
5470: 73 20 66 6f 72 20 69 64 65 6e 74 69 74 79 2e 3c  s for identity.<
5480: 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20  br>.Will return 
5490: 3c 62 3e 31 3c 2f 62 3e 20 28 54 52 55 45 29 20  <b>1</b> (TRUE) 
54a0: 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41 4c  or <b>0</b> (FAL
54b0: 53 45 29 3a 20 6f 72 20 3c 62 3e 2d 31 3c 2f 62  SE): or <b>-1</b
54c0: 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67  > on invalid arg
54d0: 75 6d 65 6e 74 73 20 6f 72 20 69 66 20 61 6e 79  uments or if any
54e0: 20 65 72 72 6f 72 20 6f 63 63 75 72 72 65 64 2e   error occurred.
54f0: 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 2f 74 61  </td>.</tr>.</ta
5500: 62 6c 65 3e 3c 62 72 3e 0a 3c 68 72 3e 0a 3c 68  ble><br>.<hr>.<h
5510: 32 3e 53 51 4c 20 66 75 6e 63 74 69 6f 6e 73 20  2>SQL functions 
5520: 73 75 70 70 6f 72 74 69 6e 67 20 42 4c 4f 42 20  supporting BLOB 
5530: 73 65 72 69 61 6c 69 7a 65 64 20 52 61 73 74 65  serialized Raste
5540: 72 2f 42 61 6e 64 20 53 74 61 74 69 73 74 69 63  r/Band Statistic
5550: 73 20 6f 62 6a 65 63 74 73 3c 2f 68 32 3e 20 0a  s objects</h2> .
5560: 3c 74 61 62 6c 65 20 77 69 64 74 68 3d 22 31 30  <table width="10
5570: 30 25 22 20 62 6f 72 64 65 72 3d 22 31 22 20 62  0%" border="1" b
5580: 67 63 6f 6c 6f 72 3d 22 23 66 66 66 66 65 30 22  gcolor="#ffffe0"
5590: 20 63 65 6c 6c 65 73 70 61 63 69 6e 67 3d 22 34   cellespacing="4
55a0: 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36  " cellpadding="6
55b0: 22 3e 0a 3c 74 72 3e 3c 74 68 20 62 67 63 6f 6c  ">.<tr><th bgcol
55c0: 6f 72 3d 22 23 65 30 65 30 65 30 22 20 77 69 64  or="#e0e0e0" wid
55d0: 74 68 3d 22 35 30 25 22 3e 53 79 6e 74 61 78 3c  th="50%">Syntax<
55e0: 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d  /th><th bgcolor=
55f0: 22 23 65 30 65 30 65 30 22 20 77 69 64 74 68 3d  "#e0e0e0" width=
5600: 22 35 30 25 22 3e 53 75 6d 6d 61 72 79 3c 2f 74  "50%">Summary</t
5610: 68 3e 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64  h></tr>.<tr>.<td
5620: 3e 3c 62 3e 52 4c 32 5f 49 73 56 61 6c 69 64 52  ><b>RL2_IsValidR
5630: 61 73 74 65 72 53 74 61 74 69 73 74 69 63 73 3c  asterStatistics<
5640: 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69  /b> ( <b>dbPrefi
5650: 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  x</b> <i>String<
5660: 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67  /i> , <b>coverag
5670: 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eName</b> <i>Str
5680: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 72 61 73  ing</i> , <b>ras
5690: 74 65 72 53 74 61 74 69 73 74 69 63 73 3c 2f 62  terStatistics</b
56a0: 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 20 29 20  > <i>BLOB</i> ) 
56b0: 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  : <i>Integer</i>
56c0: 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f  <br><br>.<b>RL2_
56d0: 49 73 56 61 6c 69 64 52 61 73 74 65 72 53 74 61  IsValidRasterSta
56e0: 74 69 73 74 69 63 73 3c 2f 62 3e 20 28 20 3c 62  tistics</b> ( <b
56f0: 3e 72 61 73 74 65 72 53 74 61 74 69 73 74 69 63  >rasterStatistic
5700: 73 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69  s</b> <i>BLOB</i
5710: 3e 20 2c 20 3c 62 3e 73 61 6d 70 6c 65 54 79 70  > , <b>sampleTyp
5720: 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
5730: 2f 69 3e 20 2c 20 3c 62 3e 6e 75 6d 42 61 6e 64  /i> , <b>numBand
5740: 73 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  s</b> <i>Integer
5750: 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65  </i> ) : <i>Inte
5760: 67 65 72 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64  ger</i></td>.<td
5770: 3e 57 69 6c 6c 20 74 65 73 74 20 61 20 42 4c 4f  >Will test a BLO
5780: 42 20 73 65 72 69 61 6c 69 7a 65 64 20 3c 62 3e  B serialized <b>
5790: 3c 69 3e 72 61 73 74 65 72 53 74 61 74 69 73 74  <i>rasterStatist
57a0: 69 63 73 3c 2f 69 3e 3c 2f 62 3e 20 6f 62 6a 65  ics</i></b> obje
57b0: 63 74 20 66 6f 72 20 76 61 6c 69 64 69 74 79 2e  ct for validity.
57c0: 3c 62 72 3e 0a 54 68 65 20 3c 62 3e 3c 69 3e 64  <br>.The <b><i>d
57d0: 62 50 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20  bPrefix</i></b> 
57e0: 61 72 67 75 6d 65 6e 74 20 69 73 20 69 6e 74 65  argument is inte
57f0: 6e 64 65 64 20 74 6f 20 73 70 65 63 69 66 79 20  nded to specify 
5800: 74 68 65 20 41 54 54 41 43 48 45 44 2d 44 42 20  the ATTACHED-DB 
5810: 77 68 65 72 65 20 74 68 65 20 43 6f 76 65 72 61  where the Covera
5820: 67 65 20 69 73 20 65 78 70 65 63 74 65 64 20 74  ge is expected t
5830: 6f 20 62 65 20 66 6f 75 6e 64 3b 20 69 74 20 63  o be found; it c
5840: 6f 75 6c 64 20 62 65 20 65 76 65 6e 74 75 61 6c  ould be eventual
5850: 6c 79 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20  ly <b>NULL</b>, 
5860: 61 6e 64 20 69 6e 20 74 68 69 73 20 63 61 73 65  and in this case
5870: 20 74 68 65 20 3c 62 3e 4d 41 49 4e 20 44 42 3c   the <b>MAIN DB<
5880: 2f 62 3e 20 77 69 6c 6c 20 69 6d 70 6c 69 63 69  /b> will implici
5890: 74 6c 79 20 62 65 20 61 73 73 75 6d 65 64 2e 3c  tly be assumed.<
58a0: 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20  br>.Will return 
58b0: 3c 62 3e 31 3c 2f 62 3e 20 28 54 52 55 45 29 20  <b>1</b> (TRUE) 
58c0: 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41 4c  or <b>0</b> (FAL
58d0: 53 45 29 3a 20 6f 72 20 3c 62 3e 2d 31 3c 2f 62  SE): or <b>-1</b
58e0: 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67  > on invalid arg
58f0: 75 6d 65 6e 74 73 20 6f 72 20 69 66 20 61 6e 79  uments or if any
5900: 20 65 72 72 6f 72 20 6f 63 63 75 72 72 65 64 2e   error occurred.
5910: 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e  </td>.</tr>.<tr>
5920: 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47 65 74 52  .<td><b>RL2_GetR
5930: 61 73 74 65 72 53 74 61 74 69 73 74 69 63 73 5f  asterStatistics_
5940: 4e 6f 44 61 74 61 50 69 78 65 6c 73 43 6f 75 6e  NoDataPixelsCoun
5950: 74 3c 2f 62 3e 20 28 20 3c 62 3e 72 61 73 74 65  t</b> ( <b>raste
5960: 72 53 74 61 74 69 73 74 69 63 73 3c 2f 62 3e 20  rStatistics</b> 
5970: 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 20 29 20 3a 20  <i>BLOB</i> ) : 
5980: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f  <i>Integer</i></
5990: 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74  td>.<td>Will ret
59a0: 75 72 6e 20 74 68 65 20 74 6f 74 61 6c 20 63 6f  urn the total co
59b0: 75 6e 74 20 6f 66 20 4e 6f 44 61 74 61 20 70 69  unt of NoData pi
59c0: 78 65 6c 73 20 66 72 6f 6d 20 61 20 42 4c 4f 42  xels from a BLOB
59d0: 20 73 65 72 69 61 6c 69 7a 65 64 20 3c 62 3e 3c   serialized <b><
59e0: 69 3e 72 61 73 74 65 72 53 74 61 74 69 73 74 69  i>rasterStatisti
59f0: 63 73 3c 2f 69 3e 3c 2f 62 3e 20 6f 62 6a 65 63  cs</i></b> objec
5a00: 74 3a 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 20 6f  t: <b>NULL</b> o
5a10: 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65  n invalid argume
5a20: 6e 74 73 20 6f 72 20 69 66 20 61 6e 79 20 65 72  nts or if any er
5a30: 72 6f 72 20 6f 63 63 75 72 72 65 64 2e 3c 2f 74  ror occurred.</t
5a40: 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74  d>.</tr>.<tr>.<t
5a50: 64 3e 3c 62 3e 52 4c 32 5f 47 65 74 52 61 73 74  d><b>RL2_GetRast
5a60: 65 72 53 74 61 74 69 73 74 69 63 73 5f 56 61 6c  erStatistics_Val
5a70: 69 64 50 69 78 65 6c 73 43 6f 75 6e 74 3c 2f 62  idPixelsCount</b
5a80: 3e 20 28 20 3c 62 3e 72 61 73 74 65 72 53 74 61  > ( <b>rasterSta
5a90: 74 69 73 74 69 63 73 3c 2f 62 3e 20 3c 69 3e 42  tistics</b> <i>B
5aa0: 4c 4f 42 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49  LOB</i> ) : <i>I
5ab0: 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74 64 3e 0a  nteger</i></td>.
5ac0: 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20  <td>Will return 
5ad0: 74 68 65 20 74 6f 74 61 6c 20 63 6f 75 6e 74 20  the total count 
5ae0: 6f 66 20 76 61 6c 69 64 20 70 69 78 65 6c 73 20  of valid pixels 
5af0: 28 65 78 63 6c 75 64 69 6e 67 20 4e 6f 44 61 74  (excluding NoDat
5b00: 61 20 70 69 78 65 6c 73 29 20 66 72 6f 6d 20 61  a pixels) from a
5b10: 20 42 4c 4f 42 20 73 65 72 69 61 6c 69 7a 65 64   BLOB serialized
5b20: 20 3c 62 3e 3c 69 3e 72 61 73 74 65 72 53 74 61   <b><i>rasterSta
5b30: 74 69 73 74 69 63 73 3c 2f 69 3e 3c 2f 62 3e 20  tistics</i></b> 
5b40: 6f 62 6a 65 63 74 3a 20 3c 62 3e 4e 55 4c 4c 3c  object: <b>NULL<
5b50: 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61  /b> on invalid a
5b60: 72 67 75 6d 65 6e 74 73 20 6f 72 20 69 66 20 61  rguments or if a
5b70: 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 72 72 65  ny error occurre
5b80: 64 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74  d.</td>.</tr>.<t
5b90: 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47 65  r>.<td><b>RL2_Ge
5ba0: 74 52 61 73 74 65 72 53 74 61 74 69 73 74 69 63  tRasterStatistic
5bb0: 73 5f 53 61 6d 70 6c 65 54 79 70 65 3c 2f 62 3e  s_SampleType</b>
5bc0: 20 28 20 3c 62 3e 72 61 73 74 65 72 53 74 61 74   ( <b>rasterStat
5bd0: 69 73 74 69 63 73 3c 2f 62 3e 20 3c 69 3e 42 4c  istics</b> <i>BL
5be0: 4f 42 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 53 74  OB</i> ) : <i>St
5bf0: 72 69 6e 67 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74  ring</i></td>.<t
5c00: 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 74 68  d>Will return th
5c10: 65 20 6d 6e 65 6d 6f 6e 69 63 20 53 61 6d 70 6c  e mnemonic Sampl
5c20: 65 54 79 70 65 20 66 72 6f 6d 20 61 20 3c 62 3e  eType from a <b>
5c30: 3c 69 3e 72 61 73 74 65 72 53 74 61 74 69 73 74  <i>rasterStatist
5c40: 69 63 73 3c 2f 69 3e 3c 2f 62 3e 20 73 65 72 69  ics</i></b> seri
5c50: 61 6c 69 7a 65 64 20 6f 62 6a 65 63 74 3a 20 3c  alized object: <
5c60: 62 3e 4e 55 4c 4c 3c 2f 62 3e 20 6f 6e 20 69 6e  b>NULL</b> on in
5c70: 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 20  valid arguments 
5c80: 6f 72 20 69 66 20 61 6e 79 20 65 72 72 6f 72 20  or if any error 
5c90: 6f 63 63 75 72 72 65 64 2e 3c 2f 74 64 3e 0a 3c  occurred.</td>.<
5ca0: 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62  /tr>.<tr>.<td><b
5cb0: 3e 52 4c 32 5f 47 65 74 52 61 73 74 65 72 53 74  >RL2_GetRasterSt
5cc0: 61 74 69 73 74 69 63 73 5f 42 61 6e 64 73 43 6f  atistics_BandsCo
5cd0: 75 6e 74 3c 2f 62 3e 20 28 20 3c 62 3e 72 61 73  unt</b> ( <b>ras
5ce0: 74 65 72 53 74 61 74 69 73 74 69 63 73 3c 2f 62  terStatistics</b
5cf0: 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 20 29 20  > <i>BLOB</i> ) 
5d00: 3a 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 3c  : <i>String</i><
5d10: 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65  /td>.<td>Will re
5d20: 74 75 72 6e 20 74 68 65 20 74 6f 74 61 6c 20 6e  turn the total n
5d30: 75 6d 62 65 72 20 6f 66 20 73 75 70 70 6f 72 74  umber of support
5d40: 65 64 20 42 61 6e 64 73 20 66 72 6f 6d 20 61 20  ed Bands from a 
5d50: 3c 62 3e 3c 69 3e 72 61 73 74 65 72 53 74 61 74  <b><i>rasterStat
5d60: 69 73 74 69 63 73 3c 2f 69 3e 3c 2f 62 3e 20 73  istics</i></b> s
5d70: 65 72 69 61 6c 69 7a 65 64 20 6f 62 6a 65 63 74  erialized object
5d80: 3a 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 20 6f 6e  : <b>NULL</b> on
5d90: 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e   invalid argumen
5da0: 74 73 20 6f 72 20 69 66 20 61 6e 79 20 65 72 72  ts or if any err
5db0: 6f 72 20 6f 63 63 75 72 72 65 64 2e 3c 2f 74 64  or occurred.</td
5dc0: 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64  >.</tr>.<tr>.<td
5dd0: 3e 3c 62 3e 52 4c 32 5f 47 65 74 42 61 6e 64 53  ><b>RL2_GetBandS
5de0: 74 61 74 69 73 74 69 63 73 5f 4d 69 6e 3c 2f 62  tatistics_Min</b
5df0: 3e 20 28 20 3c 62 3e 72 61 73 74 65 72 53 74 61  > ( <b>rasterSta
5e00: 74 69 73 74 69 63 73 3c 2f 62 3e 20 3c 69 3e 42  tistics</b> <i>B
5e10: 4c 4f 42 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e  LOB</i> , <b>ban
5e20: 64 49 6e 64 65 78 3c 2f 62 3e 20 3c 69 3e 49 6e  dIndex</b> <i>In
5e30: 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69  teger</i> ) : <i
5e40: 3e 44 6f 75 62 6c 65 3c 2f 69 3e 3c 2f 74 64 3e  >Double</i></td>
5e50: 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e  .<td>Will return
5e60: 20 74 68 65 20 4d 69 6e 69 6d 75 6d 20 76 61 6c   the Minimum val
5e70: 75 65 20 66 72 6f 6d 20 61 20 73 70 65 63 69 66  ue from a specif
5e80: 69 63 20 42 61 6e 64 20 6f 66 20 61 20 3c 62 3e  ic Band of a <b>
5e90: 3c 69 3e 72 61 73 74 65 72 53 74 61 74 69 73 74  <i>rasterStatist
5ea0: 69 63 73 3c 2f 69 3e 3c 2f 62 3e 20 73 65 72 69  ics</i></b> seri
5eb0: 61 6c 69 7a 65 64 20 6f 62 6a 65 63 74 3a 20 3c  alized object: <
5ec0: 62 3e 4e 55 4c 4c 3c 2f 62 3e 20 6f 6e 20 69 6e  b>NULL</b> on in
5ed0: 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 20  valid arguments 
5ee0: 6f 72 20 69 66 20 61 6e 79 20 65 72 72 6f 72 20  or if any error 
5ef0: 6f 63 63 75 72 72 65 64 2e 3c 62 72 3e 3c 75 3e  occurred.<br><u>
5f00: 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a  Please note</u>:
5f10: 20 74 68 65 20 66 69 72 73 74 20 42 61 6e 64 20   the first Band 
5f20: 61 6c 77 61 79 73 20 63 6f 72 72 65 73 70 6f 6e  always correspon
5f30: 64 73 20 74 6f 20 69 6e 64 65 78 20 3c 62 3e 5a  ds to index <b>Z
5f40: 45 52 4f 3c 2f 62 3e 2e 3c 2f 74 64 3e 0a 3c 2f  ERO</b>.</td>.</
5f50: 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e  tr>.<tr>.<td><b>
5f60: 52 4c 32 5f 47 65 74 42 61 6e 64 53 74 61 74 69  RL2_GetBandStati
5f70: 73 74 69 63 73 5f 4d 61 78 3c 2f 62 3e 20 28 20  stics_Max</b> ( 
5f80: 3c 62 3e 72 61 73 74 65 72 53 74 61 74 69 73 74  <b>rasterStatist
5f90: 69 63 73 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 3c  ics</b> <i>BLOB<
5fa0: 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64  /i> , <b>bandInd
5fb0: 65 78 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ex</b> <i>Intege
5fc0: 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 44 6f 75  r</i> ) : <i>Dou
5fd0: 62 6c 65 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64  ble</i></td>.<td
5fe0: 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 74 68 65  >Will return the
5ff0: 20 4d 61 78 69 6d 75 6d 20 76 61 6c 75 65 20 66   Maximum value f
6000: 72 6f 6d 20 61 20 73 70 65 63 69 66 69 63 20 42  rom a specific B
6010: 61 6e 64 20 6f 66 20 61 20 3c 62 3e 3c 69 3e 72  and of a <b><i>r
6020: 61 73 74 65 72 53 74 61 74 69 73 74 69 63 73 3c  asterStatistics<
6030: 2f 69 3e 3c 2f 62 3e 20 73 65 72 69 61 6c 69 7a  /i></b> serializ
6040: 65 64 20 6f 62 6a 65 63 74 3a 20 3c 62 3e 4e 55  ed object: <b>NU
6050: 4c 4c 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69  LL</b> on invali
6060: 64 20 61 72 67 75 6d 65 6e 74 73 20 6f 72 20 69  d arguments or i
6070: 66 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75  f any error occu
6080: 72 72 65 64 2e 3c 62 72 3e 3c 75 3e 50 6c 65 61  rred.<br><u>Plea
6090: 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 74 68 65  se note</u>: the
60a0: 20 66 69 72 73 74 20 42 61 6e 64 20 61 6c 77 61   first Band alwa
60b0: 79 73 20 63 6f 72 72 65 73 70 6f 6e 64 73 20 74  ys corresponds t
60c0: 6f 20 69 6e 64 65 78 20 3c 62 3e 5a 45 52 4f 3c  o index <b>ZERO<
60d0: 2f 62 3e 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a  /b>.</td>.</tr>.
60e0: 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f  <tr>.<td><b>RL2_
60f0: 47 65 74 42 61 6e 64 53 74 61 74 69 73 74 69 63  GetBandStatistic
6100: 73 5f 41 76 67 3c 2f 62 3e 20 28 20 3c 62 3e 72  s_Avg</b> ( <b>r
6110: 61 73 74 65 72 53 74 61 74 69 73 74 69 63 73 3c  asterStatistics<
6120: 2f 62 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 20  /b> <i>BLOB</i> 
6130: 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 3c 2f  , <b>bandIndex</
6140: 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
6150: 3e 20 29 20 3a 20 3c 69 3e 44 6f 75 62 6c 65 3c  > ) : <i>Double<
6160: 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c  /i></td>.<td>Wil
6170: 6c 20 72 65 74 75 72 6e 20 74 68 65 20 41 76 65  l return the Ave
6180: 72 61 67 65 2f 4d 65 61 6e 20 76 61 6c 75 65 20  rage/Mean value 
6190: 66 72 6f 6d 20 61 20 73 70 65 63 69 66 69 63 20  from a specific 
61a0: 42 61 6e 64 20 6f 66 20 61 20 3c 62 3e 3c 69 3e  Band of a <b><i>
61b0: 72 61 73 74 65 72 53 74 61 74 69 73 74 69 63 73  rasterStatistics
61c0: 3c 2f 69 3e 3c 2f 62 3e 20 73 65 72 69 61 6c 69  </i></b> seriali
61d0: 7a 65 64 20 6f 62 6a 65 63 74 3a 20 3c 62 3e 4e  zed object: <b>N
61e0: 55 4c 4c 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c  ULL</b> on inval
61f0: 69 64 20 61 72 67 75 6d 65 6e 74 73 20 6f 72 20  id arguments or 
6200: 69 66 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63  if any error occ
6210: 75 72 72 65 64 2e 3c 62 72 3e 3c 75 3e 50 6c 65  urred.<br><u>Ple
6220: 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 74 68  ase note</u>: th
6230: 65 20 66 69 72 73 74 20 42 61 6e 64 20 61 6c 77  e first Band alw
6240: 61 79 73 20 63 6f 72 72 65 73 70 6f 6e 64 73 20  ays corresponds 
6250: 74 6f 20 69 6e 64 65 78 20 3c 62 3e 5a 45 52 4f  to index <b>ZERO
6260: 3c 2f 62 3e 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e  </b>.</td>.</tr>
6270: 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32  .<tr>.<td><b>RL2
6280: 5f 47 65 74 42 61 6e 64 53 74 61 74 69 73 74 69  _GetBandStatisti
6290: 63 73 5f 56 61 72 3c 2f 62 3e 20 28 20 3c 62 3e  cs_Var</b> ( <b>
62a0: 72 61 73 74 65 72 53 74 61 74 69 73 74 69 63 73  rasterStatistics
62b0: 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e  </b> <i>BLOB</i>
62c0: 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 3c   , <b>bandIndex<
62d0: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
62e0: 69 3e 20 29 20 3a 20 3c 69 3e 44 6f 75 62 6c 65  i> ) : <i>Double
62f0: 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69  </i></td>.<td>Wi
6300: 6c 6c 20 72 65 74 75 72 6e 20 74 68 65 20 65 73  ll return the es
6310: 74 69 6d 61 74 65 64 20 56 61 72 69 61 6e 63 65  timated Variance
6320: 20 76 61 6c 75 65 20 66 72 6f 6d 20 61 20 73 70   value from a sp
6330: 65 63 69 66 69 63 20 42 61 6e 64 20 6f 66 20 61  ecific Band of a
6340: 20 3c 62 3e 3c 69 3e 72 61 73 74 65 72 53 74 61   <b><i>rasterSta
6350: 74 69 73 74 69 63 73 3c 2f 69 3e 3c 2f 62 3e 20  tistics</i></b> 
6360: 73 65 72 69 61 6c 69 7a 65 64 20 6f 62 6a 65 63  serialized objec
6370: 74 3a 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 20 6f  t: <b>NULL</b> o
6380: 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65  n invalid argume
6390: 6e 74 73 20 6f 72 20 69 66 20 61 6e 79 20 65 72  nts or if any er
63a0: 72 6f 72 20 6f 63 63 75 72 72 65 64 2e 3c 62 72  ror occurred.<br
63b0: 3e 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c  ><u>Please note<
63c0: 2f 75 3e 3a 20 74 68 65 20 66 69 72 73 74 20 42  /u>: the first B
63d0: 61 6e 64 20 61 6c 77 61 79 73 20 63 6f 72 72 65  and always corre
63e0: 73 70 6f 6e 64 73 20 74 6f 20 69 6e 64 65 78 20  sponds to index 
63f0: 3c 62 3e 5a 45 52 4f 3c 2f 62 3e 2e 3c 2f 74 64  <b>ZERO</b>.</td
6400: 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64  >.</tr>.<tr>.<td
6410: 3e 3c 62 3e 52 4c 32 5f 47 65 74 42 61 6e 64 53  ><b>RL2_GetBandS
6420: 74 61 74 69 73 74 69 63 73 5f 53 74 64 44 65 76  tatistics_StdDev
6430: 3c 2f 62 3e 20 28 20 3c 62 3e 72 61 73 74 65 72  </b> ( <b>raster
6440: 53 74 61 74 69 73 74 69 63 73 3c 2f 62 3e 20 3c  Statistics</b> <
6450: 69 3e 42 4c 4f 42 3c 2f 69 3e 20 2c 20 3c 62 3e  i>BLOB</i> , <b>
6460: 62 61 6e 64 49 6e 64 65 78 3c 2f 62 3e 20 3c 69  bandIndex</b> <i
6470: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a  >Integer</i> ) :
6480: 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 3c 2f   <i>Double</i></
6490: 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74  td>.<td>Will ret
64a0: 75 72 6e 20 74 68 65 20 65 73 74 69 6d 61 74 65  urn the estimate
64b0: 64 20 53 74 61 6e 64 61 72 64 20 44 65 76 69 61  d Standard Devia
64c0: 74 69 6f 6e 20 76 61 6c 75 65 20 66 72 6f 6d 20  tion value from 
64d0: 61 20 73 70 65 63 69 66 69 63 20 42 61 6e 64 20  a specific Band 
64e0: 6f 66 20 61 20 3c 62 3e 3c 69 3e 72 61 73 74 65  of a <b><i>raste
64f0: 72 53 74 61 74 69 73 74 69 63 73 3c 2f 69 3e 3c  rStatistics</i><
6500: 2f 62 3e 20 73 65 72 69 61 6c 69 7a 65 64 20 6f  /b> serialized o
6510: 62 6a 65 63 74 3a 20 3c 62 3e 4e 55 4c 4c 3c 2f  bject: <b>NULL</
6520: 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72  b> on invalid ar
6530: 67 75 6d 65 6e 74 73 20 6f 72 20 69 66 20 61 6e  guments or if an
6540: 79 20 65 72 72 6f 72 20 6f 63 63 75 72 72 65 64  y error occurred
6550: 2e 3c 62 72 3e 3c 75 3e 50 6c 65 61 73 65 20 6e  .<br><u>Please n
6560: 6f 74 65 3c 2f 75 3e 3a 20 74 68 65 20 66 69 72  ote</u>: the fir
6570: 73 74 20 42 61 6e 64 20 61 6c 77 61 79 73 20 63  st Band always c
6580: 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f 20 69 6e  orresponds to in
6590: 64 65 78 20 3c 62 3e 5a 45 52 4f 3c 2f 62 3e 2e  dex <b>ZERO</b>.
65a0: 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e  </td>.</tr>.<tr>
65b0: 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47 65 74 42  .<td><b>RL2_GetB
65c0: 61 6e 64 53 74 61 74 69 73 74 69 63 73 5f 48 69  andStatistics_Hi
65d0: 73 74 6f 67 72 61 6d 3c 2f 62 3e 20 28 20 3c 62  stogram</b> ( <b
65e0: 3e 72 61 73 74 65 72 53 74 61 74 69 73 74 69 63  >rasterStatistic
65f0: 73 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69  s</b> <i>BLOB</i
6600: 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78  > , <b>bandIndex
6610: 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
6620: 2f 69 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c  /i> ) : <i>BLOB<
6630: 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c  /i></td>.<td>Wil
6640: 6c 20 72 65 74 75 72 6e 20 61 20 42 4c 4f 42 20  l return a BLOB 
6650: 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 74 6f  corresponding to
6660: 20 61 20 50 4e 47 20 69 6d 61 67 65 20 72 65 70   a PNG image rep
6670: 72 65 73 65 6e 74 69 6e 67 20 74 68 65 20 65 73  resenting the es
6680: 74 69 6d 61 74 65 64 20 64 69 73 74 72 69 62 75  timated distribu
6690: 74 69 6f 6e 20 48 69 73 74 6f 67 72 61 6d 20 66  tion Histogram f
66a0: 72 6f 6d 20 61 20 73 70 65 63 69 66 69 63 20 42  rom a specific B
66b0: 61 6e 64 20 6f 66 20 61 20 3c 62 3e 3c 69 3e 72  and of a <b><i>r
66c0: 61 73 74 65 72 53 74 61 74 69 73 74 69 63 73 3c  asterStatistics<
66d0: 2f 69 3e 3c 2f 62 3e 20 73 65 72 69 61 6c 69 7a  /i></b> serializ
66e0: 65 64 20 6f 62 6a 65 63 74 3a 20 3c 62 3e 4e 55  ed object: <b>NU
66f0: 4c 4c 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69  LL</b> on invali
6700: 64 20 61 72 67 75 6d 65 6e 74 73 20 6f 72 20 69  d arguments or i
6710: 66 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75  f any error occu
6720: 72 72 65 64 2e 3c 62 72 3e 3c 75 3e 50 6c 65 61  rred.<br><u>Plea
6730: 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 74 68 65  se note</u>: the
6740: 20 66 69 72 73 74 20 42 61 6e 64 20 61 6c 77 61   first Band alwa
6750: 79 73 20 63 6f 72 72 65 73 70 6f 6e 64 73 20 74  ys corresponds t
6760: 6f 20 69 6e 64 65 78 20 3c 62 3e 5a 45 52 4f 3c  o index <b>ZERO<
6770: 2f 62 3e 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a  /b>.</td>.</tr>.
6780: 3c 2f 74 61 62 6c 65 3e 3c 62 72 3e 0a 3c 68 72  </table><br>.<hr
6790: 3e 0a 3c 68 32 3e 53 51 4c 20 66 75 6e 63 74 69  >.<h2>SQL functi
67a0: 6f 6e 73 20 73 75 70 70 6f 72 74 69 6e 67 20 42  ons supporting B
67b0: 4c 4f 42 20 73 65 72 69 61 6c 69 7a 65 64 20 72  LOB serialized r
67c0: 61 73 74 65 72 54 69 6c 65 20 6f 62 6a 65 63 74  asterTile object
67d0: 73 3c 2f 68 32 3e 20 0a 3c 74 61 62 6c 65 20 77  s</h2> .<table w
67e0: 69 64 74 68 3d 22 31 30 30 25 22 20 62 6f 72 64  idth="100%" bord
67f0: 65 72 3d 22 31 22 20 62 67 63 6f 6c 6f 72 3d 22  er="1" bgcolor="
6800: 23 66 66 66 66 65 30 22 20 63 65 6c 6c 65 73 70  #ffffe0" cellesp
6810: 61 63 69 6e 67 3d 22 34 22 20 63 65 6c 6c 70 61  acing="4" cellpa
6820: 64 64 69 6e 67 3d 22 36 22 3e 0a 3c 74 72 3e 3c  dding="6">.<tr><
6830: 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 65 30 65  th bgcolor="#e0e
6840: 30 65 30 22 20 77 69 64 74 68 3d 22 35 30 25 22  0e0" width="50%"
6850: 3e 53 79 6e 74 61 78 3c 2f 74 68 3e 3c 74 68 20  >Syntax</th><th 
6860: 62 67 63 6f 6c 6f 72 3d 22 23 65 30 65 30 65 30  bgcolor="#e0e0e0
6870: 22 20 77 69 64 74 68 3d 22 35 30 25 22 3e 53 75  " width="50%">Su
6880: 6d 6d 61 72 79 3c 2f 74 68 3e 3c 2f 74 72 3e 0a  mmary</th></tr>.
6890: 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f  <tr>.<td><b>RL2_
68a0: 49 73 56 61 6c 69 64 52 61 73 74 65 72 54 69 6c  IsValidRasterTil
68b0: 65 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65  e</b> ( <b>dbPre
68c0: 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  fix</b> <i>Strin
68d0: 67 3c 2f 69 3e 20 2c 20 20 3c 62 3e 63 6f 76 65  g</i> ,  <b>cove
68e0: 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e  rageName</b> <i>
68f0: 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
6900: 70 79 72 61 6d 69 64 4c 65 76 65 6c 3c 2f 62 3e  pyramidLevel</b>
6910: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 2c   <i>Integer</i>,
6920: 20 3c 62 3e 74 69 6c 65 4f 64 64 3c 2f 62 3e 20   <b>tileOdd</b> 
6930: 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 20 2c 20 3c 62  <i>BLOB</i> , <b
6940: 3e 74 69 6c 65 45 76 65 6e 3c 2f 62 3e 20 3c 69  >tileEven</b> <i
6950: 3e 42 4c 4f 42 3c 2f 69 3e 20 29 20 3a 20 3c 69  >BLOB</i> ) : <i
6960: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74 64  >Integer</i></td
6970: 3e 0a 3c 74 64 3e 57 69 6c 6c 20 74 65 73 74 20  >.<td>Will test 
6980: 61 20 42 4c 4f 42 20 73 65 72 69 61 6c 69 7a 65  a BLOB serialize
6990: 64 20 3c 62 3e 3c 69 3e 72 61 73 74 65 72 54 69  d <b><i>rasterTi
69a0: 6c 65 3c 2f 69 3e 3c 2f 62 3e 20 6f 62 6a 65 63  le</i></b> objec
69b0: 74 20 66 6f 72 20 76 61 6c 69 64 69 74 79 2e 3c  t for validity.<
69c0: 62 72 3e 0a 54 68 65 20 3c 62 3e 3c 69 3e 64 62  br>.The <b><i>db
69d0: 50 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20 61  Prefix</i></b> a
69e0: 72 67 75 6d 65 6e 74 20 69 73 20 69 6e 74 65 6e  rgument is inten
69f0: 64 65 64 20 74 6f 20 73 70 65 63 69 66 79 20 74  ded to specify t
6a00: 68 65 20 41 54 54 41 43 48 45 44 2d 44 42 20 77  he ATTACHED-DB w
6a10: 68 65 72 65 20 74 68 65 20 43 6f 76 65 72 61 67  here the Coverag
6a20: 65 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f  e is expected to
6a30: 20 62 65 20 66 6f 75 6e 64 3b 20 69 74 20 63 6f   be found; it co
6a40: 75 6c 64 20 62 65 20 65 76 65 6e 74 75 61 6c 6c  uld be eventuall
6a50: 79 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20 61  y <b>NULL</b>, a
6a60: 6e 64 20 69 6e 20 74 68 69 73 20 63 61 73 65 20  nd in this case 
6a70: 74 68 65 20 3c 62 3e 4d 41 49 4e 20 44 42 3c 2f  the <b>MAIN DB</
6a80: 62 3e 20 77 69 6c 6c 20 69 6d 70 6c 69 63 69 74  b> will implicit
6a90: 6c 79 20 62 65 20 61 73 73 75 6d 65 64 2e 3c 62  ly be assumed.<b
6aa0: 72 3e 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20 3c  r>.Will return <
6ab0: 62 3e 31 3c 2f 62 3e 20 28 54 52 55 45 29 20 6f  b>1</b> (TRUE) o
6ac0: 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41 4c 53  r <b>0</b> (FALS
6ad0: 45 29 3a 20 6f 72 20 3c 62 3e 2d 31 3c 2f 62 3e  E): or <b>-1</b>
6ae0: 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75   on invalid argu
6af0: 6d 65 6e 74 73 20 6f 72 20 69 66 20 61 6e 79 20  ments or if any 
6b00: 65 72 72 6f 72 20 6f 63 63 75 72 72 65 64 2e 3c  error occurred.<
6b10: 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a  /td>.</tr>.<tr>.
6b20: 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47 65 74 54 69  <td><b>RL2_GetTi
6b30: 6c 65 49 6d 61 67 65 3c 2f 62 3e 20 28 20 3c 62  leImage</b> ( <b
6b40: 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69  >dbPrefix</b> <i
6b50: 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
6b60: 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62  >coverageName</b
6b70: 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
6b80: 2c 20 3c 62 3e 74 69 6c 65 49 44 3c 2f 62 3e 20  , <b>tileID</b> 
6b90: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29  <i>Integer</i> )
6ba0: 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 3c 2f   : <i>BLOB</i></
6bb0: 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74  td>.<td>Will ret
6bc0: 75 72 6e 20 61 20 42 4c 4f 42 20 63 6f 72 72 65  urn a BLOB corre
6bd0: 73 70 6f 6e 64 69 6e 67 20 74 6f 20 61 20 50 4e  sponding to a PN
6be0: 47 20 69 6d 61 67 65 20 28 76 69 73 75 61 6c 20  G image (visual 
6bf0: 70 72 65 76 69 65 77 29 20 66 72 6f 6d 20 61 20  preview) from a 
6c00: 3c 62 3e 3c 69 3e 72 61 73 74 65 72 54 69 6c 65  <b><i>rasterTile
6c10: 3c 2f 69 3e 3c 2f 62 3e 20 73 65 72 69 61 6c 69  </i></b> seriali
6c20: 7a 65 64 20 6f 62 6a 65 63 74 3a 20 3c 62 3e 4e  zed object: <b>N
6c30: 55 4c 4c 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c  ULL</b> on inval
6c40: 69 64 20 61 72 67 75 6d 65 6e 74 73 20 6f 72 20  id arguments or 
6c50: 69 66 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63  if any error occ
6c60: 75 72 72 65 64 2e 3c 62 72 3e 0a 54 68 65 20 6d  urred.<br>.The m
6c70: 61 6e 64 61 74 6f 72 79 20 3c 62 3e 3c 69 3e 64  andatory <b><i>d
6c80: 62 50 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20  bPrefix</i></b> 
6c90: 61 72 67 75 6d 65 6e 74 20 63 6f 75 6c 64 20 65  argument could e
6ca0: 76 65 6e 74 75 61 6c 6c 79 20 62 65 20 3c 62 3e  ventually be <b>
6cb0: 4e 55 4c 4c 3c 2f 62 3e 20 61 6e 64 20 69 6e 20  NULL</b> and in 
6cc0: 74 68 69 73 20 63 61 73 65 20 74 68 65 20 3c 62  this case the <b
6cd0: 3e 4d 41 49 4e 20 44 42 3c 2f 62 3e 20 77 69 6c  >MAIN DB</b> wil
6ce0: 6c 20 69 6d 70 6c 69 63 69 74 6c 79 20 62 65 20  l implicitly be 
6cf0: 61 73 73 75 6d 65 64 2e 3c 62 72 3e 0a 3c 75 3e  assumed.<br>.<u>
6d00: 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a  Please note</u>:
6d10: 20 66 6f 72 20 70 69 78 65 6c 54 79 70 65 73 20   for pixelTypes 
6d20: 6c 61 63 6b 69 6e 67 20 61 6e 79 20 69 6d 70 6c  lacking any impl
6d30: 69 63 69 74 20 70 68 6f 74 6f 6d 65 74 72 69 63  icit photometric
6d40: 20 69 6e 74 65 72 70 72 65 74 61 74 69 6f 6e 20   interpretation 
6d50: 28 69 2e 65 2e 20 44 41 54 41 47 52 49 44 29 20  (i.e. DATAGRID) 
6d60: 61 20 64 65 66 61 75 6c 74 20 47 72 61 79 73 63  a default Graysc
6d70: 61 6c 65 20 69 6e 74 65 72 70 72 65 74 61 74 69  ale interpretati
6d80: 6f 6e 20 77 69 6c 6c 20 62 65 20 73 69 6c 65 6e  on will be silen
6d90: 74 6c 79 20 61 73 73 75 6d 65 64 2e 0a 46 6f 72  tly assumed..For
6da0: 20 52 61 73 74 65 72 20 54 69 6c 65 73 20 6f 66   Raster Tiles of
6db0: 20 74 68 65 20 4d 55 4c 54 49 42 41 4e 44 20 74   the MULTIBAND t
6dc0: 79 70 65 20 61 20 64 65 66 61 75 6c 74 20 47 72  ype a default Gr
6dd0: 61 79 73 63 61 6c 65 20 69 6e 74 65 72 70 72 65  ayscale interpre
6de0: 74 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 3c 62  tation of the <b
6df0: 3e 66 69 72 73 74 20 62 61 6e 64 20 6f 6e 6c 79  >first band only
6e00: 3c 2f 62 3e 20 77 69 6c 6c 20 62 65 20 73 69 6c  </b> will be sil
6e10: 65 6e 74 6c 79 20 61 73 73 75 6d 65 64 2e 3c 2f  ently assumed.</
6e20: 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c  td>.</tr>.<tr>.<
6e30: 74 64 3e 3c 62 3e 52 4c 32 5f 47 65 74 54 72 69  td><b>RL2_GetTri
6e40: 70 6c 65 42 61 6e 64 54 69 6c 65 49 6d 61 67 65  pleBandTileImage
6e50: 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
6e60: 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
6e70: 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
6e80: 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
6e90: 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69  ring</i> , <b>ti
6ea0: 6c 65 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  leID</b> <i>Inte
6eb0: 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e  ger</i> , <b>ban
6ec0: 64 49 6e 64 65 78 52 65 64 3c 2f 62 3e 20 3c 69  dIndexRed</b> <i
6ed0: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
6ee0: 62 3e 62 61 6e 64 49 6e 64 65 78 47 72 65 65 6e  b>bandIndexGreen
6ef0: 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
6f00: 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64  /i> , <b>bandInd
6f10: 65 78 42 6c 75 65 3c 2f 62 3e 20 3c 69 3e 49 6e  exBlue</b> <i>In
6f20: 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69  teger</i> ) : <i
6f30: 3e 42 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62 72  >BLOB</i><br><br
6f40: 3e 0a 3c 62 3e 52 4c 32 5f 47 65 74 54 72 69 70  >.<b>RL2_GetTrip
6f50: 6c 65 42 61 6e 64 54 69 6c 65 49 6d 61 67 65 3c  leBandTileImage<
6f60: 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69  /b> ( <b>dbPrefi
6f70: 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  x</b> <i>String<
6f80: 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67  /i> , <b>coverag
6f90: 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eName</b> <i>Str
6fa0: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 6c  ing</i> , <b>til
6fb0: 65 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  eID</b> <i>Integ
6fc0: 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64  er</i> , <b>band
6fd0: 49 6e 64 65 78 52 65 64 3c 2f 62 3e 20 3c 69 3e  IndexRed</b> <i>
6fe0: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
6ff0: 3e 62 61 6e 64 49 6e 64 65 78 47 72 65 65 6e 3c  >bandIndexGreen<
7000: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
7010: 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65  i> , <b>bandInde
7020: 78 42 6c 75 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74  xBlue</b> <i>Int
7030: 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 67  eger</i> , <b>bg
7040: 43 6f 6c 6f 72 3c 2f 62 3e 20 3c 69 3e 53 74 72  Color</b> <i>Str
7050: 69 6e 67 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42  ing</i> ) : <i>B
7060: 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a  LOB</i><br><br>.
7070: 3c 62 3e 52 4c 32 5f 47 65 74 54 72 69 70 6c 65  <b>RL2_GetTriple
7080: 42 61 6e 64 54 69 6c 65 49 6d 61 67 65 3c 2f 62  BandTileImage</b
7090: 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c  > ( <b>dbPrefix<
70a0: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
70b0: 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e  > , <b>coverageN
70c0: 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ame</b> <i>Strin
70d0: 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 6c 65 49  g</i> , <b>tileI
70e0: 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  D</b> <i>Integer
70f0: 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e  </i> , <b>bandIn
7100: 64 65 78 52 65 64 3c 2f 62 3e 20 3c 69 3e 49 6e  dexRed</b> <i>In
7110: 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62  teger</i> , <b>b
7120: 61 6e 64 49 6e 64 65 78 47 72 65 65 6e 3c 2f 62  andIndexGreen</b
7130: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
7140: 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 42   , <b>bandIndexB
7150: 6c 75 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  lue</b> <i>Integ
7160: 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 67 43 6f  er</i> , <b>bgCo
7170: 6c 6f 72 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  lor</b> <i>Strin
7180: 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 72 61 6e 73  g</i> , <b>trans
7190: 70 61 72 65 6e 74 3c 2f 62 3e 20 3c 69 3e 49 6e  parent</b> <i>In
71a0: 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69  teger</i> ) : <i
71b0: 3e 42 4c 4f 42 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c  >BLOB</i></td>.<
71c0: 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20 61  td>Will return a
71d0: 20 42 4c 4f 42 20 63 6f 72 72 65 73 70 6f 6e 64   BLOB correspond
71e0: 69 6e 67 20 74 6f 20 61 20 50 4e 47 20 69 6d 61  ing to a PNG ima
71f0: 67 65 20 28 76 69 73 75 61 6c 20 70 72 65 76 69  ge (visual previ
7200: 65 77 29 20 66 72 6f 6d 20 61 20 3c 62 3e 3c 69  ew) from a <b><i
7210: 3e 72 61 73 74 65 72 54 69 6c 65 3c 2f 69 3e 3c  >rasterTile</i><
7220: 2f 62 3e 20 73 65 72 69 61 6c 69 7a 65 64 20 6f  /b> serialized o
7230: 62 6a 65 63 74 3a 20 3c 62 3e 4e 55 4c 4c 3c 2f  bject: <b>NULL</
7240: 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72  b> on invalid ar
7250: 67 75 6d 65 6e 74 73 20 6f 72 20 69 66 20 61 6e  guments or if an
7260: 79 20 65 72 72 6f 72 20 6f 63 63 75 72 72 65 64  y error occurred
7270: 2e 3c 62 72 3e 0a 54 68 65 20 6d 61 6e 64 61 74  .<br>.The mandat
7280: 6f 72 79 20 3c 62 3e 3c 69 3e 64 62 50 72 65 66  ory <b><i>dbPref
7290: 69 78 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d  ix</i></b> argum
72a0: 65 6e 74 20 63 6f 75 6c 64 20 65 76 65 6e 74 75  ent could eventu
72b0: 61 6c 6c 79 20 62 65 20 3c 62 3e 4e 55 4c 4c 3c  ally be <b>NULL<
72c0: 2f 62 3e 20 61 6e 64 20 69 6e 20 74 68 69 73 20  /b> and in this 
72d0: 63 61 73 65 20 74 68 65 20 3c 62 3e 4d 41 49 4e  case the <b>MAIN
72e0: 20 44 42 3c 2f 62 3e 20 77 69 6c 6c 20 69 6d 70   DB</b> will imp
72f0: 6c 69 63 69 74 6c 79 20 62 65 20 61 73 73 75 6d  licitly be assum
7300: 65 64 2e 3c 62 72 3e 0a 54 68 65 20 3c 62 3e 3c  ed.<br>.The <b><
7310: 69 3e 62 61 6e 64 49 6e 64 65 78 52 65 64 3c 2f  i>bandIndexRed</
7320: 62 3e 3c 2f 69 3e 2c 20 3c 62 3e 3c 69 3e 62 61  b></i>, <b><i>ba
7330: 6e 64 49 6e 64 65 78 47 72 65 65 6e 3c 2f 69 3e  ndIndexGreen</i>
7340: 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 62  </b> and <b><i>b
7350: 61 6e 64 49 6e 64 65 78 42 6c 75 65 3c 2f 69 3e  andIndexBlue</i>
7360: 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74 73 20 61  </b> arguments a
7370: 72 65 20 69 6e 74 65 6e 64 65 64 20 74 6f 20 61  re intended to a
7380: 72 62 69 74 72 61 72 69 6c 79 20 63 6f 6d 70 6f  rbitrarily compo
7390: 73 65 20 74 68 65 20 52 47 42 20 50 4e 47 20 73  se the RGB PNG s
73a0: 74 61 72 74 69 6e 67 20 66 72 6f 6d 20 74 68 65  tarting from the
73b0: 20 42 61 6e 64 73 20 73 75 70 70 6f 72 74 65 64   Bands supported
73c0: 20 62 79 20 74 68 65 20 43 6f 76 65 72 61 67 65   by the Coverage
73d0: 2e 0a 3c 62 72 3e 3c 75 3e 50 6c 65 61 73 65 20  ..<br><u>Please 
73e0: 6e 6f 74 65 3c 2f 75 3e 3a 20 74 68 65 20 66 69  note</u>: the fi
73f0: 72 73 74 20 42 61 6e 64 20 61 6c 77 61 79 73 20  rst Band always 
7400: 63 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f 20 69  corresponds to i
7410: 6e 64 65 78 20 3c 62 3e 5a 45 52 4f 3c 2f 62 3e  ndex <b>ZERO</b>
7420: 3c 62 72 3e 3c 62 72 3e 0a 54 68 65 20 6f 70 74  <br><br>.The opt
7430: 69 6f 6e 61 6c 20 3c 62 3e 3c 69 3e 62 67 43 6f  ional <b><i>bgCo
7440: 6c 6f 72 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75  lor</i></b> argu
7450: 6d 65 6e 74 20 69 73 20 65 78 70 65 63 74 65 64  ment is expected
7460: 20 74 6f 20 62 65 20 65 78 70 72 65 73 73 65 64   to be expressed
7470: 20 69 6e 20 74 68 65 20 63 61 6e 6f 6e 69 63 61   in the canonica
7480: 6c 20 57 45 42 20 48 45 58 2d 52 47 42 20 66 6f  l WEB HEX-RGB fo
7490: 72 6d 2c 20 61 73 20 69 6e 20 3c 62 3e 27 23 66  rm, as in <b>'#f
74a0: 66 38 30 38 30 27 3c 2f 62 3e 20 28 64 65 66 61  f8080'</b> (defa
74b0: 75 6c 74 20 69 73 20 27 23 66 66 66 66 66 66 27  ult is '#ffffff'
74c0: 20 69 2e 65 2e 20 66 75 6c 6c 20 77 68 69 74 65   i.e. full white
74d0: 29 2e 3c 62 72 3e 0a 54 68 65 20 73 65 63 6f 6e  ).<br>.The secon
74e0: 64 20 6f 70 74 69 6f 6e 61 6c 20 3c 62 3e 3c 69  d optional <b><i
74f0: 3e 74 72 61 6e 73 70 61 72 65 6e 74 3c 2f 69 3e  >transparent</i>
7500: 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74 20 69 73  </b> argument is
7510: 20 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20   expected to be 
7520: 65 78 70 72 65 73 73 65 64 20 61 73 20 61 20 42  expressed as a B
7530: 6f 6f 6c 65 61 6e 20 76 61 6c 75 65 20 28 64 65  oolean value (de
7540: 66 61 75 6c 74 20 69 73 20 3c 62 3e 30 3c 2f 62  fault is <b>0</b
7550: 3e 20 46 41 4c 53 45 29 2e 3c 62 72 3e 0a 3c 75  > FALSE).<br>.<u
7560: 3e 50 6c 65 61 73 65 20 6e 6f 74 65 20 76 65 72  >Please note ver
7570: 79 20 77 65 6c 6c 3c 2f 75 3e 3a 20 74 68 69 73  y well</u>: this
7580: 20 53 51 4c 20 66 75 6e 63 74 69 6f 6e 20 77 69   SQL function wi
7590: 6c 6c 20 6f 6e 6c 79 20 61 63 63 65 70 74 20 52  ll only accept R
75a0: 61 73 74 65 72 20 54 69 6c 65 73 20 6f 66 20 74  aster Tiles of t
75b0: 68 65 20 4d 55 4c 54 49 42 41 4e 44 20 6f 72 20  he MULTIBAND or 
75c0: 52 47 42 20 74 79 70 65 2e 3c 2f 74 64 3e 0a 3c  RGB type.</td>.<
75d0: 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62  /tr>.<tr>.<td><b
75e0: 3e 52 4c 32 5f 47 65 74 4d 6f 6e 6f 42 61 6e 64  >RL2_GetMonoBand
75f0: 54 69 6c 65 49 6d 61 67 65 3c 2f 62 3e 20 28 20  TileImage</b> ( 
7600: 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20  <b>dbPrefix</b> 
7610: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
7620: 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
7630: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
7640: 3e 20 2c 20 3c 62 3e 74 69 6c 65 49 44 3c 2f 62  > , <b>tileID</b
7650: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
7660: 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47   , <b>bandIndexG
7670: 72 61 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  ray</b> <i>Integ
7680: 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42 4c  er</i> ) : <i>BL
7690: 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c  OB</i><br><br>.<
76a0: 62 3e 52 4c 32 5f 47 65 74 4d 6f 6e 6f 42 61 6e  b>RL2_GetMonoBan
76b0: 64 54 69 6c 65 49 6d 61 67 65 3c 2f 62 3e 20 28  dTileImage</b> (
76c0: 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e   <b>dbPrefix</b>
76d0: 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
76e0: 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65   <b>coverageName
76f0: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
7700: 69 3e 20 2c 20 3c 62 3e 74 69 6c 65 49 44 3c 2f  i> , <b>tileID</
7710: 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
7720: 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78  > , <b>bandIndex
7730: 47 72 61 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  Gray</b> <i>Inte
7740: 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 67 43  ger</i> , <b>bgC
7750: 6f 6c 6f 72 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  olor</b> <i>Stri
7760: 6e 67 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42 4c  ng</i> ) : <i>BL
7770: 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c  OB</i><br><br>.<
7780: 62 3e 52 4c 32 5f 47 65 74 4d 6f 6e 6f 42 61 6e  b>RL2_GetMonoBan
7790: 64 54 69 6c 65 49 6d 61 67 65 3c 2f 62 3e 20 28  dTileImage</b> (
77a0: 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e   <b>dbPrefix</b>
77b0: 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
77c0: 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65   <b>coverageName
77d0: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
77e0: 69 3e 20 2c 20 3c 62 3e 74 69 6c 65 49 44 3c 2f  i> , <b>tileID</
77f0: 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
7800: 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78  > , <b>bandIndex
7810: 47 72 61 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  Gray</b> <i>Inte
7820: 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 67 43  ger</i> , <b>bgC
7830: 6f 6c 6f 72 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  olor</b> <i>Stri
7840: 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 72 61 6e  ng</i> , <b>tran
7850: 73 70 61 72 65 6e 74 3c 2f 62 3e 20 3c 69 3e 49  sparent</b> <i>I
7860: 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c  nteger</i> ) : <
7870: 69 3e 42 4c 4f 42 3c 2f 69 3e 3c 2f 74 64 3e 0a  i>BLOB</i></td>.
7880: 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e 20  <td>Will return 
7890: 61 20 42 4c 4f 42 20 63 6f 72 72 65 73 70 6f 6e  a BLOB correspon
78a0: 64 69 6e 67 20 74 6f 20 61 20 50 4e 47 20 69 6d  ding to a PNG im
78b0: 61 67 65 20 28 76 69 73 75 61 6c 20 70 72 65 76  age (visual prev
78c0: 69 65 77 29 20 66 72 6f 6d 20 61 20 3c 62 3e 3c  iew) from a <b><
78d0: 69 3e 72 61 73 74 65 72 54 69 6c 65 3c 2f 69 3e  i>rasterTile</i>
78e0: 3c 2f 62 3e 20 73 65 72 69 61 6c 69 7a 65 64 20  </b> serialized 
78f0: 6f 62 6a 65 63 74 3a 20 3c 62 3e 4e 55 4c 4c 3c  object: <b>NULL<
7900: 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61  /b> on invalid a
7910: 72 67 75 6d 65 6e 74 73 20 6f 72 20 69 66 20 61  rguments or if a
7920: 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 72 72 65  ny error occurre
7930: 64 2e 3c 62 72 3e 0a 54 68 65 20 6d 61 6e 64 61  d.<br>.The manda
7940: 74 6f 72 79 20 3c 62 3e 3c 69 3e 64 62 50 72 65  tory <b><i>dbPre
7950: 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75  fix</i></b> argu
7960: 6d 65 6e 74 20 63 6f 75 6c 64 20 65 76 65 6e 74  ment could event
7970: 75 61 6c 6c 79 20 62 65 20 3c 62 3e 4e 55 4c 4c  ually be <b>NULL
7980: 3c 2f 62 3e 20 61 6e 64 20 69 6e 20 74 68 69 73  </b> and in this
7990: 20 63 61 73 65 20 74 68 65 20 3c 62 3e 4d 41 49   case the <b>MAI
79a0: 4e 20 44 42 3c 2f 62 3e 20 77 69 6c 6c 20 69 6d  N DB</b> will im
79b0: 70 6c 69 63 69 74 6c 79 20 62 65 20 61 73 73 75  plicitly be assu
79c0: 6d 65 64 2e 3c 62 72 3e 0a 54 68 65 20 3c 62 3e  med.<br>.The <b>
79d0: 3c 69 3e 62 61 6e 64 49 6e 64 65 78 47 72 61 79  <i>bandIndexGray
79e0: 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65 6e  </i></b> argumen
79f0: 74 20 69 73 20 69 6e 74 65 6e 64 65 64 20 74 6f  t is intended to
7a00: 20 61 72 62 69 74 72 61 72 69 6c 79 20 63 6f 6d   arbitrarily com
7a10: 70 6f 73 65 20 74 68 65 20 47 72 61 79 73 63 61  pose the Graysca
7a20: 6c 65 20 50 4e 47 20 73 74 61 72 74 69 6e 67 20  le PNG starting 
7a30: 66 72 6f 6d 20 74 68 65 20 42 61 6e 64 73 20 73  from the Bands s
7a40: 75 70 70 6f 72 74 65 64 20 62 79 20 74 68 65 20  upported by the 
7a50: 43 6f 76 65 72 61 67 65 2e 0a 3c 62 72 3e 3c 75  Coverage..<br><u
7a60: 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75 3e  >Please note</u>
7a70: 3a 20 74 68 65 20 66 69 72 73 74 20 42 61 6e 64  : the first Band
7a80: 20 61 6c 77 61 79 73 20 63 6f 72 72 65 73 70 6f   always correspo
7a90: 6e 64 73 20 74 6f 20 69 6e 64 65 78 20 3c 62 3e  nds to index <b>
7aa0: 5a 45 52 4f 3c 2f 62 3e 3c 62 72 3e 3c 62 72 3e  ZERO</b><br><br>
7ab0: 0a 54 68 65 20 6f 70 74 69 6f 6e 61 6c 20 3c 62  .The optional <b
7ac0: 3e 3c 69 3e 62 67 43 6f 6c 6f 72 3c 2f 69 3e 3c  ><i>bgColor</i><
7ad0: 2f 62 3e 20 61 72 67 75 6d 65 6e 74 20 69 73 20  /b> argument is 
7ae0: 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 65  expected to be e
7af0: 78 70 72 65 73 73 65 64 20 69 6e 20 74 68 65 20  xpressed in the 
7b00: 63 61 6e 6f 6e 69 63 61 6c 20 57 45 42 20 48 45  canonical WEB HE
7b10: 58 2d 52 47 42 20 66 6f 72 6d 2c 20 61 73 20 69  X-RGB form, as i
7b20: 6e 20 3c 62 3e 27 23 66 66 38 30 38 30 27 3c 2f  n <b>'#ff8080'</
7b30: 62 3e 20 28 64 65 66 61 75 6c 74 20 69 73 20 27  b> (default is '
7b40: 23 66 66 66 66 66 66 27 20 69 2e 65 2e 20 66 75  #ffffff' i.e. fu
7b50: 6c 6c 20 77 68 69 74 65 29 2e 3c 62 72 3e 0a 54  ll white).<br>.T
7b60: 68 65 20 73 65 63 6f 6e 64 20 6f 70 74 69 6f 6e  he second option
7b70: 61 6c 20 3c 62 3e 3c 69 3e 74 72 61 6e 73 70 61  al <b><i>transpa
7b80: 72 65 6e 74 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67  rent</i></b> arg
7b90: 75 6d 65 6e 74 20 69 73 20 65 78 70 65 63 74 65  ument is expecte
7ba0: 64 20 74 6f 20 62 65 20 65 78 70 72 65 73 73 65  d to be expresse
7bb0: 64 20 61 73 20 61 20 42 6f 6f 6c 65 61 6e 20 76  d as a Boolean v
7bc0: 61 6c 75 65 20 28 64 65 66 61 75 6c 74 20 69 73  alue (default is
7bd0: 20 3c 62 3e 30 3c 2f 62 3e 20 46 41 4c 53 45 29   <b>0</b> FALSE)
7be0: 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65 20  .<br>.<u>Please 
7bf0: 6e 6f 74 65 3c 2f 75 3e 3a 20 66 6f 72 20 70 69  note</u>: for pi
7c00: 78 65 6c 54 79 70 65 73 20 6c 61 63 6b 69 6e 67  xelTypes lacking
7c10: 20 61 6e 79 20 69 6d 70 6c 69 63 69 74 20 70 68   any implicit ph
7c20: 6f 74 6f 6d 65 74 72 69 63 20 69 6e 74 65 72 70  otometric interp
7c30: 72 65 74 61 74 69 6f 6e 20 28 69 2e 65 2e 20 44  retation (i.e. D
7c40: 41 54 41 47 52 49 44 29 20 61 20 64 65 66 61 75  ATAGRID) a defau
7c50: 6c 74 20 47 72 61 79 73 63 61 6c 65 20 69 6e 74  lt Grayscale int
7c60: 65 72 70 72 65 74 61 74 69 6f 6e 20 77 69 6c 6c  erpretation will
7c70: 20 62 65 20 73 69 6c 65 6e 74 6c 79 20 61 73 73   be silently ass
7c80: 75 6d 65 64 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65  umed.<br>.<u>Ple
7c90: 61 73 65 20 6e 6f 74 65 20 76 65 72 79 20 77 65  ase note very we
7ca0: 6c 6c 3c 2f 75 3e 3a 20 74 68 69 73 20 53 51 4c  ll</u>: this SQL
7cb0: 20 66 75 6e 63 74 69 6f 6e 20 77 69 6c 6c 20 6f   function will o
7cc0: 6e 6c 79 20 61 63 63 65 70 74 20 52 61 73 74 65  nly accept Raste
7cd0: 72 20 54 69 6c 65 73 20 6f 66 20 74 68 65 20 4d  r Tiles of the M
7ce0: 55 4c 54 49 42 41 4e 44 20 6f 72 20 52 47 42 20  ULTIBAND or RGB 
7cf0: 74 79 70 65 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e  type.</td>.</tr>
7d00: 0a 3c 2f 74 61 62 6c 65 3e 3c 62 72 3e 0a 3c 68  .</table><br>.<h
7d10: 72 3e 0a 3c 68 32 3e 53 51 4c 20 66 75 6e 63 74  r>.<h2>SQL funct
7d20: 69 6f 6e 73 20 73 75 70 70 6f 72 74 69 6e 67 20  ions supporting 
7d30: 43 6f 76 65 72 61 67 65 20 61 6e 64 20 53 65 63  Coverage and Sec
7d40: 74 69 6f 6e 20 6d 61 6e 61 67 65 6d 65 6e 74 3c  tion management<
7d50: 2f 68 32 3e 20 0a 3c 74 61 62 6c 65 20 77 69 64  /h2> .<table wid
7d60: 74 68 3d 22 31 30 30 25 22 20 62 6f 72 64 65 72  th="100%" border
7d70: 3d 22 31 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66  ="1" bgcolor="#f
7d80: 66 66 66 65 30 22 20 63 65 6c 6c 65 73 70 61 63  fffe0" cellespac
7d90: 69 6e 67 3d 22 34 22 20 63 65 6c 6c 70 61 64 64  ing="4" cellpadd
7da0: 69 6e 67 3d 22 36 22 3e 0a 3c 74 72 3e 3c 74 68  ing="6">.<tr><th
7db0: 20 62 67 63 6f 6c 6f 72 3d 22 23 65 30 65 30 65   bgcolor="#e0e0e
7dc0: 30 22 3e 53 79 6e 74 61 78 3c 2f 74 68 3e 3c 74  0">Syntax</th><t
7dd0: 68 20 62 67 63 6f 6c 6f 72 3d 22 23 65 30 65 30  h bgcolor="#e0e0
7de0: 65 30 22 20 77 69 64 74 68 3d 22 35 30 25 22 3e  e0" width="50%">
7df0: 53 75 6d 6d 61 72 79 3c 2f 74 68 3e 3c 2f 74 72  Summary</th></tr
7e00: 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c  >.<tr>.<td><b>RL
7e10: 32 5f 43 72 65 61 74 65 52 61 73 74 65 72 43 6f  2_CreateRasterCo
7e20: 76 65 72 61 67 65 3c 2f 62 3e 20 28 20 3c 62 3e  verage</b> ( <b>
7e30: 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e  coverageName</b>
7e40: 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
7e50: 20 3c 62 3e 73 61 6d 70 6c 65 54 79 70 65 3c 2f   <b>sampleType</
7e60: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
7e70: 20 2c 20 3c 62 3e 70 69 78 65 6c 54 79 70 65 3c   , <b>pixelType<
7e80: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
7e90: 3e 20 2c 20 3c 62 3e 6e 75 6d 42 61 6e 64 73 3c  > , <b>numBands<
7ea0: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
7eb0: 69 3e 20 2c 20 3c 62 3e 63 6f 6d 70 72 65 73 73  i> , <b>compress
7ec0: 69 6f 6e 54 79 70 65 3c 2f 62 3e 20 3c 69 3e 53  ionType</b> <i>S
7ed0: 74 72 69 6e 67 3c 2f 69 3e 20 2c 0a 3c 62 3e 71  tring</i> ,.<b>q
7ee0: 75 61 6c 69 74 79 3c 2f 62 3e 20 3c 69 3e 49 6e  uality</b> <i>In
7ef0: 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 74  teger</i> , <b>t
7f00: 69 6c 65 57 69 64 74 68 3c 2f 62 3e 20 3c 69 3e  ileWidth</b> <i>
7f10: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 0a 3c 62  Integer</i> ,.<b
7f20: 3e 74 69 6c 65 48 65 69 67 68 74 3c 2f 62 3e 20  >tileHeight</b> 
7f30: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
7f40: 20 3c 62 3e 53 52 49 44 3c 2f 62 3e 20 3c 69 3e   <b>SRID</b> <i>
7f50: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 0a 3c  Integer</i> , .<
7f60: 62 3e 70 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  b>pixelResolutio
7f70: 6e 3c 2f 62 3e 20 3c 2f 69 3e 44 6f 75 62 6c 65  n</b> </i>Double
7f80: 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65  </i> ) : <i>Inte
7f90: 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 3c  ger</i><br><br><
7fa0: 62 3e 52 4c 32 5f 43 72 65 61 74 65 52 61 73 74  b>RL2_CreateRast
7fb0: 65 72 43 6f 76 65 72 61 67 65 3c 2f 62 3e 20 28  erCoverage</b> (
7fc0: 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65   <b>coverageName
7fd0: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
7fe0: 69 3e 20 2c 20 3c 62 3e 73 61 6d 70 6c 65 54 79  i> , <b>sampleTy
7ff0: 70 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  pe</b> <i>String
8000: 3c 2f 69 3e 20 2c 20 3c 62 3e 70 69 78 65 6c 54  </i> , <b>pixelT
8010: 79 70 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ype</b> <i>Strin
8020: 67 3c 2f 69 3e 20 2c 20 3c 62 3e 6e 75 6d 42 61  g</i> , <b>numBa
8030: 6e 64 73 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  nds</b> <i>Integ
8040: 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 6d 70  er</i> , <b>comp
8050: 72 65 73 73 69 6f 6e 54 79 70 65 3c 2f 62 3e 20  ressionType</b> 
8060: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 0a  <i>String</i> ,.
8070: 3c 62 3e 71 75 61 6c 69 74 79 3c 2f 62 3e 20 3c  <b>quality</b> <
8080: 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
8090: 3c 62 3e 74 69 6c 65 57 69 64 74 68 3c 2f 62 3e  <b>tileWidth</b>
80a0: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
80b0: 2c 0a 3c 62 3e 74 69 6c 65 48 65 69 67 68 74 3c  ,.<b>tileHeight<
80c0: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
80d0: 69 3e 20 2c 20 3c 62 3e 53 52 49 44 3c 2f 62 3e  i> , <b>SRID</b>
80e0: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
80f0: 2c 20 0a 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52  , .<b>horzPixelR
8100: 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 2f  esolution</b> </
8110: 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 0a  i>Double</i> , .
8120: 3c 62 3e 76 65 72 74 50 69 78 65 6c 52 65 73 6f  <b>vertPixelReso
8130: 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 2f 69 3e 44  lution</b> </i>D
8140: 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69  ouble</i> ) : <i
8150: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e  >Integer</i><br>
8160: 3c 62 72 3e 3c 62 3e 52 4c 32 5f 43 72 65 61 74  <br><b>RL2_Creat
8170: 65 52 61 73 74 65 72 43 6f 76 65 72 61 67 65 3c  eRasterCoverage<
8180: 2f 62 3e 20 28 20 3c 62 3e 63 6f 76 65 72 61 67  /b> ( <b>coverag
8190: 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eName</b> <i>Str
81a0: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 61 6d  ing</i> , <b>sam
81b0: 70 6c 65 54 79 70 65 3c 2f 62 3e 20 3c 69 3e 53  pleType</b> <i>S
81c0: 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 70  tring</i> , <b>p
81d0: 69 78 65 6c 54 79 70 65 3c 2f 62 3e 20 3c 69 3e  ixelType</b> <i>
81e0: 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
81f0: 6e 75 6d 42 61 6e 64 73 3c 2f 62 3e 20 3c 69 3e  numBands</b> <i>
8200: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
8210: 3e 63 6f 6d 70 72 65 73 73 69 6f 6e 54 79 70 65  >compressionType
8220: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
8230: 69 3e 20 2c 0a 3c 62 3e 71 75 61 6c 69 74 79 3c  i> ,.<b>quality<
8240: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
8250: 69 3e 20 2c 20 3c 62 3e 74 69 6c 65 57 69 64 74  i> , <b>tileWidt
8260: 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  h</b> <i>Integer
8270: 3c 2f 69 3e 20 2c 0a 3c 62 3e 74 69 6c 65 48 65  </i> ,.<b>tileHe
8280: 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  ight</b> <i>Inte
8290: 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 53 52 49  ger</i> , <b>SRI
82a0: 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  D</b> <i>Integer
82b0: 3c 2f 69 3e 20 2c 20 0a 3c 62 3e 68 6f 72 7a 50  </i> , .<b>horzP
82c0: 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f  ixelResolution</
82d0: 62 3e 20 3c 2f 69 3e 44 6f 75 62 6c 65 3c 2f 69  b> </i>Double</i
82e0: 3e 20 2c 20 0a 3c 62 3e 76 65 72 74 50 69 78 65  > , .<b>vertPixe
82f0: 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20  lResolution</b> 
8300: 3c 2f 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c  </i>Double</i> ,
8310: 0a 3c 62 3e 6e 6f 44 61 74 61 50 69 78 65 6c 3c  .<b>noDataPixel<
8320: 2f 62 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 20  /b> <i>BLOB</i> 
8330: 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
8340: 69 3e 3c 62 72 3e 3c 62 72 3e 3c 62 3e 52 4c 32  i><br><br><b>RL2
8350: 5f 43 72 65 61 74 65 52 61 73 74 65 72 43 6f 76  _CreateRasterCov
8360: 65 72 61 67 65 3c 2f 62 3e 20 28 20 3c 62 3e 63  erage</b> ( <b>c
8370: 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20  overageName</b> 
8380: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
8390: 3c 62 3e 73 61 6d 70 6c 65 54 79 70 65 3c 2f 62  <b>sampleType</b
83a0: 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
83b0: 2c 20 3c 62 3e 70 69 78 65 6c 54 79 70 65 3c 2f  , <b>pixelType</
83c0: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
83d0: 20 2c 20 3c 62 3e 6e 75 6d 42 61 6e 64 73 3c 2f   , <b>numBands</
83e0: 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
83f0: 3e 20 2c 20 3c 62 3e 63 6f 6d 70 72 65 73 73 69  > , <b>compressi
8400: 6f 6e 54 79 70 65 3c 2f 62 3e 20 3c 69 3e 53 74  onType</b> <i>St
8410: 72 69 6e 67 3c 2f 69 3e 20 2c 0a 3c 62 3e 71 75  ring</i> ,.<b>qu
8420: 61 6c 69 74 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74  ality</b> <i>Int
8430: 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69  eger</i> , <b>ti
8440: 6c 65 57 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49  leWidth</b> <i>I
8450: 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 0a 3c 62 3e  nteger</i> ,.<b>
8460: 74 69 6c 65 48 65 69 67 68 74 3c 2f 62 3e 20 3c  tileHeight</b> <
8470: 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
8480: 3c 62 3e 53 52 49 44 3c 2f 62 3e 20 3c 69 3e 49  <b>SRID</b> <i>I
8490: 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 0a 3c 62  nteger</i> , .<b
84a0: 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75  >horzPixelResolu
84b0: 74 69 6f 6e 3c 2f 62 3e 20 3c 2f 69 3e 44 6f 75  tion</b> </i>Dou
84c0: 62 6c 65 3c 2f 69 3e 20 2c 20 0a 3c 62 3e 76 65  ble</i> , .<b>ve
84d0: 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rtPixelResolutio
84e0: 6e 3c 2f 62 3e 20 3c 2f 69 3e 44 6f 75 62 6c 65  n</b> </i>Double
84f0: 3c 2f 69 3e 20 2c 0a 3c 62 3e 6e 6f 44 61 74 61  </i> ,.<b>noData
8500: 50 69 78 65 6c 3c 2f 62 3e 20 3c 69 3e 42 4c 4f  Pixel</b> <i>BLO
8510: 42 3c 2f 69 3e 20 2c 20 3c 62 3e 73 74 72 69 63  B</i> , <b>stric
8520: 74 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20  tResolution</b> 
8530: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
8540: 20 3c 62 3e 6d 69 78 65 64 52 65 73 6f 6c 75 74   <b>mixedResolut
8550: 69 6f 6e 73 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  ions</b> <i>Inte
8560: 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63  ger</i> , <b>sec
8570: 74 69 6f 6e 50 61 74 68 73 3c 2f 62 3e 20 3c 69  tionPaths</b> <i
8580: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
8590: 62 3e 73 65 63 74 69 6f 6e 4d 44 35 3c 2f 62 3e  b>sectionMD5</b>
85a0: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
85b0: 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 53 75 6d 6d  , <b>sectionSumm
85c0: 61 72 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  ary</b> <i>Integ
85d0: 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e  er</i> ) : <i>In
85e0: 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72  teger</i><br><br
85f0: 3e 0a 3c 62 3e 52 4c 32 5f 43 72 65 61 74 65 52  >.<b>RL2_CreateR
8600: 61 73 74 65 72 43 6f 76 65 72 61 67 65 3c 2f 62  asterCoverage</b
8610: 3e 20 28 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e  > ( <b>coverageN
8620: 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ame</b> <i>Strin
8630: 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 61 6d 70 6c  g</i> , <b>sampl
8640: 65 54 79 70 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eType</b> <i>Str
8650: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 70 69 78  ing</i> , <b>pix
8660: 65 6c 54 79 70 65 3c 2f 62 3e 20 3c 69 3e 53 74  elType</b> <i>St
8670: 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 6e 75  ring</i> , <b>nu
8680: 6d 42 61 6e 64 73 3c 2f 62 3e 20 3c 69 3e 49 6e  mBands</b> <i>In
8690: 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 63  teger</i> , <b>c
86a0: 6f 6d 70 72 65 73 73 69 6f 6e 54 79 70 65 3c 2f  ompressionType</
86b0: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
86c0: 20 2c 0a 3c 62 3e 71 75 61 6c 69 74 79 3c 2f 62   ,.<b>quality</b
86d0: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
86e0: 20 2c 20 3c 62 3e 74 69 6c 65 57 69 64 74 68 3c   , <b>tileWidth<
86f0: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
8700: 69 3e 20 2c 0a 3c 62 3e 74 69 6c 65 48 65 69 67  i> ,.<b>tileHeig
8710: 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
8720: 72 3c 2f 69 3e 20 2c 20 3c 62 3e 53 52 49 44 3c  r</i> , <b>SRID<
8730: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
8740: 69 3e 20 2c 20 0a 3c 62 3e 68 6f 72 7a 50 69 78  i> , .<b>horzPix
8750: 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e  elResolution</b>
8760: 20 3c 2f 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20   </i>Double</i> 
8770: 2c 20 0a 3c 62 3e 76 65 72 74 50 69 78 65 6c 52  , .<b>vertPixelR
8780: 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 2f  esolution</b> </
8790: 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 0a 3c  i>Double</i> ,.<
87a0: 62 3e 6e 6f 44 61 74 61 50 69 78 65 6c 3c 2f 62  b>noDataPixel</b
87b0: 3e 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 20 2c 20  > <i>BLOB</i> , 
87c0: 3c 62 3e 73 74 72 69 63 74 52 65 73 6f 6c 75 74  <b>strictResolut
87d0: 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  ion</b> <i>Integ
87e0: 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 6d 69 78 65  er</i> , <b>mixe
87f0: 64 52 65 73 6f 6c 75 74 69 6f 6e 73 3c 2f 62 3e  dResolutions</b>
8800: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
8810: 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 50 61 74 68  , <b>sectionPath
8820: 73 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  s</b> <i>Integer
8830: 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f  </i> , <b>sectio
8840: 6e 4d 44 35 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  nMD5</b> <i>Inte
8850: 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63  ger</i> , <b>sec
8860: 74 69 6f 6e 53 75 6d 6d 61 72 79 3c 2f 62 3e 20  tionSummary</b> 
8870: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
8880: 20 3c 62 3e 69 73 5f 71 75 65 72 79 61 62 6c 65   <b>is_queryable
8890: 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
88a0: 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67  /i> ) : <i>Integ
88b0: 65 72 3c 2f 69 3e 0a 3c 2f 74 64 3e 0a 3c 74 64  er</i>.</td>.<td
88c0: 3e 57 69 6c 6c 20 61 74 74 65 6d 70 74 20 74 6f  >Will attempt to
88d0: 20 63 72 65 61 74 65 20 61 20 6e 65 77 20 52 61   create a new Ra
88e0: 73 74 65 72 20 43 6f 76 65 72 61 67 65 20 77 69  ster Coverage wi
88f0: 74 68 69 6e 20 74 68 65 20 63 75 72 72 65 6e 74  thin the current
8900: 6c 79 20 63 6f 6e 6e 65 63 74 65 64 20 44 42 2d  ly connected DB-
8910: 66 69 6c 65 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72  file.<br>.Will r
8920: 65 74 75 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20 28  eturn <b>1</b> (
8930: 54 52 55 45 2f 53 55 43 43 45 53 53 29 20 6f 72  TRUE/SUCCESS) or
8940: 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41 4c 53 45   <b>0</b> (FALSE
8950: 2f 46 41 49 4c 55 52 45 29 3a 20 6f 72 20 3c 62  /FAILURE): or <b
8960: 3e 2d 31 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c  >-1</b> on inval
8970: 69 64 20 61 72 67 75 6d 65 6e 74 73 2e 3c 62 72  id arguments.<br
8980: 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65  >.<u>Please note
8990: 3c 2f 75 3e 3a 20 79 6f 75 20 63 61 6e 20 75 73  </u>: you can us
89a0: 65 20 74 68 65 20 73 65 63 6f 6e 64 20 66 6f 72  e the second for
89b0: 6d 20 74 6f 20 63 72 65 61 74 65 20 61 20 52 61  m to create a Ra
89c0: 73 74 65 72 20 43 6f 76 65 72 61 67 65 20 72 65  ster Coverage re
89d0: 71 75 69 72 69 6e 67 20 3c 62 3e 3c 69 3e 72 65  quiring <b><i>re
89e0: 63 74 61 6e 67 75 6c 61 72 3c 2f 69 3e 3c 2f 62  ctangular</i></b
89f0: 3e 20 70 69 78 65 6c 73 2e 3c 62 72 3e 3c 62 72  > pixels.<br><br
8a00: 3e 0a 54 68 65 20 74 68 69 72 64 20 66 6f 72 6d  >.The third form
8a10: 20 61 6c 6c 6f 77 73 20 74 6f 20 65 78 70 6c 69   allows to expli
8a20: 63 69 74 6c 79 20 64 65 63 6c 61 72 65 20 61 20  citly declare a 
8a30: 4e 6f 44 61 74 61 20 76 61 6c 75 65 3b 20 69 6e  NoData value; in
8a40: 20 74 68 69 73 20 63 61 73 65 20 74 68 65 20 6c   this case the l
8a50: 61 73 74 20 61 72 67 75 6d 65 6e 74 20 69 73 20  ast argument is 
8a60: 65 78 70 65 63 74 65 64 20 74 6f 20 63 6f 72 72  expected to corr
8a70: 65 73 70 6f 6e 64 20 74 6f 20 61 20 50 69 78 65  espond to a Pixe
8a80: 6c 20 73 65 72 69 61 6c 69 7a 65 64 20 6f 62 6a  l serialized obj
8a90: 65 63 74 20 65 78 61 63 74 6c 79 20 6d 61 74 63  ect exactly matc
8aa0: 68 69 6e 67 20 74 68 65 20 43 6f 76 65 72 61 67  hing the Coverag
8ab0: 65 27 73 20 70 69 78 65 6c 20 6d 6f 64 65 6c 2e  e's pixel model.
8ac0: 3c 62 72 3e 3c 62 72 3e 0a 54 68 65 20 66 6f 75  <br><br>.The fou
8ad0: 72 74 68 20 66 6f 72 6d 20 61 6c 6c 6f 77 73 20  rth form allows 
8ae0: 74 6f 20 65 78 70 6c 69 63 69 74 6c 79 20 73 65  to explicitly se
8af0: 74 20 3c 62 3e 3c 69 3e 50 6f 6c 69 63 69 65 73  t <b><i>Policies
8b00: 20 4f 70 74 69 6f 6e 73 3c 2f 69 3e 3c 2f 62 3e   Options</i></b>
8b10: 20 28 61 6c 77 61 79 73 20 64 69 73 61 62 6c 65   (always disable
8b20: 64 20 62 79 20 64 65 66 61 75 6c 74 29 2e 20 45  d by default). E
8b30: 61 63 68 20 73 69 6e 67 6c 65 20 4f 70 74 69 6f  ach single Optio
8b40: 6e 20 63 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f  n corresponds to
8b50: 20 61 20 3c 69 3e 3c 62 3e 62 6f 6f 6c 65 61 6e   a <i><b>boolean
8b60: 3c 2f 62 3e 3c 2f 69 3e 20 76 61 6c 75 65 20 28  </b></i> value (
8b70: 46 41 4c 53 45 3d 64 69 73 61 62 6c 65 64 20 2f  FALSE=disabled /
8b80: 20 54 52 55 45 3d 65 6e 61 62 6c 65 64 29 2e 3c   TRUE=enabled).<
8b90: 62 72 3e 3c 62 72 3e 0a 54 68 65 20 66 69 66 74  br><br>.The fift
8ba0: 68 20 61 6e 64 20 66 69 6e 61 6c 20 66 6f 72 6d  h and final form
8bb0: 20 61 6c 6c 6f 77 73 20 74 6f 20 65 78 70 6c 69   allows to expli
8bc0: 63 69 74 6c 79 20 73 74 61 74 65 20 69 66 20 74  citly state if t
8bd0: 68 65 20 43 6f 76 65 72 61 67 65 20 69 73 20 3c  he Coverage is <
8be0: 62 3e 71 75 65 72 79 61 62 6c 65 3c 2f 62 3e 20  b>queryable</b> 
8bf0: 6f 72 20 6e 6f 74 20 28 61 6c 77 61 79 73 20 73  or not (always s
8c00: 65 74 20 74 6f 20 3c 62 3e 46 41 4c 53 45 3c 2f  et to <b>FALSE</
8c10: 62 3e 20 62 79 20 64 65 66 61 75 6c 74 29 2e 0a  b> by default)..
8c20: 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e  </td>.</tr>.<tr>
8c30: 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f 53 65 74 43  .<td><b>RL2_SetC
8c40: 6f 76 65 72 61 67 65 49 6e 66 6f 73 3c 2f 62 3e  overageInfos</b>
8c50: 20 28 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   ( <b>coverageNa
8c60: 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
8c70: 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 74 6c 65 3c  </i> , <b>title<
8c80: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
8c90: 3e 20 2c 20 3c 62 3e 61 62 73 74 72 61 63 74 3c  > , <b>abstract<
8ca0: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
8cb0: 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72  > ) : <i>Integer
8cc0: 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e  </i><br><br>.<b>
8cd0: 52 4c 32 5f 53 65 74 43 6f 76 65 72 61 67 65 49  RL2_SetCoverageI
8ce0: 6e 66 6f 73 3c 2f 62 3e 20 28 20 3c 62 3e 63 6f  nfos</b> ( <b>co
8cf0: 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
8d00: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
8d10: 62 3e 74 69 74 6c 65 3c 2f 62 3e 20 3c 69 3e 53  b>title</b> <i>S
8d20: 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 61  tring</i> , <b>a
8d30: 62 73 74 72 61 63 74 3c 2f 62 3e 20 3c 69 3e 53  bstract</b> <i>S
8d40: 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 69  tring</i> , <b>i
8d50: 73 5f 71 75 65 72 79 61 62 6c 65 3c 2f 62 3e 20  s_queryable</b> 
8d60: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29  <i>Integer</i> )
8d70: 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69   : <i>Integer</i
8d80: 3e 0a 3c 2f 74 64 3e 0a 3c 74 64 3e 49 6e 73 65  >.</td>.<td>Inse
8d90: 72 74 73 20 28 6f 72 20 75 70 64 61 74 65 73 29  rts (or updates)
8da0: 20 74 68 65 20 64 65 73 63 72 69 70 74 69 76 65   the descriptive
8db0: 20 69 6e 66 6f 73 20 61 73 73 6f 63 69 61 74 65   infos associate
8dc0: 64 20 74 6f 20 61 20 43 6f 76 65 72 61 67 65 2e  d to a Coverage.
8dd0: 0a 3c 75 6c 3e 0a 3c 6c 69 3e 3c 62 3e 63 6f 76  .<ul>.<li><b>cov
8de0: 65 72 61 67 65 5f 6e 61 6d 65 3c 2f 62 3e 20 6d  erage_name</b> m
8df0: 75 73 74 20 69 64 65 6e 74 69 66 79 20 61 6e 20  ust identify an 
8e00: 65 78 69 73 74 69 6e 67 20 43 6f 76 65 72 61 67  existing Coverag
8e10: 65 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 3c 62 3e 74  e.</li>.<li><b>t
8e20: 69 74 6c 65 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e  itle</b> and <b>
8e30: 61 62 73 74 72 61 63 74 3c 2f 62 3e 20 72 65 70  abstract</b> rep
8e40: 72 65 73 65 6e 74 20 74 68 65 20 64 65 73 63 72  resent the descr
8e50: 69 70 74 69 76 65 20 69 6e 66 6f 73 20 74 6f 20  iptive infos to 
8e60: 62 65 20 73 65 74 2e 3c 2f 6c 69 3e 0a 3c 6c 69  be set.</li>.<li
8e70: 3e 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72  >the optional ar
8e80: 67 75 6d 65 6e 74 20 3c 62 3e 69 73 5f 71 75 65  gument <b>is_que
8e90: 72 79 61 62 6c 65 3c 2f 62 3e 20 28 65 78 70 65  ryable</b> (expe
8ea0: 63 74 65 64 20 74 6f 20 62 65 20 6f 66 20 74 68  cted to be of th
8eb0: 65 20 42 6f 6f 6c 65 61 6e 20 74 79 70 65 29 20  e Boolean type) 
8ec0: 64 65 74 65 72 6d 69 6e 65 73 20 69 66 20 74 68  determines if th
8ed0: 65 20 43 6f 76 65 72 61 67 65 20 69 73 20 71 75  e Coverage is qu
8ee0: 65 72 79 61 62 6c 65 20 6f 72 20 6e 6f 74 3b 20  eryable or not; 
8ef0: 69 66 20 6f 6d 69 74 74 65 64 20 74 68 65 20 43  if omitted the C
8f00: 6f 76 65 72 61 67 65 20 77 69 6c 6c 20 70 72 65  overage will pre
8f10: 73 65 72 76 65 20 74 68 65 20 61 6c 72 65 61 64  serve the alread
8f20: 79 20 64 65 66 69 6e 65 64 20 76 61 6c 75 65 2e  y defined value.
8f30: 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 3c 68 72 3e 0a  </li>.</ul><hr>.
8f40: 74 68 65 20 72 65 74 75 72 6e 20 74 79 70 65 20  the return type 
8f50: 69 73 20 49 6e 74 65 67 65 72 2c 20 77 69 74 68  is Integer, with
8f60: 20 61 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20   a return value 
8f70: 6f 66 20 31 20 66 6f 72 20 54 52 55 45 20 28 73  of 1 for TRUE (s
8f80: 75 63 63 65 73 73 29 20 6f 72 20 30 20 66 6f 72  uccess) or 0 for
8f90: 20 46 41 4c 53 45 20 28 66 61 69 6c 75 72 65 29   FALSE (failure)
8fa0: 3a 20 2d 31 20 77 69 6c 6c 20 62 65 20 72 65 74  : -1 will be ret
8fb0: 75 72 6e 65 64 20 6f 6e 20 69 6e 76 61 6c 69 64  urned on invalid
8fc0: 20 61 72 67 75 6d 65 6e 74 65 73 2e 3c 2f 74 64   argumentes.</td
8fd0: 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64  >.</tr>.<tr>.<td
8fe0: 3e 3c 62 3e 52 4c 32 5f 53 65 74 52 61 73 74 65  ><b>RL2_SetRaste
8ff0: 72 43 6f 76 65 72 61 67 65 43 6f 70 79 72 69 67  rCoverageCopyrig
9000: 68 74 3c 2f 62 3e 20 28 20 3c 62 3e 63 6f 76 65  ht</b> ( <b>cove
9010: 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e  rageName</b> <i>
9020: 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
9030: 63 6f 70 79 72 69 67 68 74 3c 2f 62 3e 20 3c 69  copyright</b> <i
9040: 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 29 20 3a 20  >String</i> ) : 
9050: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62  <i>Integer</i><b
9060: 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 53 65  r><br>.<b>RL2_Se
9070: 74 52 61 73 74 65 72 43 6f 76 65 72 61 67 65 43  tRasterCoverageC
9080: 6f 70 79 72 69 67 68 74 3c 2f 62 3e 20 28 20 3c  opyright</b> ( <
9090: 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f  b>coverageName</
90a0: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
90b0: 20 2c 20 3c 62 3e 63 6f 70 79 72 69 67 68 74 3c   , <b>copyright<
90c0: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
90d0: 3e 20 2c 20 3c 62 3e 6c 69 63 65 6e 73 65 3c 2f  > , <b>license</
90e0: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
90f0: 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c   ) : <i>Integer<
9100: 2f 69 3e 0a 3c 2f 74 64 3e 0a 3c 74 64 3e 49 6e  /i>.</td>.<td>In
9110: 73 65 72 74 73 20 28 6f 72 20 75 70 64 61 74 65  serts (or update
9120: 73 29 20 43 6f 70 79 72 69 67 68 74 20 61 6e 64  s) Copyright and
9130: 20 4c 69 63 65 6e 73 65 20 69 6e 66 6f 73 20 61   License infos a
9140: 73 73 6f 63 69 61 74 65 64 20 74 6f 20 61 20 43  ssociated to a C
9150: 6f 76 65 72 61 67 65 2e 0a 3c 75 6c 3e 0a 3c 6c  overage..<ul>.<l
9160: 69 3e 3c 62 3e 63 6f 76 65 72 61 67 65 5f 6e 61  i><b>coverage_na
9170: 6d 65 3c 2f 62 3e 20 6d 75 73 74 20 69 64 65 6e  me</b> must iden
9180: 74 69 66 79 20 61 6e 20 65 78 69 73 74 69 6e 67  tify an existing
9190: 20 43 6f 76 65 72 61 67 65 2e 3c 2f 6c 69 3e 0a   Coverage.</li>.
91a0: 3c 6c 69 3e 3c 62 3e 63 6f 70 79 72 69 67 68 74  <li><b>copyright
91b0: 3c 2f 62 3e 20 69 64 65 6e 74 69 66 69 65 73 20  </b> identifies 
91c0: 74 68 65 20 43 6f 70 79 72 69 67 68 74 20 68 6f  the Copyright ho
91d0: 6c 64 65 72 3b 20 69 66 20 3c 62 3e 4e 55 4c 4c  lder; if <b>NULL
91e0: 3c 2f 62 3e 20 74 68 65 20 63 75 72 72 65 6e 74  </b> the current
91f0: 20 76 61 6c 75 65 20 77 69 6c 6c 20 62 65 20 70   value will be p
9200: 72 65 73 65 72 76 65 64 2e 3c 2f 6c 69 3e 0a 3c  reserved.</li>.<
9210: 6c 69 3e 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20  li>the optional 
9220: 61 72 67 75 6d 65 6e 74 20 3c 62 3e 6c 69 63 65  argument <b>lice
9230: 6e 73 65 3c 2f 62 3e 20 6d 75 73 74 20 72 65 66  nse</b> must ref
9240: 65 72 65 6e 63 65 20 6f 6e 65 20 74 68 65 20 44  erence one the D
9250: 61 74 61 20 4c 69 63 65 6e 73 65 73 20 72 65 67  ata Licenses reg
9260: 69 73 74 65 72 65 64 20 69 6e 74 6f 20 74 68 65  istered into the
9270: 20 3c 62 3e 64 61 74 61 5f 6c 69 63 65 6e 73 65   <b>data_license
9280: 73 3c 2f 62 3e 20 74 61 62 6c 65 2c 20 61 73 20  s</b> table, as 
9290: 65 2e 67 2e 20 3c 69 3e 43 43 30 20 31 2e 30 3c  e.g. <i>CC0 1.0<
92a0: 2f 69 3e 20 6f 72 20 3c 69 3e 43 43 20 42 59 20  /i> or <i>CC BY 
92b0: 34 2e 30 3c 2f 69 3e 2e 3c 2f 6c 69 3e 0a 3c 2f  4.0</i>.</li>.</
92c0: 75 6c 3e 3c 68 72 3e 0a 74 68 65 20 72 65 74 75  ul><hr>.the retu
92d0: 72 6e 20 74 79 70 65 20 69 73 20 49 6e 74 65 67  rn type is Integ
92e0: 65 72 2c 20 77 69 74 68 20 61 20 72 65 74 75 72  er, with a retur
92f0: 6e 20 76 61 6c 75 65 20 6f 66 20 31 20 66 6f 72  n value of 1 for
9300: 20 54 52 55 45 20 28 73 75 63 63 65 73 73 29 20   TRUE (success) 
9310: 6f 72 20 30 20 66 6f 72 20 46 41 4c 53 45 20 28  or 0 for FALSE (
9320: 66 61 69 6c 75 72 65 29 3a 20 2d 31 20 77 69 6c  failure): -1 wil
9330: 6c 20 62 65 20 72 65 74 75 72 6e 65 64 20 6f 6e  l be returned on
9340: 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e   invalid argumen
9350: 74 65 73 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a  tes.</td>.</tr>.
9360: 3c 74 72 3e 0a 3c 74 64 3e 3c 62 3e 52 4c 32 5f  <tr>.<td><b>RL2_
9370: 44 72 6f 70 43 6f 76 65 72 61 67 65 3c 2f 62 3e  DropCoverage</b>
9380: 20 28 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   ( <b>coverageNa
9390: 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
93a0: 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65  </i> ) : <i>Inte
93b0: 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a  ger</i><br><br>.
93c0: 3c 62 3e 52 4c 32 5f 44 72 6f 70 43 6f 76 65 72  <b>RL2_DropCover
93d0: 61 67 65 3c 2f 62 3e 20 28 20 3c 62 3e 63 6f 76  age</b> ( <b>cov
93e0: 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69  erageName</b> <i
93f0: 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
9400: 3e 74 72 61 6e 73 61 63 74 69 6f 6e 3c 2f 62 3e  >transaction</b>
9410: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
9420: 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
9430: 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c  i></td>.<td>Will
9440: 20 61 74 74 65 6d 70 74 20 64 6f 20 63 6f 6d 70   attempt do comp
9450: 6c 65 74 65 6c 79 20 72 65 6d 6f 76 65 20 61 20  letely remove a 
9460: 52 61 73 74 65 72 20 43 6f 76 65 72 61 67 65 20  Raster Coverage 
9470: 28 69 6e 63 6c 75 64 69 6e 67 20 61 6c 6c 20 72  (including all r
9480: 65 6c 61 74 65 64 20 53 65 63 74 69 6f 6e 73 2c  elated Sections,
9490: 20 50 79 72 61 6d 69 64 73 20 61 6e 64 20 54 69   Pyramids and Ti
94a0: 6c 65 73 29 20 66 72 6f 6d 20 74 68 65 20 63 75  les) from the cu
94b0: 72 72 65 6e 74 6c 79 20 63 6f 6e 6e 65 63 74 65  rrently connecte
94c0: 64 20 44 42 2d 66 69 6c 65 2e 3c 62 72 3e 0a 57  d DB-file.<br>.W
94d0: 69 6c 6c 20 72 65 74 75 72 6e 20 3c 62 3e 31 3c  ill return <b>1<
94e0: 2f 62 3e 20 28 54 52 55 45 2f 53 55 43 43 45 53  /b> (TRUE/SUCCES
94f0: 53 29 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28  S) or <b>0</b> (
9500: 46 41 4c 53 45 2f 46 41 49 4c 55 52 45 29 3a 20  FALSE/FAILURE): 
9510: 6f 72 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20  or <b>-1</b> on 
9520: 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74  invalid argument
9530: 73 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65  s.<br>.<u>Please
9540: 20 6e 6f 74 65 3c 2f 75 3e 3a 20 69 66 20 74 68   note</u>: if th
9550: 65 20 73 65 63 6f 6e 64 20 6f 70 74 69 6f 6e 61  e second optiona
9560: 6c 20 61 72 67 75 6d 65 6e 74 20 28 65 78 70 65  l argument (expe
9570: 63 74 65 64 20 74 6f 20 62 65 20 6f 66 20 74 68  cted to be of th
9580: 65 20 42 6f 6f 6c 65 61 6e 20 74 79 70 65 29 20  e Boolean type) 
9590: 69 73 6e 27 74 20 64 65 63 6c 61 72 65 64 20 61  isn't declared a
95a0: 6e 20 69 6e 74 65 72 6e 61 6c 20 53 51 4c 20 54  n internal SQL T
95b0: 72 61 6e 73 61 63 74 69 6f 6e 20 77 69 6c 6c 20  ransaction will 
95c0: 62 65 20 69 6d 70 6c 69 63 69 74 6c 79 20 68 61  be implicitly ha
95d0: 6e 64 6c 65 64 2e 3c 2f 74 64 3e 0a 3c 2f 74 72  ndled.</td>.</tr
95e0: 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 0a 3c 62 3e 52  >.<tr>.<td>.<b>R
95f0: 4c 32 5f 43 6f 70 79 52 61 73 74 65 72 43 6f 76  L2_CopyRasterCov
9600: 65 72 61 67 65 3c 2f 62 3e 20 28 20 3c 62 3e 64  erage</b> ( <b>d
9610: 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53  bPrefix</b> <i>S
9620: 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63  tring</i> , <b>c
9630: 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20  overageName</b> 
9640: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 29 20  <i>String</i> ) 
9650: 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  : <i>Integer</i>
9660: 0a 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32  .<br><br>.<b>RL2
9670: 5f 43 6f 70 79 52 61 73 74 65 72 43 6f 76 65 72  _CopyRasterCover
9680: 61 67 65 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50  age</b> ( <b>dbP
9690: 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72  refix</b> <i>Str
96a0: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76  ing</i> , <b>cov
96b0: 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69  erageName</b> <i
96c0: 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
96d0: 3e 74 72 61 6e 73 61 63 74 69 6f 6e 3c 2f 62 3e  >transaction</b>
96e0: 20 3c 69 3e 62 6f 6f 6c 65 61 6e 3c 2f 69 3e 20   <i>boolean</i> 
96f0: 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
9700: 69 3e 0a 3c 2f 74 64 3e 0a 3c 74 64 3e 0a 57 69  i>.</td>.<td>.Wi
9710: 6c 6c 20 63 6f 70 79 20 61 20 63 6f 6d 70 6c 65  ll copy a comple
9720: 74 65 20 52 61 73 74 65 72 20 43 6f 76 65 72 61  te Raster Covera
9730: 67 65 20 66 72 6f 6d 20 61 6e 20 3c 62 3e 61 74  ge from an <b>at
9740: 74 61 63 68 65 64 20 44 42 3c 2f 62 3e 20 74 6f  tached DB</b> to
9750: 20 74 68 65 20 63 75 72 72 65 6e 74 6c 79 20 63   the currently c
9760: 6f 6e 6e 65 63 74 65 64 20 28 3c 62 3e 4d 41 49  onnected (<b>MAI
9770: 4e 3c 2f 62 3e 29 20 44 42 2e 0a 3c 75 6c 3e 0a  N</b>) DB..<ul>.
9780: 3c 6c 69 3e 61 20 76 61 6c 69 64 20 52 61 73 74  <li>a valid Rast
9790: 65 72 20 43 6f 76 65 72 61 67 65 20 6d 61 74 63  er Coverage matc
97a0: 68 69 6e 67 20 3c 62 3e 63 6f 76 65 72 61 67 65  hing <b>coverage
97b0: 4e 61 6d 65 3c 2f 62 3e 20 6d 75 73 74 20 65 78  Name</b> must ex
97c0: 69 73 74 73 20 77 69 74 68 69 6e 20 74 68 65 20  ists within the 
97d0: 41 74 74 61 63 68 65 64 20 44 42 20 69 64 65 6e  Attached DB iden
97e0: 74 69 66 69 65 64 20 62 79 20 3c 62 3e 64 62 50  tified by <b>dbP
97f0: 72 65 66 69 78 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a  refix</b>.</li>.
9800: 3c 6c 69 3e 6e 6f 20 52 61 73 74 65 72 20 43 6f  <li>no Raster Co
9810: 76 65 72 61 67 65 20 6d 61 74 63 68 69 6e 67 20  verage matching 
9820: 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
9830: 2f 62 3e 20 6d 75 73 74 20 65 78 69 73 74 73 20  /b> must exists 
9840: 77 69 74 68 69 6e 20 74 68 65 20 4d 41 49 4e 20  within the MAIN 
9850: 44 42 2e 3c 62 72 3e 0a 49 74 20 77 69 6c 6c 20  DB.<br>.It will 
9860: 62 65 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79  be automatically
9870: 20 63 72 65 61 74 65 64 20 61 6e 64 20 70 6f 70   created and pop
9880: 75 6c 61 74 65 64 20 61 73 20 61 70 70 72 6f 70  ulated as approp
9890: 72 69 61 74 65 2e 3c 2f 6c 69 3e 0a 3c 2f 75 6c  riate.</li>.</ul
98a0: 3e 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20 3c 62  >.Will return <b
98b0: 3e 31 3c 2f 62 3e 20 28 54 52 55 45 2f 53 55 43  >1</b> (TRUE/SUC
98c0: 43 45 53 53 29 20 6f 72 20 3c 62 3e 30 3c 2f 62  CESS) or <b>0</b
98d0: 3e 20 28 46 41 4c 53 45 2f 46 41 49 4c 55 52 45  > (FALSE/FAILURE
98e0: 29 3a 20 6f 72 20 3c 62 3e 2d 31 3c 2f 62 3e 20  ): or <b>-1</b> 
98f0: 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d  on invalid argum
9900: 65 6e 74 73 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65  ents.<br>.<u>Ple
9910: 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 69 66  ase note</u>: if
9920: 20 74 68 65 20 74 68 69 72 64 20 6f 70 74 69 6f   the third optio
9930: 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 28 65 78  nal argument (ex
9940: 70 65 63 74 65 64 20 74 6f 20 62 65 20 6f 66 20  pected to be of 
9950: 74 68 65 20 42 6f 6f 6c 65 61 6e 20 74 79 70 65  the Boolean type
9960: 29 20 69 73 6e 27 74 20 64 65 63 6c 61 72 65 64  ) isn't declared
9970: 20 61 6e 20 69 6e 74 65 72 6e 61 6c 20 53 51 4c   an internal SQL
9980: 20 54 72 61 6e 73 61 63 74 69 6f 6e 20 77 69 6c   Transaction wil
9990: 6c 20 62 65 20 69 6d 70 6c 69 63 69 74 6c 79 20  l be implicitly 
99a0: 68 61 6e 64 6c 65 64 2e 0a 3c 2f 74 64 3e 0a 3c  handled..</td>.<
99b0: 2f 74 72 3e 0a 3c 74 72 3e 0a 3c 74 64 3e 3c 62  /tr>.<tr>.<td><b
99c0: 3e 52 4c 32 5f 44 65 6c 65 74 65 53 65 63 74 69  >RL2_DeleteSecti
99d0: 6f 6e 3c 2f 62 3e 20 28 20 3c 62 3e 63 6f 76 65  on</b> ( <b>cove
99e0: 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e  rageName</b> <i>
99f0: 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
9a00: 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69  sectionID</b> <i
9a10: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a  >Integer</i> ) :
9a20: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
9a30: 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 44  br><br>.<b>RL2_D
9a40: 65 6c 65 74 65 53 65 63 74 69 6f 6e 3c 2f 62 3e  eleteSection</b>
9a50: 20 28 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   ( <b>coverageNa
9a60: 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
9a70: 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f  </i> , <b>sectio
9a80: 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  nID</b> <i>Integ
9a90: 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 74 72 61 6e  er</i> , <b>tran
9aa0: 73 61 63 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 49  saction</b> <i>I
9ab0: 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c  nteger</i> ) : <
9ac0: 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74  i>Integer</i></t
9ad0: 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61 74 74 65  d>.<td>Will atte
9ae0: 6d 70 74 20 64 6f 20 63 6f 6d 70 6c 65 74 65 6c  mpt do completel
9af0: 79 20 72 65 6d 6f 76 65 20 61 20 52 61 73 74 65  y remove a Raste
9b00: 72 20 53 65 63 74 69 6f 6e 20 28 69 6e 63 6c 75  r Section (inclu
9b10: 64 69 6e 67 20 61 20 64 69 72 65 63 74 6c 79 20  ding a directly 
9b20: 72 65 6c 61 74 65 64 20 50 79 72 61 6d 69 64 20  related Pyramid 
9b30: 69 66 20 70 72 65 73 65 6e 74 20 61 6e 64 20 61  if present and a
9b40: 6c 6c 20 72 65 6c 61 74 65 64 20 54 69 6c 65 73  ll related Tiles
9b50: 29 20 66 72 6f 6d 20 74 68 65 20 63 75 72 72 65  ) from the curre
9b60: 6e 74 6c 79 20 63 6f 6e 6e 65 63 74 65 64 20 44  ntly connected D
9b70: 42 2d 66 69 6c 65 2e 3c 62 72 3e 0a 57 69 6c 6c  B-file.<br>.Will
9b80: 20 72 65 74 75 72 6e 20 3c 62 3e 31 3c 2f 62 3e   return <b>1</b>
9b90: 20 28 54 52 55 45 2f 53 55 43 43 45 53 53 29 20   (TRUE/SUCCESS) 
9ba0: 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41 4c  or <b>0</b> (FAL
9bb0: 53 45 2f 46 41 49 4c 55 52 45 29 3a 20 6f 72 20  SE/FAILURE): or 
9bc0: 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20 69 6e 76  <b>-1</b> on inv
9bd0: 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 2e 3c  alid arguments.<
9be0: 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f  br>.<u>Please no
9bf0: 74 65 3c 2f 75 3e 3a 20 69 66 20 74 68 65 20 74  te</u>: if the t
9c00: 68 69 72 64 20 6f 70 74 69 6f 6e 61 6c 20 61 72  hird optional ar
9c10: 67 75 6d 65 6e 74 20 28 65 78 70 65 63 74 65 64  gument (expected
9c20: 20 74 6f 20 62 65 20 6f 66 20 74 68 65 20 42 6f   to be of the Bo
9c30: 6f 6c 65 61 6e 20 74 79 70 65 29 20 69 73 6e 27  olean type) isn'
9c40: 74 20 64 65 63 6c 61 72 65 64 20 61 6e 20 69 6e  t declared an in
9c50: 74 65 72 6e 61 6c 20 53 51 4c 20 54 72 61 6e 73  ternal SQL Trans
9c60: 61 63 74 69 6f 6e 20 77 69 6c 6c 20 62 65 20 69  action will be i
9c70: 6d 70 6c 69 63 69 74 6c 79 20 68 61 6e 64 6c 65  mplicitly handle
9c80: 64 2e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 2f  d.</td>.</tr>.</
9c90: 74 61 62 6c 65 3e 3c 62 72 3e 0a 3c 68 72 3e 0a  table><br>.<hr>.
9ca0: 3c 68 32 3e 53 51 4c 20 66 75 6e 63 74 69 6f 6e  <h2>SQL function
9cb0: 73 20 73 75 70 70 6f 72 74 69 6e 67 20 50 79 72  s supporting Pyr
9cc0: 61 6d 69 64 20 6d 61 6e 61 67 65 6d 65 6e 74 3c  amid management<
9cd0: 2f 68 32 3e 20 0a 3c 74 61 62 6c 65 20 77 69 64  /h2> .<table wid
9ce0: 74 68 3d 22 31 30 30 25 22 20 62 6f 72 64 65 72  th="100%" border
9cf0: 3d 22 31 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66  ="1" bgcolor="#f
9d00: 66 66 66 65 30 22 20 63 65 6c 6c 65 73 70 61 63  fffe0" cellespac
9d10: 69 6e 67 3d 22 34 22 20 63 65 6c 6c 70 61 64 64  ing="4" cellpadd
9d20: 69 6e 67 3d 22 36 22 3e 0a 3c 74 72 3e 3c 74 68  ing="6">.<tr><th
9d30: 20 62 67 63 6f 6c 6f 72 3d 22 23 65 30 65 30 65   bgcolor="#e0e0e
9d40: 30 22 20 77 69 64 74 68 3d 22 35 30 25 22 3e 53  0" width="50%">S
9d50: 79 6e 74 61 78 3c 2f 74 68 3e 3c 74 68 20 62 67  yntax</th><th bg
9d60: 63 6f 6c 6f 72 3d 22 23 65 30 65 30 65 30 22 20  color="#e0e0e0" 
9d70: 77 69 64 74 68 3d 22 35 30 25 22 3e 53 75 6d 6d  width="50%">Summ
9d80: 61 72 79 3c 2f 74 68 3e 3c 2f 74 72 3e 0a 3c 74  ary</th></tr>.<t
9d90: 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f 50 79 72  r><td><b>RL2_Pyr
9da0: 61 6d 69 64 69 7a 65 3c 2f 62 3e 20 28 20 3c 62  amidize</b> ( <b
9db0: 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62  >coverageName</b
9dc0: 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
9dd0: 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
9de0: 69 3e 3c 62 72 3e 3c 62 72 3e 3c 62 3e 52 4c 32  i><br><br><b>RL2
9df0: 5f 50 79 72 61 6d 69 64 69 7a 65 3c 2f 62 3e 20  _Pyramidize</b> 
9e00: 28 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d  ( <b>coverageNam
9e10: 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
9e20: 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e  /i> , <b>section
9e30: 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ID</b> <i>Intege
9e40: 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74  r</i> ) : <i>Int
9e50: 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e  eger</i><br><br>
9e60: 3c 62 3e 52 4c 32 5f 50 79 72 61 6d 69 64 69 7a  <b>RL2_Pyramidiz
9e70: 65 3c 2f 62 3e 20 28 20 3c 62 3e 63 6f 76 65 72  e</b> ( <b>cover
9e80: 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53  ageName</b> <i>S
9e90: 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73  tring</i> , <b>s
9ea0: 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69 3e  ectionID</b> <i>
9eb0: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
9ec0: 3e 66 6f 72 63 65 52 65 62 75 69 6c 64 3c 2f 62  >forceRebuild</b
9ed0: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
9ee0: 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c   ) : <i>Integer<
9ef0: 2f 69 3e 3c 62 72 3e 3c 62 72 3e 3c 62 3e 52 4c  /i><br><br><b>RL
9f00: 32 5f 50 79 72 61 6d 69 64 69 7a 65 3c 2f 62 3e  2_Pyramidize</b>
9f10: 20 28 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   ( <b>coverageNa
9f20: 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
9f30: 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f  </i> , <b>sectio
9f40: 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  nID</b> <i>Integ
9f50: 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 66 6f 72 63  er</i> , <b>forc
9f60: 65 52 65 62 75 69 6c 64 3c 2f 62 3e 20 3c 69 3e  eRebuild</b> <i>
9f70: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
9f80: 3e 74 72 61 6e 73 61 63 74 69 6f 6e 3c 2f 62 3e  >transaction</b>
9f90: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
9fa0: 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
9fb0: 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c  i></td>.<td>Will
9fc0: 20 61 74 74 65 6d 70 74 20 64 6f 20 28 72 65 29   attempt do (re)
9fd0: 62 75 69 6c 64 20 3c 62 3e 3c 69 3e 53 65 63 74  build <b><i>Sect
9fe0: 69 6f 6e 2d 62 61 73 65 64 3c 2f 69 3e 3c 2f 62  ion-based</i></b
9ff0: 3e 20 50 79 72 61 6d 69 64 20 6c 65 76 65 6c 73  > Pyramid levels
a000: 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75 72  .<br>.Will retur
a010: 6e 20 3c 62 3e 31 3c 2f 62 3e 20 28 54 52 55 45  n <b>1</b> (TRUE
a020: 2f 53 55 43 43 45 53 53 29 20 6f 72 20 3c 62 3e  /SUCCESS) or <b>
a030: 30 3c 2f 62 3e 20 28 46 41 4c 53 45 2f 46 41 49  0</b> (FALSE/FAI
a040: 4c 55 52 45 29 3a 20 6f 72 20 3c 62 3e 2d 31 3c  LURE): or <b>-1<
a050: 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61  /b> on invalid a
a060: 72 67 75 6d 65 6e 74 73 2e 3c 62 72 3e 0a 3c 75  rguments.<br>.<u
a070: 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75 3e  >Please note</u>
a080: 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69 3e 69 66 20 61  : .<ul>.<li>if a
a090: 20 73 69 6e 67 6c 65 20 3c 62 3e 3c 69 3e 73 65   single <b><i>se
a0a0: 63 74 69 6f 6e 49 44 3c 2f 69 3e 3c 2f 62 3e 20  ctionID</i></b> 
a0b0: 69 73 20 73 70 65 63 69 66 69 65 64 2c 20 74 68  is specified, th
a0c0: 65 6e 20 6f 6e 6c 79 20 74 68 65 20 50 79 72 61  en only the Pyra
a0d0: 6d 69 64 20 6c 65 76 65 6c 73 20 64 69 72 65 63  mid levels direc
a0e0: 74 6c 79 20 62 65 6c 6f 6e 67 69 6e 67 20 74 6f  tly belonging to
a0f0: 20 74 68 61 74 20 53 65 63 74 69 6f 6e 20 77 69   that Section wi
a100: 6c 6c 20 62 65 20 63 6f 6e 73 69 64 65 72 65 64  ll be considered
a110: 2e 3c 62 72 3e 0a 41 20 3c 62 3e 4e 55 4c 4c 3c  .<br>.A <b>NULL<
a120: 2f 62 3e 20 73 65 63 74 69 6f 6e 49 44 20 61 6c  /b> sectionID al
a130: 77 61 79 73 20 69 6d 70 6c 69 65 73 20 70 72 6f  ways implies pro
a140: 63 65 73 73 69 6e 67 20 74 68 65 20 77 68 6f 6c  cessing the whol
a150: 65 20 43 6f 76 65 72 61 67 65 2e 3c 2f 6c 69 3e  e Coverage.</li>
a160: 0a 3c 6c 69 3e 69 66 20 74 68 65 20 6f 70 74 69  .<li>if the opti
a170: 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 3c 62  onal argument <b
a180: 3e 3c 69 3e 66 6f 72 63 65 52 65 62 75 69 6c 64  ><i>forceRebuild
a190: 3c 2f 69 3e 3c 2f 62 3e 20 28 65 78 70 65 63 74  </i></b> (expect
a1a0: 65 64 20 74 6f 20 62 65 20 6f 66 20 74 68 65 20  ed to be of the 
a1b0: 42 6f 6f 6c 65 61 6e 20 74 79 70 65 29 20 61 6e  Boolean type) an
a1c0: 79 20 61 6c 72 65 61 64 79 20 65 78 69 73 74 69  y already existi
a1d0: 6e 67 20 50 79 72 61 6d 69 64 20 6c 65 76 65 6c  ng Pyramid level
a1e0: 20 77 69 6c 6c 20 62 65 20 69 6d 6d 65 64 69 61   will be immedia
a1f0: 74 65 6c 79 20 64 65 73 74 72 6f 79 65 64 20 61  tely destroyed a
a200: 6e 64 20 74 68 65 6e 20 72 65 62 75 69 6c 64 2e  nd then rebuild.
a210: 0a 49 66 20 6e 6f 74 2c 20 61 6c 6c 20 65 78 69  .If not, all exi
a220: 73 74 69 6e 67 20 50 79 72 61 6d 69 64 20 6c 65  sting Pyramid le
a230: 76 65 6c 73 20 77 69 6c 6c 20 62 65 20 6c 65 66  vels will be lef
a240: 74 20 75 6e 74 6f 75 63 68 65 64 20 61 6e 64 20  t untouched and 
a250: 6f 6e 6c 79 20 65 76 65 6e 74 75 61 6c 6c 79 20  only eventually 
a260: 6d 69 73 73 69 6e 67 20 6c 65 76 65 6c 73 20 77  missing levels w
a270: 69 6c 6c 20 62 65 20 62 75 69 6c 74 2e 3c 2f 6c  ill be built.</l
a280: 69 3e 0a 3c 6c 69 3e 69 66 20 74 68 65 20 6c 61  i>.<li>if the la
a290: 73 74 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75  st optional argu
a2a0: 6d 65 6e 74 20 28 65 78 70 65 63 74 65 64 20 74  ment (expected t
a2b0: 6f 20 62 65 20 6f 66 20 74 68 65 20 42 6f 6f 6c  o be of the Bool
a2c0: 65 61 6e 20 74 79 70 65 29 20 69 73 6e 27 74 20  ean type) isn't 
a2d0: 64 65 63 6c 61 72 65 64 20 61 6e 20 69 6e 74 65  declared an inte
a2e0: 72 6e 61 6c 20 53 51 4c 20 54 72 61 6e 73 61 63  rnal SQL Transac
a2f0: 74 69 6f 6e 20 77 69 6c 6c 20 62 65 20 69 6d 70  tion will be imp
a300: 6c 69 63 69 74 6c 79 20 68 61 6e 64 6c 65 64 2e  licitly handled.
a310: 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 3c 2f 74 64 3e  </li>.</ul></td>
a320: 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 3c 74 64 3e 3c  .</tr>.<tr><td><
a330: 62 3e 52 4c 32 5f 50 79 72 61 6d 69 64 69 7a 65  b>RL2_Pyramidize
a340: 4d 6f 6e 6f 6c 69 74 68 69 63 3c 2f 62 3e 20 28  Monolithic</b> (
a350: 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65   <b>coverageName
a360: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
a370: 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65  i> ) : <i>Intege
a380: 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 3c 62 3e  r</i><br><br><b>
a390: 52 4c 32 5f 50 79 72 61 6d 69 64 69 7a 65 4d 6f  RL2_PyramidizeMo
a3a0: 6e 6f 6c 69 74 68 69 63 3c 2f 62 3e 20 28 20 3c  nolithic</b> ( <
a3b0: 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f  b>coverageName</
a3c0: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
a3d0: 20 2c 20 3c 62 3e 76 69 72 74 75 61 6c 4c 65 76   , <b>virtualLev
a3e0: 65 6c 73 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  els</b> <i>Integ
a3f0: 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e  er</i> ) : <i>In
a400: 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72  teger</i><br><br
a410: 3e 3c 62 3e 52 4c 32 5f 50 79 72 61 6d 69 64 69  ><b>RL2_Pyramidi
a420: 7a 65 4d 6f 6e 6f 6c 69 74 68 69 63 3c 2f 62 3e  zeMonolithic</b>
a430: 20 28 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   ( <b>coverageNa
a440: 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
a450: 3c 2f 69 3e 20 2c 20 3c 62 3e 76 69 72 74 75 61  </i> , <b>virtua
a460: 6c 4c 65 76 65 6c 73 3c 2f 62 3e 20 3c 69 3e 49  lLevels</b> <i>I
a470: 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
a480: 74 72 61 6e 73 61 63 74 69 6f 6e 3c 2f 62 3e 20  transaction</b> 
a490: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29  <i>Integer</i> )
a4a0: 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69   : <i>Integer</i
a4b0: 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20  ></td>.<td>Will 
a4c0: 61 74 74 65 6d 70 74 20 64 6f 20 28 72 65 29 62  attempt do (re)b
a4d0: 75 69 6c 64 20 50 79 72 61 6d 69 64 20 6c 65 76  uild Pyramid lev
a4e0: 65 6c 73 20 6f 66 20 74 68 65 20 3c 62 3e 4d 6f  els of the <b>Mo
a4f0: 6e 6f 6c 69 74 68 69 63 3c 2f 62 3e 20 74 79 70  nolithic</b> typ
a500: 65 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75  e.<br>.Will retu
a510: 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20 28 54 52 55  rn <b>1</b> (TRU
a520: 45 2f 53 55 43 43 45 53 53 29 20 6f 72 20 3c 62  E/SUCCESS) or <b
a530: 3e 30 3c 2f 62 3e 20 28 46 41 4c 53 45 2f 46 41  >0</b> (FALSE/FA
a540: 49 4c 55 52 45 29 3a 20 6f 72 20 3c 62 3e 2d 31  ILURE): or <b>-1
a550: 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20  </b> on invalid 
a560: 61 72 67 75 6d 65 6e 74 73 2e 3c 62 72 3e 0a 3c  arguments.<br>.<
a570: 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75  u>Please note</u
a580: 3e 3a 20 0a 3c 75 6c 3e 3c 6c 69 3e 74 68 65 20  >: .<ul><li>the 
a590: 77 68 6f 6c 65 20 43 6f 76 65 72 61 67 65 20 77  whole Coverage w
a5a0: 69 6c 6c 20 62 65 20 61 6c 77 61 79 73 20 70 72  ill be always pr
a5b0: 6f 63 65 73 73 65 64 2c 20 61 6e 64 20 61 6e 79  ocessed, and any
a5c0: 20 65 76 65 6e 74 75 61 6c 6c 79 20 70 72 65 65   eventually pree
a5d0: 78 69 73 74 69 6e 67 20 3c 62 3e 3c 69 3e 53 65  xisting <b><i>Se
a5e0: 63 74 69 6f 6e 2d 62 61 73 65 64 3c 2f 69 3e 3c  ction-based</i><
a5f0: 2f 62 3e 20 6f 72 20 3c 62 3e 3c 69 3e 4d 6f 6e  /b> or <b><i>Mon
a600: 6f 6c 69 74 68 69 63 3c 2f 69 3e 3c 2f 62 3e 20  olithic</i></b> 
a610: 50 79 72 61 6d 69 64 20 77 69 6c 6c 20 62 65 20  Pyramid will be 
a620: 64 65 73 74 72 6f 79 65 64 20 69 6e 20 6f 72 64  destroyed in ord
a630: 65 72 20 74 6f 20 72 65 62 75 69 6c 64 20 61 20  er to rebuild a 
a640: 6e 65 77 20 50 79 72 61 6d 69 64 20 66 72 6f 6d  new Pyramid from
a650: 20 73 63 72 61 74 63 68 2e 3c 2f 6c 69 3e 0a 3c   scratch.</li>.<
a660: 6c 69 3e 74 68 65 20 73 65 63 6f 6e 64 20 6f 70  li>the second op
a670: 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20  tional argument 
a680: 3c 62 3e 3c 69 3e 76 69 72 74 75 61 6c 4c 65 76  <b><i>virtualLev
a690: 65 6c 73 3c 2f 69 3e 3c 2f 62 3e 20 61 6c 6c 6f  els</i></b> allo
a6a0: 77 73 20 74 6f 20 63 68 6f 6f 73 65 20 74 68 65  ws to choose the
a6b0: 20 70 72 65 66 65 72 72 65 64 20 69 6e 74 65 72   preferred inter
a6c0: 6c 65 61 76 65 20 66 61 63 74 6f 72 20 62 65 74  leave factor bet
a6d0: 77 65 65 6e 20 3c 69 3e 3c 75 3e 70 68 79 73 69  ween <i><u>physi
a6e0: 63 61 6c 3c 2f 75 3e 3c 2f 69 3e 20 61 6e 64 20  cal</u></i> and 
a6f0: 3c 69 3e 3c 75 3e 76 69 72 74 75 61 6c 3c 2f 75  <i><u>virtual</u
a700: 3e 3c 2f 75 3e 20 4c 65 76 65 6c 73 2e 20 41 63  ></u> Levels. Ac
a710: 63 65 70 74 61 62 6c 65 20 76 61 6c 75 65 73 20  ceptable values 
a720: 61 72 65 20 3c 62 3e 31 3c 2f 62 3e 2c 20 3c 62  are <b>1</b>, <b
a730: 3e 32 3c 2f 62 3e 20 6f 72 20 3c 62 3e 33 3c 2f  >2</b> or <b>3</
a740: 62 3e 2e 20 54 68 65 20 64 65 66 61 75 6c 74 20  b>. The default 
a750: 73 65 74 74 69 6e 67 20 69 73 20 3c 62 3e 33 3c  setting is <b>3<
a760: 2f 62 3e 2c 20 77 69 74 68 20 74 68 65 20 6e 6f  /b>, with the no
a770: 74 61 62 6c 65 20 65 78 63 65 70 74 69 6f 6e 20  table exception 
a780: 6f 66 20 3c 62 3e 4d 4f 4e 4f 43 48 52 4f 4d 45  of <b>MONOCHROME
a790: 20 31 2d 42 49 54 3c 2f 62 3e 20 43 6f 76 65 72   1-BIT</b> Cover
a7a0: 61 67 65 73 2c 20 69 6e 20 77 68 69 63 68 20 63  ages, in which c
a7b0: 61 73 65 20 77 69 6c 6c 20 62 65 20 3c 62 3e 31  ase will be <b>1
a7c0: 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 69  </b>.</li>.<li>i
a7d0: 66 20 74 68 65 20 6c 61 73 74 20 6f 70 74 69 6f  f the last optio
a7e0: 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 28 65 78  nal argument (ex
a7f0: 70 65 63 74 65 64 20 74 6f 20 62 65 20 6f 66 20  pected to be of 
a800: 74 68 65 20 42 6f 6f 6c 65 61 6e 20 74 79 70 65  the Boolean type
a810: 29 20 69 73 6e 27 74 20 64 65 63 6c 61 72 65 64  ) isn't declared
a820: 20 61 6e 20 69 6e 74 65 72 6e 61 6c 20 53 51 4c   an internal SQL
a830: 20 54 72 61 6e 73 61 63 74 69 6f 6e 20 77 69 6c   Transaction wil
a840: 6c 20 62 65 20 69 6d 70 6c 69 63 69 74 6c 79 20  l be implicitly 
a850: 68 61 6e 64 6c 65 64 2e 3c 2f 6c 69 3e 0a 3c 2f  handled.</li>.</
a860: 75 6c 3e 0a 3c 75 3e 49 6d 70 6f 72 74 61 6e 74  ul>.<u>Important
a870: 20 4e 6f 74 69 63 65 3c 2f 75 3e 3a 20 61 20 4d   Notice</u>: a M
a880: 6f 6e 6f 6c 69 74 68 69 63 20 50 79 72 61 6d 69  onolithic Pyrami
a890: 64 20 69 73 20 6e 6f 74 20 63 6f 6d 70 61 74 69  d is not compati
a8a0: 62 6c 65 20 77 69 74 68 20 61 6e 79 20 43 6f 76  ble with any Cov
a8b0: 65 72 61 67 65 20 64 65 63 6c 61 72 65 64 20 62  erage declared b
a8c0: 79 20 65 6e 61 62 6c 69 6e 67 20 74 68 65 20 3c  y enabling the <
a8d0: 62 3e 6d 69 78 65 64 52 65 73 6f 6c 75 74 69 6f  b>mixedResolutio
a8e0: 6e 3c 2f 62 3e 20 50 6f 6c 69 63 79 2e 3c 2f 74  n</b> Policy.</t
a8f0: 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 3c 74 64  d>.</tr>.<tr><td
a900: 3e 3c 62 3e 52 4c 32 5f 44 65 50 79 72 61 6d 69  ><b>RL2_DePyrami
a910: 64 69 7a 65 3c 2f 62 3e 20 28 20 3c 62 3e 63 6f  dize</b> ( <b>co
a920: 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
a930: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 29 20 3a  i>String</i> ) :
a940: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
a950: 62 72 3e 3c 62 72 3e 3c 62 3e 52 4c 32 5f 44 65  br><br><b>RL2_De
a960: 50 79 72 61 6d 69 64 69 7a 65 3c 2f 62 3e 20 28  Pyramidize</b> (
a970: 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65   <b>coverageName
a980: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
a990: 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49  i> , <b>sectionI
a9a0: 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  D</b> <i>Integer
a9b0: 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65  </i> ) : <i>Inte
a9c0: 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 3c  ger</i><br><br><
a9d0: 62 3e 52 4c 32 5f 44 65 50 79 72 61 6d 69 64 69  b>RL2_DePyramidi
a9e0: 7a 65 3c 2f 62 3e 20 28 20 3c 62 3e 63 6f 76 65  ze</b> ( <b>cove
a9f0: 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e  rageName</b> <i>
aa00: 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
aa10: 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69  sectionID</b> <i
aa20: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
aa30: 62 3e 74 72 61 6e 73 61 63 74 69 6f 6e 3c 2f 62  b>transaction</b
aa40: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
aa50: 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c   ) : <i>Integer<
aa60: 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c  /i></td>.<td>Wil
aa70: 6c 20 61 74 74 65 6d 70 74 20 64 6f 20 64 65 73  l attempt do des
aa80: 74 72 6f 79 20 50 79 72 61 6d 69 64 20 6c 65 76  troy Pyramid lev
aa90: 65 6c 73 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65  els.<br>.Will re
aaa0: 74 75 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20 28 54  turn <b>1</b> (T
aab0: 52 55 45 2f 53 55 43 43 45 53 53 29 20 6f 72 20  RUE/SUCCESS) or 
aac0: 3c 62 3e 30 3c 2f 62 3e 20 28 46 41 4c 53 45 2f  <b>0</b> (FALSE/
aad0: 46 41 49 4c 55 52 45 29 3a 20 6f 72 20 3c 62 3e  FAILURE): or <b>
aae0: 2d 31 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69  -1</b> on invali
aaf0: 64 20 61 72 67 75 6d 65 6e 74 73 2e 3c 62 72 3e  d arguments.<br>
ab00: 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c  .<u>Please note<
ab10: 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69 3e 69  /u>: .<ul>.<li>i
ab20: 66 20 61 20 73 69 6e 67 6c 65 20 3c 62 3e 3c 69  f a single <b><i
ab30: 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 69 3e 3c 2f  >sectionID</i></
ab40: 62 3e 20 69 73 20 73 70 65 63 69 66 69 65 64 2c  b> is specified,
ab50: 20 74 68 65 6e 20 6f 6e 6c 79 20 74 68 65 20 50   then only the P
ab60: 79 72 61 6d 69 64 20 6c 65 76 65 6c 73 20 64 69  yramid levels di
ab70: 72 65 63 74 6c 79 20 62 65 6c 6f 6e 67 69 6e 67  rectly belonging
ab80: 20 74 6f 20 74 68 61 74 20 53 65 63 74 69 6f 6e   to that Section
ab90: 20 77 69 6c 6c 20 62 65 20 63 6f 6e 73 69 64 65   will be conside
aba0: 72 65 64 20 28 3c 69 3e 6f 6e 6c 79 20 73 75 70  red (<i>only sup
abb0: 70 6f 72 74 65 64 20 66 6f 72 20 3c 62 3e 53 65  ported for <b>Se
abc0: 63 74 69 6f 6e 2d 62 61 73 65 64 3c 2f 62 3e 20  ction-based</b> 
abd0: 50 79 72 61 6d 69 64 73 3c 2f 69 3e 29 2e 3c 62  Pyramids</i>).<b
abe0: 72 3e 0a 41 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e  r>.A <b>NULL</b>
abf0: 20 73 65 63 74 69 6f 6e 49 44 20 61 6c 77 61 79   sectionID alway
ac00: 73 20 69 6d 70 6c 69 65 73 20 70 72 6f 63 65 73  s implies proces
ac10: 73 69 6e 67 20 74 68 65 20 77 68 6f 6c 65 20 43  sing the whole C
ac20: 6f 76 65 72 61 67 65 2e 3c 2f 6c 69 3e 0a 3c 6c  overage.</li>.<l
ac30: 69 3e 69 66 20 74 68 65 20 6c 61 73 74 20 6f 70  i>if the last op
ac40: 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20  tional argument 
ac50: 28 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20  (expected to be 
ac60: 6f 66 20 74 68 65 20 42 6f 6f 6c 65 61 6e 20 74  of the Boolean t
ac70: 79 70 65 29 20 69 73 6e 27 74 20 64 65 63 6c 61  ype) isn't decla
ac80: 72 65 64 20 61 6e 20 69 6e 74 65 72 6e 61 6c 20  red an internal 
ac90: 53 51 4c 20 54 72 61 6e 73 61 63 74 69 6f 6e 20  SQL Transaction 
aca0: 77 69 6c 6c 20 62 65 20 69 6d 70 6c 69 63 69 74  will be implicit
acb0: 6c 79 20 68 61 6e 64 6c 65 64 2e 3c 2f 6c 69 3e  ly handled.</li>
acc0: 0a 3c 2f 75 6c 3e 3c 2f 74 64 3e 0a 3c 2f 74 72  .</ul></td>.</tr
acd0: 3e 0a 3c 2f 74 61 62 6c 65 3e 3c 62 72 3e 0a 3c  >.</table><br>.<
ace0: 68 72 3e 0a 3c 68 32 3e 53 51 4c 20 66 75 6e 63  hr>.<h2>SQL func
acf0: 74 69 6f 6e 73 20 72 65 74 75 72 6e 69 6e 67 20  tions returning 
ad00: 73 74 79 6c 65 64 20 4d 61 70 73 3c 2f 68 32 3e  styled Maps</h2>
ad10: 20 0a 3c 74 61 62 6c 65 20 77 69 64 74 68 3d 22   .<table width="
ad20: 31 30 30 25 22 20 62 6f 72 64 65 72 3d 22 31 22  100%" border="1"
ad30: 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 66 66 65   bgcolor="#ffffe
ad40: 30 22 20 63 65 6c 6c 65 73 70 61 63 69 6e 67 3d  0" cellespacing=
ad50: 22 34 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d  "4" cellpadding=
ad60: 22 36 22 3e 0a 3c 74 72 3e 3c 74 68 20 62 67 63  "6">.<tr><th bgc
ad70: 6f 6c 6f 72 3d 22 23 65 30 65 30 65 30 22 20 77  olor="#e0e0e0" w
ad80: 69 64 74 68 3d 22 35 30 25 22 3e 53 79 6e 74 61  idth="50%">Synta
ad90: 78 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f  x</th><th bgcolo
ada0: 72 3d 22 23 65 30 65 30 65 30 22 20 77 69 64 74  r="#e0e0e0" widt
adb0: 68 3d 22 35 30 25 22 3e 53 75 6d 6d 61 72 79 3c  h="50%">Summary<
adc0: 2f 74 68 3e 3c 2f 74 72 3e 0a 3c 74 72 3e 3c 74  /th></tr>.<tr><t
add0: 64 3e 3c 62 3e 52 4c 32 5f 47 65 74 4d 61 70 49  d><b>RL2_GetMapI
ade0: 6d 61 67 65 46 72 6f 6d 52 61 73 74 65 72 3c 2f  mageFromRaster</
adf0: 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78  b> ( <b>dbPrefix
ae00: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
ae10: 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65  i> , <b>coverage
ae20: 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Name</b> <i>Stri
ae30: 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e  ng</i> , <b>boun
ae40: 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42  dingBox</b> <i>B
ae50: 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e  LOB-Geometry</i>
ae60: 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20   , <b>width</b> 
ae70: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
ae80: 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c   <b>height</b> <
ae90: 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20  i>Integer</i> ) 
aea0: 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 3c 62 72  : <i>BLOB</i><br
aeb0: 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 47 65 74  ><br>.<b>RL2_Get
aec0: 4d 61 70 49 6d 61 67 65 46 72 6f 6d 52 61 73 74  MapImageFromRast
aed0: 65 72 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72  er</b> ( <b>dbPr
aee0: 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  efix</b> <i>Stri
aef0: 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65  ng</i> , <b>cove
af00: 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e  rageName</b> <i>
af10: 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
af20: 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20  boundingBox</b> 
af30: 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79  <i>BLOB-Geometry
af40: 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c  </i> , <b>width<
af50: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
af60: 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f  i> , <b>height</
af70: 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
af80: 3e 20 2c 20 3c 62 3e 73 74 79 6c 65 4e 61 6d 65  > , <b>styleName
af90: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
afa0: 69 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f  i> ) : <i>BLOB</
afb0: 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c  i><br><br>.<b>RL
afc0: 32 5f 47 65 74 4d 61 70 49 6d 61 67 65 46 72 6f  2_GetMapImageFro
afd0: 6d 52 61 73 74 65 72 3c 2f 62 3e 20 28 20 3c 62  mRaster</b> ( <b
afe0: 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69  >dbPrefix</b> <i
aff0: 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
b000: 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62  >coverageName</b
b010: 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
b020: 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78  , <b>boundingBox
b030: 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f  </b> <i>BLOB-Geo
b040: 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 77  metry</i> , <b>w
b050: 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  idth</b> <i>Inte
b060: 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69  ger</i> , <b>hei
b070: 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  ght</b> <i>Integ
b080: 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 73 74 79 6c  er</i> , <b>styl
b090: 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eName</b> <i>Str
b0a0: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 6d 69 6d  ing</i> , <b>mim
b0b0: 65 54 79 70 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eType</b> <i>Str
b0c0: 69 6e 67 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42  ing</i> ) : <i>B
b0d0: 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a  LOB</i><br><br>.
b0e0: 3c 62 3e 52 4c 32 5f 47 65 74 4d 61 70 49 6d 61  <b>RL2_GetMapIma
b0f0: 67 65 46 72 6f 6d 52 61 73 74 65 72 3c 2f 62 3e  geFromRaster</b>
b100: 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f   ( <b>dbPrefix</
b110: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
b120: 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   , <b>coverageNa
b130: 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
b140: 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69  </i> , <b>boundi
b150: 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f  ngBox</b> <i>BLO
b160: 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c  B-Geometry</i> ,
b170: 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69   <b>width</b> <i
b180: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
b190: 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e  b>height</b> <i>
b1a0: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
b1b0: 3e 73 74 79 6c 65 4e 61 6d 65 3c 2f 62 3e 20 3c  >styleName</b> <
b1c0: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
b1d0: 62 3e 6d 69 6d 65 54 79 70 65 3c 2f 62 3e 20 3c  b>mimeType</b> <
b1e0: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
b1f0: 62 3e 62 67 43 6f 6c 6f 72 3c 2f 62 3e 20 3c 69  b>bgColor</b> <i
b200: 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 29 20 3a 20  >String</i> ) : 
b210: 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c  <i>BLOB</i><br><
b220: 62 72 3e 0a 3c 62 3e 52 4c 32 5f 47 65 74 4d 61  br>.<b>RL2_GetMa
b230: 70 49 6d 61 67 65 46 72 6f 6d 52 61 73 74 65 72  pImageFromRaster
b240: 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
b250: 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
b260: 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
b270: 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
b280: 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f  ring</i> , <b>bo
b290: 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69  undingBox</b> <i
b2a0: 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f  >BLOB-Geometry</
b2b0: 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62  i> , <b>width</b
b2c0: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
b2d0: 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e   , <b>height</b>
b2e0: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
b2f0: 2c 20 3c 62 3e 73 74 79 6c 65 4e 61 6d 65 3c 2f  , <b>styleName</
b300: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
b310: 20 2c 20 3c 62 3e 6d 69 6d 65 54 79 70 65 3c 2f   , <b>mimeType</
b320: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
b330: 20 2c 20 3c 62 3e 62 67 43 6f 6c 6f 72 3c 2f 62   , <b>bgColor</b
b340: 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
b350: 2c 20 3c 62 3e 74 72 61 6e 73 70 61 72 65 6e 74  , <b>transparent
b360: 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
b370: 2f 69 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c  /i> ) : <i>BLOB<
b380: 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52  /i><br><br>.<b>R
b390: 4c 32 5f 47 65 74 4d 61 70 49 6d 61 67 65 46 72  L2_GetMapImageFr
b3a0: 6f 6d 52 61 73 74 65 72 3c 2f 62 3e 20 28 20 3c  omRaster</b> ( <
b3b0: 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c  b>dbPrefix</b> <
b3c0: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
b3d0: 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f  b>coverageName</
b3e0: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
b3f0: 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f   , <b>boundingBo
b400: 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65  x</b> <i>BLOB-Ge
b410: 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e  ometry</i> , <b>
b420: 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74  width</b> <i>Int
b430: 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65  eger</i> , <b>he
b440: 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  ight</b> <i>Inte
b450: 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 73 74 79  ger</i> , <b>sty
b460: 6c 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  leName</b> <i>St
b470: 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 6d 69  ring</i> , <b>mi
b480: 6d 65 54 79 70 65 3c 2f 62 3e 20 3c 69 3e 53 74  meType</b> <i>St
b490: 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62 67  ring</i> , <b>bg
b4a0: 43 6f 6c 6f 72 3c 2f 62 3e 20 3c 69 3e 53 74 72  Color</b> <i>Str
b4b0: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 72 61  ing</i> , <b>tra
b4c0: 6e 73 70 61 72 65 6e 74 3c 2f 62 3e 20 3c 69 3e  nsparent</b> <i>
b4d0: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
b4e0: 3e 71 75 61 6c 69 74 79 3c 2f 62 3e 20 3c 69 3e  >quality</b> <i>
b4f0: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20  Integer</i> ) : 
b500: 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c  <i>BLOB</i><br><
b510: 62 72 3e 0a 3c 62 3e 52 4c 32 5f 47 65 74 4d 61  br>.<b>RL2_GetMa
b520: 70 49 6d 61 67 65 46 72 6f 6d 52 61 73 74 65 72  pImageFromRaster
b530: 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
b540: 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
b550: 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
b560: 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
b570: 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f  ring</i> , <b>bo
b580: 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69  undingBox</b> <i
b590: 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f  >BLOB-Geometry</
b5a0: 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62  i> , <b>width</b
b5b0: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
b5c0: 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e   , <b>height</b>
b5d0: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
b5e0: 2c 20 3c 62 3e 73 74 79 6c 65 4e 61 6d 65 3c 2f  , <b>styleName</
b5f0: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
b600: 20 2c 20 3c 62 3e 6d 69 6d 65 54 79 70 65 3c 2f   , <b>mimeType</
b610: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
b620: 20 2c 20 3c 62 3e 62 67 43 6f 6c 6f 72 3c 2f 62   , <b>bgColor</b
b630: 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
b640: 2c 20 3c 62 3e 74 72 61 6e 73 70 61 72 65 6e 74  , <b>transparent
b650: 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
b660: 2f 69 3e 20 2c 20 3c 62 3e 71 75 61 6c 69 74 79  /i> , <b>quality
b670: 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
b680: 2f 69 3e 20 2c 20 3c 62 3e 72 65 61 73 70 65 63  /i> , <b>reaspec
b690: 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  t</b> <i>Integer
b6a0: 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42  </i> ) : <i>BLOB
b6b0: 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69  </i></td>.<td>Wi
b6c0: 6c 6c 20 61 74 74 65 6d 70 74 20 74 6f 20 63 72  ll attempt to cr
b6d0: 65 61 74 65 20 61 20 64 69 67 69 74 61 6c 20 69  eate a digital i
b6e0: 6d 61 67 65 20 72 65 70 72 65 73 65 6e 74 69 6e  mage representin
b6f0: 67 20 61 20 53 74 79 6c 65 64 20 4d 61 70 20 66  g a Styled Map f
b700: 72 6f 6d 20 61 20 43 6f 76 65 72 61 67 65 20 6f  rom a Coverage o
b710: 66 20 74 68 65 20 52 61 73 74 65 72 20 74 79 70  f the Raster typ
b720: 65 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75  e.<br>.Will retu
b730: 72 6e 20 61 20 42 4c 4f 42 20 63 6f 6e 74 61 69  rn a BLOB contai
b740: 6e 69 6e 67 20 74 68 65 20 53 74 79 6c 65 64 20  ning the Styled 
b750: 4d 61 70 3a 20 6f 72 20 3c 62 3e 4e 55 4c 4c 3c  Map: or <b>NULL<
b760: 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61  /b> on invalid a
b770: 72 67 75 6d 65 6e 74 73 20 6f 72 20 69 66 20 61  rguments or if a
b780: 6e 79 20 65 72 72 6f 72 20 6f 63 63 75 72 73 2e  ny error occurs.
b790: 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e  <br>.<u>Please n
b7a0: 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c  ote</u>: .<ul>.<
b7b0: 6c 69 3e 54 68 65 20 3c 62 3e 3c 69 3e 64 62 50  li>The <b><i>dbP
b7c0: 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20 61 72  refix</i></b> ar
b7d0: 67 75 6d 65 6e 74 20 69 73 20 69 6e 74 65 6e 64  gument is intend
b7e0: 65 64 20 74 6f 20 73 70 65 63 69 66 79 20 74 68  ed to specify th
b7f0: 65 20 41 54 54 41 43 48 45 44 2d 44 42 20 77 68  e ATTACHED-DB wh
b800: 65 72 65 20 74 68 65 20 43 6f 76 65 72 61 67 65  ere the Coverage
b810: 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f 20   is expected to 
b820: 62 65 20 66 6f 75 6e 64 3b 20 69 74 20 63 6f 75  be found; it cou
b830: 6c 64 20 62 65 20 65 76 65 6e 74 75 61 6c 6c 79  ld be eventually
b840: 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20 61 6e   <b>NULL</b>, an
b850: 64 20 69 6e 20 74 68 69 73 20 63 61 73 65 20 74  d in this case t
b860: 68 65 20 3c 62 3e 4d 41 49 4e 20 44 42 3c 2f 62  he <b>MAIN DB</b
b870: 3e 20 77 69 6c 6c 20 69 6d 70 6c 69 63 69 74 6c  > will implicitl
b880: 79 20 62 65 20 61 73 73 75 6d 65 64 2e 3c 2f 6c  y be assumed.</l
b890: 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69  i>.<li>the <b><i
b8a0: 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 69 3e  >boundingBox</i>
b8b0: 3c 2f 62 3e 20 69 73 20 65 78 70 65 63 74 65 64  </b> is expected
b8c0: 20 74 6f 20 72 65 70 72 65 73 65 6e 74 20 74 68   to represent th
b8d0: 65 20 6f 76 65 72 61 6c 6c 20 65 78 74 65 6e 74  e overall extent
b8e0: 20 6f 66 20 74 68 65 20 53 74 79 6c 65 64 20 4d   of the Styled M
b8f0: 61 70 3b 20 79 6f 75 20 63 6f 75 6c 64 20 65 76  ap; you could ev
b900: 65 6e 74 75 61 6c 6c 79 20 70 61 73 73 20 61 6e  entually pass an
b910: 79 20 61 72 62 69 74 72 61 72 79 20 6b 69 6e 64  y arbitrary kind
b920: 20 6f 66 20 47 65 6f 6d 65 74 72 79 2c 20 61 6e   of Geometry, an
b930: 64 20 74 68 65 20 42 6f 75 6e 64 69 6e 67 20 42  d the Bounding B
b940: 6f 78 20 61 6b 61 20 4d 42 52 20 77 69 6c 6c 20  ox aka MBR will 
b950: 62 65 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79  be automatically
b960: 20 64 65 74 65 72 6d 69 6e 65 64 2e 3c 2f 6c 69   determined.</li
b970: 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e  >.<li>the <b><i>
b980: 73 74 79 6c 65 4e 61 6d 65 3c 2f 69 3e 3c 2f 62  styleName</i></b
b990: 3e 20 63 6f 75 6c 64 20 62 65 20 65 76 65 6e 74  > could be event
b9a0: 75 61 6c 6c 79 20 3c 62 3e 27 64 65 66 61 75 6c  ually <b>'defaul
b9b0: 74 27 3c 2f 62 3e 2c 20 74 68 69 73 20 63 6f 72  t'</b>, this cor
b9c0: 72 65 73 70 6f 6e 64 69 6e 67 20 74 6f 20 74 68  responding to th
b9d0: 65 20 69 6d 70 6c 69 63 69 74 20 73 74 79 6c 65  e implicit style
b9e0: 20 73 75 70 70 6f 72 74 65 64 20 66 6f 72 20 61   supported for a
b9f0: 6c 6c 20 50 69 78 65 6c 20 54 79 70 65 73 20 65  ll Pixel Types e
ba00: 78 63 65 70 74 20 4d 55 4c 54 49 42 41 4e 44 20  xcept MULTIBAND 
ba10: 28 77 68 69 63 68 20 61 6c 77 61 79 73 20 72 65  (which always re
ba20: 71 75 69 72 65 20 73 6f 6d 65 20 65 78 70 6c 69  quire some expli
ba30: 63 69 74 20 73 74 79 6c 65 20 74 6f 20 62 65 20  cit style to be 
ba40: 61 70 70 6c 69 65 64 29 2e 3c 2f 6c 69 3e 0a 3c  applied).</li>.<
ba50: 6c 69 3e 74 68 65 20 42 6f 75 6e 64 69 6e 67 42  li>the BoundingB
ba60: 6f 78 20 69 73 20 65 78 70 65 63 74 65 64 20 74  ox is expected t
ba70: 6f 20 65 78 61 63 74 6c 79 20 6d 61 74 63 68 20  o exactly match 
ba80: 74 68 65 20 69 6d 61 67 65 27 73 20 3c 62 3e 3c  the image's <b><
ba90: 69 3e 77 69 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20  i>width</i></b> 
baa0: 61 6e 64 20 3c 62 3e 3c 69 3e 68 65 69 67 68 74  and <b><i>height
bab0: 3c 2f 69 3e 3c 2f 62 3e 20 64 69 6d 65 6e 73 69  </i></b> dimensi
bac0: 6f 6e 73 20 61 74 20 74 68 61 74 20 72 65 73 6f  ons at that reso
bad0: 6c 75 74 69 6f 6e 2e 3c 62 72 3e 0a 45 78 63 65  lution.<br>.Exce
bae0: 70 74 20 77 68 65 6e 20 74 68 65 20 6f 70 74 69  pt when the opti
baf0: 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 3c 62  onal argument <b
bb00: 3e 3c 69 3e 72 65 61 73 70 65 63 74 3c 2f 69 3e  ><i>reaspect</i>
bb10: 3c 2f 62 3e 20 69 73 20 73 65 74 20 74 6f 20 54  </b> is set to T
bb20: 52 55 45 3b 20 69 6e 20 74 68 69 73 20 6c 61 74  RUE; in this lat
bb30: 65 72 20 63 61 73 65 20 65 61 63 68 20 73 69 6e  er case each sin
bb40: 67 6c 65 20 61 78 69 73 20 63 6f 75 6c 64 20 62  gle axis could b
bb50: 65 20 69 6e 64 65 70 65 6e 64 65 6e 74 6c 79 20  e independently 
bb60: 72 65 73 63 61 6c 65 64 2e 3c 2f 6c 69 3e 0a 3c  rescaled.</li>.<
bb70: 6c 69 3e 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20  li>the optional 
bb80: 61 72 67 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e 6d  argument <b><i>m
bb90: 69 6d 65 54 79 70 65 3c 2f 69 3e 3c 2f 62 3e 20  imeType</i></b> 
bba0: 63 6f 75 6c 64 20 62 65 20 6f 6e 65 20 6f 66 20  could be one of 
bbb0: 3c 62 3e 27 69 6d 61 67 65 2f 70 64 66 27 3c 2f  <b>'image/pdf'</
bbc0: 62 3e 2c 20 3c 62 3e 27 69 6d 61 67 65 2f 6a 70  b>, <b>'image/jp
bbd0: 65 67 27 3c 2f 62 3e 2c 20 3c 62 3e 27 69 6d 61  eg'</b>, <b>'ima
bbe0: 67 65 2f 74 69 66 66 27 3c 2f 62 3e 20 6f 72 20  ge/tiff'</b> or 
bbf0: 3c 62 3e 27 61 70 70 6c 69 63 61 74 69 6f 6e 2f  <b>'application/
bc00: 78 2d 70 64 66 27 3c 2f 62 3e 3b 20 64 65 66 61  x-pdf'</b>; defa
bc10: 75 6c 74 20 69 73 20 3c 62 3e 27 69 6d 61 67 65  ult is <b>'image
bc20: 2f 70 6e 67 27 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a  /png'</b>.</li>.
bc30: 3c 6c 69 3e 74 68 65 20 6f 70 74 69 6f 6e 61 6c  <li>the optional
bc40: 20 3c 62 3e 3c 69 3e 62 67 43 6f 6c 6f 72 3c 2f   <b><i>bgColor</
bc50: 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74 20  i></b> argument 
bc60: 69 73 20 65 78 70 65 63 74 65 64 20 74 6f 20 62  is expected to b
bc70: 65 20 65 78 70 72 65 73 73 65 64 20 69 6e 20 74  e expressed in t
bc80: 68 65 20 63 61 6e 6f 6e 69 63 61 6c 20 57 45 42  he canonical WEB
bc90: 20 48 45 58 2d 52 47 42 20 66 6f 72 6d 2c 20 61   HEX-RGB form, a
bca0: 73 20 69 6e 20 3c 62 3e 27 23 66 66 38 30 38 30  s in <b>'#ff8080
bcb0: 27 3c 2f 62 3e 20 28 64 65 66 61 75 6c 74 20 69  '</b> (default i
bcc0: 73 20 27 23 66 66 66 66 66 66 27 20 69 2e 65 2e  s '#ffffff' i.e.
bcd0: 20 66 75 6c 6c 20 77 68 69 74 65 29 2e 3c 2f 6c   full white).</l
bce0: 69 3e 0a 3c 6c 69 3e 74 68 65 20 6f 70 74 69 6f  i>.<li>the optio
bcf0: 6e 61 6c 20 3c 62 3e 3c 69 3e 74 72 61 6e 73 70  nal <b><i>transp
bd00: 61 72 65 6e 74 3c 2f 69 3e 3c 2f 62 3e 20 61 72  arent</i></b> ar
bd10: 67 75 6d 65 6e 74 20 69 73 20 65 78 70 65 63 74  gument is expect
bd20: 65 64 20 74 6f 20 62 65 20 65 78 70 72 65 73 73  ed to be express
bd30: 65 64 20 61 73 20 61 20 42 6f 6f 6c 65 61 6e 20  ed as a Boolean 
bd40: 76 61 6c 75 65 20 28 64 65 66 61 75 6c 74 20 69  value (default i
bd50: 73 20 3c 62 3e 30 3c 2f 62 3e 20 46 41 4c 53 45  s <b>0</b> FALSE
bd60: 29 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65  ).<br>.<u>Please
bd70: 20 6e 6f 74 65 3c 2f 75 3e 3a 20 74 72 61 6e 73   note</u>: trans
bd80: 70 61 72 65 6e 63 79 20 69 73 20 73 75 70 70 6f  parency is suppo
bd90: 72 74 65 64 20 75 6e 69 71 75 65 6c 79 20 62 79  rted uniquely by
bda0: 20 50 4e 47 20 69 6d 61 67 65 73 2e 3c 2f 6c 69   PNG images.</li
bdb0: 3e 0a 3c 6c 69 3e 74 68 65 20 6f 70 74 69 6f 6e  >.<li>the option
bdc0: 61 6c 20 61 72 67 75 6d 65 6e 74 20 3c 62 3e 3c  al argument <b><
bdd0: 69 3e 71 75 61 6c 69 74 79 3c 2f 69 3e 3c 2f 62  i>quality</i></b
bde0: 3e 20 28 69 6e 20 74 68 65 20 72 61 6e 67 65 20  > (in the range 
bdf0: 3c 62 3e 30 3c 2f 62 3e 20 2d 20 3c 62 3e 31 30  <b>0</b> - <b>10
be00: 30 3c 2f 62 3e 3b 20 64 65 66 61 75 6c 74 20 3c  0</b>; default <
be10: 62 3e 38 30 3c 2f 62 3e 29 20 69 73 20 6d 65 61  b>80</b>) is mea
be20: 6e 69 6e 67 66 75 6c 20 6f 6e 6c 79 20 69 6e 20  ningful only in 
be30: 74 68 65 20 63 61 73 65 20 6f 66 20 4a 50 45 47  the case of JPEG
be40: 20 69 6d 61 67 65 73 2e 3c 2f 6c 69 3e 0a 3c 2f   images.</li>.</
be50: 75 6c 3e 0a 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 3c  ul>.</td></tr>.<
be60: 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47 65  tr><td><b>RL2_Ge
be70: 74 53 74 79 6c 65 64 4d 61 70 49 6d 61 67 65 46  tStyledMapImageF
be80: 72 6f 6d 52 61 73 74 65 72 3c 2f 62 3e 20 28 20  romRaster</b> ( 
be90: 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20  <b>dbPrefix</b> 
bea0: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
beb0: 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
bec0: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
bed0: 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42  > , <b>boundingB
bee0: 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47  ox</b> <i>BLOB-G
bef0: 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62  eometry</i> , <b
bf00: 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e  >width</b> <i>In
bf10: 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68  teger</i> , <b>h
bf20: 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74  eight</b> <i>Int
bf30: 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 78 6d  eger</i> , <b>xm
bf40: 6c 5f 73 74 79 6c 65 3c 2f 62 3e 20 3c 69 3e 54  l_style</b> <i>T
bf50: 65 78 74 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42  ext</i> ) : <i>B
bf60: 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a  LOB</i><br><br>.
bf70: 3c 62 3e 52 4c 32 5f 47 65 74 53 74 79 6c 65 64  <b>RL2_GetStyled
bf80: 4d 61 70 49 6d 61 67 65 46 72 6f 6d 52 61 73 74  MapImageFromRast
bf90: 65 72 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72  er</b> ( <b>dbPr
bfa0: 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  efix</b> <i>Stri
bfb0: 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65  ng</i> , <b>cove
bfc0: 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e  rageName</b> <i>
bfd0: 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
bfe0: 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20  boundingBox</b> 
bff0: 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79  <i>BLOB-Geometry
c000: 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c  </i> , <b>width<
c010: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
c020: 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f  i> , <b>height</
c030: 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
c040: 3e 20 2c 20 3c 62 3e 78 6d 6c 5f 73 74 79 6c 65  > , <b>xml_style
c050: 3c 2f 62 3e 20 3c 69 3e 54 65 78 74 3c 2f 69 3e  </b> <i>Text</i>
c060: 20 2c 20 3c 62 3e 6d 69 6d 65 54 79 70 65 3c 2f   , <b>mimeType</
c070: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
c080: 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e   ) : <i>BLOB</i>
c090: 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f  <br><br>.<b>RL2_
c0a0: 47 65 74 53 74 79 6c 65 64 4d 61 70 49 6d 61 67  GetStyledMapImag
c0b0: 65 46 72 6f 6d 52 61 73 74 65 72 3c 2f 62 3e 20  eFromRaster</b> 
c0c0: 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62  ( <b>dbPrefix</b
c0d0: 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
c0e0: 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d  , <b>coverageNam
c0f0: 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
c100: 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e  /i> , <b>boundin
c110: 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42  gBox</b> <i>BLOB
c120: 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20  -Geometry</i> , 
c130: 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e  <b>width</b> <i>
c140: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
c150: 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49  >height</b> <i>I
c160: 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
c170: 78 6d 6c 5f 73 74 79 6c 65 3c 2f 62 3e 20 3c 69  xml_style</b> <i
c180: 3e 54 65 78 74 3c 2f 69 3e 20 2c 20 3c 62 3e 6d  >Text</i> , <b>m
c190: 69 6d 65 54 79 70 65 3c 2f 62 3e 20 3c 69 3e 53  imeType</b> <i>S
c1a0: 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62  tring</i> , <b>b
c1b0: 67 43 6f 6c 6f 72 3c 2f 62 3e 20 3c 69 3e 53 74  gColor</b> <i>St
c1c0: 72 69 6e 67 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e  ring</i> ) : <i>
c1d0: 42 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e  BLOB</i><br><br>
c1e0: 0a 3c 62 3e 52 4c 32 5f 47 65 74 53 74 79 6c 65  .<b>RL2_GetStyle
c1f0: 64 4d 61 70 49 6d 61 67 65 46 72 6f 6d 52 61 73  dMapImageFromRas
c200: 74 65 72 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50  ter</b> ( <b>dbP
c210: 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72  refix</b> <i>Str
c220: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76  ing</i> , <b>cov
c230: 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69  erageName</b> <i
c240: 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
c250: 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e  >boundingBox</b>
c260: 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72   <i>BLOB-Geometr
c270: 79 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68  y</i> , <b>width
c280: 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
c290: 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c  /i> , <b>height<
c2a0: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
c2b0: 69 3e 20 2c 20 3c 62 3e 78 6d 6c 5f 73 74 79 6c  i> , <b>xml_styl
c2c0: 65 3c 2f 62 3e 20 3c 69 3e 54 65 78 74 3c 2f 69  e</b> <i>Text</i
c2d0: 3e 20 2c 20 3c 62 3e 6d 69 6d 65 54 79 70 65 3c  > , <b>mimeType<
c2e0: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
c2f0: 3e 20 2c 20 3c 62 3e 62 67 43 6f 6c 6f 72 3c 2f  > , <b>bgColor</
c300: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
c310: 20 2c 20 3c 62 3e 74 72 61 6e 73 70 61 72 65 6e   , <b>transparen
c320: 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  t</b> <i>Integer
c330: 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42  </i> ) : <i>BLOB
c340: 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e  </i><br><br>.<b>
c350: 52 4c 32 5f 47 65 74 53 74 79 6c 65 64 4d 61 70  RL2_GetStyledMap
c360: 49 6d 61 67 65 46 72 6f 6d 52 61 73 74 65 72 3c  ImageFromRaster<
c370: 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69  /b> ( <b>dbPrefi
c380: 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  x</b> <i>String<
c390: 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67  /i> , <b>coverag
c3a0: 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eName</b> <i>Str
c3b0: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75  ing</i> , <b>bou
c3c0: 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e  ndingBox</b> <i>
c3d0: 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69  BLOB-Geometry</i
c3e0: 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e  > , <b>width</b>
c3f0: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
c400: 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20  , <b>height</b> 
c410: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
c420: 20 3c 62 3e 78 6d 6c 5f 73 74 79 6c 65 3c 2f 62   <b>xml_style</b
c430: 3e 20 3c 69 3e 54 65 78 74 3c 2f 69 3e 20 2c 20  > <i>Text</i> , 
c440: 3c 62 3e 6d 69 6d 65 54 79 70 65 3c 2f 62 3e 20  <b>mimeType</b> 
c450: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
c460: 3c 62 3e 62 67 43 6f 6c 6f 72 3c 2f 62 3e 20 3c  <b>bgColor</b> <
c470: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
c480: 62 3e 74 72 61 6e 73 70 61 72 65 6e 74 3c 2f 62  b>transparent</b
c490: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
c4a0: 20 2c 20 3c 62 3e 71 75 61 6c 69 74 79 3c 2f 62   , <b>quality</b
c4b0: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
c4c0: 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e   ) : <i>BLOB</i>
c4d0: 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f  <br><br>.<b>RL2_
c4e0: 47 65 74 53 74 79 6c 65 64 4d 61 70 49 6d 61 67  GetStyledMapImag
c4f0: 65 46 72 6f 6d 52 61 73 74 65 72 3c 2f 62 3e 20  eFromRaster</b> 
c500: 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62  ( <b>dbPrefix</b
c510: 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
c520: 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d  , <b>coverageNam
c530: 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
c540: 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e  /i> , <b>boundin
c550: 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42  gBox</b> <i>BLOB
c560: 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20  -Geometry</i> , 
c570: 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e  <b>width</b> <i>
c580: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
c590: 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49  >height</b> <i>I
c5a0: 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
c5b0: 78 6d 6c 5f 73 74 79 6c 65 3c 2f 62 3e 20 3c 69  xml_style</b> <i
c5c0: 3e 54 65 78 74 3c 2f 69 3e 20 2c 20 3c 62 3e 6d  >Text</i> , <b>m
c5d0: 69 6d 65 54 79 70 65 3c 2f 62 3e 20 3c 69 3e 53  imeType</b> <i>S
c5e0: 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62  tring</i> , <b>b
c5f0: 67 43 6f 6c 6f 72 3c 2f 62 3e 20 3c 69 3e 53 74  gColor</b> <i>St
c600: 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 72  ring</i> , <b>tr
c610: 61 6e 73 70 61 72 65 6e 74 3c 2f 62 3e 20 3c 69  ansparent</b> <i
c620: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
c630: 62 3e 71 75 61 6c 69 74 79 3c 2f 62 3e 20 3c 69  b>quality</b> <i
c640: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
c650: 62 3e 72 65 61 73 70 65 63 74 3c 2f 62 3e 20 3c  b>reaspect</b> <
c660: 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20  i>Integer</i> ) 
c670: 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 3c 2f 74  : <i>BLOB</i></t
c680: 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61 74 74 65  d>.<td>Will atte
c690: 6d 70 74 20 74 6f 20 63 72 65 61 74 65 20 61 20  mpt to create a 
c6a0: 64 69 67 69 74 61 6c 20 69 6d 61 67 65 20 72 65  digital image re
c6b0: 70 72 65 73 65 6e 74 69 6e 67 20 61 20 53 74 79  presenting a Sty
c6c0: 6c 65 64 20 4d 61 70 20 66 72 6f 6d 20 61 20 43  led Map from a C
c6d0: 6f 76 65 72 61 67 65 20 6f 66 20 74 68 65 20 52  overage of the R
c6e0: 61 73 74 65 72 20 74 79 70 65 2e 3c 62 72 3e 0a  aster type.<br>.
c6f0: 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 20 42 4c  Will return a BL
c700: 4f 42 20 63 6f 6e 74 61 69 6e 69 6e 67 20 74 68  OB containing th
c710: 65 20 53 74 79 6c 65 64 20 4d 61 70 3a 20 6f 72  e Styled Map: or
c720: 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 20 6f 6e 20   <b>NULL</b> on 
c730: 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74  invalid argument
c740: 73 20 6f 72 20 69 66 20 61 6e 79 20 65 72 72 6f  s or if any erro
c750: 72 20 6f 63 63 75 72 73 2e 3c 62 72 3e 3c 62 72  r occurs.<br><br
c760: 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65  >.<u>Please note
c770: 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69 3e  </u>: .<ul>.<li>
c780: 41 6c 6d 6f 73 74 20 61 6c 6c 20 74 68 65 20 61  Almost all the a
c790: 72 67 75 6d 65 6e 74 73 20 61 72 65 20 74 68 65  rguments are the
c7a0: 20 73 61 6d 65 20 61 73 20 69 6e 20 3c 62 3e 52   same as in <b>R
c7b0: 4c 32 5f 47 65 74 4d 61 70 49 6d 61 67 65 46 72  L2_GetMapImageFr
c7c0: 6f 6d 52 61 73 74 65 72 28 29 3c 2f 62 3e 20 61  omRaster()</b> a
c7d0: 6e 64 20 68 61 76 65 20 69 64 65 6e 74 69 63 61  nd have identica
c7e0: 6c 20 69 6e 74 65 72 70 72 65 74 61 74 69 6f 6e  l interpretation
c7f0: 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 54 68 65 20 6f  .</li>.<li>The o
c800: 6e 6c 79 20 65 78 63 65 70 74 69 6f 6e 20 62 65  nly exception be
c810: 69 6e 67 20 3c 62 3e 3c 69 3e 78 6d 6c 5f 73 74  ing <b><i>xml_st
c820: 79 6c 65 3c 2f 69 3e 3c 2f 62 3e 20 74 68 61 74  yle</i></b> that
c830: 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f 20   is expected to 
c840: 63 6f 6e 74 61 69 6e 20 61 20 76 61 6c 69 64 20  contain a valid 
c850: 3c 62 3e 53 4c 44 2f 53 45 20 58 4d 4c 20 52 61  <b>SLD/SE XML Ra
c860: 73 74 65 72 20 53 79 6d 62 6f 6c 69 7a 65 72 3c  ster Symbolizer<
c870: 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 3c  /b>.</li>.</ul><
c880: 62 72 3e 0a 3c 74 61 62 6c 65 20 63 65 6c 6c 73  br>.<table cells
c890: 70 61 63 69 6e 67 3d 22 38 22 20 63 65 6c 6c 70  pacing="8" cellp
c8a0: 61 64 64 69 6e 67 3d 22 38 22 20 62 67 63 6f 6c  adding="8" bgcol
c8b0: 6f 72 3d 22 23 64 30 66 66 64 30 22 3e 3c 74 72  or="#d0ffd0"><tr
c8c0: 3e 3c 74 64 3e 0a 49 6e 20 6f 74 68 65 72 20 77  ><td>.In other w
c8d0: 6f 72 64 73 3a 0a 3c 75 6c 3e 0a 3c 6c 69 3e 42  ords:.<ul>.<li>B
c8e0: 6f 74 68 20 3c 62 3e 52 4c 32 5f 47 65 74 4d 61  oth <b>RL2_GetMa
c8f0: 70 49 6d 61 67 65 46 72 6f 6d 52 61 73 74 65 72  pImageFromRaster
c900: 28 29 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 52 4c  ()</b> and <b>RL
c910: 32 5f 47 65 74 53 74 79 6c 65 64 4d 61 70 49 6d  2_GetStyledMapIm
c920: 61 67 65 46 72 6f 6d 52 61 73 74 65 72 28 29 3c  ageFromRaster()<
c930: 2f 62 3e 20 61 72 65 20 76 65 72 79 20 73 69 6d  /b> are very sim
c940: 69 6c 61 72 20 69 6e 20 74 68 65 69 72 20 67 65  ilar in their ge
c950: 6e 65 72 61 6c 20 62 65 68 61 76 69 6f 72 2e 20  neral behavior. 
c960: 54 68 65 20 6d 61 69 6e 20 64 69 66 66 65 72 65  The main differe
c970: 6e 63 65 20 62 65 74 77 65 65 6e 20 74 68 65 6d  nce between them
c980: 20 69 73 3a 0a 3c 75 6c 3e 0a 3c 6c 69 3e 3c 62   is:.<ul>.<li><b
c990: 3e 52 4c 32 5f 47 65 74 4d 61 70 49 6d 61 67 65  >RL2_GetMapImage
c9a0: 46 72 6f 6d 52 61 73 74 65 72 28 29 3c 2f 62 3e  FromRaster()</b>
c9b0: 20 61 63 63 65 70 74 73 20 74 68 65 20 3c 62 3e   accepts the <b>
c9c0: 6e 61 6d 65 3c 2f 62 3e 20 6f 66 20 61 20 72 65  name</b> of a re
c9d0: 67 69 73 74 65 72 65 64 20 53 74 79 6c 65 2e 3c  gistered Style.<
c9e0: 2f 6c 69 3e 0a 3c 6c 69 3e 3c 62 3e 52 4c 32 5f  /li>.<li><b>RL2_
c9f0: 47 65 74 53 74 79 6c 65 64 4d 61 70 49 6d 61 67  GetStyledMapImag
ca00: 65 46 72 6f 6d 52 61 73 74 65 72 28 29 3c 2f 62  eFromRaster()</b
ca10: 3e 20 64 69 72 65 63 74 6c 79 20 61 63 63 65 70  > directly accep
ca20: 74 73 20 61 6e 20 3c 62 3e 58 4d 4c 20 53 74 79  ts an <b>XML Sty
ca30: 6c 65 3c 2f 62 3e 20 64 65 66 69 6e 69 74 69 6f  le</b> definitio
ca40: 6e 2e 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 3c 2f 6c  n.</li>.</ul></l
ca50: 69 3e 0a 3c 2f 75 6c 3e 0a 3c 2f 74 64 3e 3c 2f  i>.</ul>.</td></
ca60: 74 72 3e 3c 2f 74 61 62 6c 65 3e 0a 3c 2f 74 64  tr></table>.</td
ca70: 3e 3c 2f 74 72 3e 0a 3c 74 72 3e 3c 74 64 3e 3c  ></tr>.<tr><td><
ca80: 62 3e 52 4c 32 5f 47 65 74 4d 61 70 49 6d 61 67  b>RL2_GetMapImag
ca90: 65 46 72 6f 6d 56 65 63 74 6f 72 3c 2f 62 3e 20  eFromVector</b> 
caa0: 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62  ( <b>dbPrefix</b
cab0: 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
cac0: 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d  , <b>coverageNam
cad0: 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
cae0: 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e  /i> , <b>boundin
caf0: 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42  gBox</b> <i>BLOB
cb00: 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20  -Geometry</i> , 
cb10: 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e  <b>width</b> <i>
cb20: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
cb30: 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49  >height</b> <i>I
cb40: 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c  nteger</i> ) : <
cb50: 69 3e 42 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62  i>BLOB</i><br><b
cb60: 72 3e 0a 3c 62 3e 52 4c 32 5f 47 65 74 4d 61 70  r>.<b>RL2_GetMap
cb70: 49 6d 61 67 65 46 72 6f 6d 56 65 63 74 6f 72 3c  ImageFromVector<
cb80: 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69  /b> ( <b>dbPrefi
cb90: 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  x</b> <i>String<
cba0: 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67  /i> , <b>coverag
cbb0: 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eName</b> <i>Str
cbc0: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75  ing</i> , <b>bou
cbd0: 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e  ndingBox</b> <i>
cbe0: 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69  BLOB-Geometry</i
cbf0: 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e  > , <b>width</b>
cc00: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
cc10: 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20  , <b>height</b> 
cc20: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
cc30: 20 3c 62 3e 73 74 79 6c 65 4e 61 6d 65 3c 2f 62   <b>styleName</b
cc40: 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
cc50: 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 3c  ) : <i>BLOB</i><
cc60: 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 47  br><br>.<b>RL2_G
cc70: 65 74 4d 61 70 49 6d 61 67 65 46 72 6f 6d 56 65  etMapImageFromVe
cc80: 63 74 6f 72 3c 2f 62 3e 20 28 20 3c 62 3e 64 62  ctor</b> ( <b>db
cc90: 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74  Prefix</b> <i>St
cca0: 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f  ring</i> , <b>co
ccb0: 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
ccc0: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
ccd0: 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
cce0: 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
ccf0: 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74  ry</i> , <b>widt
cd00: 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  h</b> <i>Integer
cd10: 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74  </i> , <b>height
cd20: 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
cd30: 2f 69 3e 20 2c 20 3c 62 3e 73 74 79 6c 65 4e 61  /i> , <b>styleNa
cd40: 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
cd50: 3c 2f 69 3e 20 2c 20 3c 62 3e 6d 69 6d 65 54 79  </i> , <b>mimeTy
cd60: 70 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  pe</b> <i>String
cd70: 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42  </i> ) : <i>BLOB
cd80: 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e  </i><br><br>.<b>
cd90: 52 4c 32 5f 47 65 74 4d 61 70 49 6d 61 67 65 46  RL2_GetMapImageF
cda0: 72 6f 6d 56 65 63 74 6f 72 3c 2f 62 3e 20 28 20  romVector</b> ( 
cdb0: 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20  <b>dbPrefix</b> 
cdc0: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
cdd0: 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
cde0: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
cdf0: 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42  > , <b>boundingB
ce00: 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47  ox</b> <i>BLOB-G
ce10: 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62  eometry</i> , <b
ce20: 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e  >width</b> <i>In
ce30: 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68  teger</i> , <b>h
ce40: 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74  eight</b> <i>Int
ce50: 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 73 74  eger</i> , <b>st
ce60: 79 6c 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53  yleName</b> <i>S
ce70: 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 6d  tring</i> , <b>m
ce80: 69 6d 65 54 79 70 65 3c 2f 62 3e 20 3c 69 3e 53  imeType</b> <i>S
ce90: 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62  tring</i> , <b>b
cea0: 67 43 6f 6c 6f 72 3c 2f 62 3e 20 3c 69 3e 53 74  gColor</b> <i>St
ceb0: 72 69 6e 67 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e  ring</i> ) : <i>
cec0: 42 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e  BLOB</i><br><br>
ced0: 0a 3c 62 3e 52 4c 32 5f 47 65 74 4d 61 70 49 6d  .<b>RL2_GetMapIm
cee0: 61 67 65 46 72 6f 6d 56 65 63 74 6f 72 3c 2f 62  ageFromVector</b
cef0: 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c  > ( <b>dbPrefix<
cf00: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
cf10: 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e  > , <b>coverageN
cf20: 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ame</b> <i>Strin
cf30: 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64  g</i> , <b>bound
cf40: 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c  ingBox</b> <i>BL
cf50: 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20  OB-Geometry</i> 
cf60: 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c  , <b>width</b> <
cf70: 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
cf80: 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69  <b>height</b> <i
cf90: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
cfa0: 62 3e 73 74 79 6c 65 4e 61 6d 65 3c 2f 62 3e 20  b>styleName</b> 
cfb0: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
cfc0: 3c 62 3e 6d 69 6d 65 54 79 70 65 3c 2f 62 3e 20  <b>mimeType</b> 
cfd0: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
cfe0: 3c 62 3e 62 67 43 6f 6c 6f 72 3c 2f 62 3e 20 3c  <b>bgColor</b> <
cff0: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
d000: 62 3e 74 72 61 6e 73 70 61 72 65 6e 74 3c 2f 62  b>transparent</b
d010: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
d020: 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e   ) : <i>BLOB</i>
d030: 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f  <br><br>.<b>RL2_
d040: 47 65 74 4d 61 70 49 6d 61 67 65 46 72 6f 6d 56  GetMapImageFromV
d050: 65 63 74 6f 72 3c 2f 62 3e 20 28 20 3c 62 3e 64  ector</b> ( <b>d
d060: 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53  bPrefix</b> <i>S
d070: 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63  tring</i> , <b>c
d080: 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20  overageName</b> 
d090: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
d0a0: 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f  <b>boundingBox</
d0b0: 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65  b> <i>BLOB-Geome
d0c0: 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64  try</i> , <b>wid
d0d0: 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  th</b> <i>Intege
d0e0: 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68  r</i> , <b>heigh
d0f0: 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  t</b> <i>Integer
d100: 3c 2f 69 3e 20 2c 20 3c 62 3e 73 74 79 6c 65 4e  </i> , <b>styleN
d110: 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ame</b> <i>Strin
d120: 67 3c 2f 69 3e 20 2c 20 3c 62 3e 6d 69 6d 65 54  g</i> , <b>mimeT
d130: 79 70 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ype</b> <i>Strin
d140: 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62 67 43 6f 6c  g</i> , <b>bgCol
d150: 6f 72 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  or</b> <i>String
d160: 3c 2f 69 3e 20 2c 20 3c 62 3e 74 72 61 6e 73 70  </i> , <b>transp
d170: 61 72 65 6e 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74  arent</b> <i>Int
d180: 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 71 75  eger</i> , <b>qu
d190: 61 6c 69 74 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74  ality</b> <i>Int
d1a0: 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e  eger</i> ) : <i>
d1b0: 42 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e  BLOB</i><br><br>
d1c0: 0a 3c 62 3e 52 4c 32 5f 47 65 74 4d 61 70 49 6d  .<b>RL2_GetMapIm
d1d0: 61 67 65 46 72 6f 6d 56 65 63 74 6f 72 3c 2f 62  ageFromVector</b
d1e0: 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c  > ( <b>dbPrefix<
d1f0: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
d200: 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e  > , <b>coverageN
d210: 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ame</b> <i>Strin
d220: 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64  g</i> , <b>bound
d230: 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c  ingBox</b> <i>BL
d240: 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20  OB-Geometry</i> 
d250: 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c  , <b>width</b> <
d260: 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
d270: 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69  <b>height</b> <i
d280: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
d290: 62 3e 73 74 79 6c 65 4e 61 6d 65 3c 2f 62 3e 20  b>styleName</b> 
d2a0: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
d2b0: 3c 62 3e 6d 69 6d 65 54 79 70 65 3c 2f 62 3e 20  <b>mimeType</b> 
d2c0: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
d2d0: 3c 62 3e 62 67 43 6f 6c 6f 72 3c 2f 62 3e 20 3c  <b>bgColor</b> <
d2e0: 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
d2f0: 62 3e 74 72 61 6e 73 70 61 72 65 6e 74 3c 2f 62  b>transparent</b
d300: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
d310: 20 2c 20 3c 62 3e 71 75 61 6c 69 74 79 3c 2f 62   , <b>quality</b
d320: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
d330: 20 2c 20 3c 62 3e 72 65 61 73 70 65 63 74 3c 2f   , <b>reaspect</
d340: 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
d350: 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69  > ) : <i>BLOB</i
d360: 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20  ></td>.<td>Will 
d370: 61 74 74 65 6d 70 74 20 74 6f 20 63 72 65 61 74  attempt to creat
d380: 65 20 61 20 64 69 67 69 74 61 6c 20 69 6d 61 67  e a digital imag
d390: 65 20 72 65 70 72 65 73 65 6e 74 69 6e 67 20 61  e representing a
d3a0: 20 53 74 79 6c 65 64 20 4d 61 70 20 66 72 6f 6d   Styled Map from
d3b0: 20 61 20 43 6f 76 65 72 61 67 65 20 6f 66 20 74   a Coverage of t
d3c0: 68 65 20 56 65 63 74 6f 72 20 74 79 70 65 2e 3c  he Vector type.<
d3d0: 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20  br>.Will return 
d3e0: 61 20 42 4c 4f 42 20 63 6f 6e 74 61 69 6e 69 6e  a BLOB containin
d3f0: 67 20 74 68 65 20 53 74 79 6c 65 64 20 4d 61 70  g the Styled Map
d400: 3a 20 6f 72 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e  : or <b>NULL</b>
d410: 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75   on invalid argu
d420: 6d 65 6e 74 73 20 6f 72 20 69 66 20 61 6e 79 20  ments or if any 
d430: 65 72 72 6f 72 20 6f 63 63 75 72 73 2e 3c 62 72  error occurs.<br
d440: 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65  >.<u>Please note
d450: 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69 3e  </u>: .<ul>.<li>
d460: 54 68 65 20 3c 62 3e 3c 69 3e 64 62 50 72 65 66  The <b><i>dbPref
d470: 69 78 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d  ix</i></b> argum
d480: 65 6e 74 20 69 73 20 69 6e 74 65 6e 64 65 64 20  ent is intended 
d490: 74 6f 20 73 70 65 63 69 66 79 20 74 68 65 20 41  to specify the A
d4a0: 54 54 41 43 48 45 44 2d 44 42 20 77 68 65 72 65  TTACHED-DB where
d4b0: 20 74 68 65 20 43 6f 76 65 72 61 67 65 20 69 73   the Coverage is
d4c0: 20 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20   expected to be 
d4d0: 66 6f 75 6e 64 3b 20 69 74 20 63 6f 75 6c 64 20  found; it could 
d4e0: 62 65 20 65 76 65 6e 74 75 61 6c 6c 79 20 3c 62  be eventually <b
d4f0: 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20 61 6e 64 20 69  >NULL</b>, and i
d500: 6e 20 74 68 69 73 20 63 61 73 65 20 74 68 65 20  n this case the 
d510: 3c 62 3e 4d 41 49 4e 20 44 42 3c 2f 62 3e 20 77  <b>MAIN DB</b> w
d520: 69 6c 6c 20 69 6d 70 6c 69 63 69 74 6c 79 20 62  ill implicitly b
d530: 65 20 61 73 73 75 6d 65 64 2e 3c 2f 6c 69 3e 0a  e assumed.</li>.
d540: 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 62 6f  <li>the <b><i>bo
d550: 75 6e 64 69 6e 67 42 6f 78 3c 2f 69 3e 3c 2f 62  undingBox</i></b
d560: 3e 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f  > is expected to
d570: 20 72 65 70 72 65 73 65 6e 74 20 74 68 65 20 6f   represent the o
d580: 76 65 72 61 6c 6c 20 65 78 74 65 6e 74 20 6f 66  verall extent of
d590: 20 74 68 65 20 53 74 79 6c 65 64 20 4d 61 70 3b   the Styled Map;
d5a0: 20 79 6f 75 20 63 6f 75 6c 64 20 65 76 65 6e 74   you could event
d5b0: 75 61 6c 6c 79 20 70 61 73 73 20 61 6e 79 20 61  ually pass any a
d5c0: 72 62 69 74 72 61 72 79 20 6b 69 6e 64 20 6f 66  rbitrary kind of
d5d0: 20 47 65 6f 6d 65 74 72 79 2c 20 61 6e 64 20 74   Geometry, and t
d5e0: 68 65 20 42 6f 75 6e 64 69 6e 67 20 42 6f 78 20  he Bounding Box 
d5f0: 61 6b 61 20 4d 42 52 20 77 69 6c 6c 20 62 65 20  aka MBR will be 
d600: 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 64 65  automatically de
d610: 74 65 72 6d 69 6e 65 64 2e 3c 2f 6c 69 3e 0a 3c  termined.</li>.<
d620: 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 73 74 79  li>the <b><i>sty
d630: 6c 65 4e 61 6d 65 3c 2f 69 3e 3c 2f 62 3e 20 63  leName</i></b> c
d640: 6f 75 6c 64 20 62 65 20 65 76 65 6e 74 75 61 6c  ould be eventual
d650: 6c 79 20 3c 62 3e 27 64 65 66 61 75 6c 74 27 3c  ly <b>'default'<
d660: 2f 62 3e 2c 20 74 68 69 73 20 63 6f 72 72 65 73  /b>, this corres
d670: 70 6f 6e 64 69 6e 67 20 74 6f 20 74 68 65 20 69  ponding to the i
d680: 6d 70 6c 69 63 69 74 20 73 74 79 6c 65 20 73 75  mplicit style su
d690: 70 70 6f 72 74 65 64 20 66 6f 72 20 61 6c 6c 20  pported for all 
d6a0: 50 69 78 65 6c 20 54 79 70 65 73 20 65 78 63 65  Pixel Types exce
d6b0: 70 74 20 4d 55 4c 54 49 42 41 4e 44 20 28 77 68  pt MULTIBAND (wh
d6c0: 69 63 68 20 61 6c 77 61 79 73 20 72 65 71 75 69  ich always requi
d6d0: 72 65 20 73 6f 6d 65 20 65 78 70 6c 69 63 69 74  re some explicit
d6e0: 20 73 74 79 6c 65 20 74 6f 20 62 65 20 61 70 70   style to be app
d6f0: 6c 69 65 64 29 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e  lied).</li>.<li>
d700: 74 68 65 20 42 6f 75 6e 64 69 6e 67 42 6f 78 20  the BoundingBox 
d710: 69 73 20 65 78 70 65 63 74 65 64 20 74 6f 20 65  is expected to e
d720: 78 61 63 74 6c 79 20 6d 61 74 63 68 20 74 68 65  xactly match the
d730: 20 69 6d 61 67 65 27 73 20 3c 62 3e 3c 69 3e 77   image's <b><i>w
d740: 69 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64  idth</i></b> and
d750: 20 3c 62 3e 3c 69 3e 68 65 69 67 68 74 3c 2f 69   <b><i>height</i
d760: 3e 3c 2f 62 3e 20 64 69 6d 65 6e 73 69 6f 6e 73  ></b> dimensions
d770: 20 61 74 20 74 68 61 74 20 72 65 73 6f 6c 75 74   at that resolut
d780: 69 6f 6e 2e 3c 62 72 3e 0a 45 78 63 65 70 74 20  ion.<br>.Except 
d790: 77 68 65 6e 20 74 68 65 20 6f 70 74 69 6f 6e 61  when the optiona
d7a0: 6c 20 61 72 67 75 6d 65 6e 74 20 3c 62 3e 3c 69  l argument <b><i
d7b0: 3e 72 65 61 73 70 65 63 74 3c 2f 69 3e 3c 2f 62  >reaspect</i></b
d7c0: 3e 20 69 73 20 73 65 74 20 74 6f 20 54 52 55 45  > is set to TRUE
d7d0: 3b 20 69 6e 20 74 68 69 73 20 6c 61 74 65 72 20  ; in this later 
d7e0: 63 61 73 65 20 65 61 63 68 20 73 69 6e 67 6c 65  case each single
d7f0: 20 61 78 69 73 20 63 6f 75 6c 64 20 62 65 20 69   axis could be i
d800: 6e 64 65 70 65 6e 64 65 6e 74 6c 79 20 72 65 73  ndependently res
d810: 63 61 6c 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e  caled.</li>.<li>
d820: 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67  the optional arg
d830: 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e 6d 69 6d 65  ument <b><i>mime
d840: 54 79 70 65 3c 2f 69 3e 3c 2f 62 3e 20 63 6f 75  Type</i></b> cou
d850: 6c 64 20 62 65 20 6f 6e 65 20 6f 66 20 3c 62 3e  ld be one of <b>
d860: 27 69 6d 61 67 65 2f 70 64 66 27 3c 2f 62 3e 2c  'image/pdf'</b>,
d870: 20 3c 62 3e 27 69 6d 61 67 65 2f 6a 70 65 67 27   <b>'image/jpeg'
d880: 3c 2f 62 3e 2c 20 3c 62 3e 27 69 6d 61 67 65 2f  </b>, <b>'image/
d890: 74 69 66 66 27 3c 2f 62 3e 20 6f 72 20 3c 62 3e  tiff'</b> or <b>
d8a0: 27 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78 2d 70  'application/x-p
d8b0: 64 66 27 3c 2f 62 3e 3b 20 64 65 66 61 75 6c 74  df'</b>; default
d8c0: 20 69 73 20 3c 62 3e 27 69 6d 61 67 65 2f 70 6e   is <b>'image/pn
d8d0: 67 27 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 6c 69  g'</b>.</li>.<li
d8e0: 3e 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 3c 62  >the optional <b
d8f0: 3e 3c 69 3e 62 67 43 6f 6c 6f 72 3c 2f 69 3e 3c  ><i>bgColor</i><
d900: 2f 62 3e 20 61 72 67 75 6d 65 6e 74 20 69 73 20  /b> argument is 
d910: 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 65  expected to be e
d920: 78 70 72 65 73 73 65 64 20 69 6e 20 74 68 65 20  xpressed in the 
d930: 63 61 6e 6f 6e 69 63 61 6c 20 57 45 42 20 48 45  canonical WEB HE
d940: 58 2d 52 47 42 20 66 6f 72 6d 2c 20 61 73 20 69  X-RGB form, as i
d950: 6e 20 3c 62 3e 27 23 66 66 38 30 38 30 27 3c 2f  n <b>'#ff8080'</
d960: 62 3e 20 28 64 65 66 61 75 6c 74 20 69 73 20 27  b> (default is '
d970: 23 66 66 66 66 66 66 27 20 69 2e 65 2e 20 66 75  #ffffff' i.e. fu
d980: 6c 6c 20 77 68 69 74 65 29 2e 3c 2f 6c 69 3e 0a  ll white).</li>.
d990: 3c 6c 69 3e 74 68 65 20 6f 70 74 69 6f 6e 61 6c  <li>the optional
d9a0: 20 3c 62 3e 3c 69 3e 74 72 61 6e 73 70 61 72 65   <b><i>transpare
d9b0: 6e 74 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d  nt</i></b> argum
d9c0: 65 6e 74 20 69 73 20 65 78 70 65 63 74 65 64 20  ent is expected 
d9d0: 74 6f 20 62 65 20 65 78 70 72 65 73 73 65 64 20  to be expressed 
d9e0: 61 73 20 61 20 42 6f 6f 6c 65 61 6e 20 76 61 6c  as a Boolean val
d9f0: 75 65 20 28 64 65 66 61 75 6c 74 20 69 73 20 3c  ue (default is <
da00: 62 3e 30 3c 2f 62 3e 20 46 41 4c 53 45 29 2e 3c  b>0</b> FALSE).<
da10: 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f  br>.<u>Please no
da20: 74 65 3c 2f 75 3e 3a 20 74 72 61 6e 73 70 61 72  te</u>: transpar
da30: 65 6e 63 79 20 69 73 20 73 75 70 70 6f 72 74 65  ency is supporte
da40: 64 20 75 6e 69 71 75 65 6c 79 20 62 79 20 50 4e  d uniquely by PN
da50: 47 20 69 6d 61 67 65 73 2e 3c 2f 6c 69 3e 0a 3c  G images.</li>.<
da60: 6c 69 3e 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20  li>the optional 
da70: 61 72 67 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e 71  argument <b><i>q
da80: 75 61 6c 69 74 79 3c 2f 69 3e 3c 2f 62 3e 20 28  uality</i></b> (
da90: 69 6e 20 74 68 65 20 72 61 6e 67 65 20 3c 62 3e  in the range <b>
daa0: 30 3c 2f 62 3e 20 2d 20 3c 62 3e 31 30 30 3c 2f  0</b> - <b>100</
dab0: 62 3e 3b 20 64 65 66 61 75 6c 74 20 3c 62 3e 38  b>; default <b>8
dac0: 30 3c 2f 62 3e 29 20 69 73 20 6d 65 61 6e 69 6e  0</b>) is meanin
dad0: 67 66 75 6c 20 6f 6e 6c 79 20 69 6e 20 74 68 65  gful only in the
dae0: 20 63 61 73 65 20 6f 66 20 4a 50 45 47 20 69 6d   case of JPEG im
daf0: 61 67 65 73 2e 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e  ages.</li>.</ul>
db00: 0a 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 0a 0a 0a 3c  .</td></tr>....<
db10: 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47 65  tr><td><b>RL2_Ge
db20: 74 53 74 79 6c 65 64 4d 61 70 49 6d 61 67 65 46  tStyledMapImageF
db30: 72 6f 6d 56 65 63 74 6f 72 3c 2f 62 3e 20 28 20  romVector</b> ( 
db40: 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20  <b>dbPrefix</b> 
db50: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
db60: 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
db70: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
db80: 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42  > , <b>boundingB
db90: 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47  ox</b> <i>BLOB-G
dba0: 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62  eometry</i> , <b
dbb0: 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e  >width</b> <i>In
dbc0: 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68  teger</i> , <b>h
dbd0: 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74  eight</b> <i>Int
dbe0: 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e  eger</i> ) : <i>
dbf0: 42 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e  BLOB</i><br><br>
dc00: 0a 3c 62 3e 52 4c 32 5f 47 65 74 53 74 79 6c 65  .<b>RL2_GetStyle
dc10: 64 4d 61 70 49 6d 61 67 65 46 72 6f 6d 56 65 63  dMapImageFromVec
dc20: 74 6f 72 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50  tor</b> ( <b>dbP
dc30: 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72  refix</b> <i>Str
dc40: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76  ing</i> , <b>cov
dc50: 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69  erageName</b> <i
dc60: 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
dc70: 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e  >boundingBox</b>
dc80: 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72   <i>BLOB-Geometr
dc90: 79 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68  y</i> , <b>width
dca0: 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
dcb0: 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c  /i> , <b>height<
dcc0: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
dcd0: 69 3e 20 2c 20 3c 62 3e 78 6d 6c 5f 73 74 79 6c  i> , <b>xml_styl
dce0: 65 3c 2f 62 3e 20 3c 69 3e 54 65 78 74 3c 2f 69  e</b> <i>Text</i
dcf0: 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69  > ) : <i>BLOB</i
dd00: 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32  ><br><br>.<b>RL2
dd10: 5f 47 65 74 53 74 79 6c 65 64 4d 61 70 49 6d 61  _GetStyledMapIma
dd20: 67 65 46 72 6f 6d 56 65 63 74 6f 72 3c 2f 62 3e  geFromVector</b>
dd30: 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f   ( <b>dbPrefix</
dd40: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
dd50: 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   , <b>coverageNa
dd60: 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
dd70: 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69  </i> , <b>boundi
dd80: 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f  ngBox</b> <i>BLO
dd90: 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c  B-Geometry</i> ,
dda0: 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69   <b>width</b> <i
ddb0: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
ddc0: 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e  b>height</b> <i>
ddd0: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
dde0: 3e 78 6d 6c 5f 73 74 79 6c 65 3c 2f 62 3e 20 3c  >xml_style</b> <
ddf0: 69 3e 54 65 78 74 3c 2f 69 3e 20 2c 20 3c 62 3e  i>Text</i> , <b>
de00: 6d 69 6d 65 54 79 70 65 3c 2f 62 3e 20 3c 69 3e  mimeType</b> <i>
de10: 53 74 72 69 6e 67 3c 2f 69 3e 20 29 20 3a 20 3c  String</i> ) : <
de20: 69 3e 42 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62  i>BLOB</i><br><b
de30: 72 3e 0a 3c 62 3e 52 4c 32 5f 47 65 74 53 74 79  r>.<b>RL2_GetSty
de40: 6c 65 64 4d 61 70 49 6d 61 67 65 46 72 6f 6d 56  ledMapImageFromV
de50: 65 63 74 6f 72 3c 2f 62 3e 20 28 20 3c 62 3e 64  ector</b> ( <b>d
de60: 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53  bPrefix</b> <i>S
de70: 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63  tring</i> , <b>c
de80: 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20  overageName</b> 
de90: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
dea0: 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f  <b>boundingBox</
deb0: 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65  b> <i>BLOB-Geome
dec0: 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64  try</i> , <b>wid
ded0: 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  th</b> <i>Intege
dee0: 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68  r</i> , <b>heigh
def0: 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  t</b> <i>Integer
df00: 3c 2f 69 3e 20 2c 20 3c 62 3e 78 6d 6c 5f 73 74  </i> , <b>xml_st
df10: 79 6c 65 3c 2f 62 3e 20 3c 69 3e 54 65 78 74 3c  yle</b> <i>Text<
df20: 2f 69 3e 20 2c 20 3c 62 3e 6d 69 6d 65 54 79 70  /i> , <b>mimeTyp
df30: 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
df40: 2f 69 3e 20 2c 20 3c 62 3e 62 67 43 6f 6c 6f 72  /i> , <b>bgColor
df50: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
df60: 69 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f  i> ) : <i>BLOB</
df70: 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c  i><br><br>.<b>RL
df80: 32 5f 47 65 74 53 74 79 6c 65 64 4d 61 70 49 6d  2_GetStyledMapIm
df90: 61 67 65 46 72 6f 6d 56 65 63 74 6f 72 3c 2f 62  ageFromVector</b
dfa0: 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c  > ( <b>dbPrefix<
dfb0: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
dfc0: 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e  > , <b>coverageN
dfd0: 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ame</b> <i>Strin
dfe0: 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64  g</i> , <b>bound
dff0: 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c  ingBox</b> <i>BL
e000: 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20  OB-Geometry</i> 
e010: 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c  , <b>width</b> <
e020: 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
e030: 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69  <b>height</b> <i
e040: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
e050: 62 3e 78 6d 6c 5f 73 74 79 6c 65 3c 2f 62 3e 20  b>xml_style</b> 
e060: 3c 69 3e 54 65 78 74 3c 2f 69 3e 20 2c 20 3c 62  <i>Text</i> , <b
e070: 3e 6d 69 6d 65 54 79 70 65 3c 2f 62 3e 20 3c 69  >mimeType</b> <i
e080: 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
e090: 3e 62 67 43 6f 6c 6f 72 3c 2f 62 3e 20 3c 69 3e  >bgColor</b> <i>
e0a0: 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
e0b0: 74 72 61 6e 73 70 61 72 65 6e 74 3c 2f 62 3e 20  transparent</b> 
e0c0: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29  <i>Integer</i> )
e0d0: 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 3c 62   : <i>BLOB</i><b
e0e0: 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 47 65  r><br>.<b>RL2_Ge
e0f0: 74 53 74 79 6c 65 64 4d 61 70 49 6d 61 67 65 46  tStyledMapImageF
e100: 72 6f 6d 56 65 63 74 6f 72 3c 2f 62 3e 20 28 20  romVector</b> ( 
e110: 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20  <b>dbPrefix</b> 
e120: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
e130: 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
e140: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
e150: 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42  > , <b>boundingB
e160: 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47  ox</b> <i>BLOB-G
e170: 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62  eometry</i> , <b
e180: 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e  >width</b> <i>In
e190: 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68  teger</i> , <b>h
e1a0: 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74  eight</b> <i>Int
e1b0: 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 78 6d  eger</i> , <b>xm
e1c0: 6c 5f 73 74 79 6c 65 3c 2f 62 3e 20 3c 69 3e 54  l_style</b> <i>T
e1d0: 65 78 74 3c 2f 69 3e 20 2c 20 3c 62 3e 6d 69 6d  ext</i> , <b>mim
e1e0: 65 54 79 70 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eType</b> <i>Str
e1f0: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62 67 43  ing</i> , <b>bgC
e200: 6f 6c 6f 72 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  olor</b> <i>Stri
e210: 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 72 61 6e  ng</i> , <b>tran
e220: 73 70 61 72 65 6e 74 3c 2f 62 3e 20 3c 69 3e 49  sparent</b> <i>I
e230: 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
e240: 71 75 61 6c 69 74 79 3c 2f 62 3e 20 3c 69 3e 49  quality</b> <i>I
e250: 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c  nteger</i> ) : <
e260: 69 3e 42 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62  i>BLOB</i><br><b
e270: 72 3e 0a 3c 62 3e 52 4c 32 5f 47 65 74 53 74 79  r>.<b>RL2_GetSty
e280: 6c 65 64 4d 61 70 49 6d 61 67 65 46 72 6f 6d 56  ledMapImageFromV
e290: 65 63 74 6f 72 3c 2f 62 3e 20 28 20 3c 62 3e 64  ector</b> ( <b>d
e2a0: 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53  bPrefix</b> <i>S
e2b0: 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63  tring</i> , <b>c
e2c0: 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20  overageName</b> 
e2d0: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
e2e0: 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f  <b>boundingBox</
e2f0: 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65  b> <i>BLOB-Geome
e300: 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64  try</i> , <b>wid
e310: 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  th</b> <i>Intege
e320: 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68  r</i> , <b>heigh
e330: 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  t</b> <i>Integer
e340: 3c 2f 69 3e 20 2c 20 3c 62 3e 78 6d 6c 5f 73 74  </i> , <b>xml_st
e350: 79 6c 65 3c 2f 62 3e 20 3c 69 3e 54 65 78 74 3c  yle</b> <i>Text<
e360: 2f 69 3e 20 2c 20 3c 62 3e 6d 69 6d 65 54 79 70  /i> , <b>mimeTyp
e370: 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
e380: 2f 69 3e 20 2c 20 3c 62 3e 62 67 43 6f 6c 6f 72  /i> , <b>bgColor
e390: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
e3a0: 69 3e 20 2c 20 3c 62 3e 74 72 61 6e 73 70 61 72  i> , <b>transpar
e3b0: 65 6e 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  ent</b> <i>Integ
e3c0: 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 71 75 61 6c  er</i> , <b>qual
e3d0: 69 74 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  ity</b> <i>Integ
e3e0: 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 72 65 61 73  er</i> , <b>reas
e3f0: 70 65 63 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  pect</b> <i>Inte
e400: 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42  ger</i> ) : <i>B
e410: 4c 4f 42 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64  LOB</i></td>.<td
e420: 3e 57 69 6c 6c 20 61 74 74 65 6d 70 74 20 74 6f  >Will attempt to
e430: 20 63 72 65 61 74 65 20 61 20 64 69 67 69 74 61   create a digita
e440: 6c 20 69 6d 61 67 65 20 72 65 70 72 65 73 65 6e  l image represen
e450: 74 69 6e 67 20 61 20 53 74 79 6c 65 64 20 4d 61  ting a Styled Ma
e460: 70 20 66 72 6f 6d 20 61 20 43 6f 76 65 72 61 67  p from a Coverag
e470: 65 20 6f 66 20 74 68 65 20 56 65 63 74 6f 72 20  e of the Vector 
e480: 74 79 70 65 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72  type.<br>.Will r
e490: 65 74 75 72 6e 20 61 20 42 4c 4f 42 20 63 6f 6e  eturn a BLOB con
e4a0: 74 61 69 6e 69 6e 67 20 74 68 65 20 53 74 79 6c  taining the Styl
e4b0: 65 64 20 4d 61 70 3a 20 6f 72 20 3c 62 3e 4e 55  ed Map: or <b>NU
e4c0: 4c 4c 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69  LL</b> on invali
e4d0: 64 20 61 72 67 75 6d 65 6e 74 73 20 6f 72 20 69  d arguments or i
e4e0: 66 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63 75  f any error occu
e4f0: 72 73 2e 3c 62 72 3e 3c 62 72 3e 0a 3c 75 3e 50  rs.<br><br>.<u>P
e500: 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20  lease note</u>: 
e510: 0a 3c 75 6c 3e 0a 3c 6c 69 3e 41 6c 6d 6f 73 74  .<ul>.<li>Almost
e520: 20 61 6c 6c 20 74 68 65 20 61 72 67 75 6d 65 6e   all the argumen
e530: 74 73 20 61 72 65 20 74 68 65 20 73 61 6d 65 20  ts are the same 
e540: 61 73 20 69 6e 20 3c 62 3e 52 4c 32 5f 47 65 74  as in <b>RL2_Get
e550: 4d 61 70 49 6d 61 67 65 46 72 6f 6d 56 65 63 74  MapImageFromVect
e560: 6f 72 28 29 3c 2f 62 3e 20 61 6e 64 20 68 61 76  or()</b> and hav
e570: 65 20 69 64 65 6e 74 69 63 61 6c 20 69 6e 74 65  e identical inte
e580: 72 70 72 65 74 61 74 69 6f 6e 2e 3c 2f 6c 69 3e  rpretation.</li>
e590: 0a 3c 6c 69 3e 54 68 65 20 6f 6e 6c 79 20 65 78  .<li>The only ex
e5a0: 63 65 70 74 69 6f 6e 20 62 65 69 6e 67 20 3c 62  ception being <b
e5b0: 3e 3c 69 3e 78 6d 6c 5f 73 74 79 6c 65 3c 2f 69  ><i>xml_style</i
e5c0: 3e 3c 2f 62 3e 20 74 68 61 74 20 69 73 20 65 78  ></b> that is ex
e5d0: 70 65 63 74 65 64 20 74 6f 20 63 6f 6e 74 61 69  pected to contai
e5e0: 6e 20 61 20 76 61 6c 69 64 20 3c 62 3e 53 4c 44  n a valid <b>SLD
e5f0: 2f 53 45 20 58 4d 4c 20 56 65 63 74 6f 72 20 53  /SE XML Vector S
e600: 79 6d 62 6f 6c 69 7a 65 72 3c 2f 62 3e 2e 3c 2f  ymbolizer</b>.</
e610: 6c 69 3e 0a 3c 2f 75 6c 3e 3c 62 72 3e 0a 3c 74  li>.</ul><br>.<t
e620: 61 62 6c 65 20 63 65 6c 6c 73 70 61 63 69 6e 67  able cellspacing
e630: 3d 22 38 22 20 63 65 6c 6c 70 61 64 64 69 6e 67  ="8" cellpadding
e640: 3d 22 38 22 20 62 67 63 6f 6c 6f 72 3d 22 23 64  ="8" bgcolor="#d
e650: 30 66 66 64 30 22 3e 3c 74 72 3e 3c 74 64 3e 0a  0ffd0"><tr><td>.
e660: 49 6e 20 6f 74 68 65 72 20 77 6f 72 64 73 3a 0a  In other words:.
e670: 3c 75 6c 3e 0a 3c 6c 69 3e 42 6f 74 68 20 3c 62  <ul>.<li>Both <b
e680: 3e 52 4c 32 5f 47 65 74 4d 61 70 49 6d 61 67 65  >RL2_GetMapImage
e690: 46 72 6f 6d 56 65 63 74 6f 72 28 29 3c 2f 62 3e  FromVector()</b>
e6a0: 20 61 6e 64 20 3c 62 3e 52 4c 32 5f 47 65 74 53   and <b>RL2_GetS
e6b0: 74 79 6c 65 64 4d 61 70 49 6d 61 67 65 46 72 6f  tyledMapImageFro
e6c0: 6d 56 65 63 74 6f 72 28 29 3c 2f 62 3e 20 61 72  mVector()</b> ar
e6d0: 65 20 76 65 72 79 20 73 69 6d 69 6c 61 72 20 69  e very similar i
e6e0: 6e 20 74 68 65 69 72 20 67 65 6e 65 72 61 6c 20  n their general 
e6f0: 62 65 68 61 76 69 6f 72 2e 20 54 68 65 20 6d 61  behavior. The ma
e700: 69 6e 20 64 69 66 66 65 72 65 6e 63 65 20 62 65  in difference be
e710: 74 77 65 65 6e 20 74 68 65 6d 20 69 73 3a 0a 3c  tween them is:.<
e720: 75 6c 3e 0a 3c 6c 69 3e 3c 62 3e 52 4c 32 5f 47  ul>.<li><b>RL2_G
e730: 65 74 4d 61 70 49 6d 61 67 65 46 72 6f 6d 56 65  etMapImageFromVe
e740: 63 74 6f 72 28 29 3c 2f 62 3e 20 61 63 63 65 70  ctor()</b> accep
e750: 74 73 20 74 68 65 20 3c 62 3e 6e 61 6d 65 3c 2f  ts the <b>name</
e760: 62 3e 20 6f 66 20 61 20 72 65 67 69 73 74 65 72  b> of a register
e770: 65 64 20 53 74 79 6c 65 2e 3c 2f 6c 69 3e 0a 3c  ed Style.</li>.<
e780: 6c 69 3e 3c 62 3e 52 4c 32 5f 47 65 74 53 74 79  li><b>RL2_GetSty
e790: 6c 65 64 4d 61 70 49 6d 61 67 65 46 72 6f 6d 56  ledMapImageFromV
e7a0: 65 63 74 6f 72 28 29 3c 2f 62 3e 20 64 69 72 65  ector()</b> dire
e7b0: 63 74 6c 79 20 61 63 63 65 70 74 73 20 61 6e 20  ctly accepts an 
e7c0: 3c 62 3e 58 4d 4c 20 53 74 79 6c 65 3c 2f 62 3e  <b>XML Style</b>
e7d0: 20 64 65 66 69 6e 69 74 69 6f 6e 2e 3c 2f 6c 69   definition.</li
e7e0: 3e 0a 3c 2f 75 6c 3e 3c 2f 6c 69 3e 0a 3c 2f 75  >.</ul></li>.</u
e7f0: 6c 3e 0a 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74  l>.</td></tr></t
e800: 61 62 6c 65 3e 0a 3c 2f 74 64 3e 3c 2f 74 72 3e  able>.</td></tr>
e810: 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f  .<tr><td><b>RL2_
e820: 47 65 74 4d 61 70 49 6d 61 67 65 46 72 6f 6d 57  GetMapImageFromW
e830: 4d 53 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72  MS</b> ( <b>dbPr
e840: 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  efix</b> <i>Stri
e850: 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65  ng</i> , <b>cove
e860: 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e  rageName</b> <i>
e870: 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
e880: 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20  boundingBox</b> 
e890: 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79  <i>BLOB-Geometry
e8a0: 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c  </i> , <b>width<
e8b0: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
e8c0: 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f  i> , <b>height</
e8d0: 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
e8e0: 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69  > ) : <i>BLOB</i
e8f0: 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32  ><br><br>.<b>RL2
e900: 5f 47 65 74 4d 61 70 49 6d 61 67 65 46 72 6f 6d  _GetMapImageFrom
e910: 57 4d 53 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50  WMS</b> ( <b>dbP
e920: 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72  refix</b> <i>Str
e930: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76  ing</i> , <b>cov
e940: 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69  erageName</b> <i
e950: 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
e960: 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e  >boundingBox</b>
e970: 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72   <i>BLOB-Geometr
e980: 79 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68  y</i> , <b>width
e990: 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
e9a0: 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c  /i> , <b>height<
e9b0: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
e9c0: 69 3e 20 2c 20 3c 62 3e 76 65 72 73 69 6f 6e 3c  i> , <b>version<
e9d0: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
e9e0: 3e 20 2c 20 3c 62 3e 73 74 79 6c 65 4e 61 6d 65  > , <b>styleName
e9f0: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
ea00: 69 3e 20 2c 20 3c 62 3e 6d 69 6d 65 54 79 70 65  i> , <b>mimeType
ea10: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
ea20: 69 3e 20 2c 20 3c 62 3e 62 67 43 6f 6c 6f 72 3c  i> , <b>bgColor<
ea30: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
ea40: 3e 20 2c 20 3c 62 3e 74 72 61 6e 73 70 61 72 65  > , <b>transpare
ea50: 6e 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  nt</b> <i>Intege
ea60: 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f  r</i> ) : <i>BLO
ea70: 42 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57  B</i></td>.<td>W
ea80: 69 6c 6c 20 61 74 74 65 6d 70 74 20 74 6f 20 63  ill attempt to c
ea90: 72 65 61 74 65 20 61 20 64 69 67 69 74 61 6c 20  reate a digital 
eaa0: 69 6d 61 67 65 20 72 65 70 72 65 73 65 6e 74 69  image representi
eab0: 6e 67 20 61 20 53 74 79 6c 65 64 20 4d 61 70 20  ng a Styled Map 
eac0: 66 72 6f 6d 20 61 20 43 6f 76 65 72 61 67 65 20  from a Coverage 
ead0: 6f 66 20 74 68 65 20 57 4d 53 20 74 79 70 65 2e  of the WMS type.
eae0: 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75 72 6e  <br>.Will return
eaf0: 20 61 20 42 4c 4f 42 20 63 6f 6e 74 61 69 6e 69   a BLOB containi
eb00: 6e 67 20 74 68 65 20 53 74 79 6c 65 64 20 4d 61  ng the Styled Ma
eb10: 70 3a 20 6f 72 20 3c 62 3e 4e 55 4c 4c 3c 2f 62  p: or <b>NULL</b
eb20: 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67  > on invalid arg
eb30: 75 6d 65 6e 74 73 20 6f 72 20 69 66 20 61 6e 79  uments or if any
eb40: 20 65 72 72 6f 72 20 6f 63 63 75 72 73 2e 3c 62   error occurs.<b
eb50: 72 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74  r>.<u>Please not
eb60: 65 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69  e</u>: .<ul>.<li
eb70: 3e 54 68 65 20 3c 62 3e 3c 69 3e 64 62 50 72 65  >The <b><i>dbPre
eb80: 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75  fix</i></b> argu
eb90: 6d 65 6e 74 20 69 73 20 69 6e 74 65 6e 64 65 64  ment is intended
eba0: 20 74 6f 20 73 70 65 63 69 66 79 20 74 68 65 20   to specify the 
ebb0: 41 54 54 41 43 48 45 44 2d 44 42 20 77 68 65 72  ATTACHED-DB wher
ebc0: 65 20 74 68 65 20 43 6f 76 65 72 61 67 65 20 69  e the Coverage i
ebd0: 73 20 65 78 70 65 63 74 65 64 20 74 6f 20 62 65  s expected to be
ebe0: 20 66 6f 75 6e 64 3b 20 69 74 20 63 6f 75 6c 64   found; it could
ebf0: 20 62 65 20 65 76 65 6e 74 75 61 6c 6c 79 20 3c   be eventually <
ec00: 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20 61 6e 64 20  b>NULL</b>, and 
ec10: 69 6e 20 74 68 69 73 20 63 61 73 65 20 74 68 65  in this case the
ec20: 20 3c 62 3e 4d 41 49 4e 20 44 42 3c 2f 62 3e 20   <b>MAIN DB</b> 
ec30: 77 69 6c 6c 20 69 6d 70 6c 69 63 69 74 6c 79 20  will implicitly 
ec40: 62 65 20 61 73 73 75 6d 65 64 2e 3c 2f 6c 69 3e  be assumed.</li>
ec50: 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 62  .<li>the <b><i>b
ec60: 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 69 3e 3c 2f  oundingBox</i></
ec70: 62 3e 20 69 73 20 65 78 70 65 63 74 65 64 20 74  b> is expected t
ec80: 6f 20 72 65 70 72 65 73 65 6e 74 20 74 68 65 20  o represent the 
ec90: 6f 76 65 72 61 6c 6c 20 65 78 74 65 6e 74 20 6f  overall extent o
eca0: 66 20 74 68 65 20 53 74 79 6c 65 64 20 4d 61 70  f the Styled Map
ecb0: 3b 20 79 6f 75 20 63 6f 75 6c 64 20 65 76 65 6e  ; you could even
ecc0: 74 75 61 6c 6c 79 20 70 61 73 73 20 61 6e 79 20  tually pass any 
ecd0: 61 72 62 69 74 72 61 72 79 20 6b 69 6e 64 20 6f  arbitrary kind o
ece0: 66 20 47 65 6f 6d 65 74 72 79 2c 20 61 6e 64 20  f Geometry, and 
ecf0: 74 68 65 20 42 6f 75 6e 64 69 6e 67 20 42 6f 78  the Bounding Box
ed00: 20 61 6b 61 20 4d 42 52 20 77 69 6c 6c 20 62 65   aka MBR will be
ed10: 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 64   automatically d
ed20: 65 74 65 72 6d 69 6e 65 64 2e 3c 2f 6c 69 3e 0a  etermined.</li>.
ed30: 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 76 65  <li>the <b><i>ve
ed40: 72 73 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 61 72  rsion</i></b> ar
ed50: 67 75 6d 65 6e 74 20 64 65 74 65 72 6d 69 6e 77  gument determinw
ed60: 73 20 77 68 69 63 68 20 76 65 72 73 69 6f 6e 20  s which version 
ed70: 6f 66 20 74 68 65 20 57 4d 53 20 70 72 6f 74 6f  of the WMS proto
ed80: 63 6f 6c 20 73 68 6f 75 6c 64 20 62 65 20 75 73  col should be us
ed90: 65 64 2e 3c 62 72 3e 0a 56 61 6c 69 64 20 76 61  ed.<br>.Valid va
eda0: 6c 75 65 73 20 61 72 65 3a 20 3c 62 3e 31 2e 30  lues are: <b>1.0
edb0: 2e 30 3c 2f 62 3e 2c 20 3c 62 3e 31 2e 31 2e 30  .0</b>, <b>1.1.0
edc0: 3c 2f 62 3e 2c 20 3c 62 3e 31 2e 31 2e 31 3c 2f  </b>, <b>1.1.1</
edd0: 62 3e 20 61 6e 64 20 3c 62 3e 31 2e 33 2e 30 3c  b> and <b>1.3.0<
ede0: 2f 62 3e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65  /b></li>.<li>the
edf0: 20 3c 62 3e 3c 69 3e 73 74 79 6c 65 4e 61 6d 65   <b><i>styleName
ee00: 3c 2f 69 3e 3c 2f 62 3e 20 63 6f 75 6c 64 20 62  </i></b> could b
ee10: 65 20 65 76 65 6e 74 75 61 6c 6c 79 20 3c 62 3e  e eventually <b>
ee20: 27 64 65 66 61 75 6c 74 27 3c 2f 62 3e 20 28 69  'default'</b> (i
ee30: 74 20 64 65 70 65 6e 64 73 20 6f 6e 20 74 68 65  t depends on the
ee40: 20 73 70 65 63 69 66 69 63 20 63 61 70 61 62 69   specific capabi
ee50: 6c 69 74 65 73 20 64 65 63 6c 61 72 65 64 20 66  lites declared f
ee60: 72 6f 6d 20 74 68 65 20 72 65 6d 6f 74 65 20 73  rom the remote s
ee70: 65 72 76 65 72 29 2e 3c 2f 6c 69 3e 0a 3c 6c 69  erver).</li>.<li
ee80: 3e 74 68 65 20 42 6f 75 6e 64 69 6e 67 42 6f 78  >the BoundingBox
ee90: 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f 20   is expected to 
eea0: 65 78 61 63 74 6c 79 20 6d 61 74 63 68 20 74 68  exactly match th
eeb0: 65 20 69 6d 61 67 65 27 73 20 3c 62 3e 3c 69 3e  e image's <b><i>
eec0: 77 69 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20 61 6e  width</i></b> an
eed0: 64 20 3c 62 3e 3c 69 3e 68 65 69 67 68 74 3c 2f  d <b><i>height</
eee0: 69 3e 3c 2f 62 3e 20 64 69 6d 65 6e 73 69 6f 6e  i></b> dimension
eef0: 73 20 61 74 20 74 68 61 74 20 72 65 73 6f 6c 75  s at that resolu
ef00: 74 69 6f 6e 2e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e  tion..</li>.<li>
ef10: 74 68 65 20 61 72 67 75 6d 65 6e 74 20 3c 62 3e  the argument <b>
ef20: 3c 69 3e 6d 69 6d 65 54 79 70 65 3c 2f 69 3e 3c  <i>mimeType</i><
ef30: 2f 62 3e 20 63 6f 75 6c 64 20 75 73 75 61 6c 6c  /b> could usuall
ef40: 79 20 62 65 20 6f 6e 65 20 6f 66 20 3c 62 3e 27  y be one of <b>'
ef50: 69 6d 61 67 65 2f 70 64 66 27 3c 2f 62 3e 2c 20  image/pdf'</b>, 
ef60: 3c 62 3e 27 69 6d 61 67 65 2f 6a 70 65 67 27 3c  <b>'image/jpeg'<
ef70: 2f 62 3e 20 6f 72 20 3c 62 3e 27 69 6d 61 67 65  /b> or <b>'image
ef80: 2f 74 69 66 66 27 3c 2f 62 3e 20 28 69 74 20 64  /tiff'</b> (it d
ef90: 65 70 65 6e 64 73 20 6f 6e 20 74 68 65 20 73 70  epends on the sp
efa0: 65 63 69 66 69 63 20 63 61 70 61 62 69 6c 69 74  ecific capabilit
efb0: 65 73 20 64 65 63 6c 61 72 65 64 20 66 72 6f 6d  es declared from
efc0: 20 74 68 65 20 72 65 6d 6f 74 65 20 73 65 72 76   the remote serv
efd0: 65 72 29 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68  er).</li>.<li>th
efe0: 65 20 6f 70 74 69 6f 6e 61 6c 20 3c 62 3e 3c 69  e optional <b><i
eff0: 3e 62 67 43 6f 6c 6f 72 3c 2f 69 3e 3c 2f 62 3e  >bgColor</i></b>
f000: 20 61 72 67 75 6d 65 6e 74 20 69 73 20 65 78 70   argument is exp
f010: 65 63 74 65 64 20 74 6f 20 62 65 20 65 78 70 72  ected to be expr
f020: 65 73 73 65 64 20 69 6e 20 74 68 65 20 63 61 6e  essed in the can
f030: 6f 6e 69 63 61 6c 20 57 45 42 20 48 45 58 2d 52  onical WEB HEX-R
f040: 47 42 20 66 6f 72 6d 2c 20 61 73 20 69 6e 20 3c  GB form, as in <
f050: 62 3e 27 23 66 66 38 30 38 30 27 3c 2f 62 3e 20  b>'#ff8080'</b> 
f060: 28 64 65 66 61 75 6c 74 20 69 73 20 27 23 66 66  (default is '#ff
f070: 66 66 66 66 27 20 69 2e 65 2e 20 66 75 6c 6c 20  ffff' i.e. full 
f080: 77 68 69 74 65 29 2e 3c 2f 6c 69 3e 0a 3c 6c 69  white).</li>.<li
f090: 3e 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 3c 62  >the optional <b
f0a0: 3e 3c 69 3e 74 72 61 6e 73 70 61 72 65 6e 74 3c  ><i>transparent<
f0b0: 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74  /i></b> argument
f0c0: 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f 20   is expected to 
f0d0: 62 65 20 65 78 70 72 65 73 73 65 64 20 61 73 20  be expressed as 
f0e0: 61 20 42 6f 6f 6c 65 61 6e 20 76 61 6c 75 65 20  a Boolean value 
f0f0: 28 64 65 66 61 75 6c 74 20 69 73 20 3c 62 3e 30  (default is <b>0
f100: 3c 2f 62 3e 20 46 41 4c 53 45 29 2e 3c 62 72 3e  </b> FALSE).<br>
f110: 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c  .<u>Please note<
f120: 2f 75 3e 3a 20 74 72 61 6e 73 70 61 72 65 6e 63  /u>: transparenc
f130: 79 20 69 73 20 73 75 70 70 6f 72 74 65 64 20 75  y is supported u
f140: 6e 69 71 75 65 6c 79 20 62 79 20 50 4e 47 20 69  niquely by PNG i
f150: 6d 61 67 65 73 2e 3c 2f 6c 69 3e 0a 3c 2f 75 6c  mages.</li>.</ul
f160: 3e 0a 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 3c 74 72  >.</td></tr>.<tr
f170: 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f 47 65 74 49  ><td><b>RL2_GetI
f180: 6d 61 67 65 46 72 6f 6d 4d 61 70 43 6f 6e 66 69  mageFromMapConfi
f190: 67 75 72 61 74 69 6f 6e 3c 2f 62 3e 20 28 20 3c  guration</b> ( <
f1a0: 62 3e 63 6f 6e 66 69 67 4e 61 6d 65 3c 2f 62 3e  b>configName</b>
f1b0: 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
f1c0: 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c   <b>boundingBox<
f1d0: 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d  /b> <i>BLOB-Geom
f1e0: 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69  etry</i> , <b>wi
f1f0: 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  dth</b> <i>Integ
f200: 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67  er</i> , <b>heig
f210: 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
f220: 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f  r</i> ) : <i>BLO
f230: 42 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62  B</i><br><br>.<b
f240: 3e 52 4c 32 5f 47 65 74 49 6d 61 67 65 46 72 6f  >RL2_GetImageFro
f250: 6d 4d 61 70 43 6f 6e 66 69 67 75 72 61 74 69 6f  mMapConfiguratio
f260: 6e 3c 2f 62 3e 20 28 20 3c 62 3e 63 6f 6e 66 69  n</b> ( <b>confi
f270: 67 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  gName</b> <i>Str
f280: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75  ing</i> , <b>bou
f290: 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e  ndingBox</b> <i>
f2a0: 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69  BLOB-Geometry</i
f2b0: 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e  > , <b>width</b>
f2c0: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
f2d0: 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20  , <b>height</b> 
f2e0: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
f2f0: 20 3c 62 3e 6d 69 6d 65 54 79 70 65 3c 2f 62 3e   <b>mimeType</b>
f300: 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 29   <i>String</i> )
f310: 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69 3e 3c 62   : <i>BLOB</i><b
f320: 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 47 65  r><br>.<b>RL2_Ge
f330: 74 49 6d 61 67 65 46 72 6f 6d 4d 61 70 43 6f 6e  tImageFromMapCon
f340: 66 69 67 75 72 61 74 69 6f 6e 3c 2f 62 3e 20 28  figuration</b> (
f350: 20 3c 62 3e 63 6f 6e 66 69 67 4e 61 6d 65 3c 2f   <b>configName</
f360: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
f370: 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f   , <b>boundingBo
f380: 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65  x</b> <i>BLOB-Ge
f390: 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e  ometry</i> , <b>
f3a0: 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74  width</b> <i>Int
f3b0: 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65  eger</i> , <b>he
f3c0: 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  ight</b> <i>Inte
f3d0: 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 6d 69 6d  ger</i> , <b>mim
f3e0: 65 54 79 70 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eType</b> <i>Str
f3f0: 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 71 75 61  ing</i> , <b>qua
f400: 6c 69 74 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  lity</b> <i>Inte
f410: 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 42  ger</i> ) : <i>B
f420: 4c 4f 42 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a  LOB</i><br><br>.
f430: 3c 62 3e 52 4c 32 5f 47 65 74 49 6d 61 67 65 46  <b>RL2_GetImageF
f440: 72 6f 6d 4d 61 70 43 6f 6e 66 69 67 75 72 61 74  romMapConfigurat
f450: 69 6f 6e 3c 2f 62 3e 20 28 20 3c 62 3e 63 6f 6e  ion</b> ( <b>con
f460: 66 69 67 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53  figName</b> <i>S
f470: 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62  tring</i> , <b>b
f480: 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c  oundingBox</b> <
f490: 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c  i>BLOB-Geometry<
f4a0: 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f  /i> , <b>width</
f4b0: 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
f4c0: 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62  > , <b>height</b
f4d0: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
f4e0: 20 2c 20 3c 62 3e 6d 69 6d 65 54 79 70 65 3c 2f   , <b>mimeType</
f4f0: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
f500: 20 2c 20 3c 62 3e 71 75 61 6c 69 74 79 3c 2f 62   , <b>quality</b
f510: 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
f520: 20 2c 20 3c 62 3e 72 65 61 73 70 65 63 74 3c 2f   , <b>reaspect</
f530: 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
f540: 3e 20 29 20 3a 20 3c 69 3e 42 4c 4f 42 3c 2f 69  > ) : <i>BLOB</i
f550: 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20  ></td>.<td>Will 
f560: 61 74 74 65 6d 70 74 20 74 6f 20 63 72 65 61 74  attempt to creat
f570: 65 20 61 20 64 69 67 69 74 61 6c 20 69 6d 61 67  e a digital imag
f580: 65 20 72 65 70 72 65 73 65 6e 74 69 6e 67 20 61  e representing a
f590: 20 63 6f 6d 70 6c 65 78 2c 20 6d 75 6c 74 69 2d   complex, multi-
f5a0: 6c 61 79 65 72 65 64 20 53 74 79 6c 65 64 20 4d  layered Styled M
f5b0: 61 70 20 66 72 6f 6d 20 61 20 72 65 67 69 73 74  ap from a regist
f5c0: 65 72 65 64 20 4d 61 70 43 6f 6e 66 69 67 75 72  ered MapConfigur
f5d0: 61 74 69 6f 6e 2e 3c 62 72 3e 0a 57 69 6c 6c 20  ation.<br>.Will 
f5e0: 72 65 74 75 72 6e 20 61 20 42 4c 4f 42 20 63 6f  return a BLOB co
f5f0: 6e 74 61 69 6e 69 6e 67 20 74 68 65 20 53 74 79  ntaining the Sty
f600: 6c 65 64 20 4d 61 70 3a 20 6f 72 20 3c 62 3e 4e  led Map: or <b>N
f610: 55 4c 4c 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c  ULL</b> on inval
f620: 69 64 20 61 72 67 75 6d 65 6e 74 73 20 6f 72 20  id arguments or 
f630: 69 66 20 61 6e 79 20 65 72 72 6f 72 20 6f 63 63  if any error occ
f640: 75 72 73 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61  urs.<br>.<u>Plea
f650: 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75  se note</u>: .<u
f660: 6c 3e 0a 3c 6c 69 3e 54 68 65 20 3c 62 3e 3c 69  l>.<li>The <b><i
f670: 3e 63 6f 6e 66 69 67 4e 61 6d 65 3c 2f 69 3e 3c  >configName</i><
f680: 2f 62 3e 20 61 72 67 75 6d 65 6e 74 20 69 73 20  /b> argument is 
f690: 69 6e 74 65 6e 64 65 64 20 74 6f 20 73 70 65 63  intended to spec
f6a0: 69 66 79 20 77 68 69 63 68 20 6f 66 20 74 68 65  ify which of the
f6b0: 20 72 65 67 69 73 74 65 72 65 64 20 4d 61 70 43   registered MapC
f6c0: 6f 6e 66 69 67 75 72 61 74 69 6f 6e 73 20 73 68  onfigurations sh
f6d0: 6f 75 6c 64 20 62 65 20 75 73 65 64 2e 3c 62 72  ould be used.<br
f6e0: 3e 0a 3c 62 3e 4e 6f 74 65 3c 2f 62 3e 3a 20 74  >.<b>Note</b>: t
f6f0: 68 65 20 72 65 71 75 69 72 65 64 20 4d 61 70 43  he required MapC
f700: 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 6d 75 73  onfiguration mus
f710: 74 20 62 65 20 72 65 67 69 73 74 65 72 65 64 20  t be registered 
f720: 69 6e 74 6f 20 74 68 65 20 3c 62 3e 4d 41 49 4e  into the <b>MAIN
f730: 20 44 42 3c 2f 62 3e 3c 2f 6c 69 3e 0a 3c 6c 69   DB</b></li>.<li
f740: 3e 74 68 65 20 3c 62 3e 3c 69 3e 62 6f 75 6e 64  >the <b><i>bound
f750: 69 6e 67 42 6f 78 3c 2f 69 3e 3c 2f 62 3e 20 69  ingBox</i></b> i
f760: 73 20 65 78 70 65 63 74 65 64 20 74 6f 20 72 65  s expected to re
f770: 70 72 65 73 65 6e 74 20 74 68 65 20 6f 76 65 72  present the over
f780: 61 6c 6c 20 65 78 74 65 6e 74 20 6f 66 20 74 68  all extent of th
f790: 65 20 53 74 79 6c 65 64 20 4d 61 70 3b 20 79 6f  e Styled Map; yo
f7a0: 75 20 63 6f 75 6c 64 20 65 76 65 6e 74 75 61 6c  u could eventual
f7b0: 6c 79 20 70 61 73 73 20 61 6e 79 20 61 72 62 69  ly pass any arbi
f7c0: 74 72 61 72 79 20 6b 69 6e 64 20 6f 66 20 47 65  trary kind of Ge
f7d0: 6f 6d 65 74 72 79 2c 20 61 6e 64 20 74 68 65 20  ometry, and the 
f7e0: 42 6f 75 6e 64 69 6e 67 20 42 6f 78 20 61 6b 61  Bounding Box aka
f7f0: 20 4d 42 52 20 77 69 6c 6c 20 62 65 20 61 75 74   MBR will be aut
f800: 6f 6d 61 74 69 63 61 6c 6c 79 20 64 65 74 65 72  omatically deter
f810: 6d 69 6e 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e  mined.</li>.<li>
f820: 74 68 65 20 42 6f 75 6e 64 69 6e 67 42 6f 78 20  the BoundingBox 
f830: 69 73 20 65 78 70 65 63 74 65 64 20 74 6f 20 65  is expected to e
f840: 78 61 63 74 6c 79 20 6d 61 74 63 68 20 74 68 65  xactly match the
f850: 20 69 6d 61 67 65 27 73 20 3c 62 3e 3c 69 3e 77   image's <b><i>w
f860: 69 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64  idth</i></b> and
f870: 20 3c 62 3e 3c 69 3e 68 65 69 67 68 74 3c 2f 69   <b><i>height</i
f880: 3e 3c 2f 62 3e 20 64 69 6d 65 6e 73 69 6f 6e 73  ></b> dimensions
f890: 20 61 74 20 74 68 61 74 20 72 65 73 6f 6c 75 74   at that resolut
f8a0: 69 6f 6e 2e 3c 62 72 3e 0a 45 78 63 65 70 74 20  ion.<br>.Except 
f8b0: 77 68 65 6e 20 74 68 65 20 6f 70 74 69 6f 6e 61  when the optiona
f8c0: 6c 20 61 72 67 75 6d 65 6e 74 20 3c 62 3e 3c 69  l argument <b><i
f8d0: 3e 72 65 61 73 70 65 63 74 3c 2f 69 3e 3c 2f 62  >reaspect</i></b
f8e0: 3e 20 69 73 20 73 65 74 20 74 6f 20 54 52 55 45  > is set to TRUE
f8f0: 3b 20 69 6e 20 74 68 69 73 20 6c 61 74 65 72 20  ; in this later 
f900: 63 61 73 65 20 65 61 63 68 20 73 69 6e 67 6c 65  case each single
f910: 20 61 78 69 73 20 63 6f 75 6c 64 20 62 65 20 69   axis could be i
f920: 6e 64 65 70 65 6e 64 65 6e 74 6c 79 20 72 65 73  ndependently res
f930: 63 61 6c 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e  caled.</li>.<li>
f940: 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67  the optional arg
f950: 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e 6d 69 6d 65  ument <b><i>mime
f960: 54 79 70 65 3c 2f 69 3e 3c 2f 62 3e 20 63 6f 75  Type</i></b> cou
f970: 6c 64 20 62 65 20 6f 6e 65 20 6f 66 20 3c 62 3e  ld be one of <b>
f980: 27 69 6d 61 67 65 2f 70 64 66 27 3c 2f 62 3e 2c  'image/pdf'</b>,
f990: 20 3c 62 3e 27 69 6d 61 67 65 2f 6a 70 65 67 27   <b>'image/jpeg'
f9a0: 3c 2f 62 3e 2c 20 3c 62 3e 27 69 6d 61 67 65 2f  </b>, <b>'image/
f9b0: 74 69 66 66 27 3c 2f 62 3e 20 6f 72 20 3c 62 3e  tiff'</b> or <b>
f9c0: 27 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78 2d 70  'application/x-p
f9d0: 64 66 27 3c 2f 62 3e 3b 20 64 65 66 61 75 6c 74  df'</b>; default
f9e0: 20 69 73 20 3c 62 3e 27 69 6d 61 67 65 2f 70 6e   is <b>'image/pn
f9f0: 67 27 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 6c 69  g'</b>.</li>.<li
fa00: 3e 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72  >the optional ar
fa10: 67 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e 71 75 61  gument <b><i>qua
fa20: 6c 69 74 79 3c 2f 69 3e 3c 2f 62 3e 20 28 69 6e  lity</i></b> (in
fa30: 20 74 68 65 20 72 61 6e 67 65 20 3c 62 3e 30 3c   the range <b>0<
fa40: 2f 62 3e 20 2d 20 3c 62 3e 31 30 30 3c 2f 62 3e  /b> - <b>100</b>
fa50: 3b 20 64 65 66 61 75 6c 74 20 3c 62 3e 38 30 3c  ; default <b>80<
fa60: 2f 62 3e 29 20 69 73 20 6d 65 61 6e 69 6e 67 66  /b>) is meaningf
fa70: 75 6c 20 6f 6e 6c 79 20 69 6e 20 74 68 65 20 63  ul only in the c
fa80: 61 73 65 20 6f 66 20 4a 50 45 47 20 69 6d 61 67  ase of JPEG imag
fa90: 65 73 2e 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 0a 3c  es.</li>.</ul>.<
faa0: 2f 74 64 3e 3c 2f 74 72 3e 0a 3c 2f 74 61 62 6c  /td></tr>.</tabl
fab0: 65 3e 3c 62 72 3e 0a 3c 68 72 3e 0a 3c 68 32 3e  e><br>.<hr>.<h2>
fac0: 53 51 4c 20 66 75 6e 63 74 69 6f 6e 73 20 69 6d  SQL functions im
fad0: 70 6f 72 74 69 6e 67 20 72 61 73 74 65 72 20 64  porting raster d
fae0: 61 74 61 20 66 72 6f 6d 20 65 78 74 65 72 6e 61  ata from externa
faf0: 6c 20 64 61 74 61 73 6f 75 72 63 65 73 3c 2f 68  l datasources</h
fb00: 32 3e 20 0a 3c 74 61 62 6c 65 20 77 69 64 74 68  2> .<table width
fb10: 3d 22 31 30 30 25 22 20 62 6f 72 64 65 72 3d 22  ="100%" border="
fb20: 31 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 66  1" bgcolor="#fff
fb30: 66 65 30 22 20 63 65 6c 6c 65 73 70 61 63 69 6e  fe0" cellespacin
fb40: 67 3d 22 34 22 20 63 65 6c 6c 70 61 64 64 69 6e  g="4" cellpaddin
fb50: 67 3d 22 36 22 3e 0a 3c 74 72 3e 3c 74 68 20 62  g="6">.<tr><th b
fb60: 67 63 6f 6c 6f 72 3d 22 23 65 30 65 30 65 30 22  gcolor="#e0e0e0"
fb70: 20 77 69 64 74 68 3d 22 35 30 25 22 3e 53 79 6e   width="50%">Syn
fb80: 74 61 78 3c 2f 74 68 3e 3c 74 68 20 62 67 63 6f  tax</th><th bgco
fb90: 6c 6f 72 3d 22 23 65 30 65 30 65 30 22 20 77 69  lor="#e0e0e0" wi
fba0: 64 74 68 3d 22 35 30 25 22 3e 53 75 6d 6d 61 72  dth="50%">Summar
fbb0: 79 3c 2f 74 68 3e 3c 2f 74 72 3e 0a 3c 74 72 3e  y</th></tr>.<tr>
fbc0: 3c 74 64 3e 3c 62 3e 52 4c 32 5f 4c 6f 61 64 52  <td><b>RL2_LoadR
fbd0: 61 73 74 65 72 3c 2f 62 3e 20 28 20 3c 62 3e 63  aster</b> ( <b>c
fbe0: 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20  overageName</b> 
fbf0: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
fc00: 3c 62 3e 73 6f 75 72 63 65 50 61 74 68 3c 2f 62  <b>sourcePath</b
fc10: 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
fc20: 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
fc30: 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c  i><br><br>.<b>RL
fc40: 32 5f 4c 6f 61 64 52 61 73 74 65 72 3c 2f 62 3e  2_LoadRaster</b>
fc50: 20 28 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   ( <b>coverageNa
fc60: 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
fc70: 3c 2f 69 3e 20 2c 20 3c 62 3e 73 6f 75 72 63 65  </i> , <b>source
fc80: 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Path</b> <i>Stri
fc90: 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 74 68  ng</i> , <b>with
fca0: 57 6f 72 6c 64 46 69 6c 65 3c 2f 62 3e 20 3c 69  WorldFile</b> <i
fcb0: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a  >Integer</i> ) :
fcc0: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
fcd0: 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 4c  br><br>.<b>RL2_L
fce0: 6f 61 64 52 61 73 74 65 72 3c 2f 62 3e 20 28 20  oadRaster</b> ( 
fcf0: 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
fd00: 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
fd10: 3e 20 2c 20 3c 62 3e 73 6f 75 72 63 65 50 61 74  > , <b>sourcePat
fd20: 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  h</b> <i>String<
fd30: 2f 69 3e 20 2c 20 3c 62 3e 77 69 74 68 57 6f 72  /i> , <b>withWor
fd40: 6c 64 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e 49 6e  ldFile</b> <i>In
fd50: 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 66  teger</i> , <b>f
fd60: 6f 72 63 65 53 52 49 44 3c 2f 62 3e 20 3c 69 3e  orceSRID</b> <i>
fd70: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20  Integer</i> ) : 
fd80: 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62  <i>Integer</i><b
fd90: 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 4c 6f  r><br>.<b>RL2_Lo
fda0: 61 64 52 61 73 74 65 72 3c 2f 62 3e 20 28 20 3c  adRaster</b> ( <
fdb0: 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f  b>coverageName</
fdc0: 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
fdd0: 20 2c 20 3c 62 3e 73 6f 75 72 63 65 50 61 74 68   , <b>sourcePath
fde0: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
fdf0: 69 3e 20 2c 20 3c 62 3e 77 69 74 68 57 6f 72 6c  i> , <b>withWorl
fe00: 64 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74  dFile</b> <i>Int
fe10: 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 66 6f  eger</i> , <b>fo
fe20: 72 63 65 53 52 49 44 3c 2f 62 3e 20 3c 69 3e 49  rceSRID</b> <i>I
fe30: 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
fe40: 70 79 72 61 6d 69 64 69 7a 65 3c 2f 62 3e 20 3c  pyramidize</b> <
fe50: 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20  i>Integer</i> ) 
fe60: 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  : <i>Integer</i>
fe70: 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f  <br><br>.<b>RL2_
fe80: 4c 6f 61 64 52 61 73 74 65 72 3c 2f 62 3e 20 28  LoadRaster</b> (
fe90: 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65   <b>coverageName
fea0: 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
feb0: 69 3e 20 2c 20 3c 62 3e 73 6f 75 72 63 65 50 61  i> , <b>sourcePa
fec0: 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  th</b> <i>String
fed0: 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 74 68 57 6f  </i> , <b>withWo
fee0: 72 6c 64 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e 49  rldFile</b> <i>I
fef0: 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
ff00: 66 6f 72 63 65 53 52 49 44 3c 2f 62 3e 20 3c 69  forceSRID</b> <i
ff10: 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
ff20: 62 3e 70 79 72 61 6d 69 64 69 7a 65 3c 2f 62 3e  b>pyramidize</b>
ff30: 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 2c   <i>Integer</i>,
ff40: 20 3c 62 3e 74 72 61 6e 73 61 63 74 69 6f 6e 3c   <b>transaction<
ff50: 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
ff60: 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65  i> ) : <i>Intege
ff70: 72 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57  r</i></td>.<td>W
ff80: 69 6c 6c 20 61 74 74 65 6d 70 74 20 74 6f 20 63  ill attempt to c
ff90: 72 65 61 74 65 20 61 6e 64 20 70 6f 70 75 6c 61  reate and popula
ffa0: 74 65 20 61 20 6e 65 77 20 53 65 63 74 69 6f 6e  te a new Section
ffb0: 20 77 69 74 68 69 6e 20 61 20 43 6f 76 65 72 61   within a Covera
ffc0: 67 65 20 62 79 20 69 6d 70 6f 72 74 69 6e 67 20  ge by importing 
ffd0: 61 6e 20 65 78 74 65 72 6e 61 6c 20 66 69 6c 65  an external file
ffe0: 2d 62 61 73 65 64 20 72 61 73 74 65 72 20 64 61  -based raster da
fff0: 74 61 73 6f 75 72 63 65 20 28 6f 66 20 74 68 65  tasource (of the
10000 20 4a 50 45 47 2c 20 54 49 46 46 2c 20 47 65 6f   JPEG, TIFF, Geo
10010 54 69 66 66 20 6f 72 20 41 53 43 49 49 20 47 72  Tiff or ASCII Gr
10020 69 64 20 74 79 70 65 29 2e 3c 62 72 3e 0a 57 69  id type).<br>.Wi
10030 6c 6c 20 72 65 74 75 72 6e 20 3c 62 3e 31 3c 2f  ll return <b>1</
10040 62 3e 20 28 54 52 55 45 2f 53 55 43 43 45 53 53  b> (TRUE/SUCCESS
10050 29 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46  ) or <b>0</b> (F
10060 41 4c 53 45 2f 46 41 49 4c 55 52 45 29 3a 20 6f  ALSE/FAILURE): o
10070 72 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20 69  r <b>-1</b> on i
10080 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73  nvalid arguments
10090 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65 20  .<br>.<u>Please 
100a0 6e 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a  note</u>: .<ul>.
100b0 3c 6c 69 3e 69 66 20 74 68 65 20 6f 70 74 69 6f  <li>if the optio
100c0 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 3c 62 3e  nal argument <b>
100d0 3c 69 3e 77 69 74 68 57 6f 72 6c 64 46 69 6c 65  <i>withWorldFile
100e0 3c 2f 69 3e 3c 2f 62 3e 20 28 65 78 70 65 63 74  </i></b> (expect
100f0 65 64 20 74 6f 20 62 65 20 6f 66 20 74 68 65 20  ed to be of the 
10100 42 6f 6f 6c 65 61 6e 20 74 79 70 65 29 20 69 73  Boolean type) is
10110 20 73 65 74 20 74 6f 20 54 52 55 45 2c 20 74 68   set to TRUE, th
10120 65 6e 20 61 20 63 6f 72 72 65 73 70 6f 6e 64 69  en a correspondi
10130 6e 67 20 57 6f 72 6c 64 46 69 6c 65 20 69 73 20  ng WorldFile is 
10140 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 66  expected to be f
10150 6f 75 6e 64 20 61 6e 64 20 77 69 6c 6c 20 62 65  ound and will be
10160 20 75 73 65 64 20 74 6f 20 67 6f 65 72 65 66 65   used to goerefe
10170 6e 63 65 20 74 68 65 20 72 61 73 74 65 72 2e 3c  nce the raster.<
10180 2f 6c 69 3e 0a 3c 6c 69 3e 69 66 20 74 68 65 20  /li>.<li>if the 
10190 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e  optional argumen
101a0 74 20 3c 62 3e 3c 69 3e 66 6f 72 63 65 53 52 49  t <b><i>forceSRI
101b0 44 3c 2f 69 3e 3c 2f 62 3e 20 69 73 20 65 78 70  D</i></b> is exp
101c0 6c 69 63 69 74 20 73 65 74 2c 20 74 68 61 6e 20  licit set, than 
101d0 69 74 73 20 76 61 6c 75 65 20 77 69 6c 6c 20 62  its value will b
101e0 65 20 61 73 73 75 6d 65 64 20 74 6f 20 72 65 70  e assumed to rep
101f0 72 65 73 65 6e 74 20 74 68 65 20 53 52 49 44 20  resent the SRID 
10200 64 65 63 6c 61 72 65 64 20 62 79 20 74 68 65 20  declared by the 
10210 65 78 74 65 72 6e 61 6c 20 64 61 74 61 73 6f 75  external datasou
10220 72 63 65 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61  rce.<br>.<u>Plea
10230 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 64 65 63  se note</u>: dec
10240 6c 61 72 69 6e 67 20 73 6f 6d 65 20 66 6f 72 63  laring some forc
10250 65 53 52 49 44 20 76 61 6c 75 65 20 69 73 20 61  eSRID value is a
10260 62 73 6f 6c 75 74 65 6c 79 20 72 65 71 75 69 72  bsolutely requir
10270 65 64 20 66 6f 72 20 61 6e 79 20 4a 50 45 47 2c  ed for any JPEG,
10280 20 54 49 46 46 20 61 6e 64 20 41 53 43 49 49 20   TIFF and ASCII 
10290 47 72 69 64 20 66 69 6c 65 2c 20 62 65 63 61 75  Grid file, becau
102a0 73 65 20 6f 6e 6c 79 20 47 65 6f 54 49 46 46 20  se only GeoTIFF 
102b0 63 6f 75 6c 64 20 65 76 65 6e 74 75 61 6c 6c 79  could eventually
102c0 20 64 65 63 6c 61 72 65 20 73 6f 6d 65 20 53 52   declare some SR
102d0 49 44 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 69 66 20  ID.</li>.<li>if 
102e0 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67  the optional arg
102f0 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e 70 79 72 61  ument <b><i>pyra
10300 6d 69 64 69 7a 65 3c 2f 69 3e 3c 2f 62 3e 20 28  midize</i></b> (
10310 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 6f  expected to be o
10320 66 20 74 68 65 20 42 6f 6f 6c 65 61 6e 20 74 79  f the Boolean ty
10330 70 65 29 20 69 73 20 73 65 74 20 74 6f 20 54 52  pe) is set to TR
10340 55 45 2c 20 74 68 65 6e 20 61 6e 79 20 50 79 72  UE, then any Pyr
10350 61 6d 69 64 20 6c 65 76 65 6c 20 64 69 72 65 63  amid level direc
10360 74 6c 79 20 73 75 70 70 6f 72 74 69 6e 67 20 74  tly supporting t
10370 68 65 20 63 75 72 72 65 6e 74 20 53 65 63 74 69  he current Secti
10380 6f 6e 20 77 69 6c 6c 20 62 65 20 69 6d 6d 65 64  on will be immed
10390 69 61 74 65 6c 79 20 62 75 69 6c 74 3b 20 6f 74  iately built; ot
103a0 68 65 72 77 69 73 65 20 50 79 72 61 6d 69 64 20  herwise Pyramid 
103b0 6c 65 76 65 6c 73 20 77 69 6c 6c 20 62 65 20 69  levels will be i
103c0 67 6e 6f 72 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69  gnored.</li>.<li
103d0 3e 69 66 20 74 68 65 20 6c 61 73 74 20 6f 70 74  >if the last opt
103e0 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 28  ional argument (
103f0 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 6f  expected to be o
10400 66 20 74 68 65 20 42 6f 6f 6c 65 61 6e 20 74 79  f the Boolean ty
10410 70 65 29 20 69 73 6e 27 74 20 64 65 63 6c 61 72  pe) isn't declar
10420 65 64 20 61 6e 20 69 6e 74 65 72 6e 61 6c 20 53  ed an internal S
10430 51 4c 20 54 72 61 6e 73 61 63 74 69 6f 6e 20 77  QL Transaction w
10440 69 6c 6c 20 62 65 20 69 6d 70 6c 69 63 69 74 6c  ill be implicitl
10450 79 20 68 61 6e 64 6c 65 64 2e 3c 2f 6c 69 3e 0a  y handled.</li>.
10460 3c 2f 75 6c 3e 0a 3c 74 61 62 6c 65 20 77 69 64  </ul>.<table wid
10470 74 68 3d 22 31 30 30 25 22 20 62 67 63 6f 6c 6f  th="100%" bgcolo
10480 72 3d 22 23 66 66 64 30 38 30 22 20 63 65 6c 6c  r="#ffd080" cell
10490 70 61 64 64 69 6e 67 3d 22 36 22 3e 3c 74 72 3e  padding="6"><tr>
104a0 3c 74 64 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e  <td>.<u>Please n
104b0 6f 74 65 20 76 65 72 79 20 77 65 6c 6c 3c 2f 75  ote very well</u
104c0 3e 3a 20 74 68 69 73 20 53 51 4c 20 66 75 6e 63  >: this SQL func
104d0 74 69 6f 6e 20 69 73 20 6f 6e 6c 79 20 61 76 61  tion is only ava
104e0 69 6c 61 62 6c 65 20 77 68 65 6e 20 74 68 65 20  ilable when the 
104f0 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69  environment vari
10500 61 62 6c 65 20 3c 62 3e 53 50 41 54 49 41 4c 49  able <b>SPATIALI
10510 54 45 5f 53 45 43 55 52 49 54 59 3d 72 65 6c 61  TE_SECURITY=rela
10520 78 65 64 3c 2f 62 3e 20 69 73 20 73 65 74 2e 3c  xed</b> is set.<
10530 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61 62 6c 65  /td></tr></table
10540 3e 0a 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74  >.</td>.</tr>.<t
10550 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f 4c 6f 61  r><td><b>RL2_Loa
10560 64 52 61 73 74 65 72 73 46 72 6f 6d 44 69 72 3c  dRastersFromDir<
10570 2f 62 3e 20 28 20 3c 62 3e 63 6f 76 65 72 61 67  /b> ( <b>coverag
10580 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eName</b> <i>Str
10590 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 64 69 72  ing</i> , <b>dir
105a0 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Path</b> <i>Stri
105b0 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 65 78 74 65  ng</i> , <b>exte
105c0 6e 73 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72  nsion</b> <i>Str
105d0 69 6e 67 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49  ing</i> ) : <i>I
105e0 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62  nteger</i><br><b
105f0 72 3e 0a 3c 62 3e 52 4c 32 5f 4c 6f 61 64 52 61  r>.<b>RL2_LoadRa
10600 73 74 65 72 73 46 72 6f 6d 44 69 72 3c 2f 62 3e  stersFromDir</b>
10610 20 28 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   ( <b>coverageNa
10620 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
10630 3c 2f 69 3e 20 2c 20 3c 62 3e 64 69 72 50 61 74  </i> , <b>dirPat
10640 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  h</b> <i>String<
10650 2f 69 3e 20 2c 20 3c 62 3e 65 78 74 65 6e 73 69  /i> , <b>extensi
10660 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  on</b> <i>String
10670 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 74 68 57 6f  </i> , <b>withWo
10680 72 6c 64 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e 49  rldFile</b> <i>I
10690 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c  nteger</i> ) : <
106a0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72  i>Integer</i><br
106b0 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 4c 6f 61  ><br>.<b>RL2_Loa
106c0 64 52 61 73 74 65 72 73 46 72 6f 6d 44 69 72 3c  dRastersFromDir<
106d0 2f 62 3e 20 28 20 3c 62 3e 63 6f 76 65 72 61 67  /b> ( <b>coverag
106e0 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eName</b> <i>Str
106f0 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 64 69 72  ing</i> , <b>dir
10700 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Path</b> <i>Stri
10710 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 65 78 74 65  ng</i> , <b>exte
10720 6e 73 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72  nsion</b> <i>Str
10730 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 74  ing</i> , <b>wit
10740 68 57 6f 72 6c 64 46 69 6c 65 3c 2f 62 3e 20 3c  hWorldFile</b> <
10750 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
10760 3c 62 3e 66 6f 72 63 65 53 52 49 44 3c 2f 62 3e  <b>forceSRID</b>
10770 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
10780 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
10790 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c  i><br><br>.<b>RL
107a0 32 5f 4c 6f 61 64 52 61 73 74 65 72 73 46 72 6f  2_LoadRastersFro
107b0 6d 44 69 72 3c 2f 62 3e 20 28 20 3c 62 3e 63 6f  mDir</b> ( <b>co
107c0 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
107d0 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
107e0 62 3e 64 69 72 50 61 74 68 3c 2f 62 3e 20 3c 69  b>dirPath</b> <i
107f0 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
10800 3e 65 78 74 65 6e 73 69 6f 6e 3c 2f 62 3e 20 3c  >extension</b> <
10810 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
10820 62 3e 77 69 74 68 57 6f 72 6c 64 46 69 6c 65 3c  b>withWorldFile<
10830 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
10840 69 3e 20 2c 20 3c 62 3e 66 6f 72 63 65 53 52 49  i> , <b>forceSRI
10850 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  D</b> <i>Integer
10860 3c 2f 69 3e 20 2c 20 3c 62 3e 70 79 72 61 6d 69  </i> , <b>pyrami
10870 64 69 7a 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  dize</b> <i>Inte
10880 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49  ger</i> ) : <i>I
10890 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62  nteger</i><br><b
108a0 72 3e 0a 3c 62 3e 52 4c 32 5f 4c 6f 61 64 52 61  r>.<b>RL2_LoadRa
108b0 73 74 65 72 73 46 72 6f 6d 44 69 72 3c 2f 62 3e  stersFromDir</b>
108c0 20 28 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   ( <b>coverageNa
108d0 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
108e0 3c 2f 69 3e 20 2c 20 3c 62 3e 64 69 72 50 61 74  </i> , <b>dirPat
108f0 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  h</b> <i>String<
10900 2f 69 3e 20 2c 20 3c 62 3e 65 78 74 65 6e 73 69  /i> , <b>extensi
10910 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  on</b> <i>String
10920 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 74 68 57 6f  </i> , <b>withWo
10930 72 6c 64 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e 49  rldFile</b> <i>I
10940 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
10950 66 6f 72 63 65 53 52 49 44 3c 2f 62 3e 20 3c 69  forceSRID</b> <i
10960 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
10970 62 3e 70 79 72 61 6d 69 64 69 7a 65 3c 2f 62 3e  b>pyramidize</b>
10980 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 2c   <i>Integer</i>,
10990 20 3c 62 3e 74 72 61 6e 73 61 63 74 69 6f 6e 3c   <b>transaction<
109a0 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
109b0 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65  i> ) : <i>Intege
109c0 72 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57  r</i></td>.<td>W
109d0 69 6c 6c 20 61 74 74 65 6d 70 74 20 74 6f 20 69  ill attempt to i
109e0 6d 70 6f 72 74 20 61 6c 6c 20 65 78 74 65 72 6e  mport all extern
109f0 61 6c 20 66 69 6c 65 2d 62 61 73 65 64 20 72 61  al file-based ra
10a00 73 74 65 72 20 64 61 74 61 73 6f 75 72 63 65 73  ster datasources
10a10 20 28 6f 66 20 74 68 65 20 4a 50 45 47 2c 20 54   (of the JPEG, T
10a20 49 46 46 2c 20 47 65 6f 54 69 66 66 20 6f 72 20  IFF, GeoTiff or 
10a30 41 53 43 49 49 20 47 72 69 64 20 74 79 70 65 29  ASCII Grid type)
10a40 20 66 6f 75 6e 64 20 77 69 74 68 69 6e 20 61 6e   found within an
10a50 20 65 78 74 65 72 6e 61 6c 20 64 69 72 65 63 74   external direct
10a60 6f 72 79 2e 3c 62 72 3e 0a 46 6f 72 20 65 61 63  ory.<br>.For eac
10a70 68 20 64 61 74 61 73 6f 75 72 63 65 20 62 65 69  h datasource bei
10a80 6e 67 20 69 6d 70 6f 72 74 65 64 20 61 20 63 6f  ng imported a co
10a90 72 72 65 73 70 6f 6e 64 69 6e 67 20 53 65 63 74  rresponding Sect
10aa0 69 6f 6e 20 77 69 6c 6c 20 62 65 20 63 72 65 61  ion will be crea
10ab0 74 65 64 20 61 6e 64 20 70 6f 70 75 6c 61 74 65  ted and populate
10ac0 64 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75  d.<br>.Will retu
10ad0 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20 28 54 52 55  rn <b>1</b> (TRU
10ae0 45 2f 53 55 43 43 45 53 53 29 20 6f 72 20 3c 62  E/SUCCESS) or <b
10af0 3e 30 3c 2f 62 3e 20 28 46 41 4c 53 45 2f 46 41  >0</b> (FALSE/FA
10b00 49 4c 55 52 45 29 3a 20 6f 72 20 3c 62 3e 2d 31  ILURE): or <b>-1
10b10 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20  </b> on invalid 
10b20 61 72 67 75 6d 65 6e 74 73 2e 3c 62 72 3e 0a 3c  arguments.<br>.<
10b30 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75  u>Please note</u
10b40 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69 3e 74 68 65  >: .<ul>.<li>the
10b50 20 6d 61 6e 64 61 74 6f 72 79 20 3c 62 3e 3c 69   mandatory <b><i
10b60 3e 65 78 74 65 6e 73 69 6f 6e 3c 2f 69 3e 3c 2f  >extension</i></
10b70 62 3e 20 61 72 67 75 6d 65 6e 74 20 69 73 20 65  b> argument is e
10b80 78 70 65 63 74 65 64 20 74 6f 20 73 70 65 63 69  xpected to speci
10b90 66 79 20 74 68 65 20 3c 75 3e 3c 69 3e 66 69 6c  fy the <u><i>fil
10ba0 65 6e 61 6d 65 20 65 78 74 65 6e 73 69 6f 6e 3c  ename extension<
10bb0 2f 69 3e 3c 2f 75 3e 20 69 64 65 6e 74 69 66 79  /i></u> identify
10bc0 69 6e 67 20 74 68 65 20 66 69 6c 65 73 20 74 6f  ing the files to
10bd0 20 62 65 20 69 6d 70 6f 72 74 65 64 20 28 65 2e   be imported (e.
10be0 67 2e 20 3c 62 3e 2e 74 69 66 3c 2f 62 3e 2c 20  g. <b>.tif</b>, 
10bf0 3c 62 3e 2e 6a 70 67 3c 2f 62 3e 20 6f 72 20 3c  <b>.jpg</b> or <
10c00 62 3e 2e 61 73 63 3c 2f 62 3e 29 2e 3c 2f 6c 69  b>.asc</b>).</li
10c10 3e 0a 3c 6c 69 3e 69 66 20 74 68 65 20 6f 70 74  >.<li>if the opt
10c20 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 3c  ional argument <
10c30 62 3e 3c 69 3e 77 69 74 68 57 6f 72 6c 64 46 69  b><i>withWorldFi
10c40 6c 65 3c 2f 69 3e 3c 2f 62 3e 20 28 65 78 70 65  le</i></b> (expe
10c50 63 74 65 64 20 74 6f 20 62 65 20 6f 66 20 74 68  cted to be of th
10c60 65 20 42 6f 6f 6c 65 61 6e 20 74 79 70 65 29 20  e Boolean type) 
10c70 69 73 20 73 65 74 20 74 6f 20 54 52 55 45 2c 20  is set to TRUE, 
10c80 74 68 65 6e 20 61 20 63 6f 72 72 65 73 70 6f 6e  then a correspon
10c90 64 69 6e 67 20 57 6f 72 6c 64 46 69 6c 65 20 69  ding WorldFile i
10ca0 73 20 65 78 70 65 63 74 65 64 20 74 6f 20 62 65  s expected to be
10cb0 20 66 6f 75 6e 64 20 61 6e 64 20 77 69 6c 6c 20   found and will 
10cc0 62 65 20 75 73 65 64 20 74 6f 20 67 6f 65 72 65  be used to goere
10cd0 66 65 6e 63 65 20 74 68 65 20 72 61 73 74 65 72  fence the raster
10ce0 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 69 66 20 74 68  .</li>.<li>if th
10cf0 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d  e optional argum
10d00 65 6e 74 20 3c 62 3e 3c 69 3e 66 6f 72 63 65 53  ent <b><i>forceS
10d10 52 49 44 3c 2f 69 3e 3c 2f 62 3e 20 69 73 20 65  RID</i></b> is e
10d20 78 70 6c 69 63 69 74 20 73 65 74 2c 20 74 68 61  xplicit set, tha
10d30 6e 20 69 74 73 20 76 61 6c 75 65 20 77 69 6c 6c  n its value will
10d40 20 62 65 20 61 73 73 75 6d 65 64 20 74 6f 20 72   be assumed to r
10d50 65 70 72 65 73 65 6e 74 20 74 68 65 20 53 52 49  epresent the SRI
10d60 44 20 64 65 63 6c 61 72 65 64 20 62 79 20 74 68  D declared by th
10d70 65 20 65 78 74 65 72 6e 61 6c 20 64 61 74 61 73  e external datas
10d80 6f 75 72 63 65 2e 3c 62 72 3e 0a 3c 75 3e 50 6c  ource.<br>.<u>Pl
10d90 65 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 64  ease note</u>: d
10da0 65 63 6c 61 72 69 6e 67 20 73 6f 6d 65 20 66 6f  eclaring some fo
10db0 72 63 65 53 52 49 44 20 76 61 6c 75 65 20 69 73  rceSRID value is
10dc0 20 61 62 73 6f 6c 75 74 65 6c 79 20 72 65 71 75   absolutely requ
10dd0 69 72 65 64 20 66 6f 72 20 61 6e 79 20 4a 50 45  ired for any JPE
10de0 47 2c 20 54 49 46 46 20 61 6e 64 20 41 53 43 49  G, TIFF and ASCI
10df0 49 20 47 72 69 64 20 66 69 6c 65 2c 20 62 65 63  I Grid file, bec
10e00 61 75 73 65 20 6f 6e 6c 79 20 47 65 6f 54 49 46  ause only GeoTIF
10e10 46 20 63 6f 75 6c 64 20 65 76 65 6e 74 75 61 6c  F could eventual
10e20 6c 79 20 64 65 63 6c 61 72 65 20 73 6f 6d 65 20  ly declare some 
10e30 53 52 49 44 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 69  SRID.</li>.<li>i
10e40 66 20 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61  f the optional a
10e50 72 67 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e 70 79  rgument <b><i>py
10e60 72 61 6d 69 64 69 7a 65 3c 2f 69 3e 3c 2f 62 3e  ramidize</i></b>
10e70 20 28 65 78 70 65 63 74 65 64 20 74 6f 20 62 65   (expected to be
10e80 20 6f 66 20 74 68 65 20 42 6f 6f 6c 65 61 6e 20   of the Boolean 
10e90 74 79 70 65 29 20 69 73 20 73 65 74 20 74 6f 20  type) is set to 
10ea0 54 52 55 45 2c 20 74 68 65 6e 20 61 6e 79 20 50  TRUE, then any P
10eb0 79 72 61 6d 69 64 20 6c 65 76 65 6c 20 64 69 72  yramid level dir
10ec0 65 63 74 6c 79 20 73 75 70 70 6f 72 74 69 6e 67  ectly supporting
10ed0 20 74 68 65 20 63 75 72 72 65 6e 74 20 53 65 63   the current Sec
10ee0 74 69 6f 6e 20 77 69 6c 6c 20 62 65 20 69 6d 6d  tion will be imm
10ef0 65 64 69 61 74 65 6c 79 20 62 75 69 6c 74 3b 20  ediately built; 
10f00 6f 74 68 65 72 77 69 73 65 20 50 79 72 61 6d 69  otherwise Pyrami
10f10 64 20 6c 65 76 65 6c 73 20 77 69 6c 6c 20 62 65  d levels will be
10f20 20 69 67 6e 6f 72 65 64 2e 3c 2f 6c 69 3e 0a 3c   ignored.</li>.<
10f30 6c 69 3e 69 66 20 74 68 65 20 6c 61 73 74 20 6f  li>if the last o
10f40 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74  ptional argument
10f50 20 28 65 78 70 65 63 74 65 64 20 74 6f 20 62 65   (expected to be
10f60 20 6f 66 20 74 68 65 20 42 6f 6f 6c 65 61 6e 20   of the Boolean 
10f70 74 79 70 65 29 20 69 73 6e 27 74 20 64 65 63 6c  type) isn't decl
10f80 61 72 65 64 20 61 6e 20 69 6e 74 65 72 6e 61 6c  ared an internal
10f90 20 53 51 4c 20 54 72 61 6e 73 61 63 74 69 6f 6e   SQL Transaction
10fa0 20 77 69 6c 6c 20 62 65 20 69 6d 70 6c 69 63 69   will be implici
10fb0 74 6c 79 20 68 61 6e 64 6c 65 64 2e 3c 2f 6c 69  tly handled.</li
10fc0 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61 62 6c 65 20 77  >.</ul>.<table w
10fd0 69 64 74 68 3d 22 31 30 30 25 22 20 62 67 63 6f  idth="100%" bgco
10fe0 6c 6f 72 3d 22 23 66 66 64 30 38 30 22 20 63 65  lor="#ffd080" ce
10ff0 6c 6c 70 61 64 64 69 6e 67 3d 22 36 22 3e 3c 74  llpadding="6"><t
11000 72 3e 3c 74 64 3e 0a 3c 75 3e 50 6c 65 61 73 65  r><td>.<u>Please
11010 20 6e 6f 74 65 20 76 65 72 79 20 77 65 6c 6c 3c   note very well<
11020 2f 75 3e 3a 20 74 68 69 73 20 53 51 4c 20 66 75  /u>: this SQL fu
11030 6e 63 74 69 6f 6e 20 69 73 20 6f 6e 6c 79 20 61  nction is only a
11040 76 61 69 6c 61 62 6c 65 20 77 68 65 6e 20 74 68  vailable when th
11050 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61  e environment va
11060 72 69 61 62 6c 65 20 3c 62 3e 53 50 41 54 49 41  riable <b>SPATIA
11070 4c 49 54 45 5f 53 45 43 55 52 49 54 59 3d 72 65  LITE_SECURITY=re
11080 6c 61 78 65 64 3c 2f 62 3e 20 69 73 20 73 65 74  laxed</b> is set
11090 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61 62  .</td></tr></tab
110a0 6c 65 3e 0a 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a  le>.</td>.</tr>.
110b0 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f 4c  <tr><td><b>RL2_L
110c0 6f 61 64 52 61 73 74 65 72 46 72 6f 6d 57 4d 53  oadRasterFromWMS
110d0 3c 2f 62 3e 20 28 20 3c 62 3e 63 6f 76 65 72 61  </b> ( <b>covera
110e0 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
110f0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65  ring</i> , <b>se
11100 63 74 69 6f 6e 4e 61 6d 65 3c 2f 62 3e 20 3c 69  ctionName</b> <i
11110 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
11120 3e 67 65 74 4d 61 70 55 72 6c 3c 2f 62 3e 20 3c  >getMapUrl</b> <
11130 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
11140 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
11150 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
11160 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 77 6d 73 56  ry</i> , <b>wmsV
11170 65 72 73 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74  ersion</b> <i>St
11180 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 6d  ring</i> , <b>wm
11190 73 4c 61 79 65 72 4e 61 6d 65 3c 2f 62 3e 20 3c  sLayerName</b> <
111a0 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
111b0 62 3e 77 6d 73 4c 61 79 65 72 53 74 79 6c 65 3c  b>wmsLayerStyle<
111c0 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
111d0 3e 20 2c 20 3c 62 3e 77 6d 73 49 6d 61 67 65 46  > , <b>wmsImageF
111e0 6f 72 6d 61 74 3c 2f 62 3e 20 3c 69 3e 53 74 72  ormat</b> <i>Str
111f0 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 6d 73  ing</i> , <b>wms
11200 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
11210 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
11220 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72  > ) : <i>Integer
11230 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e  </i><br><br>.<b>
11240 52 4c 32 5f 4c 6f 61 64 52 61 73 74 65 72 46 72  RL2_LoadRasterFr
11250 6f 6d 57 4d 53 3c 2f 62 3e 20 28 20 3c 62 3e 63  omWMS</b> ( <b>c
11260 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20  overageName</b> 
11270 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
11280 3c 62 3e 73 65 63 74 69 6f 6e 4e 61 6d 65 3c 2f  <b>sectionName</
11290 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
112a0 20 2c 20 3c 62 3e 67 65 74 4d 61 70 55 72 6c 3c   , <b>getMapUrl<
112b0 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
112c0 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42  > , <b>boundingB
112d0 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47  ox</b> <i>BLOB-G
112e0 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62  eometry</i> , <b
112f0 3e 77 6d 73 56 65 72 73 69 6f 6e 3c 2f 62 3e 20  >wmsVersion</b> 
11300 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
11310 3c 62 3e 77 6d 73 4c 61 79 65 72 4e 61 6d 65 3c  <b>wmsLayerName<
11320 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
11330 3e 20 2c 20 3c 62 3e 77 6d 73 4c 61 79 65 72 53  > , <b>wmsLayerS
11340 74 79 6c 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  tyle</b> <i>Stri
11350 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 6d 73 49  ng</i> , <b>wmsI
11360 6d 61 67 65 46 6f 72 6d 61 74 3c 2f 62 3e 20 3c  mageFormat</b> <
11370 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
11380 62 3e 77 6d 73 48 6f 72 7a 50 69 78 65 6c 52 65  b>wmsHorzPixelRe
11390 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  solution</b> <i>
113a0 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e  Double</i> , <b>
113b0 77 6d 73 56 65 72 74 50 69 78 65 6c 52 65 73 6f  wmsVertPixelReso
113c0 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f  lution</b> <i>Do
113d0 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e  uble</i> ) : <i>
113e0 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c  Integer</i><br><
113f0 62 72 3e 3c 62 3e 52 4c 32 5f 4c 6f 61 64 52 61  br><b>RL2_LoadRa
11400 73 74 65 72 46 72 6f 6d 57 4d 53 3c 2f 62 3e 20  sterFromWMS</b> 
11410 28 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d  ( <b>coverageNam
11420 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
11430 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e  /i> , <b>section
11440 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Name</b> <i>Stri
11450 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 67 65 74 4d  ng</i> , <b>getM
11460 61 70 55 72 6c 3c 2f 62 3e 20 3c 69 3e 53 74 72  apUrl</b> <i>Str
11470 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75  ing</i> , <b>bou
11480 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e  ndingBox</b> <i>
11490 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69  BLOB-Geometry</i
114a0 3e 20 2c 20 3c 62 3e 77 6d 73 56 65 72 73 69 6f  > , <b>wmsVersio
114b0 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  n</b> <i>String<
114c0 2f 69 3e 20 2c 20 3c 62 3e 77 6d 73 4c 61 79 65  /i> , <b>wmsLaye
114d0 72 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  rName</b> <i>Str
114e0 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 6d 73  ing</i> , <b>wms
114f0 4c 61 79 65 72 53 74 79 6c 65 3c 2f 62 3e 20 3c  LayerStyle</b> <
11500 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
11510 62 3e 77 6d 73 49 6d 61 67 65 46 6f 72 6d 61 74  b>wmsImageFormat
11520 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
11530 69 3e 20 2c 20 3c 62 3e 77 6d 73 48 6f 72 7a 50  i> , <b>wmsHorzP
11540 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f  ixelResolution</
11550 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e  b> <i>Double</i>
11560 20 2c 20 3c 62 3e 77 6d 73 56 65 72 74 50 69 78   , <b>wmsVertPix
11570 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e  elResolution</b>
11580 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c   <i>Double</i> ,
11590 20 3c 62 3e 6f 70 61 71 75 65 3c 2f 62 3e 20 3c   <b>opaque</b> <
115a0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20  i>Integer</i> ) 
115b0 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  : <i>Integer</i>
115c0 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f  <br><br>.<b>RL2_
115d0 4c 6f 61 64 52 61 73 74 65 72 46 72 6f 6d 57 4d  LoadRasterFromWM
115e0 53 3c 2f 62 3e 20 28 20 3c 62 3e 63 6f 76 65 72  S</b> ( <b>cover
115f0 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53  ageName</b> <i>S
11600 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73  tring</i> , <b>s
11610 65 63 74 69 6f 6e 4e 61 6d 65 3c 2f 62 3e 20 3c  ectionName</b> <
11620 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
11630 62 3e 67 65 74 4d 61 70 55 72 6c 3c 2f 62 3e 20  b>getMapUrl</b> 
11640 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
11650 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f  <b>boundingBox</
11660 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65  b> <i>BLOB-Geome
11670 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 77 6d 73  try</i> , <b>wms
11680 56 65 72 73 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53  Version</b> <i>S
11690 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77  tring</i> , <b>w
116a0 6d 73 4c 61 79 65 72 4e 61 6d 65 3c 2f 62 3e 20  msLayerName</b> 
116b0 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
116c0 3c 62 3e 77 6d 73 4c 61 79 65 72 53 74 79 6c 65  <b>wmsLayerStyle
116d0 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
116e0 69 3e 20 2c 20 3c 62 3e 77 6d 73 49 6d 61 67 65  i> , <b>wmsImage
116f0 46 6f 72 6d 61 74 3c 2f 62 3e 20 3c 69 3e 53 74  Format</b> <i>St
11700 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 6d  ring</i> , <b>wm
11710 73 48 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75  sHorzPixelResolu
11720 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62  tion</b> <i>Doub
11730 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 77 6d 73 56  le</i> , <b>wmsV
11740 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69  ertPixelResoluti
11750 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65  on</b> <i>Double
11760 3c 2f 69 3e 20 2c 20 3c 62 3e 6f 70 61 71 75 65  </i> , <b>opaque
11770 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
11780 2f 69 3e 20 2c 20 3c 62 3e 73 77 61 70 58 59 3c  /i> , <b>swapXY<
11790 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
117a0 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65  i> ) : <i>Intege
117b0 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62  r</i><br><br>.<b
117c0 3e 52 4c 32 5f 4c 6f 61 64 52 61 73 74 65 72 46  >RL2_LoadRasterF
117d0 72 6f 6d 57 4d 53 3c 2f 62 3e 20 28 20 3c 62 3e  romWMS</b> ( <b>
117e0 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e  coverageName</b>
117f0 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
11800 20 3c 62 3e 73 65 63 74 69 6f 6e 4e 61 6d 65 3c   <b>sectionName<
11810 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
11820 3e 20 2c 20 3c 62 3e 67 65 74 4d 61 70 55 72 6c  > , <b>getMapUrl
11830 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
11840 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67  i> , <b>bounding
11850 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d  Box</b> <i>BLOB-
11860 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c  Geometry</i> , <
11870 62 3e 77 6d 73 56 65 72 73 69 6f 6e 3c 2f 62 3e  b>wmsVersion</b>
11880 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
11890 20 3c 62 3e 77 6d 73 4c 61 79 65 72 4e 61 6d 65   <b>wmsLayerName
118a0 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
118b0 69 3e 20 2c 20 3c 62 3e 77 6d 73 4c 61 79 65 72  i> , <b>wmsLayer
118c0 53 74 79 6c 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  Style</b> <i>Str
118d0 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 6d 73  ing</i> , <b>wms
118e0 49 6d 61 67 65 46 6f 72 6d 61 74 3c 2f 62 3e 20  ImageFormat</b> 
118f0 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
11900 3c 62 3e 77 6d 73 48 6f 72 7a 50 69 78 65 6c 52  <b>wmsHorzPixelR
11910 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69  esolution</b> <i
11920 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62  >Double</i> , <b
11930 3e 77 6d 73 56 65 72 74 50 69 78 65 6c 52 65 73  >wmsVertPixelRes
11940 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44  olution</b> <i>D
11950 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 6f  ouble</i> , <b>o
11960 70 61 71 75 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74  paque</b> <i>Int
11970 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 73 77  eger</i> , <b>sw
11980 61 70 58 59 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  apXY</b> <i>Inte
11990 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 70 72 6f  ger</i> , <b>pro
119a0 78 79 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  xy</b> <i>String
119b0 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65  </i> ) : <i>Inte
119c0 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a  ger</i><br><br>.
119d0 3c 62 3e 52 4c 32 5f 4c 6f 61 64 52 61 73 74 65  <b>RL2_LoadRaste
119e0 72 46 72 6f 6d 57 4d 53 3c 2f 62 3e 20 28 20 3c  rFromWMS</b> ( <
119f0 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f  b>coverageName</
11a00 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
11a10 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 4e 61 6d   , <b>sectionNam
11a20 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
11a30 2f 69 3e 20 2c 20 3c 62 3e 67 65 74 4d 61 70 55  /i> , <b>getMapU
11a40 72 6c 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  rl</b> <i>String
11a50 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69  </i> , <b>boundi
11a60 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f  ngBox</b> <i>BLO
11a70 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c  B-Geometry</i> ,
11a80 20 3c 62 3e 77 6d 73 56 65 72 73 69 6f 6e 3c 2f   <b>wmsVersion</
11a90 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
11aa0 20 2c 20 3c 62 3e 77 6d 73 4c 61 79 65 72 4e 61   , <b>wmsLayerNa
11ab0 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
11ac0 3c 2f 69 3e 20 2c 20 3c 62 3e 77 6d 73 4c 61 79  </i> , <b>wmsLay
11ad0 65 72 53 74 79 6c 65 3c 2f 62 3e 20 3c 69 3e 53  erStyle</b> <i>S
11ae0 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77  tring</i> , <b>w
11af0 6d 73 49 6d 61 67 65 46 6f 72 6d 61 74 3c 2f 62  msImageFormat</b
11b00 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
11b10 2c 20 3c 62 3e 77 6d 73 48 6f 72 7a 50 69 78 65  , <b>wmsHorzPixe
11b20 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20  lResolution</b> 
11b30 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20  <i>Double</i> , 
11b40 3c 62 3e 77 6d 73 56 65 72 74 50 69 78 65 6c 52  <b>wmsVertPixelR
11b50 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69  esolution</b> <i
11b60 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62  >Double</i> , <b
11b70 3e 6f 70 61 71 75 65 3c 2f 62 3e 20 3c 69 3e 49  >opaque</b> <i>I
11b80 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
11b90 73 77 61 70 58 59 3c 2f 62 3e 20 3c 69 3e 49 6e  swapXY</b> <i>In
11ba0 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 70  teger</i> , <b>p
11bb0 72 6f 78 79 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  roxy</b> <i>Stri
11bc0 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 72 61 6e  ng</i> , <b>tran
11bd0 73 61 63 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 49  saction</b> <i>I
11be0 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c  nteger</i> ) : <
11bf0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 0a 3c 2f  i>Integer</i>.</
11c00 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61 74 74  td>.<td>Will att
11c10 65 6d 70 74 20 74 6f 20 63 72 65 61 74 65 20 61  empt to create a
11c20 6e 64 20 70 6f 70 75 6c 61 74 65 20 61 20 6e 65  nd populate a ne
11c30 77 20 53 65 63 74 69 6f 6e 20 77 69 74 68 69 6e  w Section within
11c40 20 61 20 43 6f 76 65 72 61 67 65 20 62 79 20 69   a Coverage by i
11c50 6d 70 6f 72 74 69 6e 67 20 72 61 73 74 65 72 20  mporting raster 
11c60 64 61 74 61 20 66 72 6f 6d 20 61 6e 20 65 78 74  data from an ext
11c70 65 72 6e 61 6c 20 57 4d 53 20 64 61 74 61 73 6f  ernal WMS dataso
11c80 75 72 63 65 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72  urce.<br>.Will r
11c90 65 74 75 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20 28  eturn <b>1</b> (
11ca0 54 52 55 45 2f 53 55 43 43 45 53 53 29 20 6f 72  TRUE/SUCCESS) or
11cb0 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41 4c 53 45   <b>0</b> (FALSE
11cc0 2f 46 41 49 4c 55 52 45 29 3a 20 6f 72 20 3c 62  /FAILURE): or <b
11cd0 3e 2d 31 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c  >-1</b> on inval
11ce0 69 64 20 61 72 67 75 6d 65 6e 74 73 2e 3c 62 72  id arguments.<br
11cf0 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65  >.<u>Please note
11d00 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69 3e  </u>: .<ul>.<li>
11d10 74 68 65 20 3c 62 3e 3c 69 3e 67 65 74 4d 61 70  the <b><i>getMap
11d20 55 52 4c 3c 2f 69 3e 3c 2f 62 3e 20 69 73 20 65  URL</i></b> is e
11d30 78 70 65 63 74 65 64 20 74 6f 20 72 65 70 72 65  xpected to repre
11d40 73 65 6e 74 20 74 68 65 20 62 61 73 65 2d 55 52  sent the base-UR
11d50 4c 20 66 6f 72 20 61 6c 6c 20 74 69 6c 65 64 20  L for all tiled 
11d60 57 4d 53 20 47 65 74 4d 61 70 20 72 65 71 75 65  WMS GetMap reque
11d70 73 74 73 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68  sts.</li>.<li>th
11d80 65 20 3c 62 3e 3c 69 3e 62 6f 75 6e 64 69 6e 67  e <b><i>bounding
11d90 42 6f 78 3c 2f 69 3e 3c 2f 62 3e 20 69 73 20 65  Box</i></b> is e
11da0 78 70 65 63 74 65 64 20 74 6f 20 72 65 70 72 65  xpected to repre
11db0 73 65 6e 74 20 74 68 65 20 6f 76 65 72 61 6c 6c  sent the overall
11dc0 20 65 78 74 65 6e 74 20 6f 66 20 74 68 65 20 53   extent of the S
11dd0 65 63 74 69 6f 6e 3b 20 79 6f 75 20 63 6f 75 6c  ection; you coul
11de0 64 20 65 76 65 6e 74 75 61 6c 6c 79 20 70 61 73  d eventually pas
11df0 73 20 61 6e 79 20 61 72 62 69 74 72 61 72 79 20  s any arbitrary 
11e00 6b 69 6e 64 20 6f 66 20 47 65 6f 6d 65 74 72 79  kind of Geometry
11e10 2c 20 61 6e 64 20 74 68 65 20 42 6f 75 6e 64 69  , and the Boundi
11e20 6e 67 20 42 6f 78 20 61 6b 61 20 4d 42 52 20 77  ng Box aka MBR w
11e30 69 6c 6c 20 62 65 20 61 75 74 6f 6d 61 74 69 63  ill be automatic
11e40 61 6c 6c 79 20 64 65 74 65 72 6d 69 6e 65 64 2e  ally determined.
11e50 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62  </li>.<li>the <b
11e60 3e 3c 69 3e 77 6d 73 56 65 72 73 69 6f 6e 3c 2f  ><i>wmsVersion</
11e70 69 3e 3c 2f 62 3e 2c 20 3c 62 3e 3c 69 3e 77 6d  i></b>, <b><i>wm
11e80 73 4c 61 79 65 72 4e 61 6d 65 3c 2f 69 3e 3c 2f  sLayerName</i></
11e90 62 3e 2c 20 3c 62 3e 3c 69 3e 77 6d 73 4c 61 79  b>, <b><i>wmsLay
11ea0 65 72 53 74 79 6c 65 3c 2f 69 3e 3c 2f 62 3e 2c  erStyle</i></b>,
11eb0 20 3c 62 3e 3c 69 3e 77 6d 73 49 6d 61 67 65 46   <b><i>wmsImageF
11ec0 6f 72 6d 61 74 3c 2f 69 3e 3c 2f 62 3e 20 61 6e  ormat</i></b> an
11ed0 64 20 3c 62 3e 3c 69 3e 6f 70 61 71 75 65 3c 2f  d <b><i>opaque</
11ee0 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74 73  i></b> arguments
11ef0 20 63 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f 20   corresponds to 
11f00 74 68 65 20 65 71 75 69 76 61 6c 65 6e 74 20 65  the equivalent e
11f10 6c 65 6d 65 6e 74 73 20 72 65 71 75 69 72 65 64  lements required
11f20 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 64 79 6e   in order to dyn
11f30 61 6d 69 63 61 6c 6c 79 20 63 6f 6d 70 6f 73 65  amically compose
11f40 20 61 6c 6c 20 57 4d 53 20 47 65 74 4d 61 70 20   all WMS GetMap 
11f50 72 65 71 75 65 73 74 73 2e 3c 2f 6c 69 3e 0a 3c  requests.</li>.<
11f60 6c 69 3e 61 20 73 69 6e 67 6c 65 20 57 4d 53 20  li>a single WMS 
11f70 47 65 74 4d 61 70 20 72 65 71 75 65 73 74 20 77  GetMap request w
11f80 69 6c 6c 20 62 65 20 69 73 73 75 65 64 20 66 6f  ill be issued fo
11f90 72 20 65 61 63 68 20 74 69 6c 65 20 72 65 71 75  r each tile requ
11fa0 69 72 65 64 20 62 79 20 74 68 65 20 53 65 63 74  ired by the Sect
11fb0 69 6f 6e 3b 20 74 68 65 20 42 6f 75 6e 64 69 6e  ion; the Boundin
11fc0 67 42 6f 78 20 6f 66 20 65 61 63 68 20 69 6e 64  gBox of each ind
11fd0 69 76 69 64 75 61 6c 20 74 69 6c 65 20 77 69 6c  ividual tile wil
11fe0 6c 20 62 65 20 61 75 74 6f 6d 61 74 69 63 61 6c  l be automatical
11ff0 6c 79 20 64 65 74 65 72 6d 69 6e 65 64 20 66 72  ly determined fr
12000 6f 6d 20 74 68 65 20 6f 76 65 72 61 6c 6c 20 53  om the overall S
12010 65 63 74 69 6f 6e 27 73 20 42 6f 75 6e 64 69 6e  ection's Boundin
12020 67 42 6f 78 20 61 6e 64 20 74 68 65 20 3c 62 3e  gBox and the <b>
12030 3c 69 3e 77 6d 73 48 6f 72 7a 50 69 78 65 6c 52  <i>wmsHorzPixelR
12040 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62  esolution</i></b
12050 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 77 6d 73 56  > and <b><i>wmsV
12060 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69  ertPixelResoluti
12070 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d  on</i></b> argum
12080 65 6e 74 73 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74  ents.</li>.<li>t
12090 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75  he optional argu
120a0 6d 65 6e 74 20 3c 62 3e 3c 69 3e 73 77 61 70 58  ment <b><i>swapX
120b0 59 3c 2f 69 3e 3c 2f 62 3e 20 63 6f 75 6c 64 20  Y</i></b> could 
120c0 62 65 20 6e 65 63 65 73 73 61 72 79 20 73 6f 6d  be necessary som
120d0 65 74 69 6d 65 73 20 69 6e 20 6f 72 64 65 72 20  etimes in order 
120e0 74 6f 20 69 6e 76 65 72 74 20 74 68 65 20 64 65  to invert the de
120f0 66 61 75 6c 74 20 57 4d 53 20 61 78 65 73 20 6f  fault WMS axes o
12100 72 64 65 72 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74  rder.</li>.<li>t
12110 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75  he optional argu
12120 6d 65 6e 74 20 3c 62 3e 3c 69 3e 70 72 6f 78 79  ment <b><i>proxy
12130 3c 2f 69 3e 3c 2f 62 3e 20 63 6f 75 6c 64 20 62  </i></b> could b
12140 65 20 6e 65 63 65 73 73 61 72 79 20 73 6f 6d 65  e necessary some
12150 74 69 6d 65 73 20 77 68 65 6e 20 61 63 63 65 73  times when acces
12160 73 69 6e 67 20 74 68 65 20 57 45 42 20 66 72 6f  sing the WEB fro
12170 6d 20 62 65 68 69 6e 64 20 61 20 66 69 72 65 77  m behind a firew
12180 61 6c 6c 65 64 20 6e 65 74 77 6f 72 6b 2e 3c 2f  alled network.</
12190 6c 69 3e 0a 3c 6c 69 3e 69 66 20 74 68 65 20 6c  li>.<li>if the l
121a0 61 73 74 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67  ast optional arg
121b0 75 6d 65 6e 74 20 28 65 78 70 65 63 74 65 64 20  ument (expected 
121c0 74 6f 20 62 65 20 6f 66 20 74 68 65 20 42 6f 6f  to be of the Boo
121d0 6c 65 61 6e 20 74 79 70 65 29 20 69 73 6e 27 74  lean type) isn't
121e0 20 64 65 63 6c 61 72 65 64 20 61 6e 20 69 6e 74   declared an int
121f0 65 72 6e 61 6c 20 53 51 4c 20 54 72 61 6e 73 61  ernal SQL Transa
12200 63 74 69 6f 6e 20 77 69 6c 6c 20 62 65 20 69 6d  ction will be im
12210 70 6c 69 63 69 74 6c 79 20 68 61 6e 64 6c 65 64  plicitly handled
12220 2e 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61  .</li>.</ul>.<ta
12230 62 6c 65 20 77 69 64 74 68 3d 22 31 30 30 25 22  ble width="100%"
12240 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 64 30 38   bgcolor="#ffd08
12250 30 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22  0" cellpadding="
12260 36 22 3e 3c 74 72 3e 3c 74 64 3e 0a 3c 75 3e 50  6"><tr><td>.<u>P
12270 6c 65 61 73 65 20 6e 6f 74 65 20 76 65 72 79 20  lease note very 
12280 77 65 6c 6c 3c 2f 75 3e 3a 20 74 68 69 73 20 53  well</u>: this S
12290 51 4c 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 6f  QL function is o
122a0 6e 6c 79 20 61 76 61 69 6c 61 62 6c 65 20 77 68  nly available wh
122b0 65 6e 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65  en the environme
122c0 6e 74 20 76 61 72 69 61 62 6c 65 20 3c 62 3e 53  nt variable <b>S
122d0 50 41 54 49 41 4c 49 54 45 5f 53 45 43 55 52 49  PATIALITE_SECURI
122e0 54 59 3d 72 65 6c 61 78 65 64 3c 2f 62 3e 20 69  TY=relaxed</b> i
122f0 73 20 73 65 74 2e 3c 2f 74 64 3e 3c 2f 74 72 3e  s set.</td></tr>
12300 3c 2f 74 61 62 6c 65 3e 0a 3c 2f 74 64 3e 0a 3c  </table>.</td>.<
12310 2f 74 72 3e 0a 3c 2f 74 61 62 6c 65 3e 3c 62 72  /tr>.</table><br
12320 3e 0a 3c 68 72 3e 0a 3c 68 32 3e 53 51 4c 20 66  >.<hr>.<h2>SQL f
12330 75 6e 63 74 69 6f 6e 73 20 65 78 70 6f 72 74 69  unctions exporti
12340 6e 67 20 72 61 77 20 72 61 73 74 65 72 20 64 61  ng raw raster da
12350 74 61 20 74 6f 20 65 78 74 65 72 6e 61 6c 20 66  ta to external f
12360 69 6c 65 73 20 28 43 6f 76 65 72 61 67 65 20 6f  iles (Coverage o
12370 72 69 65 6e 74 65 64 29 3c 2f 68 32 3e 20 0a 3c  riented)</h2> .<
12380 74 61 62 6c 65 20 77 69 64 74 68 3d 22 31 30 30  table width="100
12390 25 22 20 62 6f 72 64 65 72 3d 22 31 22 20 62 67  %" border="1" bg
123a0 63 6f 6c 6f 72 3d 22 23 66 66 66 66 65 30 22 20  color="#ffffe0" 
123b0 63 65 6c 6c 65 73 70 61 63 69 6e 67 3d 22 34 22  cellespacing="4"
123c0 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36 22   cellpadding="6"
123d0 3e 0a 3c 74 72 3e 3c 74 68 20 62 67 63 6f 6c 6f  >.<tr><th bgcolo
123e0 72 3d 22 23 65 30 65 30 65 30 22 20 77 69 64 74  r="#e0e0e0" widt
123f0 68 3d 22 35 30 25 22 3e 53 79 6e 74 61 78 3c 2f  h="50%">Syntax</
12400 74 68 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22  th><th bgcolor="
12410 23 65 30 65 30 65 30 22 20 77 69 64 74 68 3d 22  #e0e0e0" width="
12420 35 30 25 22 3e 53 75 6d 6d 61 72 79 3c 2f 74 68  50%">Summary</th
12430 3e 3c 2f 74 72 3e 0a 3c 74 72 3e 3c 74 64 3e 3c  ></tr>.<tr><td><
12440 62 3e 52 4c 32 5f 57 72 69 74 65 47 65 6f 54 69  b>RL2_WriteGeoTi
12450 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72  ff</b> ( <b>dbPr
12460 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  efix</b> <i>Stri
12470 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65  ng</i> , <b>cove
12480 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e  rageName</b> <i>
12490 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
124a0 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e  filePath</b> <i>
124b0 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
124c0 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74  width</b> <i>Int
124d0 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65  eger</i> , <b>he
124e0 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  ight</b> <i>Inte
124f0 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75  ger</i> , <b>bou
12500 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e  ndingBox</b> <i>
12510 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69  BLOB-Geometry</i
12520 3e 20 2c 20 3c 62 3e 70 69 78 65 6c 52 65 73 6f  > , <b>pixelReso
12530 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f  lution</b> <i>Do
12540 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e  uble</i> ) : <i>
12550 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c  Integer</i><br><
12560 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65  br>.<b>RL2_Write
12570 47 65 6f 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62  GeoTiff</b> ( <b
12580 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69  >dbPrefix</b> <i
12590 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
125a0 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62  >coverageName</b
125b0 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
125c0 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62  , <b>filePath</b
125d0 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
125e0 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c  , <b>width</b> <
125f0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
12600 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69  <b>height</b> <i
12610 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
12620 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
12630 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
12640 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a  ry</i> , <b>horz
12650 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
12660 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
12670 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c  > , <b>vertPixel
12680 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
12690 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a  i>Double</i> ) :
126a0 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
126b0 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57  br><br>.<b>RL2_W
126c0 72 69 74 65 47 65 6f 54 69 66 66 3c 2f 62 3e 20  riteGeoTiff</b> 
126d0 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62  ( <b>dbPrefix</b
126e0 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
126f0 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d  , <b>coverageNam
12700 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
12710 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74  /i> , <b>filePat
12720 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  h</b> <i>String<
12730 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f  /i> , <b>width</
12740 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
12750 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62  > , <b>height</b
12760 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
12770 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f   , <b>boundingBo
12780 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65  x</b> <i>BLOB-Ge
12790 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e  ometry</i> , <b>
127a0 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74  horzPixelResolut
127b0 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c  ion</b> <i>Doubl
127c0 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50  e</i> , <b>vertP
127d0 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f  ixelResolution</
127e0 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e  b> <i>Double</i>
127f0 20 2c 20 3c 62 3e 77 69 74 68 57 6f 6c 64 46 69   , <b>withWoldFi
12800 6c 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  le</b> <i>Intege
12810 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74  r</i> ) : <i>Int
12820 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e  eger</i><br><br>
12830 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 47 65 6f  .<b>RL2_WriteGeo
12840 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64 62  Tiff</b> ( <b>db
12850 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74  Prefix</b> <i>St
12860 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f  ring</i> , <b>co
12870 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
12880 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
12890 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c  b>filePath</b> <
128a0 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
128b0 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49  b>width</b> <i>I
128c0 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
128d0 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e  height</b> <i>In
128e0 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62  teger</i> , <b>b
128f0 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c  oundingBox</b> <
12900 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c  i>BLOB-Geometry<
12910 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50 69 78  /i> , <b>horzPix
12920 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e  elResolution</b>
12930 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c   <i>Double</i> ,
12940 20 3c 62 3e 76 65 72 74 50 69 78 65 6c 52 65 73   <b>vertPixelRes
12950 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44  olution</b> <i>D
12960 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 77  ouble</i> , <b>w
12970 69 74 68 57 6f 6c 64 46 69 6c 65 3c 2f 62 3e 20  ithWoldFile</b> 
12980 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
12990 20 3c 62 3e 74 69 66 66 43 6f 6d 70 72 65 73 73   <b>tiffCompress
129a0 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ion</b> <i>Strin
129b0 67 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74  g</i> ) : <i>Int
129c0 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e  eger</i><br><br>
129d0 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 47 65 6f  .<b>RL2_WriteGeo
129e0 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64 62  Tiff</b> ( <b>db
129f0 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74  Prefix</b> <i>St
12a00 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f  ring</i> , <b>co
12a10 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
12a20 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
12a30 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c  b>filePath</b> <
12a40 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
12a50 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49  b>width</b> <i>I
12a60 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
12a70 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e  height</b> <i>In
12a80 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62  teger</i> , <b>b
12a90 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c  oundingBox</b> <
12aa0 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c  i>BLOB-Geometry<
12ab0 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50 69 78  /i> , <b>horzPix
12ac0 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e  elResolution</b>
12ad0 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c   <i>Double</i> ,
12ae0 20 3c 62 3e 76 65 72 74 50 69 78 65 6c 52 65 73   <b>vertPixelRes
12af0 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44  olution</b> <i>D
12b00 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 77  ouble</i> , <b>w
12b10 69 74 68 57 6f 6c 64 46 69 6c 65 3c 2f 62 3e 20  ithWoldFile</b> 
12b20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
12b30 20 3c 62 3e 74 69 66 66 43 6f 6d 70 72 65 73 73   <b>tiffCompress
12b40 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ion</b> <i>Strin
12b50 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 66 66 54  g</i> , <b>tiffT
12b60 69 6c 65 53 69 7a 65 3c 2f 62 3e 20 3c 69 3e 49  ileSize</b> <i>I
12b70 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c  nteger</i> ) : <
12b80 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74  i>Integer</i></t
12b90 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61 74 74 65  d>.<td>Will atte
12ba0 6d 70 74 20 74 6f 20 65 78 70 6f 72 74 20 72 61  mpt to export ra
12bb0 77 20 72 61 73 74 65 72 20 64 61 74 61 20 66 72  w raster data fr
12bc0 6f 6d 20 61 20 43 6f 76 65 72 61 67 65 20 69 6e  om a Coverage in
12bd0 74 6f 20 61 6e 20 65 78 74 65 72 6e 61 6c 20 47  to an external G
12be0 65 6f 54 49 46 46 20 66 69 6c 65 2e 3c 62 72 3e  eoTIFF file.<br>
12bf0 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20 3c 62 3e  .Will return <b>
12c00 31 3c 2f 62 3e 20 28 54 52 55 45 2f 53 55 43 43  1</b> (TRUE/SUCC
12c10 45 53 53 29 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e  ESS) or <b>0</b>
12c20 20 28 46 41 4c 53 45 2f 46 41 49 4c 55 52 45 29   (FALSE/FAILURE)
12c30 3a 20 6f 72 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f  : or <b>-1</b> o
12c40 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65  n invalid argume
12c50 6e 74 73 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61  nts.<br>.<u>Plea
12c60 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75  se note</u>: .<u
12c70 6c 3e 0a 3c 6c 69 3e 54 68 65 20 3c 62 3e 3c 69  l>.<li>The <b><i
12c80 3e 64 62 50 72 65 66 69 78 3c 2f 69 3e 3c 2f 62  >dbPrefix</i></b
12c90 3e 20 61 72 67 75 6d 65 6e 74 20 69 73 20 69 6e  > argument is in
12ca0 74 65 6e 64 65 64 20 74 6f 20 73 70 65 63 69 66  tended to specif
12cb0 79 20 74 68 65 20 41 54 54 41 43 48 45 44 2d 44  y the ATTACHED-D
12cc0 42 20 77 68 65 72 65 20 74 68 65 20 43 6f 76 65  B where the Cove
12cd0 72 61 67 65 20 69 73 20 65 78 70 65 63 74 65 64  rage is expected
12ce0 20 74 6f 20 62 65 20 66 6f 75 6e 64 3b 20 69 74   to be found; it
12cf0 20 63 6f 75 6c 64 20 62 65 20 65 76 65 6e 74 75   could be eventu
12d00 61 6c 6c 79 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e  ally <b>NULL</b>
12d10 2c 20 61 6e 64 20 69 6e 20 74 68 69 73 20 63 61  , and in this ca
12d20 73 65 20 74 68 65 20 3c 62 3e 4d 41 49 4e 20 44  se the <b>MAIN D
12d30 42 3c 2f 62 3e 20 77 69 6c 6c 20 69 6d 70 6c 69  B</b> will impli
12d40 63 69 74 6c 79 20 62 65 20 61 73 73 75 6d 65 64  citly be assumed
12d50 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c  .</li>.<li>the <
12d60 62 3e 3c 69 3e 62 6f 75 6e 64 69 6e 67 42 6f 78  b><i>boundingBox
12d70 3c 2f 69 3e 3c 2f 62 3e 20 69 73 20 65 78 70 65  </i></b> is expe
12d80 63 74 65 64 20 74 6f 20 72 65 70 72 65 73 65 6e  cted to represen
12d90 74 20 74 68 65 20 6f 76 65 72 61 6c 6c 20 65 78  t the overall ex
12da0 74 65 6e 74 20 6f 66 20 74 68 65 20 65 78 70 6f  tent of the expo
12db0 72 74 65 64 20 47 65 6f 54 49 46 46 3b 20 79 6f  rted GeoTIFF; yo
12dc0 75 20 63 6f 75 6c 64 20 65 76 65 6e 74 75 61 6c  u could eventual
12dd0 6c 79 20 70 61 73 73 20 61 6e 79 20 61 72 62 69  ly pass any arbi
12de0 74 72 61 72 79 20 6b 69 6e 64 20 6f 66 20 47 65  trary kind of Ge
12df0 6f 6d 65 74 72 79 2c 20 61 6e 64 20 74 68 65 20  ometry, and the 
12e00 42 6f 75 6e 64 69 6e 67 20 42 6f 78 20 61 6b 61  Bounding Box aka
12e10 20 4d 42 52 20 77 69 6c 6c 20 62 65 20 61 75 74   MBR will be aut
12e20 6f 6d 61 74 69 63 61 6c 6c 79 20 64 65 74 65 72  omatically deter
12e30 6d 69 6e 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e  mined.</li>.<li>
12e40 74 68 65 20 3c 62 3e 3c 69 3e 68 6f 72 7a 50 69  the <b><i>horzPi
12e50 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69  xelResolution</i
12e60 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e  ></b> and <b><i>
12e70 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74  vertPixelResolut
12e80 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 6d 75 73 74  ion</i></b> must
12e90 20 65 78 61 63 74 6c 79 20 6d 61 74 63 68 20 74   exactly match t
12ea0 68 65 20 43 6f 76 65 72 61 67 65 27 73 20 62 61  he Coverage's ba
12eb0 73 65 20 72 65 73 6f 6c 75 74 69 6f 6e 20 6f 72  se resolution or
12ec0 20 6f 6e 65 20 6f 66 20 74 68 65 20 72 65 73 6f   one of the reso
12ed0 6c 75 74 69 6f 6e 73 20 6d 61 64 65 20 61 76 61  lutions made ava
12ee0 69 6c 61 62 6c 65 20 62 79 20 74 68 65 20 63 6f  ilable by the co
12ef0 72 72 65 73 70 6f 6e 64 69 6e 67 20 50 79 72 61  rresponding Pyra
12f00 6d 69 64 20 6c 65 76 65 6c 73 2e 3c 2f 6c 69 3e  mid levels.</li>
12f10 0a 3c 6c 69 3e 61 6e 64 20 74 68 65 20 42 6f 75  .<li>and the Bou
12f20 6e 64 69 6e 67 42 6f 78 20 6d 75 73 74 20 65 78  ndingBox must ex
12f30 61 63 74 6c 79 20 6d 61 74 63 68 20 74 68 65 20  actly match the 
12f40 54 49 46 46 20 3c 62 3e 3c 69 3e 77 69 64 74 68  TIFF <b><i>width
12f50 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e  </i></b> and <b>
12f60 3c 69 3e 68 65 69 67 68 74 3c 2f 69 3e 3c 2f 62  <i>height</i></b
12f70 3e 20 64 69 6d 65 6e 73 69 6f 6e 73 20 61 74 20  > dimensions at 
12f80 74 68 61 74 20 72 65 73 6f 6c 75 74 69 6f 6e 2e  that resolution.
12f90 3c 2f 6c 69 3e 0a 3c 6c 69 3e 69 66 20 74 68 65  </li>.<li>if the
12fa0 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65   optional argume
12fb0 6e 74 20 3c 62 3e 3c 69 3e 77 69 74 68 57 6f 72  nt <b><i>withWor
12fc0 6c 64 46 69 6c 65 3c 2f 69 3e 3c 2f 62 3e 20 69  ldFile</i></b> i
12fd0 73 20 73 65 74 20 74 6f 20 54 52 55 45 20 74 68  s set to TRUE th
12fe0 65 6e 20 61 6e 20 61 75 78 69 6c 69 61 72 79 20  en an auxiliary 
12ff0 57 6f 72 6c 64 46 69 6c 65 20 77 69 6c 6c 20 62  WorldFile will b
13000 65 20 65 78 70 6f 72 74 65 64 20 61 73 20 77 65  e exported as we
13010 6c 6c 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65  ll.</li>.<li>the
13020 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65   optional argume
13030 6e 74 20 3c 62 3e 3c 69 3e 74 69 66 66 43 6f 6d  nt <b><i>tiffCom
13040 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e  pression</i></b>
13050 20 63 6f 75 6c 64 20 62 65 20 6f 6e 65 20 6f 66   could be one of
13060 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62 3e 2c 20   <b>'NONE'</b>, 
13070 3c 62 3e 27 44 45 46 4c 41 54 45 27 3c 2f 62 3e  <b>'DEFLATE'</b>
13080 2c 20 3c 62 3e 27 4c 5a 57 27 3c 2f 62 3e 2c 20  , <b>'LZW'</b>, 
13090 3c 62 3e 27 4a 50 45 47 27 3c 2f 62 3e 2c 20 3c  <b>'JPEG'</b>, <
130a0 62 3e 27 46 41 58 33 27 3c 2f 62 3e 20 6f 72 20  b>'FAX3'</b> or 
130b0 3c 62 3e 27 46 41 58 34 27 3c 2f 62 3e 3b 20 64  <b>'FAX4'</b>; d
130c0 65 66 61 75 6c 74 20 69 73 20 3c 62 3e 27 4e 4f  efault is <b>'NO
130d0 4e 45 27 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 6c  NE'</b>.</li>.<l
130e0 69 3e 74 68 65 20 6c 61 73 74 20 6f 70 74 69 6f  i>the last optio
130f0 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 63 61 6e  nal argument can
13100 20 62 65 20 75 73 65 64 20 73 6f 20 74 6f 20 73   be used so to s
13110 70 65 63 69 66 79 20 74 68 65 20 70 72 65 66 65  pecify the prefe
13120 72 72 65 64 20 54 49 46 46 20 74 69 6c 65 20 73  rred TIFF tile s
13130 69 7a 65 20 28 6f 6e 6c 79 20 73 71 75 61 72 65  ize (only square
13140 20 74 69 6c 65 73 20 61 72 65 20 73 75 70 70 6f   tiles are suppo
13150 72 74 65 64 29 3b 20 64 65 66 61 75 6c 74 20 69  rted); default i
13160 73 20 3c 62 3e 32 35 36 3c 2f 62 3e 2e 3c 2f 6c  s <b>256</b>.</l
13170 69 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61 62 6c 65 20  i>.</ul>.<table 
13180 77 69 64 74 68 3d 22 31 30 30 25 22 20 62 67 63  width="100%" bgc
13190 6f 6c 6f 72 3d 22 23 66 66 64 30 38 30 22 20 63  olor="#ffd080" c
131a0 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36 22 3e 3c  ellpadding="6"><
131b0 74 72 3e 3c 74 64 3e 0a 3c 75 3e 50 6c 65 61 73  tr><td>.<u>Pleas
131c0 65 20 6e 6f 74 65 20 76 65 72 79 20 77 65 6c 6c  e note very well
131d0 3c 2f 75 3e 3a 20 74 68 69 73 20 53 51 4c 20 66  </u>: this SQL f
131e0 75 6e 63 74 69 6f 6e 20 69 73 20 6f 6e 6c 79 20  unction is only 
131f0 61 76 61 69 6c 61 62 6c 65 20 77 68 65 6e 20 74  available when t
13200 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76  he environment v
13210 61 72 69 61 62 6c 65 20 3c 62 3e 53 50 41 54 49  ariable <b>SPATI
13220 41 4c 49 54 45 5f 53 45 43 55 52 49 54 59 3d 72  ALITE_SECURITY=r
13230 65 6c 61 78 65 64 3c 2f 62 3e 20 69 73 20 73 65  elaxed</b> is se
13240 74 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61  t.</td></tr></ta
13250 62 6c 65 3e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a  ble></td>.</tr>.
13260 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f 57  <tr><td><b>RL2_W
13270 72 69 74 65 54 69 66 66 54 46 57 3c 2f 62 3e 20  riteTiffTFW</b> 
13280 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62  ( <b>dbPrefix</b
13290 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
132a0 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d  , <b>coverageNam
132b0 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
132c0 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74  /i> , <b>filePat
132d0 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  h</b> <i>String<
132e0 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f  /i> , <b>width</
132f0 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
13300 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62  > , <b>height</b
13310 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
13320 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f   , <b>boundingBo
13330 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65  x</b> <i>BLOB-Ge
13340 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e  ometry</i> , <b>
13350 70 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  pixelResolution<
13360 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
13370 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72  > ) : <i>Integer
13380 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e  </i><br><br>.<b>
13390 52 4c 32 5f 57 72 69 74 65 54 69 66 66 54 46 57  RL2_WriteTiffTFW
133a0 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
133b0 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
133c0 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
133d0 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
133e0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69  ring</i> , <b>fi
133f0 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74  lePath</b> <i>St
13400 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69  ring</i> , <b>wi
13410 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  dth</b> <i>Integ
13420 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67  er</i> , <b>heig
13430 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
13440 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64  r</i> , <b>bound
13450 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c  ingBox</b> <i>BL
13460 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20  OB-Geometry</i> 
13470 2c 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65  , <b>horzPixelRe
13480 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  solution</b> <i>
13490 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e  Double</i> , <b>
134a0 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74  vertPixelResolut
134b0 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c  ion</b> <i>Doubl
134c0 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74  e</i> ) : <i>Int
134d0 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e  eger</i><br><br>
134e0 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 54 69 66  .<b>RL2_WriteTif
134f0 66 54 46 57 3c 2f 62 3e 20 28 20 3c 62 3e 64 62  fTFW</b> ( <b>db
13500 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74  Prefix</b> <i>St
13510 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f  ring</i> , <b>co
13520 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
13530 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
13540 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c  b>filePath</b> <
13550 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
13560 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49  b>width</b> <i>I
13570 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
13580 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e  height</b> <i>In
13590 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62  teger</i> , <b>b
135a0 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c  oundingBox</b> <
135b0 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c  i>BLOB-Geometry<
135c0 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50 69 78  /i> , <b>horzPix
135d0 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e  elResolution</b>
135e0 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c   <i>Double</i> ,
135f0 20 3c 62 3e 76 65 72 74 50 69 78 65 6c 52 65 73   <b>vertPixelRes
13600 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44  olution</b> <i>D
13610 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 74  ouble</i> , <b>t
13620 69 66 66 43 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f  iffCompression</
13630 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
13640 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c   ) : <i>Integer<
13650 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52  /i><br><br>.<b>R
13660 4c 32 5f 57 72 69 74 65 54 69 66 66 54 46 57 3c  L2_WriteTiffTFW<
13670 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69  /b> ( <b>dbPrefi
13680 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  x</b> <i>String<
13690 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67  /i> , <b>coverag
136a0 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eName</b> <i>Str
136b0 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c  ing</i> , <b>fil
136c0 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72  ePath</b> <i>Str
136d0 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64  ing</i> , <b>wid
136e0 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  th</b> <i>Intege
136f0 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68  r</i> , <b>heigh
13700 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  t</b> <i>Integer
13710 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69  </i> , <b>boundi
13720 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f  ngBox</b> <i>BLO
13730 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c  B-Geometry</i> ,
13740 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73   <b>horzPixelRes
13750 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44  olution</b> <i>D
13760 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76  ouble</i> , <b>v
13770 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69  ertPixelResoluti
13780 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65  on</b> <i>Double
13790 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 66 66 43 6f  </i> , <b>tiffCo
137a0 6d 70 72 65 73 73 69 6f 6e 3c 2f 62 3e 20 3c 69  mpression</b> <i
137b0 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
137c0 3e 74 69 66 66 54 69 6c 65 53 69 7a 65 3c 2f 62  >tiffTileSize</b
137d0 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
137e0 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c   ) : <i>Integer<
137f0 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c  /i></td>.<td>Wil
13800 6c 20 61 74 74 65 6d 70 74 20 74 6f 20 65 78 70  l attempt to exp
13810 6f 72 74 20 72 61 77 20 72 61 73 74 65 72 20 64  ort raw raster d
13820 61 74 61 20 66 72 6f 6d 20 61 20 43 6f 76 65 72  ata from a Cover
13830 61 67 65 20 69 6e 74 6f 20 61 6e 20 65 78 74 65  age into an exte
13840 72 6e 61 6c 20 20 70 6c 61 69 6e 20 54 49 46 46  rnal  plain TIFF
13850 20 66 69 6c 65 20 73 75 70 70 6f 72 74 65 64 20   file supported 
13860 62 79 20 61 6e 20 61 75 78 69 6c 69 61 72 79 20  by an auxiliary 
13870 57 6f 72 6c 64 46 69 6c 65 2e 3c 62 72 3e 0a 57  WorldFile.<br>.W
13880 69 6c 6c 20 72 65 74 75 72 6e 20 3c 62 3e 31 3c  ill return <b>1<
13890 2f 62 3e 20 28 54 52 55 45 2f 53 55 43 43 45 53  /b> (TRUE/SUCCES
138a0 53 29 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28  S) or <b>0</b> (
138b0 46 41 4c 53 45 2f 46 41 49 4c 55 52 45 29 3a 20  FALSE/FAILURE): 
138c0 6f 72 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20  or <b>-1</b> on 
138d0 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74  invalid argument
138e0 73 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65  s.<br>.<u>Please
138f0 20 6e 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e   note</u>: .<ul>
13900 0a 3c 6c 69 3e 54 68 65 20 3c 62 3e 3c 69 3e 64  .<li>The <b><i>d
13910 62 50 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20  bPrefix</i></b> 
13920 61 72 67 75 6d 65 6e 74 20 69 73 20 69 6e 74 65  argument is inte
13930 6e 64 65 64 20 74 6f 20 73 70 65 63 69 66 79 20  nded to specify 
13940 74 68 65 20 41 54 54 41 43 48 45 44 2d 44 42 20  the ATTACHED-DB 
13950 77 68 65 72 65 20 74 68 65 20 43 6f 76 65 72 61  where the Covera
13960 67 65 20 69 73 20 65 78 70 65 63 74 65 64 20 74  ge is expected t
13970 6f 20 62 65 20 66 6f 75 6e 64 3b 20 69 74 20 63  o be found; it c
13980 6f 75 6c 64 20 62 65 20 65 76 65 6e 74 75 61 6c  ould be eventual
13990 6c 79 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20  ly <b>NULL</b>, 
139a0 61 6e 64 20 69 6e 20 74 68 69 73 20 63 61 73 65  and in this case
139b0 20 74 68 65 20 3c 62 3e 4d 41 49 4e 20 44 42 3c   the <b>MAIN DB<
139c0 2f 62 3e 20 77 69 6c 6c 20 69 6d 70 6c 69 63 69  /b> will implici
139d0 74 6c 79 20 62 65 20 61 73 73 75 6d 65 64 2e 3c  tly be assumed.<
139e0 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e  /li>.<li>the <b>
139f0 3c 69 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f  <i>boundingBox</
13a00 69 3e 3c 2f 62 3e 20 69 73 20 65 78 70 65 63 74  i></b> is expect
13a10 65 64 20 74 6f 20 72 65 70 72 65 73 65 6e 74 20  ed to represent 
13a20 74 68 65 20 6f 76 65 72 61 6c 6c 20 65 78 74 65  the overall exte
13a30 6e 74 20 6f 66 20 74 68 65 20 65 78 70 6f 72 74  nt of the export
13a40 65 64 20 54 49 46 46 3b 20 79 6f 75 20 63 6f 75  ed TIFF; you cou
13a50 6c 64 20 65 76 65 6e 74 75 61 6c 6c 79 20 70 61  ld eventually pa
13a60 73 73 20 61 6e 79 20 61 72 62 69 74 72 61 72 79  ss any arbitrary
13a70 20 6b 69 6e 64 20 6f 66 20 47 65 6f 6d 65 74 72   kind of Geometr
13a80 79 2c 20 61 6e 64 20 74 68 65 20 42 6f 75 6e 64  y, and the Bound
13a90 69 6e 67 20 42 6f 78 20 61 6b 61 20 4d 42 52 20  ing Box aka MBR 
13aa0 77 69 6c 6c 20 62 65 20 61 75 74 6f 6d 61 74 69  will be automati
13ab0 63 61 6c 6c 79 20 64 65 74 65 72 6d 69 6e 65 64  cally determined
13ac0 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c  .</li>.<li>the <
13ad0 62 3e 3c 69 3e 68 6f 72 7a 50 69 78 65 6c 52 65  b><i>horzPixelRe
13ae0 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e  solution</i></b>
13af0 20 61 6e 64 20 3c 62 3e 3c 69 3e 76 65 72 74 50   and <b><i>vertP
13b00 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f  ixelResolution</
13b10 69 3e 3c 2f 62 3e 20 6d 75 73 74 20 65 78 61 63  i></b> must exac
13b20 74 6c 79 20 6d 61 74 63 68 20 74 68 65 20 43 6f  tly match the Co
13b30 76 65 72 61 67 65 27 73 20 62 61 73 65 20 72 65  verage's base re
13b40 73 6f 6c 75 74 69 6f 6e 20 6f 72 20 6f 6e 65 20  solution or one 
13b50 6f 66 20 74 68 65 20 72 65 73 6f 6c 75 74 69 6f  of the resolutio
13b60 6e 73 20 6d 61 64 65 20 61 76 61 69 6c 61 62 6c  ns made availabl
13b70 65 20 62 79 20 74 68 65 20 63 6f 72 72 65 73 70  e by the corresp
13b80 6f 6e 64 69 6e 67 20 50 79 72 61 6d 69 64 20 6c  onding Pyramid l
13b90 65 76 65 6c 73 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e  evels.</li>.<li>
13ba0 61 6e 64 20 74 68 65 20 42 6f 75 6e 64 69 6e 67  and the Bounding
13bb0 42 6f 78 20 6d 75 73 74 20 65 78 61 63 74 6c 79  Box must exactly
13bc0 20 6d 61 74 63 68 20 74 68 65 20 54 49 46 46 20   match the TIFF 
13bd0 3c 62 3e 3c 69 3e 77 69 64 74 68 3c 2f 69 3e 3c  <b><i>width</i><
13be0 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 68 65  /b> and <b><i>he
13bf0 69 67 68 74 3c 2f 69 3e 3c 2f 62 3e 20 64 69 6d  ight</i></b> dim
13c00 65 6e 73 69 6f 6e 73 20 61 74 20 74 68 61 74 20  ensions at that 
13c10 72 65 73 6f 6c 75 74 69 6f 6e 2e 3c 2f 6c 69 3e  resolution.</li>
13c20 0a 3c 6c 69 3e 74 68 65 20 6f 70 74 69 6f 6e 61  .<li>the optiona
13c30 6c 20 61 72 67 75 6d 65 6e 74 20 3c 62 3e 3c 69  l argument <b><i
13c40 3e 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f 6e  >tiffCompression
13c50 3c 2f 69 3e 3c 2f 62 3e 20 63 6f 75 6c 64 20 62  </i></b> could b
13c60 65 20 6f 6e 65 20 6f 66 20 3c 62 3e 27 4e 4f 4e  e one of <b>'NON
13c70 45 27 3c 2f 62 3e 2c 20 3c 62 3e 27 44 45 46 4c  E'</b>, <b>'DEFL
13c80 41 54 45 27 3c 2f 62 3e 2c 20 3c 62 3e 27 4c 5a  ATE'</b>, <b>'LZ
13c90 57 27 3c 2f 62 3e 2c 20 3c 62 3e 27 4a 50 45 47  W'</b>, <b>'JPEG
13ca0 27 3c 2f 62 3e 2c 20 3c 62 3e 27 46 41 58 33 27  '</b>, <b>'FAX3'
13cb0 3c 2f 62 3e 20 6f 72 20 3c 62 3e 27 46 41 58 34  </b> or <b>'FAX4
13cc0 27 3c 2f 62 3e 3b 20 64 65 66 61 75 6c 74 20 69  '</b>; default i
13cd0 73 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62 3e 2e  s <b>'NONE'</b>.
13ce0 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 6c 61  </li>.<li>the la
13cf0 73 74 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75  st optional argu
13d00 6d 65 6e 74 20 63 61 6e 20 62 65 20 75 73 65 64  ment can be used
13d10 20 73 6f 20 74 6f 20 73 70 65 63 69 66 79 20 74   so to specify t
13d20 68 65 20 70 72 65 66 65 72 72 65 64 20 54 49 46  he preferred TIF
13d30 46 20 74 69 6c 65 20 73 69 7a 65 20 28 6f 6e 6c  F tile size (onl
13d40 79 20 73 71 75 61 72 65 20 74 69 6c 65 73 20 61  y square tiles a
13d50 72 65 20 73 75 70 70 6f 72 74 65 64 29 3b 20 64  re supported); d
13d60 65 66 61 75 6c 74 20 69 73 20 3c 62 3e 32 35 36  efault is <b>256
13d70 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e  </b>.</li>.</ul>
13d80 0a 3c 74 61 62 6c 65 20 77 69 64 74 68 3d 22 31  .<table width="1
13d90 30 30 25 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66  00%" bgcolor="#f
13da0 66 64 30 38 30 22 20 63 65 6c 6c 70 61 64 64 69  fd080" cellpaddi
13db0 6e 67 3d 22 36 22 3e 3c 74 72 3e 3c 74 64 3e 0a  ng="6"><tr><td>.
13dc0 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 20 76  <u>Please note v
13dd0 65 72 79 20 77 65 6c 6c 3c 2f 75 3e 3a 20 74 68  ery well</u>: th
13de0 69 73 20 53 51 4c 20 66 75 6e 63 74 69 6f 6e 20  is SQL function 
13df0 69 73 20 6f 6e 6c 79 20 61 76 61 69 6c 61 62 6c  is only availabl
13e00 65 20 77 68 65 6e 20 74 68 65 20 65 6e 76 69 72  e when the envir
13e10 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 20  onment variable 
13e20 3c 62 3e 53 50 41 54 49 41 4c 49 54 45 5f 53 45  <b>SPATIALITE_SE
13e30 43 55 52 49 54 59 3d 72 65 6c 61 78 65 64 3c 2f  CURITY=relaxed</
13e40 62 3e 20 69 73 20 73 65 74 2e 3c 2f 74 64 3e 3c  b> is set.</td><
13e50 2f 74 72 3e 3c 2f 74 61 62 6c 65 3e 3c 2f 74 64  /tr></table></td
13e60 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 3c 74 64 3e  >.</tr>.<tr><td>
13e70 3c 62 3e 52 4c 32 5f 57 72 69 74 65 54 69 66 66  <b>RL2_WriteTiff
13e80 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
13e90 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
13ea0 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
13eb0 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
13ec0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69  ring</i> , <b>fi
13ed0 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74  lePath</b> <i>St
13ee0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69  ring</i> , <b>wi
13ef0 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  dth</b> <i>Integ
13f00 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67  er</i> , <b>heig
13f10 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
13f20 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64  r</i> , <b>bound
13f30 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c  ingBox</b> <i>BL
13f40 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20  OB-Geometry</i> 
13f50 2c 20 3c 62 3e 70 69 78 65 6c 52 65 73 6f 6c 75  , <b>pixelResolu
13f60 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62  tion</b> <i>Doub
13f70 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e  le</i> ) : <i>In
13f80 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72  teger</i><br><br
13f90 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 54 69  >.<b>RL2_WriteTi
13fa0 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72  ff</b> ( <b>dbPr
13fb0 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  efix</b> <i>Stri
13fc0 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65  ng</i> , <b>cove
13fd0 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e  rageName</b> <i>
13fe0 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
13ff0 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e  filePath</b> <i>
14000 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
14010 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74  width</b> <i>Int
14020 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65  eger</i> , <b>he
14030 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  ight</b> <i>Inte
14040 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75  ger</i> , <b>bou
14050 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e  ndingBox</b> <i>
14060 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69  BLOB-Geometry</i
14070 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c  > , <b>horzPixel
14080 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
14090 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c  i>Double</i> , <
140a0 62 3e 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c  b>vertPixelResol
140b0 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75  ution</b> <i>Dou
140c0 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49  ble</i> ) : <i>I
140d0 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62  nteger</i><br><b
140e0 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 54  r>.<b>RL2_WriteT
140f0 69 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50  iff</b> ( <b>dbP
14100 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72  refix</b> <i>Str
14110 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76  ing</i> , <b>cov
14120 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69  erageName</b> <i
14130 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
14140 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69  >filePath</b> <i
14150 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
14160 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e  >width</b> <i>In
14170 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68  teger</i> , <b>h
14180 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74  eight</b> <i>Int
14190 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f  eger</i> , <b>bo
141a0 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69  undingBox</b> <i
141b0 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f  >BLOB-Geometry</
141c0 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50 69 78 65  i> , <b>horzPixe
141d0 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20  lResolution</b> 
141e0 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20  <i>Double</i> , 
141f0 3c 62 3e 76 65 72 74 50 69 78 65 6c 52 65 73 6f  <b>vertPixelReso
14200 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f  lution</b> <i>Do
14210 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69  uble</i> , <b>ti
14220 66 66 43 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 62  ffCompression</b
14230 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
14240 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
14250 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c  i><br><br>.<b>RL
14260 32 5f 57 72 69 74 65 54 69 66 66 3c 2f 62 3e 20  2_WriteTiff</b> 
14270 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62  ( <b>dbPrefix</b
14280 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
14290 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d  , <b>coverageNam
142a0 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
142b0 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74  /i> , <b>filePat
142c0 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  h</b> <i>String<
142d0 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f  /i> , <b>width</
142e0 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
142f0 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62  > , <b>height</b
14300 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
14310 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f   , <b>boundingBo
14320 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65  x</b> <i>BLOB-Ge
14330 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e  ometry</i> , <b>
14340 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74  horzPixelResolut
14350 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c  ion</b> <i>Doubl
14360 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50  e</i> , <b>vertP
14370 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f  ixelResolution</
14380 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e  b> <i>Double</i>
14390 20 2c 20 3c 62 3e 74 69 66 66 43 6f 6d 70 72 65   , <b>tiffCompre
143a0 73 73 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72  ssion</b> <i>Str
143b0 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 66  ing</i> , <b>tif
143c0 66 54 69 6c 65 53 69 7a 65 3c 2f 62 3e 20 3c 69  fTileSize</b> <i
143d0 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a  >Integer</i> ) :
143e0 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
143f0 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61 74  /td>.<td>Will at
14400 74 65 6d 70 74 20 74 6f 20 65 78 70 6f 72 74 20  tempt to export 
14410 72 61 77 20 72 61 73 74 65 72 20 64 61 74 61 20  raw raster data 
14420 66 72 6f 6d 20 61 20 43 6f 76 65 72 61 67 65 20  from a Coverage 
14430 69 6e 74 6f 20 61 6e 20 65 78 74 65 72 6e 61 6c  into an external
14440 20 20 70 6c 61 69 6e 20 54 49 46 46 20 66 69 6c    plain TIFF fil
14450 65 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75  e.<br>.Will retu
14460 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20 28 54 52 55  rn <b>1</b> (TRU
14470 45 2f 53 55 43 43 45 53 53 29 20 6f 72 20 3c 62  E/SUCCESS) or <b
14480 3e 30 3c 2f 62 3e 20 28 46 41 4c 53 45 2f 46 41  >0</b> (FALSE/FA
14490 49 4c 55 52 45 29 3a 20 6f 72 20 3c 62 3e 2d 31  ILURE): or <b>-1
144a0 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20  </b> on invalid 
144b0 61 72 67 75 6d 65 6e 74 73 2e 3c 62 72 3e 0a 3c  arguments.<br>.<
144c0 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75  u>Please note</u
144d0 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69 3e 54 68 65  >: .<ul>.<li>The
144e0 20 3c 62 3e 3c 69 3e 64 62 50 72 65 66 69 78 3c   <b><i>dbPrefix<
144f0 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74  /i></b> argument
14500 20 69 73 20 69 6e 74 65 6e 64 65 64 20 74 6f 20   is intended to 
14510 73 70 65 63 69 66 79 20 74 68 65 20 41 54 54 41  specify the ATTA
14520 43 48 45 44 2d 44 42 20 77 68 65 72 65 20 74 68  CHED-DB where th
14530 65 20 43 6f 76 65 72 61 67 65 20 69 73 20 65 78  e Coverage is ex
14540 70 65 63 74 65 64 20 74 6f 20 62 65 20 66 6f 75  pected to be fou
14550 6e 64 3b 20 69 74 20 63 6f 75 6c 64 20 62 65 20  nd; it could be 
14560 65 76 65 6e 74 75 61 6c 6c 79 20 3c 62 3e 4e 55  eventually <b>NU
14570 4c 4c 3c 2f 62 3e 2c 20 61 6e 64 20 69 6e 20 74  LL</b>, and in t
14580 68 69 73 20 63 61 73 65 20 74 68 65 20 3c 62 3e  his case the <b>
14590 4d 41 49 4e 20 44 42 3c 2f 62 3e 20 77 69 6c 6c  MAIN DB</b> will
145a0 20 69 6d 70 6c 69 63 69 74 6c 79 20 62 65 20 61   implicitly be a
145b0 73 73 75 6d 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69  ssumed.</li>.<li
145c0 3e 74 68 65 20 3c 62 3e 3c 69 3e 62 6f 75 6e 64  >the <b><i>bound
145d0 69 6e 67 42 6f 78 3c 2f 69 3e 3c 2f 62 3e 20 69  ingBox</i></b> i
145e0 73 20 65 78 70 65 63 74 65 64 20 74 6f 20 72 65  s expected to re
145f0 70 72 65 73 65 6e 74 20 74 68 65 20 6f 76 65 72  present the over
14600 61 6c 6c 20 65 78 74 65 6e 74 20 6f 66 20 74 68  all extent of th
14610 65 20 65 78 70 6f 72 74 65 64 20 54 49 46 46 3b  e exported TIFF;
14620 20 79 6f 75 20 63 6f 75 6c 64 20 65 76 65 6e 74   you could event
14630 75 61 6c 6c 79 20 70 61 73 73 20 61 6e 79 20 61  ually pass any a
14640 72 62 69 74 72 61 72 79 20 6b 69 6e 64 20 6f 66  rbitrary kind of
14650 20 47 65 6f 6d 65 74 72 79 2c 20 61 6e 64 20 74   Geometry, and t
14660 68 65 20 42 6f 75 6e 64 69 6e 67 20 42 6f 78 20  he Bounding Box 
14670 61 6b 61 20 4d 42 52 20 77 69 6c 6c 20 62 65 20  aka MBR will be 
14680 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 64 65  automatically de
14690 74 65 72 6d 69 6e 65 64 2e 3c 2f 6c 69 3e 0a 3c  termined.</li>.<
146a0 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 68 6f 72  li>the <b><i>hor
146b0 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  zPixelResolution
146c0 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e  </i></b> and <b>
146d0 3c 69 3e 76 65 72 74 50 69 78 65 6c 52 65 73 6f  <i>vertPixelReso
146e0 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 6d  lution</i></b> m
146f0 75 73 74 20 65 78 61 63 74 6c 79 20 6d 61 74 63  ust exactly matc
14700 68 20 74 68 65 20 43 6f 76 65 72 61 67 65 27 73  h the Coverage's
14710 20 62 61 73 65 20 72 65 73 6f 6c 75 74 69 6f 6e   base resolution
14720 20 6f 72 20 6f 6e 65 20 6f 66 20 74 68 65 20 72   or one of the r
14730 65 73 6f 6c 75 74 69 6f 6e 73 20 6d 61 64 65 20  esolutions made 
14740 61 76 61 69 6c 61 62 6c 65 20 62 79 20 74 68 65  available by the
14750 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 50   corresponding P
14760 79 72 61 6d 69 64 20 6c 65 76 65 6c 73 2e 3c 2f  yramid levels.</
14770 6c 69 3e 0a 3c 6c 69 3e 61 6e 64 20 74 68 65 20  li>.<li>and the 
14780 42 6f 75 6e 64 69 6e 67 42 6f 78 20 6d 75 73 74  BoundingBox must
14790 20 65 78 61 63 74 6c 79 20 6d 61 74 63 68 20 74   exactly match t
147a0 68 65 20 54 49 46 46 20 3c 62 3e 3c 69 3e 77 69  he TIFF <b><i>wi
147b0 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20  dth</i></b> and 
147c0 3c 62 3e 3c 69 3e 68 65 69 67 68 74 3c 2f 69 3e  <b><i>height</i>
147d0 3c 2f 62 3e 20 64 69 6d 65 6e 73 69 6f 6e 73 20  </b> dimensions 
147e0 61 74 20 74 68 61 74 20 72 65 73 6f 6c 75 74 69  at that resoluti
147f0 6f 6e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65  on.</li>.<li>the
14800 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65   optional argume
14810 6e 74 20 3c 62 3e 3c 69 3e 74 69 66 66 43 6f 6d  nt <b><i>tiffCom
14820 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e  pression</i></b>
14830 20 63 6f 75 6c 64 20 62 65 20 6f 6e 65 20 6f 66   could be one of
14840 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62 3e 2c 20   <b>'NONE'</b>, 
14850 3c 62 3e 27 44 45 46 4c 41 54 45 27 3c 2f 62 3e  <b>'DEFLATE'</b>
14860 2c 20 3c 62 3e 27 4c 5a 57 27 3c 2f 62 3e 2c 20  , <b>'LZW'</b>, 
14870 3c 62 3e 27 4a 50 45 47 27 3c 2f 62 3e 2c 20 3c  <b>'JPEG'</b>, <
14880 62 3e 27 46 41 58 33 27 3c 2f 62 3e 20 6f 72 20  b>'FAX3'</b> or 
14890 3c 62 3e 27 46 41 58 34 27 3c 2f 62 3e 3b 20 64  <b>'FAX4'</b>; d
148a0 65 66 61 75 6c 74 20 69 73 20 3c 62 3e 27 4e 4f  efault is <b>'NO
148b0 4e 45 27 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 6c  NE'</b>.</li>.<l
148c0 69 3e 74 68 65 20 6c 61 73 74 20 6f 70 74 69 6f  i>the last optio
148d0 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 63 61 6e  nal argument can
148e0 20 62 65 20 75 73 65 64 20 73 6f 20 74 6f 20 73   be used so to s
148f0 70 65 63 69 66 79 20 74 68 65 20 70 72 65 66 65  pecify the prefe
14900 72 72 65 64 20 54 49 46 46 20 74 69 6c 65 20 73  rred TIFF tile s
14910 69 7a 65 20 28 6f 6e 6c 79 20 73 71 75 61 72 65  ize (only square
14920 20 74 69 6c 65 73 20 61 72 65 20 73 75 70 70 6f   tiles are suppo
14930 72 74 65 64 29 3b 20 64 65 66 61 75 6c 74 20 69  rted); default i
14940 73 20 3c 62 3e 32 35 36 3c 2f 62 3e 2e 3c 2f 6c  s <b>256</b>.</l
14950 69 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61 62 6c 65 20  i>.</ul>.<table 
14960 77 69 64 74 68 3d 22 31 30 30 25 22 20 62 67 63  width="100%" bgc
14970 6f 6c 6f 72 3d 22 23 66 66 64 30 38 30 22 20 63  olor="#ffd080" c
14980 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36 22 3e 3c  ellpadding="6"><
14990 74 72 3e 3c 74 64 3e 0a 3c 75 3e 50 6c 65 61 73  tr><td>.<u>Pleas
149a0 65 20 6e 6f 74 65 20 76 65 72 79 20 77 65 6c 6c  e note very well
149b0 3c 2f 75 3e 3a 20 74 68 69 73 20 53 51 4c 20 66  </u>: this SQL f
149c0 75 6e 63 74 69 6f 6e 20 69 73 20 6f 6e 6c 79 20  unction is only 
149d0 61 76 61 69 6c 61 62 6c 65 20 77 68 65 6e 20 74  available when t
149e0 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76  he environment v
149f0 61 72 69 61 62 6c 65 20 3c 62 3e 53 50 41 54 49  ariable <b>SPATI
14a00 41 4c 49 54 45 5f 53 45 43 55 52 49 54 59 3d 72  ALITE_SECURITY=r
14a10 65 6c 61 78 65 64 3c 2f 62 3e 20 69 73 20 73 65  elaxed</b> is se
14a20 74 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61  t.</td></tr></ta
14a30 62 6c 65 3e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a  ble></td>.</tr>.
14a40 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f 57  <tr><td><b>RL2_W
14a50 72 69 74 65 54 72 69 70 6c 65 42 61 6e 64 47 65  riteTripleBandGe
14a60 6f 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64  oTiff</b> ( <b>d
14a70 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53  bPrefix</b> <i>S
14a80 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63  tring</i> , <b>c
14a90 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20  overageName</b> 
14aa0 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
14ab0 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20  <b>filePath</b> 
14ac0 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
14ad0 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e  <b>width</b> <i>
14ae0 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
14af0 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49  >height</b> <i>I
14b00 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
14b10 62 61 6e 64 49 6e 64 65 78 52 65 64 3c 2f 62 3e  bandIndexRed</b>
14b20 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
14b30 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47 72  , <b>bandIndexGr
14b40 65 65 6e 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  een</b> <i>Integ
14b50 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64  er</i> , <b>band
14b60 49 6e 64 65 78 42 6c 75 65 3c 2f 62 3e 20 3c 69  IndexBlue</b> <i
14b70 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
14b80 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
14b90 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
14ba0 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 70 69 78 65  ry</i> , <b>pixe
14bb0 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20  lResolution</b> 
14bc0 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20  <i>Double</i> ) 
14bd0 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  : <i>Integer</i>
14be0 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f  <br><br>.<b>RL2_
14bf0 57 72 69 74 65 54 72 69 70 6c 65 42 61 6e 64 47  WriteTripleBandG
14c00 65 6f 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62 3e  eoTiff</b> ( <b>
14c10 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e  dbPrefix</b> <i>
14c20 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
14c30 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e  coverageName</b>
14c40 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
14c50 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e   <b>filePath</b>
14c60 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
14c70 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69   <b>width</b> <i
14c80 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
14c90 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e  b>height</b> <i>
14ca0 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
14cb0 3e 62 61 6e 64 49 6e 64 65 78 52 65 64 3c 2f 62  >bandIndexRed</b
14cc0 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
14cd0 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47   , <b>bandIndexG
14ce0 72 65 65 6e 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  reen</b> <i>Inte
14cf0 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e  ger</i> , <b>ban
14d00 64 49 6e 64 65 78 42 6c 75 65 3c 2f 62 3e 20 3c  dIndexBlue</b> <
14d10 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c  i>Integer</i>  ,
14d20 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c   <b>boundingBox<
14d30 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d  /b> <i>BLOB-Geom
14d40 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f  etry</i> , <b>ho
14d50 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rzPixelResolutio
14d60 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c  n</b> <i>Double<
14d70 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78  /i> , <b>vertPix
14d80 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e  elResolution</b>
14d90 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29   <i>Double</i> )
14da0 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69   : <i>Integer</i
14db0 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32  ><br><br>.<b>RL2
14dc0 5f 57 72 69 74 65 54 72 69 70 6c 65 42 61 6e 64  _WriteTripleBand
14dd0 47 65 6f 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62  GeoTiff</b> ( <b
14de0 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69  >dbPrefix</b> <i
14df0 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
14e00 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62  >coverageName</b
14e10 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
14e20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62  , <b>filePath</b
14e30 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
14e40 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c  , <b>width</b> <
14e50 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
14e60 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69  <b>height</b> <i
14e70 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
14e80 62 3e 62 61 6e 64 49 6e 64 65 78 52 65 64 3c 2f  b>bandIndexRed</
14e90 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
14ea0 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78  > , <b>bandIndex
14eb0 47 72 65 65 6e 3c 2f 62 3e 20 3c 69 3e 49 6e 74  Green</b> <i>Int
14ec0 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61  eger</i> , <b>ba
14ed0 6e 64 49 6e 64 65 78 42 6c 75 65 3c 2f 62 3e 20  ndIndexBlue</b> 
14ee0 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20  <i>Integer</i>  
14ef0 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78  , <b>boundingBox
14f00 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f  </b> <i>BLOB-Geo
14f10 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68  metry</i> , <b>h
14f20 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69  orzPixelResoluti
14f30 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65  on</b> <i>Double
14f40 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69  </i> , <b>vertPi
14f50 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62  xelResolution</b
14f60 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20  > <i>Double</i> 
14f70 2c 20 3c 62 3e 77 69 74 68 57 6f 6c 64 46 69 6c  , <b>withWoldFil
14f80 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  e</b> <i>Integer
14f90 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65  </i> ) : <i>Inte
14fa0 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a  ger</i><br><br>.
14fb0 3c 62 3e 52 4c 32 5f 57 72 69 74 65 54 72 69 70  <b>RL2_WriteTrip
14fc0 6c 65 42 61 6e 64 47 65 6f 54 69 66 66 3c 2f 62  leBandGeoTiff</b
14fd0 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c  > ( <b>dbPrefix<
14fe0 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
14ff0 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e  > , <b>coverageN
15000 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ame</b> <i>Strin
15010 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50  g</i> , <b>fileP
15020 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ath</b> <i>Strin
15030 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68  g</i> , <b>width
15040 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
15050 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c  /i> , <b>height<
15060 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
15070 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65  i> , <b>bandInde
15080 78 52 65 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  xRed</b> <i>Inte
15090 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e  ger</i> , <b>ban
150a0 64 49 6e 64 65 78 47 72 65 65 6e 3c 2f 62 3e 20  dIndexGreen</b> 
150b0 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
150c0 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 42 6c 75   <b>bandIndexBlu
150d0 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  e</b> <i>Integer
150e0 3c 2f 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64  </i>  , <b>bound
150f0 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c  ingBox</b> <i>BL
15100 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20  OB-Geometry</i> 
15110 2c 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65  , <b>horzPixelRe
15120 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  solution</b> <i>
15130 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e  Double</i> , <b>
15140 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74  vertPixelResolut
15150 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c  ion</b> <i>Doubl
15160 65 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 74 68 57  e</i> , <b>withW
15170 6f 6c 64 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e 49  oldFile</b> <i>I
15180 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
15190 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f 6e 3c  tiffCompression<
151a0 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
151b0 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72  > ) : <i>Integer
151c0 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e  </i><br><br>.<b>
151d0 52 4c 32 5f 57 72 69 74 65 54 72 69 70 6c 65 42  RL2_WriteTripleB
151e0 61 6e 64 47 65 6f 54 69 66 66 3c 2f 62 3e 20 28  andGeoTiff</b> (
151f0 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e   <b>dbPrefix</b>
15200 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
15210 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65   <b>coverageName
15220 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
15230 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68  i> , <b>filePath
15240 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
15250 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62  i> , <b>width</b
15260 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
15270 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e   , <b>height</b>
15280 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
15290 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 52 65  , <b>bandIndexRe
152a0 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  d</b> <i>Integer
152b0 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e  </i> , <b>bandIn
152c0 64 65 78 47 72 65 65 6e 3c 2f 62 3e 20 3c 69 3e  dexGreen</b> <i>
152d0 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
152e0 3e 62 61 6e 64 49 6e 64 65 78 42 6c 75 65 3c 2f  >bandIndexBlue</
152f0 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
15300 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67  >  , <b>bounding
15310 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d  Box</b> <i>BLOB-
15320 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c  Geometry</i> , <
15330 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c  b>horzPixelResol
15340 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75  ution</b> <i>Dou
15350 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72  ble</i> , <b>ver
15360 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  tPixelResolution
15370 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f  </b> <i>Double</
15380 69 3e 20 2c 20 3c 62 3e 77 69 74 68 57 6f 6c 64  i> , <b>withWold
15390 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  File</b> <i>Inte
153a0 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 66  ger</i> , <b>tif
153b0 66 43 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 62 3e  fCompression</b>
153c0 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
153d0 20 3c 62 3e 74 69 66 66 54 69 6c 65 53 69 7a 65   <b>tiffTileSize
153e0 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
153f0 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67  /i> ) : <i>Integ
15400 65 72 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e  er</i></td>.<td>
15410 57 69 6c 6c 20 61 74 74 65 6d 70 74 20 74 6f 20  Will attempt to 
15420 65 78 70 6f 72 74 20 72 61 77 20 72 61 73 74 65  export raw raste
15430 72 20 64 61 74 61 20 66 72 6f 6d 20 61 20 4d 55  r data from a MU
15440 4c 54 49 42 41 4e 44 20 6f 72 20 52 47 42 20 43  LTIBAND or RGB C
15450 6f 76 65 72 61 67 65 20 69 6e 74 6f 20 61 6e 20  overage into an 
15460 65 78 74 65 72 6e 61 6c 20 47 65 6f 54 49 46 46  external GeoTIFF
15470 20 66 69 6c 65 20 6f 66 20 74 68 65 20 52 47 42   file of the RGB
15480 20 74 79 70 65 2e 3c 62 72 3e 0a 57 69 6c 6c 20   type.<br>.Will 
15490 72 65 74 75 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20  return <b>1</b> 
154a0 28 54 52 55 45 2f 53 55 43 43 45 53 53 29 20 6f  (TRUE/SUCCESS) o
154b0 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41 4c 53  r <b>0</b> (FALS
154c0 45 2f 46 41 49 4c 55 52 45 29 3a 20 6f 72 20 3c  E/FAILURE): or <
154d0 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61  b>-1</b> on inva
154e0 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 2e 3c 62  lid arguments.<b
154f0 72 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74  r>.<u>Please not
15500 65 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69  e</u>: .<ul>.<li
15510 3e 54 68 65 20 3c 62 3e 3c 69 3e 64 62 50 72 65  >The <b><i>dbPre
15520 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75  fix</i></b> argu
15530 6d 65 6e 74 20 69 73 20 69 6e 74 65 6e 64 65 64  ment is intended
15540 20 74 6f 20 73 70 65 63 69 66 79 20 74 68 65 20   to specify the 
15550 41 54 54 41 43 48 45 44 2d 44 42 20 77 68 65 72  ATTACHED-DB wher
15560 65 20 74 68 65 20 43 6f 76 65 72 61 67 65 20 69  e the Coverage i
15570 73 20 65 78 70 65 63 74 65 64 20 74 6f 20 62 65  s expected to be
15580 20 66 6f 75 6e 64 3b 20 69 74 20 63 6f 75 6c 64   found; it could
15590 20 62 65 20 65 76 65 6e 74 75 61 6c 6c 79 20 3c   be eventually <
155a0 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20 61 6e 64 20  b>NULL</b>, and 
155b0 69 6e 20 74 68 69 73 20 63 61 73 65 20 74 68 65  in this case the
155c0 20 3c 62 3e 4d 41 49 4e 20 44 42 3c 2f 62 3e 20   <b>MAIN DB</b> 
155d0 77 69 6c 6c 20 69 6d 70 6c 69 63 69 74 6c 79 20  will implicitly 
155e0 62 65 20 61 73 73 75 6d 65 64 2e 3c 2f 6c 69 3e  be assumed.</li>
155f0 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 62  .<li>the <b><i>b
15600 61 6e 64 49 6e 64 65 78 52 65 64 3c 2f 62 3e 3c  andIndexRed</b><
15610 2f 69 3e 2c 20 3c 62 3e 3c 69 3e 62 61 6e 64 49  /i>, <b><i>bandI
15620 6e 64 65 78 47 72 65 65 6e 3c 2f 69 3e 3c 2f 62  ndexGreen</i></b
15630 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 62 61 6e 64  > and <b><i>band
15640 49 6e 64 65 78 42 6c 75 65 3c 2f 69 3e 3c 2f 62  IndexBlue</i></b
15650 3e 20 61 72 67 75 6d 65 6e 74 73 20 61 72 65 20  > arguments are 
15660 69 6e 74 65 6e 64 65 64 20 74 6f 20 61 72 62 69  intended to arbi
15670 74 72 61 72 69 6c 79 20 63 6f 6d 70 6f 73 65 20  trarily compose 
15680 74 68 65 20 52 47 42 20 54 49 46 46 20 73 74 61  the RGB TIFF sta
15690 72 74 69 6e 67 20 66 72 6f 6d 20 74 68 65 20 42  rting from the B
156a0 61 6e 64 73 20 73 75 70 70 6f 72 74 65 64 20 62  ands supported b
156b0 79 20 74 68 65 20 43 6f 76 65 72 61 67 65 2e 0a  y the Coverage..
156c0 3c 62 72 3e 3c 75 3e 50 6c 65 61 73 65 20 6e 6f  <br><u>Please no
156d0 74 65 3c 2f 75 3e 3a 20 74 68 65 20 66 69 72 73  te</u>: the firs
156e0 74 20 42 61 6e 64 20 61 6c 77 61 79 73 20 63 6f  t Band always co
156f0 72 72 65 73 70 6f 6e 64 73 20 74 6f 20 69 6e 64  rresponds to ind
15700 65 78 20 3c 62 3e 5a 45 52 4f 3c 2f 62 3e 3c 2f  ex <b>ZERO</b></
15710 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c  li>.<li>the <b><
15720 69 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 69  i>boundingBox</i
15730 3e 3c 2f 62 3e 20 69 73 20 65 78 70 65 63 74 65  ></b> is expecte
15740 64 20 74 6f 20 72 65 70 72 65 73 65 6e 74 20 74  d to represent t
15750 68 65 20 6f 76 65 72 61 6c 6c 20 65 78 74 65 6e  he overall exten
15760 74 20 6f 66 20 74 68 65 20 65 78 70 6f 72 74 65  t of the exporte
15770 64 20 47 65 6f 54 49 46 46 3b 20 79 6f 75 20 63  d GeoTIFF; you c
15780 6f 75 6c 64 20 65 76 65 6e 74 75 61 6c 6c 79 20  ould eventually 
15790 70 61 73 73 20 61 6e 79 20 61 72 62 69 74 72 61  pass any arbitra
157a0 72 79 20 6b 69 6e 64 20 6f 66 20 47 65 6f 6d 65  ry kind of Geome
157b0 74 72 79 2c 20 61 6e 64 20 74 68 65 20 42 6f 75  try, and the Bou
157c0 6e 64 69 6e 67 20 42 6f 78 20 61 6b 61 20 4d 42  nding Box aka MB
157d0 52 20 77 69 6c 6c 20 62 65 20 61 75 74 6f 6d 61  R will be automa
157e0 74 69 63 61 6c 6c 79 20 64 65 74 65 72 6d 69 6e  tically determin
157f0 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65  ed.</li>.<li>the
15800 20 3c 62 3e 3c 69 3e 68 6f 72 7a 50 69 78 65 6c   <b><i>horzPixel
15810 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f  Resolution</i></
15820 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 76 65 72  b> and <b><i>ver
15830 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  tPixelResolution
15840 3c 2f 69 3e 3c 2f 62 3e 20 6d 75 73 74 20 65 78  </i></b> must ex
15850 61 63 74 6c 79 20 6d 61 74 63 68 20 74 68 65 20  actly match the 
15860 43 6f 76 65 72 61 67 65 27 73 20 62 61 73 65 20  Coverage's base 
15870 72 65 73 6f 6c 75 74 69 6f 6e 20 6f 72 20 6f 6e  resolution or on
15880 65 20 6f 66 20 74 68 65 20 72 65 73 6f 6c 75 74  e of the resolut
15890 69 6f 6e 73 20 6d 61 64 65 20 61 76 61 69 6c 61  ions made availa
158a0 62 6c 65 20 62 79 20 74 68 65 20 63 6f 72 72 65  ble by the corre
158b0 73 70 6f 6e 64 69 6e 67 20 50 79 72 61 6d 69 64  sponding Pyramid
158c0 20 6c 65 76 65 6c 73 2e 3c 2f 6c 69 3e 0a 3c 6c   levels.</li>.<l
158d0 69 3e 61 6e 64 20 74 68 65 20 42 6f 75 6e 64 69  i>and the Boundi
158e0 6e 67 42 6f 78 20 6d 75 73 74 20 65 78 61 63 74  ngBox must exact
158f0 6c 79 20 6d 61 74 63 68 20 74 68 65 20 54 49 46  ly match the TIF
15900 46 20 3c 62 3e 3c 69 3e 77 69 64 74 68 3c 2f 69  F <b><i>width</i
15910 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e  ></b> and <b><i>
15920 68 65 69 67 68 74 3c 2f 69 3e 3c 2f 62 3e 20 64  height</i></b> d
15930 69 6d 65 6e 73 69 6f 6e 73 20 61 74 20 74 68 61  imensions at tha
15940 74 20 72 65 73 6f 6c 75 74 69 6f 6e 2e 3c 2f 6c  t resolution.</l
15950 69 3e 0a 3c 6c 69 3e 69 66 20 74 68 65 20 6f 70  i>.<li>if the op
15960 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20  tional argument 
15970 3c 62 3e 3c 69 3e 77 69 74 68 57 6f 72 6c 64 46  <b><i>withWorldF
15980 69 6c 65 3c 2f 69 3e 3c 2f 62 3e 20 69 73 20 73  ile</i></b> is s
15990 65 74 20 74 6f 20 54 52 55 45 20 74 68 65 6e 20  et to TRUE then 
159a0 61 6e 20 61 75 78 69 6c 69 61 72 79 20 57 6f 72  an auxiliary Wor
159b0 6c 64 46 69 6c 65 20 77 69 6c 6c 20 62 65 20 65  ldFile will be e
159c0 78 70 6f 72 74 65 64 20 61 73 20 77 65 6c 6c 2e  xported as well.
159d0 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 6f 70  </li>.<li>the op
159e0 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20  tional argument 
159f0 3c 62 3e 3c 69 3e 74 69 66 66 43 6f 6d 70 72 65  <b><i>tiffCompre
15a00 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 63 6f  ssion</i></b> co
15a10 75 6c 64 20 62 65 20 6f 6e 65 20 6f 66 20 3c 62  uld be one of <b
15a20 3e 27 4e 4f 4e 45 27 3c 2f 62 3e 2c 20 3c 62 3e  >'NONE'</b>, <b>
15a30 27 44 45 46 4c 41 54 45 27 3c 2f 62 3e 2c 20 3c  'DEFLATE'</b>, <
15a40 62 3e 27 4c 5a 57 27 3c 2f 62 3e 2c 20 3c 62 3e  b>'LZW'</b>, <b>
15a50 27 4a 50 45 47 27 3c 2f 62 3e 2c 20 3c 62 3e 27  'JPEG'</b>, <b>'
15a60 46 41 58 33 27 3c 2f 62 3e 20 6f 72 20 3c 62 3e  FAX3'</b> or <b>
15a70 27 46 41 58 34 27 3c 2f 62 3e 3b 20 64 65 66 61  'FAX4'</b>; defa
15a80 75 6c 74 20 69 73 20 3c 62 3e 27 4e 4f 4e 45 27  ult is <b>'NONE'
15a90 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74  </b>.</li>.<li>t
15aa0 68 65 20 6c 61 73 74 20 6f 70 74 69 6f 6e 61 6c  he last optional
15ab0 20 61 72 67 75 6d 65 6e 74 20 63 61 6e 20 62 65   argument can be
15ac0 20 75 73 65 64 20 73 6f 20 74 6f 20 73 70 65 63   used so to spec
15ad0 69 66 79 20 74 68 65 20 70 72 65 66 65 72 72 65  ify the preferre
15ae0 64 20 54 49 46 46 20 74 69 6c 65 20 73 69 7a 65  d TIFF tile size
15af0 20 28 6f 6e 6c 79 20 73 71 75 61 72 65 20 74 69   (only square ti
15b00 6c 65 73 20 61 72 65 20 73 75 70 70 6f 72 74 65  les are supporte
15b10 64 29 3b 20 64 65 66 61 75 6c 74 20 69 73 20 3c  d); default is <
15b20 62 3e 32 35 36 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a  b>256</b>.</li>.
15b30 3c 2f 75 6c 3e 0a 3c 74 61 62 6c 65 20 77 69 64  </ul>.<table wid
15b40 74 68 3d 22 31 30 30 25 22 20 62 67 63 6f 6c 6f  th="100%" bgcolo
15b50 72 3d 22 23 66 66 64 30 38 30 22 20 63 65 6c 6c  r="#ffd080" cell
15b60 70 61 64 64 69 6e 67 3d 22 36 22 3e 3c 74 72 3e  padding="6"><tr>
15b70 3c 74 64 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e  <td>.<u>Please n
15b80 6f 74 65 20 76 65 72 79 20 77 65 6c 6c 3c 2f 75  ote very well</u
15b90 3e 3a 20 74 68 69 73 20 53 51 4c 20 66 75 6e 63  >: this SQL func
15ba0 74 69 6f 6e 20 69 73 20 6f 6e 6c 79 20 61 76 61  tion is only ava
15bb0 69 6c 61 62 6c 65 20 77 68 65 6e 20 74 68 65 20  ilable when the 
15bc0 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69  environment vari
15bd0 61 62 6c 65 20 3c 62 3e 53 50 41 54 49 41 4c 49  able <b>SPATIALI
15be0 54 45 5f 53 45 43 55 52 49 54 59 3d 72 65 6c 61  TE_SECURITY=rela
15bf0 78 65 64 3c 2f 62 3e 20 69 73 20 73 65 74 2e 3c  xed</b> is set.<
15c00 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61 62 6c 65  /td></tr></table
15c10 3e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72  ></td>.</tr>.<tr
15c20 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f 57 72 69 74  ><td><b>RL2_Writ
15c30 65 54 72 69 70 6c 65 42 61 6e 64 54 69 66 66 54  eTripleBandTiffT
15c40 46 57 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72  FW</b> ( <b>dbPr
15c50 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  efix</b> <i>Stri
15c60 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65  ng</i> , <b>cove
15c70 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e  rageName</b> <i>
15c80 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
15c90 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e  filePath</b> <i>
15ca0 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
15cb0 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74  width</b> <i>Int
15cc0 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65  eger</i> , <b>he
15cd0 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  ight</b> <i>Inte
15ce0 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e  ger</i> , <b>ban
15cf0 64 49 6e 64 65 78 52 65 64 3c 2f 62 3e 20 3c 69  dIndexRed</b> <i
15d00 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
15d10 62 3e 62 61 6e 64 49 6e 64 65 78 47 72 65 65 6e  b>bandIndexGreen
15d20 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
15d30 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64  /i> , <b>bandInd
15d40 65 78 42 6c 75 65 3c 2f 62 3e 20 3c 69 3e 49 6e  exBlue</b> <i>In
15d50 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62  teger</i> , <b>b
15d60 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c  oundingBox</b> <
15d70 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c  i>BLOB-Geometry<
15d80 2f 69 3e 20 2c 20 3c 62 3e 70 69 78 65 6c 52 65  /i> , <b>pixelRe
15d90 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  solution</b> <i>
15da0 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c  Double</i> ) : <
15db0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72  i>Integer</i><br
15dc0 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69  ><br>.<b>RL2_Wri
15dd0 74 65 54 72 69 70 6c 65 42 61 6e 64 54 69 66 66  teTripleBandTiff
15de0 54 46 57 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50  TFW</b> ( <b>dbP
15df0 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72  refix</b> <i>Str
15e00 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76  ing</i> , <b>cov
15e10 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69  erageName</b> <i
15e20 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
15e30 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69  >filePath</b> <i
15e40 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
15e50 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e  >width</b> <i>In
15e60 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68  teger</i> , <b>h
15e70 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74  eight</b> <i>Int
15e80 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61  eger</i> , <b>ba
15e90 6e 64 49 6e 64 65 78 52 65 64 3c 2f 62 3e 20 3c  ndIndexRed</b> <
15ea0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
15eb0 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47 72 65 65  <b>bandIndexGree
15ec0 6e 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  n</b> <i>Integer
15ed0 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e  </i> , <b>bandIn
15ee0 64 65 78 42 6c 75 65 3c 2f 62 3e 20 3c 69 3e 49  dexBlue</b> <i>I
15ef0 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c 62  nteger</i>  , <b
15f00 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e  >boundingBox</b>
15f10 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72   <i>BLOB-Geometr
15f20 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50  y</i> , <b>horzP
15f30 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f  ixelResolution</
15f40 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e  b> <i>Double</i>
15f50 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c 52   , <b>vertPixelR
15f60 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69  esolution</b> <i
15f70 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20  >Double</i> ) : 
15f80 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62  <i>Integer</i><b
15f90 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72  r><br>.<b>RL2_Wr
15fa0 69 74 65 54 72 69 70 6c 65 42 61 6e 64 54 69 66  iteTripleBandTif
15fb0 66 54 46 57 3c 2f 62 3e 20 28 20 3c 62 3e 64 62  fTFW</b> ( <b>db
15fc0 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74  Prefix</b> <i>St
15fd0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f  ring</i> , <b>co
15fe0 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
15ff0 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
16000 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c  b>filePath</b> <
16010 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
16020 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49  b>width</b> <i>I
16030 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
16040 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e  height</b> <i>In
16050 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62  teger</i> , <b>b
16060 61 6e 64 49 6e 64 65 78 52 65 64 3c 2f 62 3e 20  andIndexRed</b> 
16070 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
16080 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47 72 65   <b>bandIndexGre
16090 65 6e 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  en</b> <i>Intege
160a0 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49  r</i> , <b>bandI
160b0 6e 64 65 78 42 6c 75 65 3c 2f 62 3e 20 3c 69 3e  ndexBlue</b> <i>
160c0 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c  Integer</i>  , <
160d0 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
160e0 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
160f0 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a  ry</i> , <b>horz
16100 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
16110 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
16120 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c  > , <b>vertPixel
16130 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
16140 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c  i>Double</i> , <
16150 62 3e 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f  b>tiffCompressio
16160 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  n</b> <i>String<
16170 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67  /i> ) : <i>Integ
16180 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c  er</i><br><br>.<
16190 62 3e 52 4c 32 5f 57 72 69 74 65 54 72 69 70 6c  b>RL2_WriteTripl
161a0 65 42 61 6e 64 54 69 66 66 54 46 57 3c 2f 62 3e  eBandTiffTFW</b>
161b0 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f   ( <b>dbPrefix</
161c0 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
161d0 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   , <b>coverageNa
161e0 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
161f0 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61  </i> , <b>filePa
16200 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  th</b> <i>String
16210 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c  </i> , <b>width<
16220 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
16230 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f  i> , <b>height</
16240 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
16250 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78  > , <b>bandIndex
16260 52 65 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  Red</b> <i>Integ
16270 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64  er</i> , <b>band
16280 49 6e 64 65 78 47 72 65 65 6e 3c 2f 62 3e 20 3c  IndexGreen</b> <
16290 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
162a0 3c 62 3e 62 61 6e 64 49 6e 64 65 78 42 6c 75 65  <b>bandIndexBlue
162b0 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
162c0 2f 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69  /i>  , <b>boundi
162d0 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f  ngBox</b> <i>BLO
162e0 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c  B-Geometry</i> ,
162f0 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73   <b>horzPixelRes
16300 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44  olution</b> <i>D
16310 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76  ouble</i> , <b>v
16320 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69  ertPixelResoluti
16330 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65  on</b> <i>Double
16340 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 66 66 43 6f  </i> , <b>tiffCo
16350 6d 70 72 65 73 73 69 6f 6e 3c 2f 62 3e 20 3c 69  mpression</b> <i
16360 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
16370 3e 74 69 66 66 54 69 6c 65 53 69 7a 65 3c 2f 62  >tiffTileSize</b
16380 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
16390 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c   ) : <i>Integer<
163a0 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c  /i></td>.<td>Wil
163b0 6c 20 61 74 74 65 6d 70 74 20 74 6f 20 65 78 70  l attempt to exp
163c0 6f 72 74 20 72 61 77 20 72 61 73 74 65 72 20 64  ort raw raster d
163d0 61 74 61 20 66 72 6f 6d 20 61 20 4d 55 4c 54 49  ata from a MULTI
163e0 42 41 4e 44 20 6f 72 20 52 47 42 20 43 6f 76 65  BAND or RGB Cove
163f0 72 61 67 65 20 69 6e 74 6f 20 61 6e 20 65 78 74  rage into an ext
16400 65 72 6e 61 6c 20 70 6c 61 69 6e 20 54 49 46 46  ernal plain TIFF
16410 20 66 69 6c 65 20 6f 66 20 74 68 65 20 52 47 42   file of the RGB
16420 20 74 79 70 65 20 73 75 70 70 6f 72 74 65 64 20   type supported 
16430 62 79 20 61 6e 20 61 75 78 69 6c 69 61 72 79 20  by an auxiliary 
16440 57 6f 72 6c 64 46 69 6c 65 2e 3c 62 72 3e 0a 57  WorldFile.<br>.W
16450 69 6c 6c 20 72 65 74 75 72 6e 20 3c 62 3e 31 3c  ill return <b>1<
16460 2f 62 3e 20 28 54 52 55 45 2f 53 55 43 43 45 53  /b> (TRUE/SUCCES
16470 53 29 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28  S) or <b>0</b> (
16480 46 41 4c 53 45 2f 46 41 49 4c 55 52 45 29 3a 20  FALSE/FAILURE): 
16490 6f 72 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20  or <b>-1</b> on 
164a0 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74  invalid argument
164b0 73 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65  s.<br>.<u>Please
164c0 20 6e 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e   note</u>: .<ul>
164d0 0a 3c 6c 69 3e 54 68 65 20 3c 62 3e 3c 69 3e 64  .<li>The <b><i>d
164e0 62 50 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20  bPrefix</i></b> 
164f0 61 72 67 75 6d 65 6e 74 20 69 73 20 69 6e 74 65  argument is inte
16500 6e 64 65 64 20 74 6f 20 73 70 65 63 69 66 79 20  nded to specify 
16510 74 68 65 20 41 54 54 41 43 48 45 44 2d 44 42 20  the ATTACHED-DB 
16520 77 68 65 72 65 20 74 68 65 20 43 6f 76 65 72 61  where the Covera
16530 67 65 20 69 73 20 65 78 70 65 63 74 65 64 20 74  ge is expected t
16540 6f 20 62 65 20 66 6f 75 6e 64 3b 20 69 74 20 63  o be found; it c
16550 6f 75 6c 64 20 62 65 20 65 76 65 6e 74 75 61 6c  ould be eventual
16560 6c 79 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20  ly <b>NULL</b>, 
16570 61 6e 64 20 69 6e 20 74 68 69 73 20 63 61 73 65  and in this case
16580 20 74 68 65 20 3c 62 3e 4d 41 49 4e 20 44 42 3c   the <b>MAIN DB<
16590 2f 62 3e 20 77 69 6c 6c 20 69 6d 70 6c 69 63 69  /b> will implici
165a0 74 6c 79 20 62 65 20 61 73 73 75 6d 65 64 2e 3c  tly be assumed.<
165b0 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e  /li>.<li>the <b>
165c0 3c 69 3e 62 61 6e 64 49 6e 64 65 78 52 65 64 3c  <i>bandIndexRed<
165d0 2f 62 3e 3c 2f 69 3e 2c 20 3c 62 3e 3c 69 3e 62  /b></i>, <b><i>b
165e0 61 6e 64 49 6e 64 65 78 47 72 65 65 6e 3c 2f 69  andIndexGreen</i
165f0 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e  ></b> and <b><i>
16600 62 61 6e 64 49 6e 64 65 78 42 6c 75 65 3c 2f 69  bandIndexBlue</i
16610 3e 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74 73 20  ></b> arguments 
16620 61 72 65 20 69 6e 74 65 6e 64 65 64 20 74 6f 20  are intended to 
16630 61 72 62 69 74 72 61 72 69 6c 79 20 63 6f 6d 70  arbitrarily comp
16640 6f 73 65 20 74 68 65 20 52 47 42 20 54 49 46 46  ose the RGB TIFF
16650 20 73 74 61 72 74 69 6e 67 20 66 72 6f 6d 20 74   starting from t
16660 68 65 20 42 61 6e 64 73 20 73 75 70 70 6f 72 74  he Bands support
16670 65 64 20 62 79 20 74 68 65 20 43 6f 76 65 72 61  ed by the Covera
16680 67 65 2e 0a 3c 62 72 3e 3c 75 3e 50 6c 65 61 73  ge..<br><u>Pleas
16690 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 74 68 65 20  e note</u>: the 
166a0 66 69 72 73 74 20 42 61 6e 64 20 61 6c 77 61 79  first Band alway
166b0 73 20 63 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f  s corresponds to
166c0 20 69 6e 64 65 78 20 3c 62 3e 5a 45 52 4f 3c 2f   index <b>ZERO</
166d0 62 3e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20  b></li>.<li>the 
166e0 3c 62 3e 3c 69 3e 62 6f 75 6e 64 69 6e 67 42 6f  <b><i>boundingBo
166f0 78 3c 2f 69 3e 3c 2f 62 3e 20 69 73 20 65 78 70  x</i></b> is exp
16700 65 63 74 65 64 20 74 6f 20 72 65 70 72 65 73 65  ected to represe
16710 6e 74 20 74 68 65 20 6f 76 65 72 61 6c 6c 20 65  nt the overall e
16720 78 74 65 6e 74 20 6f 66 20 74 68 65 20 65 78 70  xtent of the exp
16730 6f 72 74 65 64 20 54 49 46 46 3b 20 79 6f 75 20  orted TIFF; you 
16740 63 6f 75 6c 64 20 65 76 65 6e 74 75 61 6c 6c 79  could eventually
16750 20 70 61 73 73 20 61 6e 79 20 61 72 62 69 74 72   pass any arbitr
16760 61 72 79 20 6b 69 6e 64 20 6f 66 20 47 65 6f 6d  ary kind of Geom
16770 65 74 72 79 2c 20 61 6e 64 20 74 68 65 20 42 6f  etry, and the Bo
16780 75 6e 64 69 6e 67 20 42 6f 78 20 61 6b 61 20 4d  unding Box aka M
16790 42 52 20 77 69 6c 6c 20 62 65 20 61 75 74 6f 6d  BR will be autom
167a0 61 74 69 63 61 6c 6c 79 20 64 65 74 65 72 6d 69  atically determi
167b0 6e 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68  ned.</li>.<li>th
167c0 65 20 3c 62 3e 3c 69 3e 68 6f 72 7a 50 69 78 65  e <b><i>horzPixe
167d0 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c  lResolution</i><
167e0 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 76 65  /b> and <b><i>ve
167f0 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rtPixelResolutio
16800 6e 3c 2f 69 3e 3c 2f 62 3e 20 6d 75 73 74 20 65  n</i></b> must e
16810 78 61 63 74 6c 79 20 6d 61 74 63 68 20 74 68 65  xactly match the
16820 20 43 6f 76 65 72 61 67 65 27 73 20 62 61 73 65   Coverage's base
16830 20 72 65 73 6f 6c 75 74 69 6f 6e 20 6f 72 20 6f   resolution or o
16840 6e 65 20 6f 66 20 74 68 65 20 72 65 73 6f 6c 75  ne of the resolu
16850 74 69 6f 6e 73 20 6d 61 64 65 20 61 76 61 69 6c  tions made avail
16860 61 62 6c 65 20 62 79 20 74 68 65 20 63 6f 72 72  able by the corr
16870 65 73 70 6f 6e 64 69 6e 67 20 50 79 72 61 6d 69  esponding Pyrami
16880 64 20 6c 65 76 65 6c 73 2e 3c 2f 6c 69 3e 0a 3c  d levels.</li>.<
16890 6c 69 3e 61 6e 64 20 74 68 65 20 42 6f 75 6e 64  li>and the Bound
168a0 69 6e 67 42 6f 78 20 6d 75 73 74 20 65 78 61 63  ingBox must exac
168b0 74 6c 79 20 6d 61 74 63 68 20 74 68 65 20 54 49  tly match the TI
168c0 46 46 20 3c 62 3e 3c 69 3e 77 69 64 74 68 3c 2f  FF <b><i>width</
168d0 69 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69  i></b> and <b><i
168e0 3e 68 65 69 67 68 74 3c 2f 69 3e 3c 2f 62 3e 20  >height</i></b> 
168f0 64 69 6d 65 6e 73 69 6f 6e 73 20 61 74 20 74 68  dimensions at th
16900 61 74 20 72 65 73 6f 6c 75 74 69 6f 6e 2e 3c 2f  at resolution.</
16910 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 6f 70 74 69  li>.<li>the opti
16920 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 3c 62  onal argument <b
16930 3e 3c 69 3e 74 69 66 66 43 6f 6d 70 72 65 73 73  ><i>tiffCompress
16940 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 63 6f 75 6c  ion</i></b> coul
16950 64 20 62 65 20 6f 6e 65 20 6f 66 20 3c 62 3e 27  d be one of <b>'
16960 4e 4f 4e 45 27 3c 2f 62 3e 2c 20 3c 62 3e 27 44  NONE'</b>, <b>'D
16970 45 46 4c 41 54 45 27 3c 2f 62 3e 2c 20 3c 62 3e  EFLATE'</b>, <b>
16980 27 4c 5a 57 27 3c 2f 62 3e 2c 20 3c 62 3e 27 4a  'LZW'</b>, <b>'J
16990 50 45 47 27 3c 2f 62 3e 2c 20 3c 62 3e 27 46 41  PEG'</b>, <b>'FA
169a0 58 33 27 3c 2f 62 3e 20 6f 72 20 3c 62 3e 27 46  X3'</b> or <b>'F
169b0 41 58 34 27 3c 2f 62 3e 3b 20 64 65 66 61 75 6c  AX4'</b>; defaul
169c0 74 20 69 73 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f  t is <b>'NONE'</
169d0 62 3e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65  b>.</li>.<li>the
169e0 20 6c 61 73 74 20 6f 70 74 69 6f 6e 61 6c 20 61   last optional a
169f0 72 67 75 6d 65 6e 74 20 63 61 6e 20 62 65 20 75  rgument can be u
16a00 73 65 64 20 73 6f 20 74 6f 20 73 70 65 63 69 66  sed so to specif
16a10 79 20 74 68 65 20 70 72 65 66 65 72 72 65 64 20  y the preferred 
16a20 54 49 46 46 20 74 69 6c 65 20 73 69 7a 65 20 28  TIFF tile size (
16a30 6f 6e 6c 79 20 73 71 75 61 72 65 20 74 69 6c 65  only square tile
16a40 73 20 61 72 65 20 73 75 70 70 6f 72 74 65 64 29  s are supported)
16a50 3b 20 64 65 66 61 75 6c 74 20 69 73 20 3c 62 3e  ; default is <b>
16a60 32 35 36 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 2f  256</b>.</li>.</
16a70 75 6c 3e 0a 3c 74 61 62 6c 65 20 77 69 64 74 68  ul>.<table width
16a80 3d 22 31 30 30 25 22 20 62 67 63 6f 6c 6f 72 3d  ="100%" bgcolor=
16a90 22 23 66 66 64 30 38 30 22 20 63 65 6c 6c 70 61  "#ffd080" cellpa
16aa0 64 64 69 6e 67 3d 22 36 22 3e 3c 74 72 3e 3c 74  dding="6"><tr><t
16ab0 64 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74  d>.<u>Please not
16ac0 65 20 76 65 72 79 20 77 65 6c 6c 3c 2f 75 3e 3a  e very well</u>:
16ad0 20 74 68 69 73 20 53 51 4c 20 66 75 6e 63 74 69   this SQL functi
16ae0 6f 6e 20 69 73 20 6f 6e 6c 79 20 61 76 61 69 6c  on is only avail
16af0 61 62 6c 65 20 77 68 65 6e 20 74 68 65 20 65 6e  able when the en
16b00 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62  vironment variab
16b10 6c 65 20 3c 62 3e 53 50 41 54 49 41 4c 49 54 45  le <b>SPATIALITE
16b20 5f 53 45 43 55 52 49 54 59 3d 72 65 6c 61 78 65  _SECURITY=relaxe
16b30 64 3c 2f 62 3e 20 69 73 20 73 65 74 2e 3c 2f 74  d</b> is set.</t
16b40 64 3e 3c 2f 74 72 3e 3c 2f 74 61 62 6c 65 3e 3c  d></tr></table><
16b50 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 3c  /td>.</tr>.<tr><
16b60 74 64 3e 3c 62 3e 52 4c 32 5f 57 72 69 74 65 54  td><b>RL2_WriteT
16b70 72 69 70 6c 65 42 61 6e 64 54 69 66 66 3c 2f 62  ripleBandTiff</b
16b80 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c  > ( <b>dbPrefix<
16b90 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
16ba0 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e  > , <b>coverageN
16bb0 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ame</b> <i>Strin
16bc0 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50  g</i> , <b>fileP
16bd0 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ath</b> <i>Strin
16be0 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68  g</i> , <b>width
16bf0 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
16c00 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c  /i> , <b>height<
16c10 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
16c20 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65  i> , <b>bandInde
16c30 78 52 65 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  xRed</b> <i>Inte
16c40 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e  ger</i> , <b>ban
16c50 64 49 6e 64 65 78 47 72 65 65 6e 3c 2f 62 3e 20  dIndexGreen</b> 
16c60 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
16c70 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 42 6c 75   <b>bandIndexBlu
16c80 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  e</b> <i>Integer
16c90 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69  </i> , <b>boundi
16ca0 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f  ngBox</b> <i>BLO
16cb0 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c  B-Geometry</i> ,
16cc0 20 3c 62 3e 70 69 78 65 6c 52 65 73 6f 6c 75 74   <b>pixelResolut
16cd0 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c  ion</b> <i>Doubl
16ce0 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74  e</i> ) : <i>Int
16cf0 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e  eger</i><br><br>
16d00 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 54 72 69  .<b>RL2_WriteTri
16d10 70 6c 65 42 61 6e 64 54 69 66 66 3c 2f 62 3e 20  pleBandTiff</b> 
16d20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62  ( <b>dbPrefix</b
16d30 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
16d40 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d  , <b>coverageNam
16d50 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
16d60 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74  /i> , <b>filePat
16d70 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  h</b> <i>String<
16d80 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f  /i> , <b>width</
16d90 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
16da0 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62  > , <b>height</b
16db0 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
16dc0 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 52   , <b>bandIndexR
16dd0 65 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ed</b> <i>Intege
16de0 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49  r</i> , <b>bandI
16df0 6e 64 65 78 47 72 65 65 6e 3c 2f 62 3e 20 3c 69  ndexGreen</b> <i
16e00 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
16e10 62 3e 62 61 6e 64 49 6e 64 65 78 42 6c 75 65 3c  b>bandIndexBlue<
16e20 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
16e30 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e  i>  , <b>boundin
16e40 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42  gBox</b> <i>BLOB
16e50 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20  -Geometry</i> , 
16e60 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f  <b>horzPixelReso
16e70 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f  lution</b> <i>Do
16e80 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65  uble</i> , <b>ve
16e90 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rtPixelResolutio
16ea0 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c  n</b> <i>Double<
16eb0 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67  /i> ) : <i>Integ
16ec0 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c  er</i><br><br>.<
16ed0 62 3e 52 4c 32 5f 57 72 69 74 65 54 72 69 70 6c  b>RL2_WriteTripl
16ee0 65 42 61 6e 64 54 69 66 66 3c 2f 62 3e 20 28 20  eBandTiff</b> ( 
16ef0 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20  <b>dbPrefix</b> 
16f00 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
16f10 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
16f20 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
16f30 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c  > , <b>filePath<
16f40 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
16f50 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e  > , <b>width</b>
16f60 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
16f70 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20  , <b>height</b> 
16f80 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
16f90 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 52 65 64   <b>bandIndexRed
16fa0 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
16fb0 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64  /i> , <b>bandInd
16fc0 65 78 47 72 65 65 6e 3c 2f 62 3e 20 3c 69 3e 49  exGreen</b> <i>I
16fd0 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
16fe0 62 61 6e 64 49 6e 64 65 78 42 6c 75 65 3c 2f 62  bandIndexBlue</b
16ff0 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
17000 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42    , <b>boundingB
17010 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47  ox</b> <i>BLOB-G
17020 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62  eometry</i> , <b
17030 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75  >horzPixelResolu
17040 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62  tion</b> <i>Doub
17050 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74  le</i> , <b>vert
17060 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
17070 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
17080 3e 20 2c 20 3c 62 3e 74 69 66 66 43 6f 6d 70 72  > , <b>tiffCompr
17090 65 73 73 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74  ession</b> <i>St
170a0 72 69 6e 67 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e  ring</i> ) : <i>
170b0 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c  Integer</i><br><
170c0 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65  br>.<b>RL2_Write
170d0 54 72 69 70 6c 65 42 61 6e 64 54 69 66 66 3c 2f  TripleBandTiff</
170e0 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78  b> ( <b>dbPrefix
170f0 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
17100 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65  i> , <b>coverage
17110 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Name</b> <i>Stri
17120 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65  ng</i> , <b>file
17130 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Path</b> <i>Stri
17140 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74  ng</i> , <b>widt
17150 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  h</b> <i>Integer
17160 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74  </i> , <b>height
17170 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
17180 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64  /i> , <b>bandInd
17190 65 78 52 65 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74  exRed</b> <i>Int
171a0 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61  eger</i> , <b>ba
171b0 6e 64 49 6e 64 65 78 47 72 65 65 6e 3c 2f 62 3e  ndIndexGreen</b>
171c0 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
171d0 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 42 6c  , <b>bandIndexBl
171e0 75 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ue</b> <i>Intege
171f0 72 3c 2f 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e  r</i>  , <b>boun
17200 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42  dingBox</b> <i>B
17210 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e  LOB-Geometry</i>
17220 20 2c 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52   , <b>horzPixelR
17230 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69  esolution</b> <i
17240 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62  >Double</i> , <b
17250 3e 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75  >vertPixelResolu
17260 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62  tion</b> <i>Doub
17270 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 66 66  le</i> , <b>tiff
17280 43 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 62 3e 20  Compression</b> 
17290 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
172a0 3c 62 3e 74 69 66 66 54 69 6c 65 53 69 7a 65 3c  <b>tiffTileSize<
172b0 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
172c0 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65  i> ) : <i>Intege
172d0 72 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57  r</i></td>.<td>W
172e0 69 6c 6c 20 61 74 74 65 6d 70 74 20 74 6f 20 65  ill attempt to e
172f0 78 70 6f 72 74 20 72 61 77 20 72 61 73 74 65 72  xport raw raster
17300 20 64 61 74 61 20 66 72 6f 6d 20 61 20 4d 55 4c   data from a MUL
17310 54 49 42 41 4e 44 20 6f 72 20 52 47 42 20 43 6f  TIBAND or RGB Co
17320 76 65 72 61 67 65 20 69 6e 74 6f 20 61 6e 20 65  verage into an e
17330 78 74 65 72 6e 61 6c 20 70 6c 61 69 6e 20 54 49  xternal plain TI
17340 46 46 20 66 69 6c 65 20 6f 66 20 74 68 65 20 52  FF file of the R
17350 47 42 20 74 79 70 65 2e 3c 62 72 3e 0a 57 69 6c  GB type.<br>.Wil
17360 6c 20 72 65 74 75 72 6e 20 3c 62 3e 31 3c 2f 62  l return <b>1</b
17370 3e 20 28 54 52 55 45 2f 53 55 43 43 45 53 53 29  > (TRUE/SUCCESS)
17380 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41   or <b>0</b> (FA
17390 4c 53 45 2f 46 41 49 4c 55 52 45 29 3a 20 6f 72  LSE/FAILURE): or
173a0 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20 69 6e   <b>-1</b> on in
173b0 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 2e  valid arguments.
173c0 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e  <br>.<u>Please n
173d0 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c  ote</u>: .<ul>.<
173e0 6c 69 3e 54 68 65 20 3c 62 3e 3c 69 3e 64 62 50  li>The <b><i>dbP
173f0 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20 61 72  refix</i></b> ar
17400 67 75 6d 65 6e 74 20 69 73 20 69 6e 74 65 6e 64  gument is intend
17410 65 64 20 74 6f 20 73 70 65 63 69 66 79 20 74 68  ed to specify th
17420 65 20 41 54 54 41 43 48 45 44 2d 44 42 20 77 68  e ATTACHED-DB wh
17430 65 72 65 20 74 68 65 20 43 6f 76 65 72 61 67 65  ere the Coverage
17440 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f 20   is expected to 
17450 62 65 20 66 6f 75 6e 64 3b 20 69 74 20 63 6f 75  be found; it cou
17460 6c 64 20 62 65 20 65 76 65 6e 74 75 61 6c 6c 79  ld be eventually
17470 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20 61 6e   <b>NULL</b>, an
17480 64 20 69 6e 20 74 68 69 73 20 63 61 73 65 20 74  d in this case t
17490 68 65 20 3c 62 3e 4d 41 49 4e 20 44 42 3c 2f 62  he <b>MAIN DB</b
174a0 3e 20 77 69 6c 6c 20 69 6d 70 6c 69 63 69 74 6c  > will implicitl
174b0 79 20 62 65 20 61 73 73 75 6d 65 64 2e 3c 2f 6c  y be assumed.</l
174c0 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69  i>.<li>the <b><i
174d0 3e 62 61 6e 64 49 6e 64 65 78 52 65 64 3c 2f 62  >bandIndexRed</b
174e0 3e 3c 2f 69 3e 2c 20 3c 62 3e 3c 69 3e 62 61 6e  ></i>, <b><i>ban
174f0 64 49 6e 64 65 78 47 72 65 65 6e 3c 2f 69 3e 3c  dIndexGreen</i><
17500 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 62 61  /b> and <b><i>ba
17510 6e 64 49 6e 64 65 78 42 6c 75 65 3c 2f 69 3e 3c  ndIndexBlue</i><
17520 2f 62 3e 20 61 72 67 75 6d 65 6e 74 73 20 61 72  /b> arguments ar
17530 65 20 69 6e 74 65 6e 64 65 64 20 74 6f 20 61 72  e intended to ar
17540 62 69 74 72 61 72 69 6c 79 20 63 6f 6d 70 6f 73  bitrarily compos
17550 65 20 74 68 65 20 52 47 42 20 54 49 46 46 20 73  e the RGB TIFF s
17560 74 61 72 74 69 6e 67 20 66 72 6f 6d 20 74 68 65  tarting from the
17570 20 42 61 6e 64 73 20 73 75 70 70 6f 72 74 65 64   Bands supported
17580 20 62 79 20 74 68 65 20 43 6f 76 65 72 61 67 65   by the Coverage
17590 2e 0a 3c 62 72 3e 3c 75 3e 50 6c 65 61 73 65 20  ..<br><u>Please 
175a0 6e 6f 74 65 3c 2f 75 3e 3a 20 74 68 65 20 66 69  note</u>: the fi
175b0 72 73 74 20 42 61 6e 64 20 61 6c 77 61 79 73 20  rst Band always 
175c0 63 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f 20 69  corresponds to i
175d0 6e 64 65 78 20 3c 62 3e 5a 45 52 4f 3c 2f 62 3e  ndex <b>ZERO</b>
175e0 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62  </li>.<li>the <b
175f0 3e 3c 69 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c  ><i>boundingBox<
17600 2f 69 3e 3c 2f 62 3e 20 69 73 20 65 78 70 65 63  /i></b> is expec
17610 74 65 64 20 74 6f 20 72 65 70 72 65 73 65 6e 74  ted to represent
17620 20 74 68 65 20 6f 76 65 72 61 6c 6c 20 65 78 74   the overall ext
17630 65 6e 74 20 6f 66 20 74 68 65 20 65 78 70 6f 72  ent of the expor
17640 74 65 64 20 54 49 46 46 3b 20 79 6f 75 20 63 6f  ted TIFF; you co
17650 75 6c 64 20 65 76 65 6e 74 75 61 6c 6c 79 20 70  uld eventually p
17660 61 73 73 20 61 6e 79 20 61 72 62 69 74 72 61 72  ass any arbitrar
17670 79 20 6b 69 6e 64 20 6f 66 20 47 65 6f 6d 65 74  y kind of Geomet
17680 72 79 2c 20 61 6e 64 20 74 68 65 20 42 6f 75 6e  ry, and the Boun
17690 64 69 6e 67 20 42 6f 78 20 61 6b 61 20 4d 42 52  ding Box aka MBR
176a0 20 77 69 6c 6c 20 62 65 20 61 75 74 6f 6d 61 74   will be automat
176b0 69 63 61 6c 6c 79 20 64 65 74 65 72 6d 69 6e 65  ically determine
176c0 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20  d.</li>.<li>the 
176d0 3c 62 3e 3c 69 3e 68 6f 72 7a 50 69 78 65 6c 52  <b><i>horzPixelR
176e0 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62  esolution</i></b
176f0 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 76 65 72 74  > and <b><i>vert
17700 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
17710 2f 69 3e 3c 2f 62 3e 20 6d 75 73 74 20 65 78 61  /i></b> must exa
17720 63 74 6c 79 20 6d 61 74 63 68 20 74 68 65 20 43  ctly match the C
17730 6f 76 65 72 61 67 65 27 73 20 62 61 73 65 20 72  overage's base r
17740 65 73 6f 6c 75 74 69 6f 6e 20 6f 72 20 6f 6e 65  esolution or one
17750 20 6f 66 20 74 68 65 20 72 65 73 6f 6c 75 74 69   of the resoluti
17760 6f 6e 73 20 6d 61 64 65 20 61 76 61 69 6c 61 62  ons made availab
17770 6c 65 20 62 79 20 74 68 65 20 63 6f 72 72 65 73  le by the corres
17780 70 6f 6e 64 69 6e 67 20 50 79 72 61 6d 69 64 20  ponding Pyramid 
17790 6c 65 76 65 6c 73 2e 3c 2f 6c 69 3e 0a 3c 6c 69  levels.</li>.<li
177a0 3e 61 6e 64 20 74 68 65 20 42 6f 75 6e 64 69 6e  >and the Boundin
177b0 67 42 6f 78 20 6d 75 73 74 20 65 78 61 63 74 6c  gBox must exactl
177c0 79 20 6d 61 74 63 68 20 74 68 65 20 54 49 46 46  y match the TIFF
177d0 20 3c 62 3e 3c 69 3e 77 69 64 74 68 3c 2f 69 3e   <b><i>width</i>
177e0 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 68  </b> and <b><i>h
177f0 65 69 67 68 74 3c 2f 69 3e 3c 2f 62 3e 20 64 69  eight</i></b> di
17800 6d 65 6e 73 69 6f 6e 73 20 61 74 20 74 68 61 74  mensions at that
17810 20 72 65 73 6f 6c 75 74 69 6f 6e 2e 3c 2f 6c 69   resolution.</li
17820 3e 0a 3c 6c 69 3e 74 68 65 20 6f 70 74 69 6f 6e  >.<li>the option
17830 61 6c 20 61 72 67 75 6d 65 6e 74 20 3c 62 3e 3c  al argument <b><
17840 69 3e 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f  i>tiffCompressio
17850 6e 3c 2f 69 3e 3c 2f 62 3e 20 63 6f 75 6c 64 20  n</i></b> could 
17860 62 65 20 6f 6e 65 20 6f 66 20 3c 62 3e 27 4e 4f  be one of <b>'NO
17870 4e 45 27 3c 2f 62 3e 2c 20 3c 62 3e 27 44 45 46  NE'</b>, <b>'DEF
17880 4c 41 54 45 27 3c 2f 62 3e 2c 20 3c 62 3e 27 4c  LATE'</b>, <b>'L
17890 5a 57 27 3c 2f 62 3e 2c 20 3c 62 3e 27 4a 50 45  ZW'</b>, <b>'JPE
178a0 47 27 3c 2f 62 3e 2c 20 3c 62 3e 27 46 41 58 33  G'</b>, <b>'FAX3
178b0 27 3c 2f 62 3e 20 6f 72 20 3c 62 3e 27 46 41 58  '</b> or <b>'FAX
178c0 34 27 3c 2f 62 3e 3b 20 64 65 66 61 75 6c 74 20  4'</b>; default 
178d0 69 73 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62 3e  is <b>'NONE'</b>
178e0 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 6c  .</li>.<li>the l
178f0 61 73 74 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67  ast optional arg
17900 75 6d 65 6e 74 20 63 61 6e 20 62 65 20 75 73 65  ument can be use
17910 64 20 73 6f 20 74 6f 20 73 70 65 63 69 66 79 20  d so to specify 
17920 74 68 65 20 70 72 65 66 65 72 72 65 64 20 54 49  the preferred TI
17930 46 46 20 74 69 6c 65 20 73 69 7a 65 20 28 6f 6e  FF tile size (on
17940 6c 79 20 73 71 75 61 72 65 20 74 69 6c 65 73 20  ly square tiles 
17950 61 72 65 20 73 75 70 70 6f 72 74 65 64 29 3b 20  are supported); 
17960 64 65 66 61 75 6c 74 20 69 73 20 3c 62 3e 32 35  default is <b>25
17970 36 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 2f 75 6c  6</b>.</li>.</ul
17980 3e 0a 3c 74 61 62 6c 65 20 77 69 64 74 68 3d 22  >.<table width="
17990 31 30 30 25 22 20 62 67 63 6f 6c 6f 72 3d 22 23  100%" bgcolor="#
179a0 66 66 64 30 38 30 22 20 63 65 6c 6c 70 61 64 64  ffd080" cellpadd
179b0 69 6e 67 3d 22 36 22 3e 3c 74 72 3e 3c 74 64 3e  ing="6"><tr><td>
179c0 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 20  .<u>Please note 
179d0 76 65 72 79 20 77 65 6c 6c 3c 2f 75 3e 3a 20 74  very well</u>: t
179e0 68 69 73 20 53 51 4c 20 66 75 6e 63 74 69 6f 6e  his SQL function
179f0 20 69 73 20 6f 6e 6c 79 20 61 76 61 69 6c 61 62   is only availab
17a00 6c 65 20 77 68 65 6e 20 74 68 65 20 65 6e 76 69  le when the envi
17a10 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65  ronment variable
17a20 20 3c 62 3e 53 50 41 54 49 41 4c 49 54 45 5f 53   <b>SPATIALITE_S
17a30 45 43 55 52 49 54 59 3d 72 65 6c 61 78 65 64 3c  ECURITY=relaxed<
17a40 2f 62 3e 20 69 73 20 73 65 74 2e 3c 2f 74 64 3e  /b> is set.</td>
17a50 3c 2f 74 72 3e 3c 2f 74 61 62 6c 65 3e 3c 2f 74  </tr></table></t
17a60 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 3c 74 64  d>.</tr>.<tr><td
17a70 3e 3c 62 3e 52 4c 32 5f 57 72 69 74 65 4d 6f 6e  ><b>RL2_WriteMon
17a80 6f 42 61 6e 64 47 65 6f 54 69 66 66 3c 2f 62 3e  oBandGeoTiff</b>
17a90 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f   ( <b>dbPrefix</
17aa0 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
17ab0 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   , <b>coverageNa
17ac0 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
17ad0 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61  </i> , <b>filePa
17ae0 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  th</b> <i>String
17af0 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c  </i> , <b>width<
17b00 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
17b10 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f  i> , <b>height</
17b20 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
17b30 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78  > , <b>bandIndex
17b40 47 72 61 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  Gray</b> <i>Inte
17b50 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75  ger</i> , <b>bou
17b60 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e  ndingBox</b> <i>
17b70 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69  BLOB-Geometry</i
17b80 3e 20 2c 20 3c 62 3e 70 69 78 65 6c 52 65 73 6f  > , <b>pixelReso
17b90 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f  lution</b> <i>Do
17ba0 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e  uble</i> ) : <i>
17bb0 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c  Integer</i><br><
17bc0 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65  br>.<b>RL2_Write
17bd0 4d 6f 6e 6f 42 61 6e 64 47 65 6f 54 69 66 66 3c  MonoBandGeoTiff<
17be0 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69  /b> ( <b>dbPrefi
17bf0 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  x</b> <i>String<
17c00 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67  /i> , <b>coverag
17c10 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eName</b> <i>Str
17c20 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c  ing</i> , <b>fil
17c30 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72  ePath</b> <i>Str
17c40 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64  ing</i> , <b>wid
17c50 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  th</b> <i>Intege
17c60 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68  r</i> , <b>heigh
17c70 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  t</b> <i>Integer
17c80 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e  </i> , <b>bandIn
17c90 64 65 78 47 72 61 79 3c 2f 62 3e 20 3c 69 3e 49  dexGray</b> <i>I
17ca0 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c 62  nteger</i>  , <b
17cb0 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e  >boundingBox</b>
17cc0 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72   <i>BLOB-Geometr
17cd0 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50  y</i> , <b>horzP
17ce0 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f  ixelResolution</
17cf0 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e  b> <i>Double</i>
17d00 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c 52   , <b>vertPixelR
17d10 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69  esolution</b> <i
17d20 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20  >Double</i> ) : 
17d30 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62  <i>Integer</i><b
17d40 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72  r><br>.<b>RL2_Wr
17d50 69 74 65 4d 6f 6e 6f 42 61 6e 64 47 65 6f 54 69  iteMonoBandGeoTi
17d60 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72  ff</b> ( <b>dbPr
17d70 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  efix</b> <i>Stri
17d80 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65  ng</i> , <b>cove
17d90 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e  rageName</b> <i>
17da0 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
17db0 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e  filePath</b> <i>
17dc0 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
17dd0 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74  width</b> <i>Int
17de0 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65  eger</i> , <b>he
17df0 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  ight</b> <i>Inte
17e00 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e  ger</i> , <b>ban
17e10 64 49 6e 64 65 78 47 72 61 79 3c 2f 62 3e 20 3c  dIndexGray</b> <
17e20 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c  i>Integer</i>  ,
17e30 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c   <b>boundingBox<
17e40 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d  /b> <i>BLOB-Geom
17e50 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f  etry</i> , <b>ho
17e60 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rzPixelResolutio
17e70 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c  n</b> <i>Double<
17e80 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78  /i> , <b>vertPix
17e90 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e  elResolution</b>
17ea0 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c   <i>Double</i> ,
17eb0 20 3c 62 3e 77 69 74 68 57 6f 6c 64 46 69 6c 65   <b>withWoldFile
17ec0 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
17ed0 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67  /i> ) : <i>Integ
17ee0 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c  er</i><br><br>.<
17ef0 62 3e 52 4c 32 5f 57 72 69 74 65 4d 6f 6e 6f 42  b>RL2_WriteMonoB
17f00 61 6e 64 47 65 6f 54 69 66 66 3c 2f 62 3e 20 28  andGeoTiff</b> (
17f10 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e   <b>dbPrefix</b>
17f20 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
17f30 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65   <b>coverageName
17f40 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
17f50 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68  i> , <b>filePath
17f60 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
17f70 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62  i> , <b>width</b
17f80 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
17f90 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e   , <b>height</b>
17fa0 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
17fb0 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47 72  , <b>bandIndexGr
17fc0 61 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ay</b> <i>Intege
17fd0 72 3c 2f 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e  r</i>  , <b>boun
17fe0 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42  dingBox</b> <i>B
17ff0 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e  LOB-Geometry</i>
18000 20 2c 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52   , <b>horzPixelR
18010 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69  esolution</b> <i
18020 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62  >Double</i> , <b
18030 3e 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75  >vertPixelResolu
18040 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62  tion</b> <i>Doub
18050 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 74 68  le</i> , <b>with
18060 57 6f 6c 64 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e  WoldFile</b> <i>
18070 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
18080 3e 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f 6e  >tiffCompression
18090 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
180a0 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65  i> ) : <i>Intege
180b0 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62  r</i><br><br>.<b
180c0 3e 52 4c 32 5f 57 72 69 74 65 4d 6f 6e 6f 42 61  >RL2_WriteMonoBa
180d0 6e 64 47 65 6f 54 69 66 66 3c 2f 62 3e 20 28 20  ndGeoTiff</b> ( 
180e0 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20  <b>dbPrefix</b> 
180f0 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
18100 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
18110 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
18120 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c  > , <b>filePath<
18130 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
18140 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e  > , <b>width</b>
18150 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
18160 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20  , <b>height</b> 
18170 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
18180 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47 72 61   <b>bandIndexGra
18190 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  y</b> <i>Integer
181a0 3c 2f 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64  </i>  , <b>bound
181b0 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c  ingBox</b> <i>BL
181c0 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20  OB-Geometry</i> 
181d0 2c 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65  , <b>horzPixelRe
181e0 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  solution</b> <i>
181f0 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e  Double</i> , <b>
18200 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74  vertPixelResolut
18210 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c  ion</b> <i>Doubl
18220 65 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 74 68 57  e</i> , <b>withW
18230 6f 6c 64 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e 49  oldFile</b> <i>I
18240 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
18250 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f 6e 3c  tiffCompression<
18260 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
18270 3e 20 2c 20 3c 62 3e 74 69 66 66 54 69 6c 65 53  > , <b>tiffTileS
18280 69 7a 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  ize</b> <i>Integ
18290 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e  er</i> ) : <i>In
182a0 74 65 67 65 72 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c  teger</i></td>.<
182b0 74 64 3e 57 69 6c 6c 20 61 74 74 65 6d 70 74 20  td>Will attempt 
182c0 74 6f 20 65 78 70 6f 72 74 20 72 61 77 20 72 61  to export raw ra
182d0 73 74 65 72 20 64 61 74 61 20 66 72 6f 6d 20 61  ster data from a
182e0 20 4d 55 4c 54 49 42 41 4e 44 20 6f 72 20 52 47   MULTIBAND or RG
182f0 42 20 43 6f 76 65 72 61 67 65 20 69 6e 74 6f 20  B Coverage into 
18300 61 6e 20 65 78 74 65 72 6e 61 6c 20 47 65 6f 54  an external GeoT
18310 49 46 46 20 66 69 6c 65 20 6f 66 20 74 68 65 20  IFF file of the 
18320 47 72 61 79 73 63 61 6c 65 20 74 79 70 65 2e 3c  Grayscale type.<
18330 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20  br>.Will return 
18340 3c 62 3e 31 3c 2f 62 3e 20 28 54 52 55 45 2f 53  <b>1</b> (TRUE/S
18350 55 43 43 45 53 53 29 20 6f 72 20 3c 62 3e 30 3c  UCCESS) or <b>0<
18360 2f 62 3e 20 28 46 41 4c 53 45 2f 46 41 49 4c 55  /b> (FALSE/FAILU
18370 52 45 29 3a 20 6f 72 20 3c 62 3e 2d 31 3c 2f 62  RE): or <b>-1</b
18380 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67  > on invalid arg
18390 75 6d 65 6e 74 73 2e 3c 62 72 3e 0a 3c 75 3e 50  uments.<br>.<u>P
183a0 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20  lease note</u>: 
183b0 0a 3c 75 6c 3e 0a 3c 6c 69 3e 54 68 65 20 3c 62  .<ul>.<li>The <b
183c0 3e 3c 69 3e 64 62 50 72 65 66 69 78 3c 2f 69 3e  ><i>dbPrefix</i>
183d0 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74 20 69 73  </b> argument is
183e0 20 69 6e 74 65 6e 64 65 64 20 74 6f 20 73 70 65   intended to spe
183f0 63 69 66 79 20 74 68 65 20 41 54 54 41 43 48 45  cify the ATTACHE
18400 44 2d 44 42 20 77 68 65 72 65 20 74 68 65 20 43  D-DB where the C
18410 6f 76 65 72 61 67 65 20 69 73 20 65 78 70 65 63  overage is expec
18420 74 65 64 20 74 6f 20 62 65 20 66 6f 75 6e 64 3b  ted to be found;
18430 20 69 74 20 63 6f 75 6c 64 20 62 65 20 65 76 65   it could be eve
18440 6e 74 75 61 6c 6c 79 20 3c 62 3e 4e 55 4c 4c 3c  ntually <b>NULL<
18450 2f 62 3e 2c 20 61 6e 64 20 69 6e 20 74 68 69 73  /b>, and in this
18460 20 63 61 73 65 20 74 68 65 20 3c 62 3e 4d 41 49   case the <b>MAI
18470 4e 20 44 42 3c 2f 62 3e 20 77 69 6c 6c 20 69 6d  N DB</b> will im
18480 70 6c 69 63 69 74 6c 79 20 62 65 20 61 73 73 75  plicitly be assu
18490 6d 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68  med.</li>.<li>th
184a0 65 20 3c 62 3e 3c 69 3e 62 61 6e 64 49 6e 64 65  e <b><i>bandInde
184b0 78 47 72 61 79 3c 2f 69 3e 3c 2f 62 3e 20 61 72  xGray</i></b> ar
184c0 67 75 6d 65 6e 74 20 69 73 20 69 6e 74 65 6e 64  gument is intend
184d0 65 64 20 74 6f 20 61 72 62 69 74 72 61 72 69 6c  ed to arbitraril
184e0 79 20 63 6f 6d 70 6f 73 65 20 74 68 65 20 47 72  y compose the Gr
184f0 61 79 73 63 61 6c 65 20 54 49 46 46 20 73 74 61  ayscale TIFF sta
18500 72 74 69 6e 67 20 66 72 6f 6d 20 74 68 65 20 42  rting from the B
18510 61 6e 64 73 20 73 75 70 70 6f 72 74 65 64 20 62  ands supported b
18520 79 20 74 68 65 20 43 6f 76 65 72 61 67 65 2e 0a  y the Coverage..
18530 3c 62 72 3e 3c 75 3e 50 6c 65 61 73 65 20 6e 6f  <br><u>Please no
18540 74 65 3c 2f 75 3e 3a 20 74 68 65 20 66 69 72 73  te</u>: the firs
18550 74 20 42 61 6e 64 20 61 6c 77 61 79 73 20 63 6f  t Band always co
18560 72 72 65 73 70 6f 6e 64 73 20 74 6f 20 69 6e 64  rresponds to ind
18570 65 78 20 3c 62 3e 5a 45 52 4f 3c 2f 62 3e 3c 2f  ex <b>ZERO</b></
18580 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c  li>.<li>the <b><
18590 69 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 69  i>boundingBox</i
185a0 3e 3c 2f 62 3e 20 69 73 20 65 78 70 65 63 74 65  ></b> is expecte
185b0 64 20 74 6f 20 72 65 70 72 65 73 65 6e 74 20 74  d to represent t
185c0 68 65 20 6f 76 65 72 61 6c 6c 20 65 78 74 65 6e  he overall exten
185d0 74 20 6f 66 20 74 68 65 20 65 78 70 6f 72 74 65  t of the exporte
185e0 64 20 47 65 6f 54 49 46 46 3b 20 79 6f 75 20 63  d GeoTIFF; you c
185f0 6f 75 6c 64 20 65 76 65 6e 74 75 61 6c 6c 79 20  ould eventually 
18600 70 61 73 73 20 61 6e 79 20 61 72 62 69 74 72 61  pass any arbitra
18610 72 79 20 6b 69 6e 64 20 6f 66 20 47 65 6f 6d 65  ry kind of Geome
18620 74 72 79 2c 20 61 6e 64 20 74 68 65 20 42 6f 75  try, and the Bou
18630 6e 64 69 6e 67 20 42 6f 78 20 61 6b 61 20 4d 42  nding Box aka MB
18640 52 20 77 69 6c 6c 20 62 65 20 61 75 74 6f 6d 61  R will be automa
18650 74 69 63 61 6c 6c 79 20 64 65 74 65 72 6d 69 6e  tically determin
18660 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65  ed.</li>.<li>the
18670 20 3c 62 3e 3c 69 3e 68 6f 72 7a 50 69 78 65 6c   <b><i>horzPixel
18680 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f  Resolution</i></
18690 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 76 65 72  b> and <b><i>ver
186a0 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  tPixelResolution
186b0 3c 2f 69 3e 3c 2f 62 3e 20 6d 75 73 74 20 65 78  </i></b> must ex
186c0 61 63 74 6c 79 20 6d 61 74 63 68 20 74 68 65 20  actly match the 
186d0 43 6f 76 65 72 61 67 65 27 73 20 62 61 73 65 20  Coverage's base 
186e0 72 65 73 6f 6c 75 74 69 6f 6e 20 6f 72 20 6f 6e  resolution or on
186f0 65 20 6f 66 20 74 68 65 20 72 65 73 6f 6c 75 74  e of the resolut
18700 69 6f 6e 73 20 6d 61 64 65 20 61 76 61 69 6c 61  ions made availa
18710 62 6c 65 20 62 79 20 74 68 65 20 63 6f 72 72 65  ble by the corre
18720 73 70 6f 6e 64 69 6e 67 20 50 79 72 61 6d 69 64  sponding Pyramid
18730 20 6c 65 76 65 6c 73 2e 3c 2f 6c 69 3e 0a 3c 6c   levels.</li>.<l
18740 69 3e 61 6e 64 20 74 68 65 20 42 6f 75 6e 64 69  i>and the Boundi
18750 6e 67 42 6f 78 20 6d 75 73 74 20 65 78 61 63 74  ngBox must exact
18760 6c 79 20 6d 61 74 63 68 20 74 68 65 20 54 49 46  ly match the TIF
18770 46 20 3c 62 3e 3c 69 3e 77 69 64 74 68 3c 2f 69  F <b><i>width</i
18780 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e  ></b> and <b><i>
18790 68 65 69 67 68 74 3c 2f 69 3e 3c 2f 62 3e 20 64  height</i></b> d
187a0 69 6d 65 6e 73 69 6f 6e 73 20 61 74 20 74 68 61  imensions at tha
187b0 74 20 72 65 73 6f 6c 75 74 69 6f 6e 2e 3c 2f 6c  t resolution.</l
187c0 69 3e 0a 3c 6c 69 3e 69 66 20 74 68 65 20 6f 70  i>.<li>if the op
187d0 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20  tional argument 
187e0 3c 62 3e 3c 69 3e 77 69 74 68 57 6f 72 6c 64 46  <b><i>withWorldF
187f0 69 6c 65 3c 2f 69 3e 3c 2f 62 3e 20 69 73 20 73  ile</i></b> is s
18800 65 74 20 74 6f 20 54 52 55 45 20 74 68 65 6e 20  et to TRUE then 
18810 61 6e 20 61 75 78 69 6c 69 61 72 79 20 57 6f 72  an auxiliary Wor
18820 6c 64 46 69 6c 65 20 77 69 6c 6c 20 62 65 20 65  ldFile will be e
18830 78 70 6f 72 74 65 64 20 61 73 20 77 65 6c 6c 2e  xported as well.
18840 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 6f 70  </li>.<li>the op
18850 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20  tional argument 
18860 3c 62 3e 3c 69 3e 74 69 66 66 43 6f 6d 70 72 65  <b><i>tiffCompre
18870 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 63 6f  ssion</i></b> co
18880 75 6c 64 20 62 65 20 6f 6e 65 20 6f 66 20 3c 62  uld be one of <b
18890 3e 27 4e 4f 4e 45 27 3c 2f 62 3e 2c 20 3c 62 3e  >'NONE'</b>, <b>
188a0 27 44 45 46 4c 41 54 45 27 3c 2f 62 3e 2c 20 3c  'DEFLATE'</b>, <
188b0 62 3e 27 4c 5a 57 27 3c 2f 62 3e 2c 20 3c 62 3e  b>'LZW'</b>, <b>
188c0 27 4a 50 45 47 27 3c 2f 62 3e 2c 20 3c 62 3e 27  'JPEG'</b>, <b>'
188d0 46 41 58 33 27 3c 2f 62 3e 20 6f 72 20 3c 62 3e  FAX3'</b> or <b>
188e0 27 46 41 58 34 27 3c 2f 62 3e 3b 20 64 65 66 61  'FAX4'</b>; defa
188f0 75 6c 74 20 69 73 20 3c 62 3e 27 4e 4f 4e 45 27  ult is <b>'NONE'
18900 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74  </b>.</li>.<li>t
18910 68 65 20 6c 61 73 74 20 6f 70 74 69 6f 6e 61 6c  he last optional
18920 20 61 72 67 75 6d 65 6e 74 20 63 61 6e 20 62 65   argument can be
18930 20 75 73 65 64 20 73 6f 20 74 6f 20 73 70 65 63   used so to spec
18940 69 66 79 20 74 68 65 20 70 72 65 66 65 72 72 65  ify the preferre
18950 64 20 54 49 46 46 20 74 69 6c 65 20 73 69 7a 65  d TIFF tile size
18960 20 28 6f 6e 6c 79 20 73 71 75 61 72 65 20 74 69   (only square ti
18970 6c 65 73 20 61 72 65 20 73 75 70 70 6f 72 74 65  les are supporte
18980 64 29 3b 20 64 65 66 61 75 6c 74 20 69 73 20 3c  d); default is <
18990 62 3e 32 35 36 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a  b>256</b>.</li>.
189a0 3c 2f 75 6c 3e 0a 3c 74 61 62 6c 65 20 77 69 64  </ul>.<table wid
189b0 74 68 3d 22 31 30 30 25 22 20 62 67 63 6f 6c 6f  th="100%" bgcolo
189c0 72 3d 22 23 66 66 64 30 38 30 22 20 63 65 6c 6c  r="#ffd080" cell
189d0 70 61 64 64 69 6e 67 3d 22 36 22 3e 3c 74 72 3e  padding="6"><tr>
189e0 3c 74 64 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e  <td>.<u>Please n
189f0 6f 74 65 20 76 65 72 79 20 77 65 6c 6c 3c 2f 75  ote very well</u
18a00 3e 3a 20 74 68 69 73 20 53 51 4c 20 66 75 6e 63  >: this SQL func
18a10 74 69 6f 6e 20 69 73 20 6f 6e 6c 79 20 61 76 61  tion is only ava
18a20 69 6c 61 62 6c 65 20 77 68 65 6e 20 74 68 65 20  ilable when the 
18a30 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69  environment vari
18a40 61 62 6c 65 20 3c 62 3e 53 50 41 54 49 41 4c 49  able <b>SPATIALI
18a50 54 45 5f 53 45 43 55 52 49 54 59 3d 72 65 6c 61  TE_SECURITY=rela
18a60 78 65 64 3c 2f 62 3e 20 69 73 20 73 65 74 2e 3c  xed</b> is set.<
18a70 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61 62 6c 65  /td></tr></table
18a80 3e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72  ></td>.</tr>.<tr
18a90 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f 57 72 69 74  ><td><b>RL2_Writ
18aa0 65 4d 6f 6e 6f 42 61 6e 64 54 69 66 66 54 46 57  eMonoBandTiffTFW
18ab0 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
18ac0 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
18ad0 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
18ae0 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
18af0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69  ring</i> , <b>fi
18b00 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74  lePath</b> <i>St
18b10 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69  ring</i> , <b>wi
18b20 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  dth</b> <i>Integ
18b30 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67  er</i> , <b>heig
18b40 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
18b50 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49  r</i> , <b>bandI
18b60 6e 64 65 78 47 72 61 79 3c 2f 62 3e 20 3c 69 3e  ndexGray</b> <i>
18b70 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
18b80 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e  >boundingBox</b>
18b90 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72   <i>BLOB-Geometr
18ba0 79 3c 2f 69 3e 20 2c 20 3c 62 3e 70 69 78 65 6c  y</i> , <b>pixel
18bb0 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
18bc0 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a  i>Double</i> ) :
18bd0 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
18be0 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57  br><br>.<b>RL2_W
18bf0 72 69 74 65 4d 6f 6e 6f 42 61 6e 64 54 69 66 66  riteMonoBandTiff
18c00 54 46 57 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50  TFW</b> ( <b>dbP
18c10 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72  refix</b> <i>Str
18c20 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76  ing</i> , <b>cov
18c30 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69  erageName</b> <i
18c40 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
18c50 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69  >filePath</b> <i
18c60 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
18c70 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e  >width</b> <i>In
18c80 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68  teger</i> , <b>h
18c90 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74  eight</b> <i>Int
18ca0 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61  eger</i> , <b>ba
18cb0 6e 64 49 6e 64 65 78 47 72 61 79 3c 2f 62 3e 20  ndIndexGray</b> 
18cc0 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20  <i>Integer</i>  
18cd0 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78  , <b>boundingBox
18ce0 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f  </b> <i>BLOB-Geo
18cf0 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68  metry</i> , <b>h
18d00 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69  orzPixelResoluti
18d10 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65  on</b> <i>Double
18d20 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69  </i> , <b>vertPi
18d30 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62  xelResolution</b
18d40 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20  > <i>Double</i> 
18d50 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
18d60 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c  i><br><br>.<b>RL
18d70 32 5f 57 72 69 74 65 4d 6f 6e 6f 42 61 6e 64 54  2_WriteMonoBandT
18d80 69 66 66 54 46 57 3c 2f 62 3e 20 28 20 3c 62 3e  iffTFW</b> ( <b>
18d90 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e  dbPrefix</b> <i>
18da0 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
18db0 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e  coverageName</b>
18dc0 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
18dd0 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e   <b>filePath</b>
18de0 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
18df0 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69   <b>width</b> <i
18e00 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
18e10 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e  b>height</b> <i>
18e20 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
18e30 3e 62 61 6e 64 49 6e 64 65 78 47 72 61 79 3c 2f  >bandIndexGray</
18e40 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
18e50 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67  >  , <b>bounding
18e60 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d  Box</b> <i>BLOB-
18e70 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c  Geometry</i> , <
18e80 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c  b>horzPixelResol
18e90 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75  ution</b> <i>Dou
18ea0 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72  ble</i> , <b>ver
18eb0 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  tPixelResolution
18ec0 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f  </b> <i>Double</
18ed0 69 3e 20 2c 20 3c 62 3e 74 69 66 66 43 6f 6d 70  i> , <b>tiffComp
18ee0 72 65 73 73 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53  ression</b> <i>S
18ef0 74 72 69 6e 67 3c 2f 69 3e 20 29 20 3a 20 3c 69  tring</i> ) : <i
18f00 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e  >Integer</i><br>
18f10 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74  <br>.<b>RL2_Writ
18f20 65 4d 6f 6e 6f 42 61 6e 64 54 69 66 66 54 46 57  eMonoBandTiffTFW
18f30 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
18f40 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
18f50 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
18f60 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
18f70 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69  ring</i> , <b>fi
18f80 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74  lePath</b> <i>St
18f90 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69  ring</i> , <b>wi
18fa0 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  dth</b> <i>Integ
18fb0 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67  er</i> , <b>heig
18fc0 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
18fd0 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49  r</i> , <b>bandI
18fe0 6e 64 65 78 47 72 61 79 3c 2f 62 3e 20 3c 69 3e  ndexGray</b> <i>
18ff0 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c  Integer</i>  , <
19000 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
19010 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
19020 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a  ry</i> , <b>horz
19030 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
19040 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
19050 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c  > , <b>vertPixel
19060 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
19070 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c  i>Double</i> , <
19080 62 3e 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f  b>tiffCompressio
19090 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  n</b> <i>String<
190a0 2f 69 3e 20 2c 20 3c 62 3e 74 69 66 66 54 69 6c  /i> , <b>tiffTil
190b0 65 53 69 7a 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74  eSize</b> <i>Int
190c0 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e  eger</i> ) : <i>
190d0 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74 64 3e  Integer</i></td>
190e0 0a 3c 74 64 3e 57 69 6c 6c 20 61 74 74 65 6d 70  .<td>Will attemp
190f0 74 20 74 6f 20 65 78 70 6f 72 74 20 72 61 77 20  t to export raw 
19100 72 61 73 74 65 72 20 64 61 74 61 20 66 72 6f 6d  raster data from
19110 20 61 20 4d 55 4c 54 49 42 41 4e 44 20 6f 72 20   a MULTIBAND or 
19120 52 47 42 20 43 6f 76 65 72 61 67 65 20 69 6e 74  RGB Coverage int
19130 6f 20 61 6e 20 65 78 74 65 72 6e 61 6c 20 70 6c  o an external pl
19140 61 69 6e 20 54 49 46 46 20 66 69 6c 65 20 6f 66  ain TIFF file of
19150 20 74 68 65 20 47 72 61 79 73 63 61 6c 65 20 74   the Grayscale t
19160 79 70 65 20 73 75 70 70 6f 72 74 65 64 20 62 79  ype supported by
19170 20 61 6e 20 61 75 78 69 6c 69 61 72 79 20 57 6f   an auxiliary Wo
19180 72 6c 64 46 69 6c 65 2e 3c 62 72 3e 0a 57 69 6c  rldFile.<br>.Wil
19190 6c 20 72 65 74 75 72 6e 20 3c 62 3e 31 3c 2f 62  l return <b>1</b
191a0 3e 20 28 54 52 55 45 2f 53 55 43 43 45 53 53 29  > (TRUE/SUCCESS)
191b0 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41   or <b>0</b> (FA
191c0 4c 53 45 2f 46 41 49 4c 55 52 45 29 3a 20 6f 72  LSE/FAILURE): or
191d0 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20 69 6e   <b>-1</b> on in
191e0 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 2e  valid arguments.
191f0 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e  <br>.<u>Please n
19200 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c  ote</u>: .<ul>.<
19210 6c 69 3e 54 68 65 20 3c 62 3e 3c 69 3e 64 62 50  li>The <b><i>dbP
19220 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20 61 72  refix</i></b> ar
19230 67 75 6d 65 6e 74 20 69 73 20 69 6e 74 65 6e 64  gument is intend
19240 65 64 20 74 6f 20 73 70 65 63 69 66 79 20 74 68  ed to specify th
19250 65 20 41 54 54 41 43 48 45 44 2d 44 42 20 77 68  e ATTACHED-DB wh
19260 65 72 65 20 74 68 65 20 43 6f 76 65 72 61 67 65  ere the Coverage
19270 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f 20   is expected to 
19280 62 65 20 66 6f 75 6e 64 3b 20 69 74 20 63 6f 75  be found; it cou
19290 6c 64 20 62 65 20 65 76 65 6e 74 75 61 6c 6c 79  ld be eventually
192a0 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20 61 6e   <b>NULL</b>, an
192b0 64 20 69 6e 20 74 68 69 73 20 63 61 73 65 20 74  d in this case t
192c0 68 65 20 3c 62 3e 4d 41 49 4e 20 44 42 3c 2f 62  he <b>MAIN DB</b
192d0 3e 20 77 69 6c 6c 20 69 6d 70 6c 69 63 69 74 6c  > will implicitl
192e0 79 20 62 65 20 61 73 73 75 6d 65 64 2e 3c 2f 6c  y be assumed.</l
192f0 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69  i>.<li>the <b><i
19300 3e 62 61 6e 64 49 6e 64 65 78 47 72 61 79 3c 2f  >bandIndexGray</
19310 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74 20  i></b> argument 
19320 69 73 20 69 6e 74 65 6e 64 65 64 20 74 6f 20 61  is intended to a
19330 72 62 69 74 72 61 72 69 6c 79 20 63 6f 6d 70 6f  rbitrarily compo
19340 73 65 20 74 68 65 20 47 72 61 79 73 63 61 6c 65  se the Grayscale
19350 20 54 49 46 46 20 73 74 61 72 74 69 6e 67 20 66   TIFF starting f
19360 72 6f 6d 20 74 68 65 20 42 61 6e 64 73 20 73 75  rom the Bands su
19370 70 70 6f 72 74 65 64 20 62 79 20 74 68 65 20 43  pported by the C
19380 6f 76 65 72 61 67 65 2e 0a 3c 62 72 3e 3c 75 3e  overage..<br><u>
19390 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a  Please note</u>:
193a0 20 74 68 65 20 66 69 72 73 74 20 42 61 6e 64 20   the first Band 
193b0 61 6c 77 61 79 73 20 63 6f 72 72 65 73 70 6f 6e  always correspon
193c0 64 73 20 74 6f 20 69 6e 64 65 78 20 3c 62 3e 5a  ds to index <b>Z
193d0 45 52 4f 3c 2f 62 3e 3c 2f 6c 69 3e 0a 3c 6c 69  ERO</b></li>.<li
193e0 3e 74 68 65 20 3c 62 3e 3c 69 3e 62 6f 75 6e 64  >the <b><i>bound
193f0 69 6e 67 42 6f 78 3c 2f 69 3e 3c 2f 62 3e 20 69  ingBox</i></b> i
19400 73 20 65 78 70 65 63 74 65 64 20 74 6f 20 72 65  s expected to re
19410 70 72 65 73 65 6e 74 20 74 68 65 20 6f 76 65 72  present the over
19420 61 6c 6c 20 65 78 74 65 6e 74 20 6f 66 20 74 68  all extent of th
19430 65 20 65 78 70 6f 72 74 65 64 20 54 49 46 46 3b  e exported TIFF;
19440 20 79 6f 75 20 63 6f 75 6c 64 20 65 76 65 6e 74   you could event
19450 75 61 6c 6c 79 20 70 61 73 73 20 61 6e 79 20 61  ually pass any a
19460 72 62 69 74 72 61 72 79 20 6b 69 6e 64 20 6f 66  rbitrary kind of
19470 20 47 65 6f 6d 65 74 72 79 2c 20 61 6e 64 20 74   Geometry, and t
19480 68 65 20 42 6f 75 6e 64 69 6e 67 20 42 6f 78 20  he Bounding Box 
19490 61 6b 61 20 4d 42 52 20 77 69 6c 6c 20 62 65 20  aka MBR will be 
194a0 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 64 65  automatically de
194b0 74 65 72 6d 69 6e 65 64 2e 3c 2f 6c 69 3e 0a 3c  termined.</li>.<
194c0 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 68 6f 72  li>the <b><i>hor
194d0 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  zPixelResolution
194e0 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e  </i></b> and <b>
194f0 3c 69 3e 76 65 72 74 50 69 78 65 6c 52 65 73 6f  <i>vertPixelReso
19500 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 6d  lution</i></b> m
19510 75 73 74 20 65 78 61 63 74 6c 79 20 6d 61 74 63  ust exactly matc
19520 68 20 74 68 65 20 43 6f 76 65 72 61 67 65 27 73  h the Coverage's
19530 20 62 61 73 65 20 72 65 73 6f 6c 75 74 69 6f 6e   base resolution
19540 20 6f 72 20 6f 6e 65 20 6f 66 20 74 68 65 20 72   or one of the r
19550 65 73 6f 6c 75 74 69 6f 6e 73 20 6d 61 64 65 20  esolutions made 
19560 61 76 61 69 6c 61 62 6c 65 20 62 79 20 74 68 65  available by the
19570 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 50   corresponding P
19580 79 72 61 6d 69 64 20 6c 65 76 65 6c 73 2e 3c 2f  yramid levels.</
19590 6c 69 3e 0a 3c 6c 69 3e 61 6e 64 20 74 68 65 20  li>.<li>and the 
195a0 42 6f 75 6e 64 69 6e 67 42 6f 78 20 6d 75 73 74  BoundingBox must
195b0 20 65 78 61 63 74 6c 79 20 6d 61 74 63 68 20 74   exactly match t
195c0 68 65 20 54 49 46 46 20 3c 62 3e 3c 69 3e 77 69  he TIFF <b><i>wi
195d0 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20  dth</i></b> and 
195e0 3c 62 3e 3c 69 3e 68 65 69 67 68 74 3c 2f 69 3e  <b><i>height</i>
195f0 3c 2f 62 3e 20 64 69 6d 65 6e 73 69 6f 6e 73 20  </b> dimensions 
19600 61 74 20 74 68 61 74 20 72 65 73 6f 6c 75 74 69  at that resoluti
19610 6f 6e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65  on.</li>.<li>the
19620 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65   optional argume
19630 6e 74 20 3c 62 3e 3c 69 3e 74 69 66 66 43 6f 6d  nt <b><i>tiffCom
19640 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e  pression</i></b>
19650 20 63 6f 75 6c 64 20 62 65 20 6f 6e 65 20 6f 66   could be one of
19660 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62 3e 2c 20   <b>'NONE'</b>, 
19670 3c 62 3e 27 44 45 46 4c 41 54 45 27 3c 2f 62 3e  <b>'DEFLATE'</b>
19680 2c 20 3c 62 3e 27 4c 5a 57 27 3c 2f 62 3e 2c 20  , <b>'LZW'</b>, 
19690 3c 62 3e 27 4a 50 45 47 27 3c 2f 62 3e 2c 20 3c  <b>'JPEG'</b>, <
196a0 62 3e 27 46 41 58 33 27 3c 2f 62 3e 20 6f 72 20  b>'FAX3'</b> or 
196b0 3c 62 3e 27 46 41 58 34 27 3c 2f 62 3e 3b 20 64  <b>'FAX4'</b>; d
196c0 65 66 61 75 6c 74 20 69 73 20 3c 62 3e 27 4e 4f  efault is <b>'NO
196d0 4e 45 27 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 6c  NE'</b>.</li>.<l
196e0 69 3e 74 68 65 20 6c 61 73 74 20 6f 70 74 69 6f  i>the last optio
196f0 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 63 61 6e  nal argument can
19700 20 62 65 20 75 73 65 64 20 73 6f 20 74 6f 20 73   be used so to s
19710 70 65 63 69 66 79 20 74 68 65 20 70 72 65 66 65  pecify the prefe
19720 72 72 65 64 20 54 49 46 46 20 74 69 6c 65 20 73  rred TIFF tile s
19730 69 7a 65 20 28 6f 6e 6c 79 20 73 71 75 61 72 65  ize (only square
19740 20 74 69 6c 65 73 20 61 72 65 20 73 75 70 70 6f   tiles are suppo
19750 72 74 65 64 29 3b 20 64 65 66 61 75 6c 74 20 69  rted); default i
19760 73 20 3c 62 3e 32 35 36 3c 2f 62 3e 2e 3c 2f 6c  s <b>256</b>.</l
19770 69 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61 62 6c 65 20  i>.</ul>.<table 
19780 77 69 64 74 68 3d 22 31 30 30 25 22 20 62 67 63  width="100%" bgc
19790 6f 6c 6f 72 3d 22 23 66 66 64 30 38 30 22 20 63  olor="#ffd080" c
197a0 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36 22 3e 3c  ellpadding="6"><
197b0 74 72 3e 3c 74 64 3e 0a 3c 75 3e 50 6c 65 61 73  tr><td>.<u>Pleas
197c0 65 20 6e 6f 74 65 20 76 65 72 79 20 77 65 6c 6c  e note very well
197d0 3c 2f 75 3e 3a 20 74 68 69 73 20 53 51 4c 20 66  </u>: this SQL f
197e0 75 6e 63 74 69 6f 6e 20 69 73 20 6f 6e 6c 79 20  unction is only 
197f0 61 76 61 69 6c 61 62 6c 65 20 77 68 65 6e 20 74  available when t
19800 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76  he environment v
19810 61 72 69 61 62 6c 65 20 3c 62 3e 53 50 41 54 49  ariable <b>SPATI
19820 41 4c 49 54 45 5f 53 45 43 55 52 49 54 59 3d 72  ALITE_SECURITY=r
19830 65 6c 61 78 65 64 3c 2f 62 3e 20 69 73 20 73 65  elaxed</b> is se
19840 74 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61  t.</td></tr></ta
19850 62 6c 65 3e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a  ble></td>.</tr>.
19860 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f 57  <tr><td><b>RL2_W
19870 72 69 74 65 4d 6f 6e 6f 42 61 6e 64 54 69 66 66  riteMonoBandTiff
19880 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
19890 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
198a0 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
198b0 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
198c0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69  ring</i> , <b>fi
198d0 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74  lePath</b> <i>St
198e0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69  ring</i> , <b>wi
198f0 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  dth</b> <i>Integ
19900 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67  er</i> , <b>heig
19910 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
19920 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49  r</i> , <b>bandI
19930 6e 64 65 78 47 72 61 79 3c 2f 62 3e 20 3c 69 3e  ndexGray</b> <i>
19940 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
19950 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e  >boundingBox</b>
19960 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72   <i>BLOB-Geometr
19970 79 3c 2f 69 3e 20 2c 20 3c 62 3e 70 69 78 65 6c  y</i> , <b>pixel
19980 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
19990 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a  i>Double</i> ) :
199a0 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
199b0 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57  br><br>.<b>RL2_W
199c0 72 69 74 65 4d 6f 6e 6f 42 61 6e 64 54 69 66 66  riteMonoBandTiff
199d0 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
199e0 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
199f0 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
19a00 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
19a10 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69  ring</i> , <b>fi
19a20 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74  lePath</b> <i>St
19a30 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69  ring</i> , <b>wi
19a40 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  dth</b> <i>Integ
19a50 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67  er</i> , <b>heig
19a60 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
19a70 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49  r</i> , <b>bandI
19a80 6e 64 65 78 47 72 61 79 3c 2f 62 3e 20 3c 69 3e  ndexGray</b> <i>
19a90 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c  Integer</i>  , <
19aa0 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
19ab0 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
19ac0 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a  ry</i> , <b>horz
19ad0 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
19ae0 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
19af0 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c  > , <b>vertPixel
19b00 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
19b10 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a  i>Double</i> ) :
19b20 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
19b30 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57  br><br>.<b>RL2_W
19b40 72 69 74 65 4d 6f 6e 6f 42 61 6e 64 54 69 66 66  riteMonoBandTiff
19b50 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
19b60 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
19b70 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
19b80 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
19b90 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69  ring</i> , <b>fi
19ba0 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74  lePath</b> <i>St
19bb0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69  ring</i> , <b>wi
19bc0 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  dth</b> <i>Integ
19bd0 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67  er</i> , <b>heig
19be0 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
19bf0 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49  r</i> , <b>bandI
19c00 6e 64 65 78 47 72 61 79 3c 2f 62 3e 20 3c 69 3e  ndexGray</b> <i>
19c10 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c  Integer</i>  , <
19c20 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
19c30 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
19c40 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a  ry</i> , <b>horz
19c50 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
19c60 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
19c70 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c  > , <b>vertPixel
19c80 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
19c90 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c  i>Double</i> , <
19ca0 62 3e 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f  b>tiffCompressio
19cb0 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  n</b> <i>String<
19cc0 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67  /i> ) : <i>Integ
19cd0 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c  er</i><br><br>.<
19ce0 62 3e 52 4c 32 5f 57 72 69 74 65 4d 6f 6e 6f 42  b>RL2_WriteMonoB
19cf0 61 6e 64 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62  andTiff</b> ( <b
19d00 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69  >dbPrefix</b> <i
19d10 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
19d20 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62  >coverageName</b
19d30 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
19d40 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62  , <b>filePath</b
19d50 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
19d60 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c  , <b>width</b> <
19d70 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
19d80 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69  <b>height</b> <i
19d90 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
19da0 62 3e 62 61 6e 64 49 6e 64 65 78 47 72 61 79 3c  b>bandIndexGray<
19db0 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
19dc0 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e  i>  , <b>boundin
19dd0 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42  gBox</b> <i>BLOB
19de0 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20  -Geometry</i> , 
19df0 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f  <b>horzPixelReso
19e00 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f  lution</b> <i>Do
19e10 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65  uble</i> , <b>ve
19e20 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rtPixelResolutio
19e30 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c  n</b> <i>Double<
19e40 2f 69 3e 20 2c 20 3c 62 3e 74 69 66 66 43 6f 6d  /i> , <b>tiffCom
19e50 70 72 65 73 73 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  pression</b> <i>
19e60 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
19e70 74 69 66 66 54 69 6c 65 53 69 7a 65 3c 2f 62 3e  tiffTileSize</b>
19e80 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
19e90 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
19ea0 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c  i></td>.<td>Will
19eb0 20 61 74 74 65 6d 70 74 20 74 6f 20 65 78 70 6f   attempt to expo
19ec0 72 74 20 72 61 77 20 72 61 73 74 65 72 20 64 61  rt raw raster da
19ed0 74 61 20 66 72 6f 6d 20 61 20 4d 55 4c 54 49 42  ta from a MULTIB
19ee0 41 4e 44 20 6f 72 20 52 47 42 20 43 6f 76 65 72  AND or RGB Cover
19ef0 61 67 65 20 69 6e 74 6f 20 61 6e 20 65 78 74 65  age into an exte
19f00 72 6e 61 6c 20 70 6c 61 69 6e 20 54 49 46 46 20  rnal plain TIFF 
19f10 66 69 6c 65 20 6f 66 20 74 68 65 20 47 72 61 79  file of the Gray
19f20 73 63 61 6c 65 20 74 79 70 65 2e 3c 62 72 3e 0a  scale type.<br>.
19f30 57 69 6c 6c 20 72 65 74 75 72 6e 20 3c 62 3e 31  Will return <b>1
19f40 3c 2f 62 3e 20 28 54 52 55 45 2f 53 55 43 43 45  </b> (TRUE/SUCCE
19f50 53 53 29 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20  SS) or <b>0</b> 
19f60 28 46 41 4c 53 45 2f 46 41 49 4c 55 52 45 29 3a  (FALSE/FAILURE):
19f70 20 6f 72 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e   or <b>-1</b> on
19f80 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e   invalid argumen
19f90 74 73 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73  ts.<br>.<u>Pleas
19fa0 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75 6c  e note</u>: .<ul
19fb0 3e 0a 3c 6c 69 3e 54 68 65 20 3c 62 3e 3c 69 3e  >.<li>The <b><i>
19fc0 64 62 50 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e  dbPrefix</i></b>
19fd0 20 61 72 67 75 6d 65 6e 74 20 69 73 20 69 6e 74   argument is int
19fe0 65 6e 64 65 64 20 74 6f 20 73 70 65 63 69 66 79  ended to specify
19ff0 20 74 68 65 20 41 54 54 41 43 48 45 44 2d 44 42   the ATTACHED-DB
1a000 20 77 68 65 72 65 20 74 68 65 20 43 6f 76 65 72   where the Cover
1a010 61 67 65 20 69 73 20 65 78 70 65 63 74 65 64 20  age is expected 
1a020 74 6f 20 62 65 20 66 6f 75 6e 64 3b 20 69 74 20  to be found; it 
1a030 63 6f 75 6c 64 20 62 65 20 65 76 65 6e 74 75 61  could be eventua
1a040 6c 6c 79 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c  lly <b>NULL</b>,
1a050 20 61 6e 64 20 69 6e 20 74 68 69 73 20 63 61 73   and in this cas
1a060 65 20 74 68 65 20 3c 62 3e 4d 41 49 4e 20 44 42  e the <b>MAIN DB
1a070 3c 2f 62 3e 20 77 69 6c 6c 20 69 6d 70 6c 69 63  </b> will implic
1a080 69 74 6c 79 20 62 65 20 61 73 73 75 6d 65 64 2e  itly be assumed.
1a090 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62  </li>.<li>the <b
1a0a0 3e 3c 69 3e 62 61 6e 64 49 6e 64 65 78 47 72 61  ><i>bandIndexGra
1a0b0 79 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65  y</i></b> argume
1a0c0 6e 74 20 69 73 20 69 6e 74 65 6e 64 65 64 20 74  nt is intended t
1a0d0 6f 20 61 72 62 69 74 72 61 72 69 6c 79 20 63 6f  o arbitrarily co
1a0e0 6d 70 6f 73 65 20 74 68 65 20 47 72 61 79 73 63  mpose the Graysc
1a0f0 61 6c 65 20 54 49 46 46 20 73 74 61 72 74 69 6e  ale TIFF startin
1a100 67 20 66 72 6f 6d 20 74 68 65 20 42 61 6e 64 73  g from the Bands
1a110 20 73 75 70 70 6f 72 74 65 64 20 62 79 20 74 68   supported by th
1a120 65 20 43 6f 76 65 72 61 67 65 2e 0a 3c 62 72 3e  e Coverage..<br>
1a130 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f  <u>Please note</
1a140 75 3e 3a 20 74 68 65 20 66 69 72 73 74 20 42 61  u>: the first Ba
1a150 6e 64 20 61 6c 77 61 79 73 20 63 6f 72 72 65 73  nd always corres
1a160 70 6f 6e 64 73 20 74 6f 20 69 6e 64 65 78 20 3c  ponds to index <
1a170 62 3e 5a 45 52 4f 3c 2f 62 3e 3c 2f 6c 69 3e 0a  b>ZERO</b></li>.
1a180 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 62 6f  <li>the <b><i>bo
1a190 75 6e 64 69 6e 67 42 6f 78 3c 2f 69 3e 3c 2f 62  undingBox</i></b
1a1a0 3e 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f  > is expected to
1a1b0 20 72 65 70 72 65 73 65 6e 74 20 74 68 65 20 6f   represent the o
1a1c0 76 65 72 61 6c 6c 20 65 78 74 65 6e 74 20 6f 66  verall extent of
1a1d0 20 74 68 65 20 65 78 70 6f 72 74 65 64 20 54 49   the exported TI
1a1e0 46 46 3b 20 79 6f 75 20 63 6f 75 6c 64 20 65 76  FF; you could ev
1a1f0 65 6e 74 75 61 6c 6c 79 20 70 61 73 73 20 61 6e  entually pass an
1a200 79 20 61 72 62 69 74 72 61 72 79 20 6b 69 6e 64  y arbitrary kind
1a210 20 6f 66 20 47 65 6f 6d 65 74 72 79 2c 20 61 6e   of Geometry, an
1a220 64 20 74 68 65 20 42 6f 75 6e 64 69 6e 67 20 42  d the Bounding B
1a230 6f 78 20 61 6b 61 20 4d 42 52 20 77 69 6c 6c 20  ox aka MBR will 
1a240 62 65 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79  be automatically
1a250 20 64 65 74 65 72 6d 69 6e 65 64 2e 3c 2f 6c 69   determined.</li
1a260 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e  >.<li>the <b><i>
1a270 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74  horzPixelResolut
1a280 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20  ion</i></b> and 
1a290 3c 62 3e 3c 69 3e 76 65 72 74 50 69 78 65 6c 52  <b><i>vertPixelR
1a2a0 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62  esolution</i></b
1a2b0 3e 20 6d 75 73 74 20 65 78 61 63 74 6c 79 20 6d  > must exactly m
1a2c0 61 74 63 68 20 74 68 65 20 43 6f 76 65 72 61 67  atch the Coverag
1a2d0 65 27 73 20 62 61 73 65 20 72 65 73 6f 6c 75 74  e's base resolut
1a2e0 69 6f 6e 20 6f 72 20 6f 6e 65 20 6f 66 20 74 68  ion or one of th
1a2f0 65 20 72 65 73 6f 6c 75 74 69 6f 6e 73 20 6d 61  e resolutions ma
1a300 64 65 20 61 76 61 69 6c 61 62 6c 65 20 62 79 20  de available by 
1a310 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e  the correspondin
1a320 67 20 50 79 72 61 6d 69 64 20 6c 65 76 65 6c 73  g Pyramid levels
1a330 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 61 6e 64 20 74  .</li>.<li>and t
1a340 68 65 20 42 6f 75 6e 64 69 6e 67 42 6f 78 20 6d  he BoundingBox m
1a350 75 73 74 20 65 78 61 63 74 6c 79 20 6d 61 74 63  ust exactly matc
1a360 68 20 74 68 65 20 54 49 46 46 20 3c 62 3e 3c 69  h the TIFF <b><i
1a370 3e 77 69 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20 61  >width</i></b> a
1a380 6e 64 20 3c 62 3e 3c 69 3e 68 65 69 67 68 74 3c  nd <b><i>height<
1a390 2f 69 3e 3c 2f 62 3e 20 64 69 6d 65 6e 73 69 6f  /i></b> dimensio
1a3a0 6e 73 20 61 74 20 74 68 61 74 20 72 65 73 6f 6c  ns at that resol
1a3b0 75 74 69 6f 6e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e  ution.</li>.<li>
1a3c0 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67  the optional arg
1a3d0 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e 74 69 66 66  ument <b><i>tiff
1a3e0 43 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c  Compression</i><
1a3f0 2f 62 3e 20 63 6f 75 6c 64 20 62 65 20 6f 6e 65  /b> could be one
1a400 20 6f 66 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62   of <b>'NONE'</b
1a410 3e 2c 20 3c 62 3e 27 44 45 46 4c 41 54 45 27 3c  >, <b>'DEFLATE'<
1a420 2f 62 3e 2c 20 3c 62 3e 27 4c 5a 57 27 3c 2f 62  /b>, <b>'LZW'</b
1a430 3e 2c 20 3c 62 3e 27 4a 50 45 47 27 3c 2f 62 3e  >, <b>'JPEG'</b>
1a440 2c 20 3c 62 3e 27 46 41 58 33 27 3c 2f 62 3e 20  , <b>'FAX3'</b> 
1a450 6f 72 20 3c 62 3e 27 46 41 58 34 27 3c 2f 62 3e  or <b>'FAX4'</b>
1a460 3b 20 64 65 66 61 75 6c 74 20 69 73 20 3c 62 3e  ; default is <b>
1a470 27 4e 4f 4e 45 27 3c 2f 62 3e 2e 3c 2f 6c 69 3e  'NONE'</b>.</li>
1a480 0a 3c 6c 69 3e 74 68 65 20 6c 61 73 74 20 6f 70  .<li>the last op
1a490 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20  tional argument 
1a4a0 63 61 6e 20 62 65 20 75 73 65 64 20 73 6f 20 74  can be used so t
1a4b0 6f 20 73 70 65 63 69 66 79 20 74 68 65 20 70 72  o specify the pr
1a4c0 65 66 65 72 72 65 64 20 54 49 46 46 20 74 69 6c  eferred TIFF til
1a4d0 65 20 73 69 7a 65 20 28 6f 6e 6c 79 20 73 71 75  e size (only squ
1a4e0 61 72 65 20 74 69 6c 65 73 20 61 72 65 20 73 75  are tiles are su
1a4f0 70 70 6f 72 74 65 64 29 3b 20 64 65 66 61 75 6c  pported); defaul
1a500 74 20 69 73 20 3c 62 3e 32 35 36 3c 2f 62 3e 2e  t is <b>256</b>.
1a510 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61 62  </li>.</ul>.<tab
1a520 6c 65 20 77 69 64 74 68 3d 22 31 30 30 25 22 20  le width="100%" 
1a530 62 67 63 6f 6c 6f 72 3d 22 23 66 66 64 30 38 30  bgcolor="#ffd080
1a540 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36  " cellpadding="6
1a550 22 3e 3c 74 72 3e 3c 74 64 3e 0a 3c 75 3e 50 6c  "><tr><td>.<u>Pl
1a560 65 61 73 65 20 6e 6f 74 65 20 76 65 72 79 20 77  ease note very w
1a570 65 6c 6c 3c 2f 75 3e 3a 20 74 68 69 73 20 53 51  ell</u>: this SQ
1a580 4c 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 6f 6e  L function is on
1a590 6c 79 20 61 76 61 69 6c 61 62 6c 65 20 77 68 65  ly available whe
1a5a0 6e 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e  n the environmen
1a5b0 74 20 76 61 72 69 61 62 6c 65 20 3c 62 3e 53 50  t variable <b>SP
1a5c0 41 54 49 41 4c 49 54 45 5f 53 45 43 55 52 49 54  ATIALITE_SECURIT
1a5d0 59 3d 72 65 6c 61 78 65 64 3c 2f 62 3e 20 69 73  Y=relaxed</b> is
1a5e0 20 73 65 74 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c   set.</td></tr><
1a5f0 2f 74 61 62 6c 65 3e 3c 2f 74 64 3e 0a 3c 2f 74  /table></td>.</t
1a600 72 3e 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c  r>.<tr><td><b>RL
1a610 32 5f 57 72 69 74 65 41 73 63 69 69 47 72 69 64  2_WriteAsciiGrid
1a620 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
1a630 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
1a640 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
1a650 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
1a660 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69  ring</i> , <b>fi
1a670 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74  lePath</b> <i>St
1a680 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69  ring</i> , <b>wi
1a690 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  dth</b> <i>Integ
1a6a0 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67  er</i> , <b>heig
1a6b0 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
1a6c0 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64  r</i> , <b>bound
1a6d0 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c  ingBox</b> <i>BL
1a6e0 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20  OB-Geometry</i> 
1a6f0 2c 20 3c 62 3e 70 69 78 65 6c 52 65 73 6f 6c 75  , <b>pixelResolu
1a700 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62  tion</b> <i>Doub
1a710 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e  le</i> ) : <i>In
1a720 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72  teger</i><br><br
1a730 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 41 73  >.<b>RL2_WriteAs
1a740 63 69 69 47 72 69 64 3c 2f 62 3e 20 28 20 3c 62  ciiGrid</b> ( <b
1a750 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69  >dbPrefix</b> <i
1a760 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
1a770 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62  >coverageName</b
1a780 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
1a790 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62  , <b>filePath</b
1a7a0 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
1a7b0 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c  , <b>width</b> <
1a7c0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
1a7d0 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69  <b>height</b> <i
1a7e0 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
1a7f0 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
1a800 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
1a810 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 70 69 78 65  ry</i> , <b>pixe
1a820 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20  lResolution</b> 
1a830 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20  <i>Double</i> , 
1a840 3c 62 3e 69 73 50 69 78 65 6c 43 65 6e 74 65 72  <b>isPixelCenter
1a850 65 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ed</b> <i>Intege
1a860 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74  r</i> ) : <i>Int
1a870 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e  eger</i><br><br>
1a880 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 41 73 63  .<b>RL2_WriteAsc
1a890 69 69 47 72 69 64 3c 2f 62 3e 20 28 20 3c 62 3e  iiGrid</b> ( <b>
1a8a0 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e  dbPrefix</b> <i>
1a8b0 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
1a8c0 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e  coverageName</b>
1a8d0 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
1a8e0 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e   <b>filePath</b>
1a8f0 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
1a900 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69   <b>width</b> <i
1a910 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
1a920 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e  b>height</b> <i>
1a930 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
1a940 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e  >boundingBox</b>
1a950 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72   <i>BLOB-Geometr
1a960 79 3c 2f 69 3e 20 2c 20 3c 62 3e 70 69 78 65 6c  y</i> , <b>pixel
1a970 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
1a980 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c  i>Double</i> , <
1a990 62 3e 69 73 50 69 78 65 6c 43 65 6e 74 65 72 65  b>isPixelCentere
1a9a0 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  d</b> <i>Integer
1a9b0 3c 2f 69 3e 20 2c 0a 3c 62 3e 64 65 63 69 6d 61  </i> ,.<b>decima
1a9c0 6c 44 69 67 69 74 73 3c 2f 62 3e 20 3c 69 3e 49  lDigits</b> <i>I
1a9d0 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c  nteger</i> ) : <
1a9e0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74  i>Integer</i></t
1a9f0 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61 74 74 65  d>.<td>Will atte
1aa00 6d 70 74 20 74 6f 20 65 78 70 6f 72 74 20 72 61  mpt to export ra
1aa10 77 20 72 61 73 74 65 72 20 64 61 74 61 20 66 72  w raster data fr
1aa20 6f 6d 20 61 20 44 41 54 41 47 52 49 44 20 43 6f  om a DATAGRID Co
1aa30 76 65 72 61 67 65 20 69 6e 74 6f 20 61 6e 20 65  verage into an e
1aa40 78 74 65 72 6e 61 6c 20 41 53 43 49 49 20 47 72  xternal ASCII Gr
1aa50 69 64 20 66 69 6c 65 2e 3c 62 72 3e 0a 57 69 6c  id file.<br>.Wil
1aa60 6c 20 72 65 74 75 72 6e 20 3c 62 3e 31 3c 2f 62  l return <b>1</b
1aa70 3e 20 28 54 52 55 45 2f 53 55 43 43 45 53 53 29  > (TRUE/SUCCESS)
1aa80 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41   or <b>0</b> (FA
1aa90 4c 53 45 2f 46 41 49 4c 55 52 45 29 3a 20 6f 72  LSE/FAILURE): or
1aaa0 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20 69 6e   <b>-1</b> on in
1aab0 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 2e  valid arguments.
1aac0 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e  <br>.<u>Please n
1aad0 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c  ote</u>: .<ul>.<
1aae0 6c 69 3e 54 68 65 20 3c 62 3e 3c 69 3e 64 62 50  li>The <b><i>dbP
1aaf0 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20 61 72  refix</i></b> ar
1ab00 67 75 6d 65 6e 74 20 69 73 20 69 6e 74 65 6e 64  gument is intend
1ab10 65 64 20 74 6f 20 73 70 65 63 69 66 79 20 74 68  ed to specify th
1ab20 65 20 41 54 54 41 43 48 45 44 2d 44 42 20 77 68  e ATTACHED-DB wh
1ab30 65 72 65 20 74 68 65 20 43 6f 76 65 72 61 67 65  ere the Coverage
1ab40 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f 20   is expected to 
1ab50 62 65 20 66 6f 75 6e 64 3b 20 69 74 20 63 6f 75  be found; it cou
1ab60 6c 64 20 62 65 20 65 76 65 6e 74 75 61 6c 6c 79  ld be eventually
1ab70 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20 61 6e   <b>NULL</b>, an
1ab80 64 20 69 6e 20 74 68 69 73 20 63 61 73 65 20 74  d in this case t
1ab90 68 65 20 3c 62 3e 4d 41 49 4e 20 44 42 3c 2f 62  he <b>MAIN DB</b
1aba0 3e 20 77 69 6c 6c 20 69 6d 70 6c 69 63 69 74 6c  > will implicitl
1abb0 79 20 62 65 20 61 73 73 75 6d 65 64 2e 3c 2f 6c  y be assumed.</l
1abc0 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69  i>.<li>the <b><i
1abd0 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 69 3e  >boundingBox</i>
1abe0 3c 2f 62 3e 20 69 73 20 65 78 70 65 63 74 65 64  </b> is expected
1abf0 20 74 6f 20 72 65 70 72 65 73 65 6e 74 20 74 68   to represent th
1ac00 65 20 6f 76 65 72 61 6c 6c 20 65 78 74 65 6e 74  e overall extent
1ac10 20 6f 66 20 74 68 65 20 65 78 70 6f 72 74 65 64   of the exported
1ac20 20 41 53 43 49 49 20 47 72 69 64 3b 20 79 6f 75   ASCII Grid; you
1ac30 20 63 6f 75 6c 64 20 65 76 65 6e 74 75 61 6c 6c   could eventuall
1ac40 79 20 70 61 73 73 20 61 6e 79 20 61 72 62 69 74  y pass any arbit
1ac50 72 61 72 79 20 6b 69 6e 64 20 6f 66 20 47 65 6f  rary kind of Geo
1ac60 6d 65 74 72 79 2c 20 61 6e 64 20 74 68 65 20 42  metry, and the B
1ac70 6f 75 6e 64 69 6e 67 20 42 6f 78 20 61 6b 61 20  ounding Box aka 
1ac80 4d 42 52 20 77 69 6c 6c 20 62 65 20 61 75 74 6f  MBR will be auto
1ac90 6d 61 74 69 63 61 6c 6c 79 20 64 65 74 65 72 6d  matically determ
1aca0 69 6e 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74  ined.</li>.<li>t
1acb0 68 65 20 3c 62 3e 3c 69 3e 70 69 78 65 6c 52 65  he <b><i>pixelRe
1acc0 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e  solution</i></b>
1acd0 20 20 6d 75 73 74 20 65 78 61 63 74 6c 79 20 6d    must exactly m
1ace0 61 74 63 68 20 74 68 65 20 43 6f 76 65 72 61 67  atch the Coverag
1acf0 65 27 73 20 62 61 73 65 20 72 65 73 6f 6c 75 74  e's base resolut
1ad00 69 6f 6e 20 6f 72 20 6f 6e 65 20 6f 66 20 74 68  ion or one of th
1ad10 65 20 72 65 73 6f 6c 75 74 69 6f 6e 73 20 6d 61  e resolutions ma
1ad20 64 65 20 61 76 61 69 6c 61 62 6c 65 20 62 79 20  de available by 
1ad30 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e  the correspondin
1ad40 67 20 50 79 72 61 6d 69 64 20 6c 65 76 65 6c 73  g Pyramid levels
1ad50 3b 20 72 65 63 74 61 6e 67 75 6c 61 72 20 70 69  ; rectangular pi
1ad60 78 65 6c 73 20 61 72 65 6e 27 74 20 73 75 70 70  xels aren't supp
1ad70 6f 72 74 65 64 20 62 79 20 41 53 43 49 49 20 47  orted by ASCII G
1ad80 72 69 64 73 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 61  rids.</li>.<li>a
1ad90 6e 64 20 74 68 65 20 42 6f 75 6e 64 69 6e 67 42  nd the BoundingB
1ada0 6f 78 20 6d 75 73 74 20 65 78 61 63 74 6c 79 20  ox must exactly 
1adb0 6d 61 74 63 68 20 74 68 65 20 41 53 43 49 49 20  match the ASCII 
1adc0 47 72 69 64 20 3c 62 3e 3c 69 3e 77 69 64 74 68  Grid <b><i>width
1add0 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e  </i></b> and <b>
1ade0 3c 69 3e 68 65 69 67 68 74 3c 2f 69 3e 3c 2f 62  <i>height</i></b
1adf0 3e 20 64 69 6d 65 6e 73 69 6f 6e 73 20 61 74 20  > dimensions at 
1ae00 74 68 61 74 20 72 65 73 6f 6c 75 74 69 6f 6e 2e  that resolution.
1ae10 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 6f 70  </li>.<li>the op
1ae20 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20  tional argument 
1ae30 3c 62 3e 3c 69 3e 69 73 50 69 78 65 6c 43 65 6e  <b><i>isPixelCen
1ae40 74 65 72 65 64 3c 2f 69 3e 3c 2f 62 3e 20 28 65  tered</i></b> (e
1ae50 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 6f 66  xpected to be of
1ae60 20 74 68 65 20 42 6f 6f 6c 65 61 6e 20 74 79 70   the Boolean typ
1ae70 65 29 20 64 65 74 65 72 6d 69 6e 65 73 20 69 66  e) determines if
1ae80 20 74 68 65 20 41 53 43 49 49 20 47 72 69 64 20   the ASCII Grid 
1ae90 77 69 6c 6c 20 64 65 63 6c 61 72 65 20 3c 62 3e  will declare <b>
1aea0 78 6c 6c 63 65 6e 74 65 72 3c 2f 62 3e 20 61 6e  xllcenter</b> an
1aeb0 64 20 3c 62 3e 79 6c 6c 63 65 6e 74 65 72 3c 2f  d <b>yllcenter</
1aec0 62 3e 20 69 6e 73 74 65 61 64 20 6f 66 20 3c 62  b> instead of <b
1aed0 3e 78 6c 6c 63 6f 72 6e 65 72 3c 2f 62 3e 20 61  >xllcorner</b> a
1aee0 6e 64 20 3c 62 3e 79 6c 6c 63 6f 6e 65 72 3c 2f  nd <b>yllconer</
1aef0 62 3e 20 28 64 65 66 61 75 6c 74 20 69 73 20 54  b> (default is T
1af00 52 55 45 29 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74  RUE).</li>.<li>t
1af10 68 65 20 6c 61 73 74 20 6f 70 74 69 6f 6e 61 6c  he last optional
1af20 20 61 72 67 75 6d 65 6e 74 20 63 61 6e 20 62 65   argument can be
1af30 20 75 73 65 64 20 73 6f 20 74 6f 20 73 70 65 63   used so to spec
1af40 69 66 79 20 68 6f 77 20 6d 61 6e 79 20 64 65 63  ify how many dec
1af50 69 6d 61 6c 20 64 69 67 69 74 73 20 68 61 76 65  imal digits have
1af60 20 74 6f 20 62 65 20 65 78 70 6f 72 74 65 64 20   to be exported 
1af70 69 6e 74 6f 20 74 68 65 20 41 53 43 49 49 20 47  into the ASCII G
1af80 72 69 64 3b 20 64 65 66 61 75 6c 74 20 69 73 20  rid; default is 
1af90 3c 62 3e 34 3c 2f 62 3e 20 64 65 63 69 6d 61 6c  <b>4</b> decimal
1afa0 20 64 69 67 69 74 73 2e 3c 2f 6c 69 3e 0a 3c 2f   digits.</li>.</
1afb0 75 6c 3e 0a 3c 74 61 62 6c 65 20 77 69 64 74 68  ul>.<table width
1afc0 3d 22 31 30 30 25 22 20 62 67 63 6f 6c 6f 72 3d  ="100%" bgcolor=
1afd0 22 23 66 66 64 30 38 30 22 20 63 65 6c 6c 70 61  "#ffd080" cellpa
1afe0 64 64 69 6e 67 3d 22 36 22 3e 3c 74 72 3e 3c 74  dding="6"><tr><t
1aff0 64 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74  d>.<u>Please not
1b000 65 20 76 65 72 79 20 77 65 6c 6c 3c 2f 75 3e 3a  e very well</u>:
1b010 20 74 68 69 73 20 53 51 4c 20 66 75 6e 63 74 69   this SQL functi
1b020 6f 6e 20 69 73 20 6f 6e 6c 79 20 61 76 61 69 6c  on is only avail
1b030 61 62 6c 65 20 77 68 65 6e 20 74 68 65 20 65 6e  able when the en
1b040 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62  vironment variab
1b050 6c 65 20 3c 62 3e 53 50 41 54 49 41 4c 49 54 45  le <b>SPATIALITE
1b060 5f 53 45 43 55 52 49 54 59 3d 72 65 6c 61 78 65  _SECURITY=relaxe
1b070 64 3c 2f 62 3e 20 69 73 20 73 65 74 2e 3c 2f 74  d</b> is set.</t
1b080 64 3e 3c 2f 74 72 3e 3c 2f 74 61 62 6c 65 3e 3c  d></tr></table><
1b090 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 2f 74 72 3e  /td>.</tr>.</tr>
1b0a0 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f  .<tr><td><b>RL2_
1b0b0 57 72 69 74 65 4a 70 65 67 4a 47 57 3c 2f 62 3e  WriteJpegJGW</b>
1b0c0 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f   ( <b>dbPrefix</
1b0d0 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
1b0e0 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   , <b>coverageNa
1b0f0 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
1b100 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61  </i> , <b>filePa
1b110 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  th</b> <i>String
1b120 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c  </i> , <b>width<
1b130 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
1b140 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f  i> , <b>height</
1b150 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
1b160 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42  > , <b>boundingB
1b170 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47  ox</b> <i>BLOB-G
1b180 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62  eometry</i> , <b
1b190 3e 70 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  >pixelResolution
1b1a0 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f  </b> <i>Double</
1b1b0 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65  i> ) : <i>Intege
1b1c0 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 3c 62 3e  r</i><br><br><b>
1b1d0 52 4c 32 5f 57 72 69 74 65 4a 70 65 67 4a 47 57  RL2_WriteJpegJGW
1b1e0 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
1b1f0 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
1b200 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
1b210 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
1b220 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69  ring</i> , <b>fi
1b230 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74  lePath</b> <i>St
1b240 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69  ring</i> , <b>wi
1b250 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  dth</b> <i>Integ
1b260 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67  er</i> , <b>heig
1b270 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
1b280 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64  r</i> , <b>bound
1b290 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c  ingBox</b> <i>BL
1b2a0 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20  OB-Geometry</i> 
1b2b0 2c 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65  , <b>horzPixelRe
1b2c0 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  solution</b> <i>
1b2d0 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e  Double</i> , <b>
1b2e0 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74  vertPixelResolut
1b2f0 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c  ion</b> <i>Doubl
1b300 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74  e</i> ) : <i>Int
1b310 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e  eger</i><br><br>
1b320 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 4a 70 65  .<b>RL2_WriteJpe
1b330 67 4a 47 57 3c 2f 62 3e 20 28 20 3c 62 3e 64 62  gJGW</b> ( <b>db
1b340 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74  Prefix</b> <i>St
1b350 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f  ring</i> , <b>co
1b360 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
1b370 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
1b380 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c  b>filePath</b> <
1b390 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
1b3a0 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49  b>width</b> <i>I
1b3b0 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
1b3c0 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e  height</b> <i>In
1b3d0 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62  teger</i> , <b>b
1b3e0 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c  oundingBox</b> <
1b3f0 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c  i>BLOB-Geometry<
1b400 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50 69 78  /i> , <b>horzPix
1b410 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e  elResolution</b>
1b420 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c   <i>Double</i> ,
1b430 20 3c 62 3e 76 65 72 74 50 69 78 65 6c 52 65 73   <b>vertPixelRes
1b440 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44  olution</b> <i>D
1b450 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 71  ouble</i> , <b>q
1b460 75 61 6c 69 74 79 3c 2f 62 3e 20 3c 69 3e 49 6e  uality</b> <i>In
1b470 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69  teger</i> ) : <i
1b480 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74 64  >Integer</i></td
1b490 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61 74 74 65 6d  >.<td>Will attem
1b4a0 70 74 20 74 6f 20 65 78 70 6f 72 74 20 72 61 77  pt to export raw
1b4b0 20 72 61 73 74 65 72 20 64 61 74 61 20 66 72 6f   raster data fro
1b4c0 6d 20 61 20 47 52 41 59 53 43 41 4c 45 20 55 49  m a GRAYSCALE UI
1b4d0 4e 54 38 20 6f 72 20 52 47 42 20 55 49 4e 54 38  NT8 or RGB UINT8
1b4e0 20 43 6f 76 65 72 61 67 65 20 69 6e 74 6f 20 61   Coverage into a
1b4f0 6e 20 65 78 74 65 72 6e 61 6c 20 4a 50 45 47 20  n external JPEG 
1b500 66 69 6c 65 20 73 75 70 70 6f 72 74 65 64 20 62  file supported b
1b510 79 20 61 6e 20 61 75 78 69 6c 69 61 72 79 20 57  y an auxiliary W
1b520 6f 72 6c 64 46 69 6c 65 2e 3c 62 72 3e 0a 57 69  orldFile.<br>.Wi
1b530 6c 6c 20 72 65 74 75 72 6e 20 3c 62 3e 31 3c 2f  ll return <b>1</
1b540 62 3e 20 28 54 52 55 45 2f 53 55 43 43 45 53 53  b> (TRUE/SUCCESS
1b550 29 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46  ) or <b>0</b> (F
1b560 41 4c 53 45 2f 46 41 49 4c 55 52 45 29 3a 20 6f  ALSE/FAILURE): o
1b570 72 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20 69  r <b>-1</b> on i
1b580 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73  nvalid arguments
1b590 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65 20  .<br>.<u>Please 
1b5a0 6e 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a  note</u>: .<ul>.
1b5b0 3c 6c 69 3e 54 68 65 20 3c 62 3e 3c 69 3e 64 62  <li>The <b><i>db
1b5c0 50 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20 61  Prefix</i></b> a
1b5d0 72 67 75 6d 65 6e 74 20 69 73 20 69 6e 74 65 6e  rgument is inten
1b5e0 64 65 64 20 74 6f 20 73 70 65 63 69 66 79 20 74  ded to specify t
1b5f0 68 65 20 41 54 54 41 43 48 45 44 2d 44 42 20 77  he ATTACHED-DB w
1b600 68 65 72 65 20 74 68 65 20 43 6f 76 65 72 61 67  here the Coverag
1b610 65 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f  e is expected to
1b620 20 62 65 20 66 6f 75 6e 64 3b 20 69 74 20 63 6f   be found; it co
1b630 75 6c 64 20 62 65 20 65 76 65 6e 74 75 61 6c 6c  uld be eventuall
1b640 79 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20 61  y <b>NULL</b>, a
1b650 6e 64 20 69 6e 20 74 68 69 73 20 63 61 73 65 20  nd in this case 
1b660 74 68 65 20 3c 62 3e 4d 41 49 4e 20 44 42 3c 2f  the <b>MAIN DB</
1b670 62 3e 20 77 69 6c 6c 20 69 6d 70 6c 69 63 69 74  b> will implicit
1b680 6c 79 20 62 65 20 61 73 73 75 6d 65 64 2e 3c 2f  ly be assumed.</
1b690 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c  li>.<li>the <b><
1b6a0 69 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 69  i>boundingBox</i
1b6b0 3e 3c 2f 62 3e 20 69 73 20 65 78 70 65 63 74 65  ></b> is expecte
1b6c0 64 20 74 6f 20 72 65 70 72 65 73 65 6e 74 20 74  d to represent t
1b6d0 68 65 20 6f 76 65 72 61 6c 6c 20 65 78 74 65 6e  he overall exten
1b6e0 74 20 6f 66 20 74 68 65 20 65 78 70 6f 72 74 65  t of the exporte
1b6f0 64 20 4a 50 45 47 3b 20 79 6f 75 20 63 6f 75 6c  d JPEG; you coul
1b700 64 20 65 76 65 6e 74 75 61 6c 6c 79 20 70 61 73  d eventually pas
1b710 73 20 61 6e 79 20 61 72 62 69 74 72 61 72 79 20  s any arbitrary 
1b720 6b 69 6e 64 20 6f 66 20 47 65 6f 6d 65 74 72 79  kind of Geometry
1b730 2c 20 61 6e 64 20 74 68 65 20 42 6f 75 6e 64 69  , and the Boundi
1b740 6e 67 20 42 6f 78 20 61 6b 61 20 4d 42 52 20 77  ng Box aka MBR w
1b750 69 6c 6c 20 62 65 20 61 75 74 6f 6d 61 74 69 63  ill be automatic
1b760 61 6c 6c 79 20 64 65 74 65 72 6d 69 6e 65 64 2e  ally determined.
1b770 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62  </li>.<li>the <b
1b780 3e 3c 69 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73  ><i>horzPixelRes
1b790 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20  olution</i></b> 
1b7a0 61 6e 64 20 3c 62 3e 3c 69 3e 76 65 72 74 50 69  and <b><i>vertPi
1b7b0 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69  xelResolution</i
1b7c0 3e 3c 2f 62 3e 20 6d 75 73 74 20 65 78 61 63 74  ></b> must exact
1b7d0 6c 79 20 6d 61 74 63 68 20 74 68 65 20 43 6f 76  ly match the Cov
1b7e0 65 72 61 67 65 27 73 20 62 61 73 65 20 72 65 73  erage's base res
1b7f0 6f 6c 75 74 69 6f 6e 20 6f 72 20 6f 6e 65 20 6f  olution or one o
1b800 66 20 74 68 65 20 72 65 73 6f 6c 75 74 69 6f 6e  f the resolution
1b810 73 20 6d 61 64 65 20 61 76 61 69 6c 61 62 6c 65  s made available
1b820 20 62 79 20 74 68 65 20 63 6f 72 72 65 73 70 6f   by the correspo
1b830 6e 64 69 6e 67 20 50 79 72 61 6d 69 64 20 6c 65  nding Pyramid le
1b840 76 65 6c 73 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 61  vels.</li>.<li>a
1b850 6e 64 20 74 68 65 20 42 6f 75 6e 64 69 6e 67 42  nd the BoundingB
1b860 6f 78 20 6d 75 73 74 20 65 78 61 63 74 6c 79 20  ox must exactly 
1b870 6d 61 74 63 68 20 74 68 65 20 4a 50 45 47 20 3c  match the JPEG <
1b880 62 3e 3c 69 3e 77 69 64 74 68 3c 2f 69 3e 3c 2f  b><i>width</i></
1b890 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 68 65 69  b> and <b><i>hei
1b8a0 67 68 74 3c 2f 69 3e 3c 2f 62 3e 20 64 69 6d 65  ght</i></b> dime
1b8b0 6e 73 69 6f 6e 73 20 61 74 20 74 68 61 74 20 72  nsions at that r
1b8c0 65 73 6f 6c 75 74 69 6f 6e 2e 3c 2f 6c 69 3e 0a  esolution.</li>.
1b8d0 3c 6c 69 3e 74 68 65 20 6c 61 73 74 20 6f 70 74  <li>the last opt
1b8e0 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 63  ional argument c
1b8f0 61 6e 20 62 65 20 75 73 65 64 20 73 6f 20 74 6f  an be used so to
1b900 20 73 70 65 63 69 66 79 20 74 68 65 20 70 72 65   specify the pre
1b910 66 65 72 72 65 64 20 4a 50 45 47 20 3c 62 3e 3c  ferred JPEG <b><
1b920 69 3e 71 75 61 6c 69 74 79 3c 2f 69 3e 3c 2f 62  i>quality</i></b
1b930 3e 20 28 69 6e 20 74 68 65 20 72 61 6e 67 65 20  > (in the range 
1b940 3c 62 3e 30 3c 2f 62 3e 20 2d 20 3c 62 3e 31 30  <b>0</b> - <b>10
1b950 30 3c 2f 62 3e 29 3b 20 64 65 66 61 75 6c 74 20  0</b>); default 
1b960 69 73 20 3c 62 3e 38 30 3c 2f 62 3e 2e 3c 2f 6c  is <b>80</b>.</l
1b970 69 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61 62 6c 65 20  i>.</ul>.<table 
1b980 77 69 64 74 68 3d 22 31 30 30 25 22 20 62 67 63  width="100%" bgc
1b990 6f 6c 6f 72 3d 22 23 66 66 64 30 38 30 22 20 63  olor="#ffd080" c
1b9a0 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36 22 3e 3c  ellpadding="6"><
1b9b0 74 72 3e 3c 74 64 3e 0a 3c 75 3e 50 6c 65 61 73  tr><td>.<u>Pleas
1b9c0 65 20 6e 6f 74 65 20 76 65 72 79 20 77 65 6c 6c  e note very well
1b9d0 3c 2f 75 3e 3a 20 74 68 69 73 20 53 51 4c 20 66  </u>: this SQL f
1b9e0 75 6e 63 74 69 6f 6e 20 69 73 20 6f 6e 6c 79 20  unction is only 
1b9f0 61 76 61 69 6c 61 62 6c 65 20 77 68 65 6e 20 74  available when t
1ba00 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76  he environment v
1ba10 61 72 69 61 62 6c 65 20 3c 62 3e 53 50 41 54 49  ariable <b>SPATI
1ba20 41 4c 49 54 45 5f 53 45 43 55 52 49 54 59 3d 72  ALITE_SECURITY=r
1ba30 65 6c 61 78 65 64 3c 2f 62 3e 20 69 73 20 73 65  elaxed</b> is se
1ba40 74 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61  t.</td></tr></ta
1ba50 62 6c 65 3e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a  ble></td>.</tr>.
1ba60 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f 57  <tr><td><b>RL2_W
1ba70 72 69 74 65 4a 70 65 67 3c 2f 62 3e 20 28 20 3c  riteJpeg</b> ( <
1ba80 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c  b>dbPrefix</b> <
1ba90 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
1baa0 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f  b>coverageName</
1bab0 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
1bac0 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f   , <b>filePath</
1bad0 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
1bae0 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20   , <b>width</b> 
1baf0 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
1bb00 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c   <b>height</b> <
1bb10 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
1bb20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f  <b>boundingBox</
1bb30 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65  b> <i>BLOB-Geome
1bb40 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 70 69 78  try</i> , <b>pix
1bb50 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e  elResolution</b>
1bb60 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29   <i>Double</i> )
1bb70 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69   : <i>Integer</i
1bb80 3e 3c 62 72 3e 3c 62 72 3e 3c 62 3e 52 4c 32 5f  ><br><br><b>RL2_
1bb90 57 72 69 74 65 4a 70 65 67 3c 2f 62 3e 20 28 20  WriteJpeg</b> ( 
1bba0 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20  <b>dbPrefix</b> 
1bbb0 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
1bbc0 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
1bbd0 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
1bbe0 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c  > , <b>filePath<
1bbf0 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
1bc00 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e  > , <b>width</b>
1bc10 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
1bc20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20  , <b>height</b> 
1bc30 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
1bc40 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c   <b>boundingBox<
1bc50 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d  /b> <i>BLOB-Geom
1bc60 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f  etry</i> , <b>ho
1bc70 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rzPixelResolutio
1bc80 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c  n</b> <i>Double<
1bc90 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78  /i> , <b>vertPix
1bca0 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e  elResolution</b>
1bcb0 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29   <i>Double</i> )
1bcc0 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69   : <i>Integer</i
1bcd0 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32  ><br><br>.<b>RL2
1bce0 5f 57 72 69 74 65 4a 70 65 67 3c 2f 62 3e 20 28  _WriteJpeg</b> (
1bcf0 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e   <b>dbPrefix</b>
1bd00 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
1bd10 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65   <b>coverageName
1bd20 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
1bd30 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68  i> , <b>filePath
1bd40 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
1bd50 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62  i> , <b>width</b
1bd60 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
1bd70 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e   , <b>height</b>
1bd80 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
1bd90 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78  , <b>boundingBox
1bda0 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f  </b> <i>BLOB-Geo
1bdb0 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68  metry</i> , <b>h
1bdc0 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69  orzPixelResoluti
1bdd0 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65  on</b> <i>Double
1bde0 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69  </i> , <b>vertPi
1bdf0 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62  xelResolution</b
1be00 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20  > <i>Double</i> 
1be10 2c 20 3c 62 3e 71 75 61 6c 69 74 79 3c 2f 62 3e  , <b>quality</b>
1be20 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
1be30 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
1be40 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c  i></td>.<td>Will
1be50 20 61 74 74 65 6d 70 74 20 74 6f 20 65 78 70 6f   attempt to expo
1be60 72 74 20 72 61 77 20 72 61 73 74 65 72 20 64 61  rt raw raster da
1be70 74 61 20 66 72 6f 6d 20 61 20 47 52 41 59 53 43  ta from a GRAYSC
1be80 41 4c 45 20 55 49 4e 54 38 20 6f 72 20 52 47 42  ALE UINT8 or RGB
1be90 20 55 49 4e 54 38 20 43 6f 76 65 72 61 67 65 20   UINT8 Coverage 
1bea0 69 6e 74 6f 20 61 6e 20 65 78 74 65 72 6e 61 6c  into an external
1beb0 20 4a 50 45 47 20 66 69 6c 65 2e 3c 62 72 3e 0a   JPEG file.<br>.
1bec0 57 69 6c 6c 20 72 65 74 75 72 6e 20 3c 62 3e 31  Will return <b>1
1bed0 3c 2f 62 3e 20 28 54 52 55 45 2f 53 55 43 43 45  </b> (TRUE/SUCCE
1bee0 53 53 29 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20  SS) or <b>0</b> 
1bef0 28 46 41 4c 53 45 2f 46 41 49 4c 55 52 45 29 3a  (FALSE/FAILURE):
1bf00 20 6f 72 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e   or <b>-1</b> on
1bf10 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e   invalid argumen
1bf20 74 73 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73  ts.<br>.<u>Pleas
1bf30 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75 6c  e note</u>: .<ul
1bf40 3e 0a 3c 6c 69 3e 54 68 65 20 3c 62 3e 3c 69 3e  >.<li>The <b><i>
1bf50 64 62 50 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e  dbPrefix</i></b>
1bf60 20 61 72 67 75 6d 65 6e 74 20 69 73 20 69 6e 74   argument is int
1bf70 65 6e 64 65 64 20 74 6f 20 73 70 65 63 69 66 79  ended to specify
1bf80 20 74 68 65 20 41 54 54 41 43 48 45 44 2d 44 42   the ATTACHED-DB
1bf90 20 77 68 65 72 65 20 74 68 65 20 43 6f 76 65 72   where the Cover
1bfa0 61 67 65 20 69 73 20 65 78 70 65 63 74 65 64 20  age is expected 
1bfb0 74 6f 20 62 65 20 66 6f 75 6e 64 3b 20 69 74 20  to be found; it 
1bfc0 63 6f 75 6c 64 20 62 65 20 65 76 65 6e 74 75 61  could be eventua
1bfd0 6c 6c 79 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c  lly <b>NULL</b>,
1bfe0 20 61 6e 64 20 69 6e 20 74 68 69 73 20 63 61 73   and in this cas
1bff0 65 20 74 68 65 20 3c 62 3e 4d 41 49 4e 20 44 42  e the <b>MAIN DB
1c000 3c 2f 62 3e 20 77 69 6c 6c 20 69 6d 70 6c 69 63  </b> will implic
1c010 69 74 6c 79 20 62 65 20 61 73 73 75 6d 65 64 2e  itly be assumed.
1c020 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62  </li>.<li>the <b
1c030 3e 3c 69 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c  ><i>boundingBox<
1c040 2f 69 3e 3c 2f 62 3e 20 69 73 20 65 78 70 65 63  /i></b> is expec
1c050 74 65 64 20 74 6f 20 72 65 70 72 65 73 65 6e 74  ted to represent
1c060 20 74 68 65 20 6f 76 65 72 61 6c 6c 20 65 78 74   the overall ext
1c070 65 6e 74 20 6f 66 20 74 68 65 20 65 78 70 6f 72  ent of the expor
1c080 74 65 64 20 4a 50 45 47 3b 20 79 6f 75 20 63 6f  ted JPEG; you co
1c090 75 6c 64 20 65 76 65 6e 74 75 61 6c 6c 79 20 70  uld eventually p
1c0a0 61 73 73 20 61 6e 79 20 61 72 62 69 74 72 61 72  ass any arbitrar
1c0b0 79 20 6b 69 6e 64 20 6f 66 20 47 65 6f 6d 65 74  y kind of Geomet
1c0c0 72 79 2c 20 61 6e 64 20 74 68 65 20 42 6f 75 6e  ry, and the Boun
1c0d0 64 69 6e 67 20 42 6f 78 20 61 6b 61 20 4d 42 52  ding Box aka MBR
1c0e0 20 77 69 6c 6c 20 62 65 20 61 75 74 6f 6d 61 74   will be automat
1c0f0 69 63 61 6c 6c 79 20 64 65 74 65 72 6d 69 6e 65  ically determine
1c100 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20  d.</li>.<li>the 
1c110 3c 62 3e 3c 69 3e 68 6f 72 7a 50 69 78 65 6c 52  <b><i>horzPixelR
1c120 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62  esolution</i></b
1c130 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 76 65 72 74  > and <b><i>vert
1c140 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
1c150 2f 69 3e 3c 2f 62 3e 20 6d 75 73 74 20 65 78 61  /i></b> must exa
1c160 63 74 6c 79 20 6d 61 74 63 68 20 74 68 65 20 43  ctly match the C
1c170 6f 76 65 72 61 67 65 27 73 20 62 61 73 65 20 72  overage's base r
1c180 65 73 6f 6c 75 74 69 6f 6e 20 6f 72 20 6f 6e 65  esolution or one
1c190 20 6f 66 20 74 68 65 20 72 65 73 6f 6c 75 74 69   of the resoluti
1c1a0 6f 6e 73 20 6d 61 64 65 20 61 76 61 69 6c 61 62  ons made availab
1c1b0 6c 65 20 62 79 20 74 68 65 20 63 6f 72 72 65 73  le by the corres
1c1c0 70 6f 6e 64 69 6e 67 20 50 79 72 61 6d 69 64 20  ponding Pyramid 
1c1d0 6c 65 76 65 6c 73 2e 3c 2f 6c 69 3e 0a 3c 6c 69  levels.</li>.<li
1c1e0 3e 61 6e 64 20 74 68 65 20 42 6f 75 6e 64 69 6e  >and the Boundin
1c1f0 67 42 6f 78 20 6d 75 73 74 20 65 78 61 63 74 6c  gBox must exactl
1c200 79 20 6d 61 74 63 68 20 74 68 65 20 4a 50 45 47  y match the JPEG
1c210 20 3c 62 3e 3c 69 3e 77 69 64 74 68 3c 2f 69 3e   <b><i>width</i>
1c220 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 68  </b> and <b><i>h
1c230 65 69 67 68 74 3c 2f 69 3e 3c 2f 62 3e 20 64 69  eight</i></b> di
1c240 6d 65 6e 73 69 6f 6e 73 20 61 74 20 74 68 61 74  mensions at that
1c250 20 72 65 73 6f 6c 75 74 69 6f 6e 2e 3c 2f 6c 69   resolution.</li
1c260 3e 0a 3c 6c 69 3e 74 68 65 20 6c 61 73 74 20 6f  >.<li>the last o
1c270 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74  ptional argument
1c280 20 63 61 6e 20 62 65 20 75 73 65 64 20 73 6f 20   can be used so 
1c290 74 6f 20 73 70 65 63 69 66 79 20 74 68 65 20 70  to specify the p
1c2a0 72 65 66 65 72 72 65 64 20 4a 50 45 47 20 3c 62  referred JPEG <b
1c2b0 3e 3c 69 3e 71 75 61 6c 69 74 79 3c 2f 69 3e 3c  ><i>quality</i><
1c2c0 2f 62 3e 20 28 69 6e 20 74 68 65 20 72 61 6e 67  /b> (in the rang
1c2d0 65 20 3c 62 3e 30 3c 2f 62 3e 20 2d 20 3c 62 3e  e <b>0</b> - <b>
1c2e0 31 30 30 3c 2f 62 3e 29 3b 20 64 65 66 61 75 6c  100</b>); defaul
1c2f0 74 20 69 73 20 3c 62 3e 38 30 3c 2f 62 3e 2e 3c  t is <b>80</b>.<
1c300 2f 6c 69 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61 62 6c  /li>.</ul>.<tabl
1c310 65 20 77 69 64 74 68 3d 22 31 30 30 25 22 20 62  e width="100%" b
1c320 67 63 6f 6c 6f 72 3d 22 23 66 66 64 30 38 30 22  gcolor="#ffd080"
1c330 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36 22   cellpadding="6"
1c340 3e 3c 74 72 3e 3c 74 64 3e 0a 3c 75 3e 50 6c 65  ><tr><td>.<u>Ple
1c350 61 73 65 20 6e 6f 74 65 20 76 65 72 79 20 77 65  ase note very we
1c360 6c 6c 3c 2f 75 3e 3a 20 74 68 69 73 20 53 51 4c  ll</u>: this SQL
1c370 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 6f 6e 6c   function is onl
1c380 79 20 61 76 61 69 6c 61 62 6c 65 20 77 68 65 6e  y available when
1c390 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74   the environment
1c3a0 20 76 61 72 69 61 62 6c 65 20 3c 62 3e 53 50 41   variable <b>SPA
1c3b0 54 49 41 4c 49 54 45 5f 53 45 43 55 52 49 54 59  TIALITE_SECURITY
1c3c0 3d 72 65 6c 61 78 65 64 3c 2f 62 3e 20 69 73 20  =relaxed</b> is 
1c3d0 73 65 74 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f  set.</td></tr></
1c3e0 74 61 62 6c 65 3e 3c 2f 74 64 3e 0a 3c 2f 74 72  table></td>.</tr
1c3f0 3e 0a 3c 2f 74 61 62 6c 65 3e 3c 62 72 3e 0a 3c  >.</table><br>.<
1c400 68 72 3e 0a 3c 68 32 3e 53 51 4c 20 66 75 6e 63  hr>.<h2>SQL func
1c410 74 69 6f 6e 73 20 65 78 70 6f 72 74 69 6e 67 20  tions exporting 
1c420 72 61 77 20 72 61 73 74 65 72 20 64 61 74 61 20  raw raster data 
1c430 74 6f 20 65 78 74 65 72 6e 61 6c 20 66 69 6c 65  to external file
1c440 73 20 28 53 65 63 74 69 6f 6e 20 6f 72 69 65 6e  s (Section orien
1c450 74 65 64 29 3c 2f 68 32 3e 20 0a 3c 74 61 62 6c  ted)</h2> .<tabl
1c460 65 20 77 69 64 74 68 3d 22 31 30 30 25 22 20 62  e width="100%" b
1c470 6f 72 64 65 72 3d 22 31 22 20 62 67 63 6f 6c 6f  order="1" bgcolo
1c480 72 3d 22 23 66 66 66 66 65 30 22 20 63 65 6c 6c  r="#ffffe0" cell
1c490 65 73 70 61 63 69 6e 67 3d 22 34 22 20 63 65 6c  espacing="4" cel
1c4a0 6c 70 61 64 64 69 6e 67 3d 22 36 22 3e 0a 3c 74  lpadding="6">.<t
1c4b0 72 3e 3c 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23  r><th bgcolor="#
1c4c0 65 30 65 30 65 30 22 20 77 69 64 74 68 3d 22 35  e0e0e0" width="5
1c4d0 30 25 22 3e 53 79 6e 74 61 78 3c 2f 74 68 3e 3c  0%">Syntax</th><
1c4e0 74 68 20 62 67 63 6f 6c 6f 72 3d 22 23 65 30 65  th bgcolor="#e0e
1c4f0 30 65 30 22 20 77 69 64 74 68 3d 22 35 30 25 22  0e0" width="50%"
1c500 3e 53 75 6d 6d 61 72 79 3c 2f 74 68 3e 3c 2f 74  >Summary</th></t
1c510 72 3e 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c  r>.<tr><td><b>RL
1c520 32 5f 57 72 69 74 65 53 65 63 74 69 6f 6e 47 65  2_WriteSectionGe
1c530 6f 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64  oTiff</b> ( <b>d
1c540 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53  bPrefix</b> <i>S
1c550 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63  tring</i> , <b>c
1c560 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20  overageName</b> 
1c570 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
1c580 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e  <b>sectionID</b>
1c590 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
1c5a0 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62  , <b>filePath</b
1c5b0 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
1c5c0 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c  , <b>width</b> <
1c5d0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
1c5e0 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69  <b>height</b> <i
1c5f0 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
1c600 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
1c610 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
1c620 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 70 69 78 65  ry</i> , <b>pixe
1c630 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20  lResolution</b> 
1c640 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20  <i>Double</i> ) 
1c650 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  : <i>Integer</i>
1c660 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f  <br><br>.<b>RL2_
1c670 57 72 69 74 65 53 65 63 74 69 6f 6e 47 65 6f 54  WriteSectionGeoT
1c680 69 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50  iff</b> ( <b>dbP
1c690 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72  refix</b> <i>Str
1c6a0 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76  ing</i> , <b>cov
1c6b0 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69  erageName</b> <i
1c6c0 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
1c6d0 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c  >sectionID</b> <
1c6e0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
1c6f0 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20  <b>filePath</b> 
1c700 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
1c710 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e  <b>width</b> <i>
1c720 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
1c730 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49  >height</b> <i>I
1c740 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
1c750 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20  boundingBox</b> 
1c760 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79  <i>BLOB-Geometry
1c770 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50 69  </i> , <b>horzPi
1c780 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62  xelResolution</b
1c790 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20  > <i>Double</i> 
1c7a0 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c 52 65  , <b>vertPixelRe
1c7b0 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  solution</b> <i>
1c7c0 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c  Double</i> ) : <
1c7d0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72  i>Integer</i><br
1c7e0 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69  ><br>.<b>RL2_Wri
1c7f0 74 65 53 65 63 74 69 6f 6e 47 65 6f 54 69 66 66  teSectionGeoTiff
1c800 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
1c810 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
1c820 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
1c830 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
1c840 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65  ring</i> , <b>se
1c850 63 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49  ctionID</b> <i>I
1c860 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
1c870 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e  filePath</b> <i>
1c880 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
1c890 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74  width</b> <i>Int
1c8a0 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65  eger</i> , <b>he
1c8b0 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  ight</b> <i>Inte
1c8c0 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75  ger</i> , <b>bou
1c8d0 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e  ndingBox</b> <i>
1c8e0 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69  BLOB-Geometry</i
1c8f0 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c  > , <b>horzPixel
1c900 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
1c910 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c  i>Double</i> , <
1c920 62 3e 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c  b>vertPixelResol
1c930 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75  ution</b> <i>Dou
1c940 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 74  ble</i> , <b>wit
1c950 68 57 6f 6c 64 46 69 6c 65 3c 2f 62 3e 20 3c 69  hWoldFile</b> <i
1c960 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a  >Integer</i> ) :
1c970 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
1c980 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57  br><br>.<b>RL2_W
1c990 72 69 74 65 53 65 63 74 69 6f 6e 47 65 6f 54 69  riteSectionGeoTi
1c9a0 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72  ff</b> ( <b>dbPr
1c9b0 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  efix</b> <i>Stri
1c9c0 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65  ng</i> , <b>cove
1c9d0 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e  rageName</b> <i>
1c9e0 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
1c9f0 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69  sectionID</b> <i
1ca00 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
1ca10 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c  b>filePath</b> <
1ca20 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
1ca30 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49  b>width</b> <i>I
1ca40 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
1ca50 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e  height</b> <i>In
1ca60 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62  teger</i> , <b>b
1ca70 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c  oundingBox</b> <
1ca80 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c  i>BLOB-Geometry<
1ca90 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50 69 78  /i> , <b>horzPix
1caa0 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e  elResolution</b>
1cab0 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c   <i>Double</i> ,
1cac0 20 3c 62 3e 76 65 72 74 50 69 78 65 6c 52 65 73   <b>vertPixelRes
1cad0 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44  olution</b> <i>D
1cae0 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 77  ouble</i> , <b>w
1caf0 69 74 68 57 6f 6c 64 46 69 6c 65 3c 2f 62 3e 20  ithWoldFile</b> 
1cb00 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
1cb10 20 3c 62 3e 74 69 66 66 43 6f 6d 70 72 65 73 73   <b>tiffCompress
1cb20 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ion</b> <i>Strin
1cb30 67 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74  g</i> ) : <i>Int
1cb40 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e  eger</i><br><br>
1cb50 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 53 65 63  .<b>RL2_WriteSec
1cb60 74 69 6f 6e 47 65 6f 54 69 66 66 3c 2f 62 3e 20  tionGeoTiff</b> 
1cb70 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62  ( <b>dbPrefix</b
1cb80 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
1cb90 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d  , <b>coverageNam
1cba0 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
1cbb0 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e  /i> , <b>section
1cbc0 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ID</b> <i>Intege
1cbd0 72 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50  r</i> , <b>fileP
1cbe0 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ath</b> <i>Strin
1cbf0 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68  g</i> , <b>width
1cc00 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
1cc10 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c  /i> , <b>height<
1cc20 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
1cc30 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67  i> , <b>bounding
1cc40 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d  Box</b> <i>BLOB-
1cc50 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c  Geometry</i> , <
1cc60 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c  b>horzPixelResol
1cc70 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75  ution</b> <i>Dou
1cc80 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72  ble</i> , <b>ver
1cc90 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  tPixelResolution
1cca0 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f  </b> <i>Double</
1ccb0 69 3e 20 2c 20 3c 62 3e 77 69 74 68 57 6f 6c 64  i> , <b>withWold
1ccc0 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  File</b> <i>Inte
1ccd0 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 66  ger</i> , <b>tif
1cce0 66 43 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 62 3e  fCompression</b>
1ccf0 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
1cd00 20 3c 62 3e 74 69 66 66 54 69 6c 65 53 69 7a 65   <b>tiffTileSize
1cd10 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
1cd20 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67  /i> ) : <i>Integ
1cd30 65 72 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e  er</i></td>.<td>
1cd40 57 69 6c 6c 20 61 74 74 65 6d 70 74 20 74 6f 20  Will attempt to 
1cd50 65 78 70 6f 72 74 20 72 61 77 20 72 61 73 74 65  export raw raste
1cd60 72 20 64 61 74 61 20 66 72 6f 6d 20 61 20 43 6f  r data from a Co
1cd70 76 65 72 61 67 65 20 69 6e 74 6f 20 61 6e 20 65  verage into an e
1cd80 78 74 65 72 6e 61 6c 20 47 65 6f 54 49 46 46 20  xternal GeoTIFF 
1cd90 66 69 6c 65 3b 20 6f 6e 6c 79 20 74 68 65 20 54  file; only the T
1cda0 69 6c 65 73 20 64 69 72 65 63 74 6c 79 20 62 65  iles directly be
1cdb0 6c 6f 6e 67 69 6e 67 20 74 6f 20 74 68 65 20 73  longing to the s
1cdc0 65 6c 65 63 74 65 64 20 53 65 63 74 69 6f 6e 20  elected Section 
1cdd0 77 69 6c 6c 20 62 65 20 63 6f 6e 73 69 64 65 72  will be consider
1cde0 65 64 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74  ed.<br>.Will ret
1cdf0 75 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20 28 54 52  urn <b>1</b> (TR
1ce00 55 45 2f 53 55 43 43 45 53 53 29 20 6f 72 20 3c  UE/SUCCESS) or <
1ce10 62 3e 30 3c 2f 62 3e 20 28 46 41 4c 53 45 2f 46  b>0</b> (FALSE/F
1ce20 41 49 4c 55 52 45 29 3a 20 6f 72 20 3c 62 3e 2d  AILURE): or <b>-
1ce30 31 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64  1</b> on invalid
1ce40 20 61 72 67 75 6d 65 6e 74 73 2e 3c 62 72 3e 0a   arguments.<br>.
1ce50 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f  <u>Please note</
1ce60 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69 3e 54 68  u>: .<ul>.<li>Th
1ce70 65 20 3c 62 3e 3c 69 3e 64 62 50 72 65 66 69 78  e <b><i>dbPrefix
1ce80 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65 6e  </i></b> argumen
1ce90 74 20 69 73 20 69 6e 74 65 6e 64 65 64 20 74 6f  t is intended to
1cea0 20 73 70 65 63 69 66 79 20 74 68 65 20 41 54 54   specify the ATT
1ceb0 41 43 48 45 44 2d 44 42 20 77 68 65 72 65 20 74  ACHED-DB where t
1cec0 68 65 20 43 6f 76 65 72 61 67 65 20 69 73 20 65  he Coverage is e
1ced0 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 66 6f  xpected to be fo
1cee0 75 6e 64 3b 20 69 74 20 63 6f 75 6c 64 20 62 65  und; it could be
1cef0 20 65 76 65 6e 74 75 61 6c 6c 79 20 3c 62 3e 4e   eventually <b>N
1cf00 55 4c 4c 3c 2f 62 3e 2c 20 61 6e 64 20 69 6e 20  ULL</b>, and in 
1cf10 74 68 69 73 20 63 61 73 65 20 74 68 65 20 3c 62  this case the <b
1cf20 3e 4d 41 49 4e 20 44 42 3c 2f 62 3e 20 77 69 6c  >MAIN DB</b> wil
1cf30 6c 20 69 6d 70 6c 69 63 69 74 6c 79 20 62 65 20  l implicitly be 
1cf40 61 73 73 75 6d 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c  assumed.</li>.<l
1cf50 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 62 6f 75 6e  i>the <b><i>boun
1cf60 64 69 6e 67 42 6f 78 3c 2f 69 3e 3c 2f 62 3e 20  dingBox</i></b> 
1cf70 69 73 20 65 78 70 65 63 74 65 64 20 74 6f 20 72  is expected to r
1cf80 65 70 72 65 73 65 6e 74 20 74 68 65 20 6f 76 65  epresent the ove
1cf90 72 61 6c 6c 20 65 78 74 65 6e 74 20 6f 66 20 74  rall extent of t
1cfa0 68 65 20 65 78 70 6f 72 74 65 64 20 47 65 6f 54  he exported GeoT
1cfb0 49 46 46 3b 20 79 6f 75 20 63 6f 75 6c 64 20 65  IFF; you could e
1cfc0 76 65 6e 74 75 61 6c 6c 79 20 70 61 73 73 20 61  ventually pass a
1cfd0 6e 79 20 61 72 62 69 74 72 61 72 79 20 6b 69 6e  ny arbitrary kin
1cfe0 64 20 6f 66 20 47 65 6f 6d 65 74 72 79 2c 20 61  d of Geometry, a
1cff0 6e 64 20 74 68 65 20 42 6f 75 6e 64 69 6e 67 20  nd the Bounding 
1d000 42 6f 78 20 61 6b 61 20 4d 42 52 20 77 69 6c 6c  Box aka MBR will
1d010 20 62 65 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c   be automaticall
1d020 79 20 64 65 74 65 72 6d 69 6e 65 64 2e 3c 2f 6c  y determined.</l
1d030 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69  i>.<li>the <b><i
1d040 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75  >horzPixelResolu
1d050 74 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64  tion</i></b> and
1d060 20 3c 62 3e 3c 69 3e 76 65 72 74 50 69 78 65 6c   <b><i>vertPixel
1d070 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f  Resolution</i></
1d080 62 3e 20 6d 75 73 74 20 65 78 61 63 74 6c 79 20  b> must exactly 
1d090 6d 61 74 63 68 20 74 68 65 20 43 6f 76 65 72 61  match the Covera
1d0a0 67 65 27 73 20 62 61 73 65 20 72 65 73 6f 6c 75  ge's base resolu
1d0b0 74 69 6f 6e 20 6f 72 20 6f 6e 65 20 6f 66 20 74  tion or one of t
1d0c0 68 65 20 72 65 73 6f 6c 75 74 69 6f 6e 73 20 6d  he resolutions m
1d0d0 61 64 65 20 61 76 61 69 6c 61 62 6c 65 20 62 79  ade available by
1d0e0 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69   the correspondi
1d0f0 6e 67 20 50 79 72 61 6d 69 64 20 6c 65 76 65 6c  ng Pyramid level
1d100 73 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 61 6e 64 20  s.</li>.<li>and 
1d110 74 68 65 20 42 6f 75 6e 64 69 6e 67 42 6f 78 20  the BoundingBox 
1d120 6d 75 73 74 20 65 78 61 63 74 6c 79 20 6d 61 74  must exactly mat
1d130 63 68 20 74 68 65 20 54 49 46 46 20 3c 62 3e 3c  ch the TIFF <b><
1d140 69 3e 77 69 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20  i>width</i></b> 
1d150 61 6e 64 20 3c 62 3e 3c 69 3e 68 65 69 67 68 74  and <b><i>height
1d160 3c 2f 69 3e 3c 2f 62 3e 20 64 69 6d 65 6e 73 69  </i></b> dimensi
1d170 6f 6e 73 20 61 74 20 74 68 61 74 20 72 65 73 6f  ons at that reso
1d180 6c 75 74 69 6f 6e 2e 3c 2f 6c 69 3e 0a 3c 6c 69  lution.</li>.<li
1d190 3e 69 66 20 74 68 65 20 6f 70 74 69 6f 6e 61 6c  >if the optional
1d1a0 20 61 72 67 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e   argument <b><i>
1d1b0 77 69 74 68 57 6f 72 6c 64 46 69 6c 65 3c 2f 69  withWorldFile</i
1d1c0 3e 3c 2f 62 3e 20 69 73 20 73 65 74 20 74 6f 20  ></b> is set to 
1d1d0 54 52 55 45 20 74 68 65 6e 20 61 6e 20 61 75 78  TRUE then an aux
1d1e0 69 6c 69 61 72 79 20 57 6f 72 6c 64 46 69 6c 65  iliary WorldFile
1d1f0 20 77 69 6c 6c 20 62 65 20 65 78 70 6f 72 74 65   will be exporte
1d200 64 20 61 73 20 77 65 6c 6c 2e 3c 2f 6c 69 3e 0a  d as well.</li>.
1d210 3c 6c 69 3e 74 68 65 20 6f 70 74 69 6f 6e 61 6c  <li>the optional
1d220 20 61 72 67 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e   argument <b><i>
1d230 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f 6e 3c  tiffCompression<
1d240 2f 69 3e 3c 2f 62 3e 20 63 6f 75 6c 64 20 62 65  /i></b> could be
1d250 20 6f 6e 65 20 6f 66 20 3c 62 3e 27 4e 4f 4e 45   one of <b>'NONE
1d260 27 3c 2f 62 3e 2c 20 3c 62 3e 27 44 45 46 4c 41  '</b>, <b>'DEFLA
1d270 54 45 27 3c 2f 62 3e 2c 20 3c 62 3e 27 4c 5a 57  TE'</b>, <b>'LZW
1d280 27 3c 2f 62 3e 2c 20 3c 62 3e 27 4a 50 45 47 27  '</b>, <b>'JPEG'
1d290 3c 2f 62 3e 2c 20 3c 62 3e 27 46 41 58 33 27 3c  </b>, <b>'FAX3'<
1d2a0 2f 62 3e 20 6f 72 20 3c 62 3e 27 46 41 58 34 27  /b> or <b>'FAX4'
1d2b0 3c 2f 62 3e 3b 20 64 65 66 61 75 6c 74 20 69 73  </b>; default is
1d2c0 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62 3e 2e 3c   <b>'NONE'</b>.<
1d2d0 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 6c 61 73  /li>.<li>the las
1d2e0 74 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d  t optional argum
1d2f0 65 6e 74 20 63 61 6e 20 62 65 20 75 73 65 64 20  ent can be used 
1d300 73 6f 20 74 6f 20 73 70 65 63 69 66 79 20 74 68  so to specify th
1d310 65 20 70 72 65 66 65 72 72 65 64 20 54 49 46 46  e preferred TIFF
1d320 20 74 69 6c 65 20 73 69 7a 65 20 28 6f 6e 6c 79   tile size (only
1d330 20 73 71 75 61 72 65 20 74 69 6c 65 73 20 61 72   square tiles ar
1d340 65 20 73 75 70 70 6f 72 74 65 64 29 3b 20 64 65  e supported); de
1d350 66 61 75 6c 74 20 69 73 20 3c 62 3e 32 35 36 3c  fault is <b>256<
1d360 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 0a  /b>.</li>.</ul>.
1d370 3c 74 61 62 6c 65 20 77 69 64 74 68 3d 22 31 30  <table width="10
1d380 30 25 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66  0%" bgcolor="#ff
1d390 64 30 38 30 22 20 63 65 6c 6c 70 61 64 64 69 6e  d080" cellpaddin
1d3a0 67 3d 22 36 22 3e 3c 74 72 3e 3c 74 64 3e 0a 3c  g="6"><tr><td>.<
1d3b0 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 20 76 65  u>Please note ve
1d3c0 72 79 20 77 65 6c 6c 3c 2f 75 3e 3a 20 74 68 69  ry well</u>: thi
1d3d0 73 20 53 51 4c 20 66 75 6e 63 74 69 6f 6e 20 69  s SQL function i
1d3e0 73 20 6f 6e 6c 79 20 61 76 61 69 6c 61 62 6c 65  s only available
1d3f0 20 77 68 65 6e 20 74 68 65 20 65 6e 76 69 72 6f   when the enviro
1d400 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 20 3c  nment variable <
1d410 62 3e 53 50 41 54 49 41 4c 49 54 45 5f 53 45 43  b>SPATIALITE_SEC
1d420 55 52 49 54 59 3d 72 65 6c 61 78 65 64 3c 2f 62  URITY=relaxed</b
1d430 3e 20 69 73 20 73 65 74 2e 3c 2f 74 64 3e 3c 2f  > is set.</td></
1d440 74 72 3e 3c 2f 74 61 62 6c 65 3e 3c 2f 74 64 3e  tr></table></td>
1d450 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 3c 74 64 3e 3c  .</tr>.<tr><td><
1d460 62 3e 52 4c 32 5f 57 72 69 74 65 53 65 63 74 69  b>RL2_WriteSecti
1d470 6f 6e 54 69 66 66 54 46 57 3c 2f 62 3e 20 28 20  onTiffTFW</b> ( 
1d480 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20  <b>dbPrefix</b> 
1d490 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
1d4a0 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
1d4b0 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
1d4c0 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44  > , <b>sectionID
1d4d0 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
1d4e0 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74  /i> , <b>filePat
1d4f0 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  h</b> <i>String<
1d500 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f  /i> , <b>width</
1d510 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
1d520 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62  > , <b>height</b
1d530 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
1d540 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f   , <b>boundingBo
1d550 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65  x</b> <i>BLOB-Ge
1d560 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e  ometry</i> , <b>
1d570 70 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  pixelResolution<
1d580 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
1d590 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72  > ) : <i>Integer
1d5a0 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e  </i><br><br>.<b>
1d5b0 52 4c 32 5f 57 72 69 74 65 53 65 63 74 69 6f 6e  RL2_WriteSection
1d5c0 54 69 66 66 54 46 57 3c 2f 62 3e 20 28 20 3c 62  TiffTFW</b> ( <b
1d5d0 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69  >dbPrefix</b> <i
1d5e0 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
1d5f0 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62  >coverageName</b
1d600 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
1d610 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f  , <b>sectionID</
1d620 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
1d630 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c  > , <b>filePath<
1d640 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
1d650 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e  > , <b>width</b>
1d660 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
1d670 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20  , <b>height</b> 
1d680 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
1d690 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c   <b>boundingBox<
1d6a0 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d  /b> <i>BLOB-Geom
1d6b0 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f  etry</i> , <b>ho
1d6c0 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rzPixelResolutio
1d6d0 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c  n</b> <i>Double<
1d6e0 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78  /i> , <b>vertPix
1d6f0 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e  elResolution</b>
1d700 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29   <i>Double</i> )
1d710 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69   : <i>Integer</i
1d720 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32  ><br><br>.<b>RL2
1d730 5f 57 72 69 74 65 53 65 63 74 69 6f 6e 54 69 66  _WriteSectionTif
1d740 66 54 46 57 3c 2f 62 3e 20 28 20 3c 62 3e 64 62  fTFW</b> ( <b>db
1d750 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74  Prefix</b> <i>St
1d760 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f  ring</i> , <b>co
1d770 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
1d780 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
1d790 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20  b>sectionID</b> 
1d7a0 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
1d7b0 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e   <b>filePath</b>
1d7c0 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
1d7d0 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69   <b>width</b> <i
1d7e0 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
1d7f0 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e  b>height</b> <i>
1d800 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
1d810 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e  >boundingBox</b>
1d820 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72   <i>BLOB-Geometr
1d830 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50  y</i> , <b>horzP
1d840 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f  ixelResolution</
1d850 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e  b> <i>Double</i>
1d860 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c 52   , <b>vertPixelR
1d870 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69  esolution</b> <i
1d880 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62  >Double</i> , <b
1d890 3e 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f 6e  >tiffCompression
1d8a0 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
1d8b0 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65  i> ) : <i>Intege
1d8c0 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62  r</i><br><br>.<b
1d8d0 3e 52 4c 32 5f 57 72 69 74 65 53 65 63 74 69 6f  >RL2_WriteSectio
1d8e0 6e 54 69 66 66 54 46 57 3c 2f 62 3e 20 28 20 3c  nTiffTFW</b> ( <
1d8f0 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c  b>dbPrefix</b> <
1d900 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
1d910 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f  b>coverageName</
1d920 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
1d930 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c   , <b>sectionID<
1d940 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
1d950 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68  i> , <b>filePath
1d960 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
1d970 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62  i> , <b>width</b
1d980 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
1d990 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e   , <b>height</b>
1d9a0 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
1d9b0 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78  , <b>boundingBox
1d9c0 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f  </b> <i>BLOB-Geo
1d9d0 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68  metry</i> , <b>h
1d9e0 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69  orzPixelResoluti
1d9f0 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65  on</b> <i>Double
1da00 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69  </i> , <b>vertPi
1da10 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62  xelResolution</b
1da20 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20  > <i>Double</i> 
1da30 2c 20 3c 62 3e 74 69 66 66 43 6f 6d 70 72 65 73  , <b>tiffCompres
1da40 73 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  sion</b> <i>Stri
1da50 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 66 66  ng</i> , <b>tiff
1da60 54 69 6c 65 53 69 7a 65 3c 2f 62 3e 20 3c 69 3e  TileSize</b> <i>
1da70 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20  Integer</i> ) : 
1da80 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f  <i>Integer</i></
1da90 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61 74 74  td>.<td>Will att
1daa0 65 6d 70 74 20 74 6f 20 65 78 70 6f 72 74 20 72  empt to export r
1dab0 61 77 20 72 61 73 74 65 72 20 64 61 74 61 20 66  aw raster data f
1dac0 72 6f 6d 20 61 20 43 6f 76 65 72 61 67 65 20 69  rom a Coverage i
1dad0 6e 74 6f 20 61 6e 20 65 78 74 65 72 6e 61 6c 20  nto an external 
1dae0 20 70 6c 61 69 6e 20 54 49 46 46 20 66 69 6c 65   plain TIFF file
1daf0 20 73 75 70 70 6f 72 74 65 64 20 62 79 20 61 6e   supported by an
1db00 20 61 75 78 69 6c 69 61 72 79 20 57 6f 72 6c 64   auxiliary World
1db10 46 69 6c 65 3b 20 6f 6e 6c 79 20 74 68 65 20 54  File; only the T
1db20 69 6c 65 73 20 64 69 72 65 63 74 6c 79 20 62 65  iles directly be
1db30 6c 6f 6e 67 69 6e 67 20 74 6f 20 74 68 65 20 73  longing to the s
1db40 65 6c 65 63 74 65 64 20 53 65 63 74 69 6f 6e 20  elected Section 
1db50 77 69 6c 6c 20 62 65 20 63 6f 6e 73 69 64 65 72  will be consider
1db60 65 64 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74  ed.<br>.Will ret
1db70 75 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20 28 54 52  urn <b>1</b> (TR
1db80 55 45 2f 53 55 43 43 45 53 53 29 20 6f 72 20 3c  UE/SUCCESS) or <
1db90 62 3e 30 3c 2f 62 3e 20 28 46 41 4c 53 45 2f 46  b>0</b> (FALSE/F
1dba0 41 49 4c 55 52 45 29 3a 20 6f 72 20 3c 62 3e 2d  AILURE): or <b>-
1dbb0 31 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64  1</b> on invalid
1dbc0 20 61 72 67 75 6d 65 6e 74 73 2e 3c 62 72 3e 0a   arguments.<br>.
1dbd0 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f  <u>Please note</
1dbe0 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69 3e 54 68  u>: .<ul>.<li>Th
1dbf0 65 20 3c 62 3e 3c 69 3e 64 62 50 72 65 66 69 78  e <b><i>dbPrefix
1dc00 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65 6e  </i></b> argumen
1dc10 74 20 69 73 20 69 6e 74 65 6e 64 65 64 20 74 6f  t is intended to
1dc20 20 73 70 65 63 69 66 79 20 74 68 65 20 41 54 54   specify the ATT
1dc30 41 43 48 45 44 2d 44 42 20 77 68 65 72 65 20 74  ACHED-DB where t
1dc40 68 65 20 43 6f 76 65 72 61 67 65 20 69 73 20 65  he Coverage is e
1dc50 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 66 6f  xpected to be fo
1dc60 75 6e 64 3b 20 69 74 20 63 6f 75 6c 64 20 62 65  und; it could be
1dc70 20 65 76 65 6e 74 75 61 6c 6c 79 20 3c 62 3e 4e   eventually <b>N
1dc80 55 4c 4c 3c 2f 62 3e 2c 20 61 6e 64 20 69 6e 20  ULL</b>, and in 
1dc90 74 68 69 73 20 63 61 73 65 20 74 68 65 20 3c 62  this case the <b
1dca0 3e 4d 41 49 4e 20 44 42 3c 2f 62 3e 20 77 69 6c  >MAIN DB</b> wil
1dcb0 6c 20 69 6d 70 6c 69 63 69 74 6c 79 20 62 65 20  l implicitly be 
1dcc0 61 73 73 75 6d 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c  assumed.</li>.<l
1dcd0 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 62 6f 75 6e  i>the <b><i>boun
1dce0 64 69 6e 67 42 6f 78 3c 2f 69 3e 3c 2f 62 3e 20  dingBox</i></b> 
1dcf0 69 73 20 65 78 70 65 63 74 65 64 20 74 6f 20 72  is expected to r
1dd00 65 70 72 65 73 65 6e 74 20 74 68 65 20 6f 76 65  epresent the ove
1dd10 72 61 6c 6c 20 65 78 74 65 6e 74 20 6f 66 20 74  rall extent of t
1dd20 68 65 20 65 78 70 6f 72 74 65 64 20 54 49 46 46  he exported TIFF
1dd30 3b 20 79 6f 75 20 63 6f 75 6c 64 20 65 76 65 6e  ; you could even
1dd40 74 75 61 6c 6c 79 20 70 61 73 73 20 61 6e 79 20  tually pass any 
1dd50 61 72 62 69 74 72 61 72 79 20 6b 69 6e 64 20 6f  arbitrary kind o
1dd60 66 20 47 65 6f 6d 65 74 72 79 2c 20 61 6e 64 20  f Geometry, and 
1dd70 74 68 65 20 42 6f 75 6e 64 69 6e 67 20 42 6f 78  the Bounding Box
1dd80 20 61 6b 61 20 4d 42 52 20 77 69 6c 6c 20 62 65   aka MBR will be
1dd90 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 64   automatically d
1dda0 65 74 65 72 6d 69 6e 65 64 2e 3c 2f 6c 69 3e 0a  etermined.</li>.
1ddb0 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 68 6f  <li>the <b><i>ho
1ddc0 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rzPixelResolutio
1ddd0 6e 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62  n</i></b> and <b
1dde0 3e 3c 69 3e 76 65 72 74 50 69 78 65 6c 52 65 73  ><i>vertPixelRes
1ddf0 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20  olution</i></b> 
1de00 6d 75 73 74 20 65 78 61 63 74 6c 79 20 6d 61 74  must exactly mat
1de10 63 68 20 74 68 65 20 43 6f 76 65 72 61 67 65 27  ch the Coverage'
1de20 73 20 62 61 73 65 20 72 65 73 6f 6c 75 74 69 6f  s base resolutio
1de30 6e 20 6f 72 20 6f 6e 65 20 6f 66 20 74 68 65 20  n or one of the 
1de40 72 65 73 6f 6c 75 74 69 6f 6e 73 20 6d 61 64 65  resolutions made
1de50 20 61 76 61 69 6c 61 62 6c 65 20 62 79 20 74 68   available by th
1de60 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20  e corresponding 
1de70 50 79 72 61 6d 69 64 20 6c 65 76 65 6c 73 2e 3c  Pyramid levels.<
1de80 2f 6c 69 3e 0a 3c 6c 69 3e 61 6e 64 20 74 68 65  /li>.<li>and the
1de90 20 42 6f 75 6e 64 69 6e 67 42 6f 78 20 6d 75 73   BoundingBox mus
1dea0 74 20 65 78 61 63 74 6c 79 20 6d 61 74 63 68 20  t exactly match 
1deb0 74 68 65 20 54 49 46 46 20 3c 62 3e 3c 69 3e 77  the TIFF <b><i>w
1dec0 69 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64  idth</i></b> and
1ded0 20 3c 62 3e 3c 69 3e 68 65 69 67 68 74 3c 2f 69   <b><i>height</i
1dee0 3e 3c 2f 62 3e 20 64 69 6d 65 6e 73 69 6f 6e 73  ></b> dimensions
1def0 20 61 74 20 74 68 61 74 20 72 65 73 6f 6c 75 74   at that resolut
1df00 69 6f 6e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68  ion.</li>.<li>th
1df10 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d  e optional argum
1df20 65 6e 74 20 3c 62 3e 3c 69 3e 74 69 66 66 43 6f  ent <b><i>tiffCo
1df30 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f 62  mpression</i></b
1df40 3e 20 63 6f 75 6c 64 20 62 65 20 6f 6e 65 20 6f  > could be one o
1df50 66 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62 3e 2c  f <b>'NONE'</b>,
1df60 20 3c 62 3e 27 44 45 46 4c 41 54 45 27 3c 2f 62   <b>'DEFLATE'</b
1df70 3e 2c 20 3c 62 3e 27 4c 5a 57 27 3c 2f 62 3e 2c  >, <b>'LZW'</b>,
1df80 20 3c 62 3e 27 4a 50 45 47 27 3c 2f 62 3e 2c 20   <b>'JPEG'</b>, 
1df90 3c 62 3e 27 46 41 58 33 27 3c 2f 62 3e 20 6f 72  <b>'FAX3'</b> or
1dfa0 20 3c 62 3e 27 46 41 58 34 27 3c 2f 62 3e 3b 20   <b>'FAX4'</b>; 
1dfb0 64 65 66 61 75 6c 74 20 69 73 20 3c 62 3e 27 4e  default is <b>'N
1dfc0 4f 4e 45 27 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c  ONE'</b>.</li>.<
1dfd0 6c 69 3e 74 68 65 20 6c 61 73 74 20 6f 70 74 69  li>the last opti
1dfe0 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 63 61  onal argument ca
1dff0 6e 20 62 65 20 75 73 65 64 20 73 6f 20 74 6f 20  n be used so to 
1e000 73 70 65 63 69 66 79 20 74 68 65 20 70 72 65 66  specify the pref
1e010 65 72 72 65 64 20 54 49 46 46 20 74 69 6c 65 20  erred TIFF tile 
1e020 73 69 7a 65 20 28 6f 6e 6c 79 20 73 71 75 61 72  size (only squar
1e030 65 20 74 69 6c 65 73 20 61 72 65 20 73 75 70 70  e tiles are supp
1e040 6f 72 74 65 64 29 3b 20 64 65 66 61 75 6c 74 20  orted); default 
1e050 69 73 20 3c 62 3e 32 35 36 3c 2f 62 3e 2e 3c 2f  is <b>256</b>.</
1e060 6c 69 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61 62 6c 65  li>.</ul>.<table
1e070 20 77 69 64 74 68 3d 22 31 30 30 25 22 20 62 67   width="100%" bg
1e080 63 6f 6c 6f 72 3d 22 23 66 66 64 30 38 30 22 20  color="#ffd080" 
1e090 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36 22 3e  cellpadding="6">
1e0a0 3c 74 72 3e 3c 74 64 3e 0a 3c 75 3e 50 6c 65 61  <tr><td>.<u>Plea
1e0b0 73 65 20 6e 6f 74 65 20 76 65 72 79 20 77 65 6c  se note very wel
1e0c0 6c 3c 2f 75 3e 3a 20 74 68 69 73 20 53 51 4c 20  l</u>: this SQL 
1e0d0 66 75 6e 63 74 69 6f 6e 20 69 73 20 6f 6e 6c 79  function is only
1e0e0 20 61 76 61 69 6c 61 62 6c 65 20 77 68 65 6e 20   available when 
1e0f0 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20  the environment 
1e100 76 61 72 69 61 62 6c 65 20 3c 62 3e 53 50 41 54  variable <b>SPAT
1e110 49 41 4c 49 54 45 5f 53 45 43 55 52 49 54 59 3d  IALITE_SECURITY=
1e120 72 65 6c 61 78 65 64 3c 2f 62 3e 20 69 73 20 73  relaxed</b> is s
1e130 65 74 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74  et.</td></tr></t
1e140 61 62 6c 65 3e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e  able></td>.</tr>
1e150 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f  .<tr><td><b>RL2_
1e160 57 72 69 74 65 53 65 63 74 69 6f 6e 54 69 66 66  WriteSectionTiff
1e170 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
1e180 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
1e190 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
1e1a0 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
1e1b0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65  ring</i> , <b>se
1e1c0 63 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49  ctionID</b> <i>I
1e1d0 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
1e1e0 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e  filePath</b> <i>
1e1f0 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
1e200 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74  width</b> <i>Int
1e210 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65  eger</i> , <b>he
1e220 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  ight</b> <i>Inte
1e230 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75  ger</i> , <b>bou
1e240 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e  ndingBox</b> <i>
1e250 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69  BLOB-Geometry</i
1e260 3e 20 2c 20 3c 62 3e 70 69 78 65 6c 52 65 73 6f  > , <b>pixelReso
1e270 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f  lution</b> <i>Do
1e280 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e  uble</i> ) : <i>
1e290 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c  Integer</i><br><
1e2a0 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65  br>.<b>RL2_Write
1e2b0 53 65 63 74 69 6f 6e 54 69 66 66 3c 2f 62 3e 20  SectionTiff</b> 
1e2c0 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62  ( <b>dbPrefix</b
1e2d0 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
1e2e0 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d  , <b>coverageNam
1e2f0 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
1e300 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e  /i> , <b>section
1e310 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ID</b> <i>Intege
1e320 72 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50  r</i> , <b>fileP
1e330 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ath</b> <i>Strin
1e340 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68  g</i> , <b>width
1e350 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
1e360 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c  /i> , <b>height<
1e370 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
1e380 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67  i> , <b>bounding
1e390 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d  Box</b> <i>BLOB-
1e3a0 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c  Geometry</i> , <
1e3b0 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c  b>horzPixelResol
1e3c0 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75  ution</b> <i>Dou
1e3d0 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72  ble</i> , <b>ver
1e3e0 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  tPixelResolution
1e3f0 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f  </b> <i>Double</
1e400 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65  i> ) : <i>Intege
1e410 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62  r</i><br><br>.<b
1e420 3e 52 4c 32 5f 57 72 69 74 65 53 65 63 74 69 6f  >RL2_WriteSectio
1e430 6e 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64  nTiff</b> ( <b>d
1e440 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53  bPrefix</b> <i>S
1e450 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63  tring</i> , <b>c
1e460 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20  overageName</b> 
1e470 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
1e480 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e  <b>sectionID</b>
1e490 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
1e4a0 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62  , <b>filePath</b
1e4b0 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
1e4c0 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c  , <b>width</b> <
1e4d0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
1e4e0 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69  <b>height</b> <i
1e4f0 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
1e500 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
1e510 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
1e520 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a  ry</i> , <b>horz
1e530 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
1e540 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
1e550 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c  > , <b>vertPixel
1e560 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
1e570 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c  i>Double</i> , <
1e580 62 3e 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f  b>tiffCompressio
1e590 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  n</b> <i>String<
1e5a0 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67  /i> ) : <i>Integ
1e5b0 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c  er</i><br><br>.<
1e5c0 62 3e 52 4c 32 5f 57 72 69 74 65 53 65 63 74 69  b>RL2_WriteSecti
1e5d0 6f 6e 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62 3e  onTiff</b> ( <b>
1e5e0 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e  dbPrefix</b> <i>
1e5f0 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
1e600 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e  coverageName</b>
1e610 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
1e620 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62   <b>sectionID</b
1e630 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
1e640 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f   , <b>filePath</
1e650 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
1e660 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20   , <b>width</b> 
1e670 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
1e680 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c   <b>height</b> <
1e690 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
1e6a0 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f  <b>boundingBox</
1e6b0 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65  b> <i>BLOB-Geome
1e6c0 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72  try</i> , <b>hor
1e6d0 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  zPixelResolution
1e6e0 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f  </b> <i>Double</
1e6f0 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65  i> , <b>vertPixe
1e700 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20  lResolution</b> 
1e710 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20  <i>Double</i> , 
1e720 3c 62 3e 74 69 66 66 43 6f 6d 70 72 65 73 73 69  <b>tiffCompressi
1e730 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  on</b> <i>String
1e740 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 66 66 54 69  </i> , <b>tiffTi
1e750 6c 65 53 69 7a 65 3c 2f 62 3e 20 3c 69 3e 49 6e  leSize</b> <i>In
1e760 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69  teger</i> ) : <i
1e770 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74 64  >Integer</i></td
1e780 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61 74 74 65 6d  >.<td>Will attem
1e790 70 74 20 74 6f 20 65 78 70 6f 72 74 20 72 61 77  pt to export raw
1e7a0 20 72 61 73 74 65 72 20 64 61 74 61 20 66 72 6f   raster data fro
1e7b0 6d 20 61 20 43 6f 76 65 72 61 67 65 20 69 6e 74  m a Coverage int
1e7c0 6f 20 61 6e 20 65 78 74 65 72 6e 61 6c 20 20 70  o an external  p
1e7d0 6c 61 69 6e 20 54 49 46 46 20 66 69 6c 65 3b 20  lain TIFF file; 
1e7e0 6f 6e 6c 79 20 74 68 65 20 54 69 6c 65 73 20 64  only the Tiles d
1e7f0 69 72 65 63 74 6c 79 20 62 65 6c 6f 6e 67 69 6e  irectly belongin
1e800 67 20 74 6f 20 74 68 65 20 73 65 6c 65 63 74 65  g to the selecte
1e810 64 20 53 65 63 74 69 6f 6e 20 77 69 6c 6c 20 62  d Section will b
1e820 65 20 63 6f 6e 73 69 64 65 72 65 64 2e 3c 62 72  e considered.<br
1e830 3e 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20 3c 62  >.Will return <b
1e840 3e 31 3c 2f 62 3e 20 28 54 52 55 45 2f 53 55 43  >1</b> (TRUE/SUC
1e850 43 45 53 53 29 20 6f 72 20 3c 62 3e 30 3c 2f 62  CESS) or <b>0</b
1e860 3e 20 28 46 41 4c 53 45 2f 46 41 49 4c 55 52 45  > (FALSE/FAILURE
1e870 29 3a 20 6f 72 20 3c 62 3e 2d 31 3c 2f 62 3e 20  ): or <b>-1</b> 
1e880 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d  on invalid argum
1e890 65 6e 74 73 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65  ents.<br>.<u>Ple
1e8a0 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 0a 3c  ase note</u>: .<
1e8b0 75 6c 3e 0a 3c 6c 69 3e 54 68 65 20 3c 62 3e 3c  ul>.<li>The <b><
1e8c0 69 3e 64 62 50 72 65 66 69 78 3c 2f 69 3e 3c 2f  i>dbPrefix</i></
1e8d0 62 3e 20 61 72 67 75 6d 65 6e 74 20 69 73 20 69  b> argument is i
1e8e0 6e 74 65 6e 64 65 64 20 74 6f 20 73 70 65 63 69  ntended to speci
1e8f0 66 79 20 74 68 65 20 41 54 54 41 43 48 45 44 2d  fy the ATTACHED-
1e900 44 42 20 77 68 65 72 65 20 74 68 65 20 43 6f 76  DB where the Cov
1e910 65 72 61 67 65 20 69 73 20 65 78 70 65 63 74 65  erage is expecte
1e920 64 20 74 6f 20 62 65 20 66 6f 75 6e 64 3b 20 69  d to be found; i
1e930 74 20 63 6f 75 6c 64 20 62 65 20 65 76 65 6e 74  t could be event
1e940 75 61 6c 6c 79 20 3c 62 3e 4e 55 4c 4c 3c 2f 62  ually <b>NULL</b
1e950 3e 2c 20 61 6e 64 20 69 6e 20 74 68 69 73 20 63  >, and in this c
1e960 61 73 65 20 74 68 65 20 3c 62 3e 4d 41 49 4e 20  ase the <b>MAIN 
1e970 44 42 3c 2f 62 3e 20 77 69 6c 6c 20 69 6d 70 6c  DB</b> will impl
1e980 69 63 69 74 6c 79 20 62 65 20 61 73 73 75 6d 65  icitly be assume
1e990 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20  d.</li>.<li>the 
1e9a0 3c 62 3e 3c 69 3e 62 6f 75 6e 64 69 6e 67 42 6f  <b><i>boundingBo
1e9b0 78 3c 2f 69 3e 3c 2f 62 3e 20 69 73 20 65 78 70  x</i></b> is exp
1e9c0 65 63 74 65 64 20 74 6f 20 72 65 70 72 65 73 65  ected to represe
1e9d0 6e 74 20 74 68 65 20 6f 76 65 72 61 6c 6c 20 65  nt the overall e
1e9e0 78 74 65 6e 74 20 6f 66 20 74 68 65 20 65 78 70  xtent of the exp
1e9f0 6f 72 74 65 64 20 54 49 46 46 3b 20 79 6f 75 20  orted TIFF; you 
1ea00 63 6f 75 6c 64 20 65 76 65 6e 74 75 61 6c 6c 79  could eventually
1ea10 20 70 61 73 73 20 61 6e 79 20 61 72 62 69 74 72   pass any arbitr
1ea20 61 72 79 20 6b 69 6e 64 20 6f 66 20 47 65 6f 6d  ary kind of Geom
1ea30 65 74 72 79 2c 20 61 6e 64 20 74 68 65 20 42 6f  etry, and the Bo
1ea40 75 6e 64 69 6e 67 20 42 6f 78 20 61 6b 61 20 4d  unding Box aka M
1ea50 42 52 20 77 69 6c 6c 20 62 65 20 61 75 74 6f 6d  BR will be autom
1ea60 61 74 69 63 61 6c 6c 79 20 64 65 74 65 72 6d 69  atically determi
1ea70 6e 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68  ned.</li>.<li>th
1ea80 65 20 3c 62 3e 3c 69 3e 68 6f 72 7a 50 69 78 65  e <b><i>horzPixe
1ea90 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c  lResolution</i><
1eaa0 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 76 65  /b> and <b><i>ve
1eab0 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rtPixelResolutio
1eac0 6e 3c 2f 69 3e 3c 2f 62 3e 20 6d 75 73 74 20 65  n</i></b> must e
1ead0 78 61 63 74 6c 79 20 6d 61 74 63 68 20 74 68 65  xactly match the
1eae0 20 43 6f 76 65 72 61 67 65 27 73 20 62 61 73 65   Coverage's base
1eaf0 20 72 65 73 6f 6c 75 74 69 6f 6e 20 6f 72 20 6f   resolution or o
1eb00 6e 65 20 6f 66 20 74 68 65 20 72 65 73 6f 6c 75  ne of the resolu
1eb10 74 69 6f 6e 73 20 6d 61 64 65 20 61 76 61 69 6c  tions made avail
1eb20 61 62 6c 65 20 62 79 20 74 68 65 20 63 6f 72 72  able by the corr
1eb30 65 73 70 6f 6e 64 69 6e 67 20 50 79 72 61 6d 69  esponding Pyrami
1eb40 64 20 6c 65 76 65 6c 73 2e 3c 2f 6c 69 3e 0a 3c  d levels.</li>.<
1eb50 6c 69 3e 61 6e 64 20 74 68 65 20 42 6f 75 6e 64  li>and the Bound
1eb60 69 6e 67 42 6f 78 20 6d 75 73 74 20 65 78 61 63  ingBox must exac
1eb70 74 6c 79 20 6d 61 74 63 68 20 74 68 65 20 54 49  tly match the TI
1eb80 46 46 20 3c 62 3e 3c 69 3e 77 69 64 74 68 3c 2f  FF <b><i>width</
1eb90 69 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69  i></b> and <b><i
1eba0 3e 68 65 69 67 68 74 3c 2f 69 3e 3c 2f 62 3e 20  >height</i></b> 
1ebb0 64 69 6d 65 6e 73 69 6f 6e 73 20 61 74 20 74 68  dimensions at th
1ebc0 61 74 20 72 65 73 6f 6c 75 74 69 6f 6e 2e 3c 2f  at resolution.</
1ebd0 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 6f 70 74 69  li>.<li>the opti
1ebe0 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 3c 62  onal argument <b
1ebf0 3e 3c 69 3e 74 69 66 66 43 6f 6d 70 72 65 73 73  ><i>tiffCompress
1ec00 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 63 6f 75 6c  ion</i></b> coul
1ec10 64 20 62 65 20 6f 6e 65 20 6f 66 20 3c 62 3e 27  d be one of <b>'
1ec20 4e 4f 4e 45 27 3c 2f 62 3e 2c 20 3c 62 3e 27 44  NONE'</b>, <b>'D
1ec30 45 46 4c 41 54 45 27 3c 2f 62 3e 2c 20 3c 62 3e  EFLATE'</b>, <b>
1ec40 27 4c 5a 57 27 3c 2f 62 3e 2c 20 3c 62 3e 27 4a  'LZW'</b>, <b>'J
1ec50 50 45 47 27 3c 2f 62 3e 2c 20 3c 62 3e 27 46 41  PEG'</b>, <b>'FA
1ec60 58 33 27 3c 2f 62 3e 20 6f 72 20 3c 62 3e 27 46  X3'</b> or <b>'F
1ec70 41 58 34 27 3c 2f 62 3e 3b 20 64 65 66 61 75 6c  AX4'</b>; defaul
1ec80 74 20 69 73 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f  t is <b>'NONE'</
1ec90 62 3e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65  b>.</li>.<li>the
1eca0 20 6c 61 73 74 20 6f 70 74 69 6f 6e 61 6c 20 61   last optional a
1ecb0 72 67 75 6d 65 6e 74 20 63 61 6e 20 62 65 20 75  rgument can be u
1ecc0 73 65 64 20 73 6f 20 74 6f 20 73 70 65 63 69 66  sed so to specif
1ecd0 79 20 74 68 65 20 70 72 65 66 65 72 72 65 64 20  y the preferred 
1ece0 54 49 46 46 20 74 69 6c 65 20 73 69 7a 65 20 28  TIFF tile size (
1ecf0 6f 6e 6c 79 20 73 71 75 61 72 65 20 74 69 6c 65  only square tile
1ed00 73 20 61 72 65 20 73 75 70 70 6f 72 74 65 64 29  s are supported)
1ed10 3b 20 64 65 66 61 75 6c 74 20 69 73 20 3c 62 3e  ; default is <b>
1ed20 32 35 36 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 2f  256</b>.</li>.</
1ed30 75 6c 3e 0a 3c 74 61 62 6c 65 20 77 69 64 74 68  ul>.<table width
1ed40 3d 22 31 30 30 25 22 20 62 67 63 6f 6c 6f 72 3d  ="100%" bgcolor=
1ed50 22 23 66 66 64 30 38 30 22 20 63 65 6c 6c 70 61  "#ffd080" cellpa
1ed60 64 64 69 6e 67 3d 22 36 22 3e 3c 74 72 3e 3c 74  dding="6"><tr><t
1ed70 64 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74  d>.<u>Please not
1ed80 65 20 76 65 72 79 20 77 65 6c 6c 3c 2f 75 3e 3a  e very well</u>:
1ed90 20 74 68 69 73 20 53 51 4c 20 66 75 6e 63 74 69   this SQL functi
1eda0 6f 6e 20 69 73 20 6f 6e 6c 79 20 61 76 61 69 6c  on is only avail
1edb0 61 62 6c 65 20 77 68 65 6e 20 74 68 65 20 65 6e  able when the en
1edc0 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62  vironment variab
1edd0 6c 65 20 3c 62 3e 53 50 41 54 49 41 4c 49 54 45  le <b>SPATIALITE
1ede0 5f 53 45 43 55 52 49 54 59 3d 72 65 6c 61 78 65  _SECURITY=relaxe
1edf0 64 3c 2f 62 3e 20 69 73 20 73 65 74 2e 3c 2f 74  d</b> is set.</t
1ee00 64 3e 3c 2f 74 72 3e 3c 2f 74 61 62 6c 65 3e 3c  d></tr></table><
1ee10 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 3c  /td>.</tr>.<tr><
1ee20 74 64 3e 3c 62 3e 52 4c 32 5f 57 72 69 74 65 53  td><b>RL2_WriteS
1ee30 65 63 74 69 6f 6e 54 72 69 70 6c 65 42 61 6e 64  ectionTripleBand
1ee40 47 65 6f 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62  GeoTiff</b> ( <b
1ee50 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69  >dbPrefix</b> <i
1ee60 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
1ee70 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62  >coverageName</b
1ee80 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
1ee90 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f  , <b>sectionID</
1eea0 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
1eeb0 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c  > , <b>filePath<
1eec0 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
1eed0 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e  > , <b>width</b>
1eee0 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
1eef0 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20  , <b>height</b> 
1ef00 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
1ef10 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 52 65 64   <b>bandIndexRed
1ef20 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
1ef30 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64  /i> , <b>bandInd
1ef40 65 78 47 72 65 65 6e 3c 2f 62 3e 20 3c 69 3e 49  exGreen</b> <i>I
1ef50 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
1ef60 62 61 6e 64 49 6e 64 65 78 42 6c 75 65 3c 2f 62  bandIndexBlue</b
1ef70 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
1ef80 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f   , <b>boundingBo
1ef90 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65  x</b> <i>BLOB-Ge
1efa0 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e  ometry</i> , <b>
1efb0 70 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  pixelResolution<
1efc0 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
1efd0 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72  > ) : <i>Integer
1efe0 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e  </i><br><br>.<b>
1eff0 52 4c 32 5f 57 72 69 74 65 53 65 63 74 69 6f 6e  RL2_WriteSection
1f000 54 72 69 70 6c 65 42 61 6e 64 47 65 6f 54 69 66  TripleBandGeoTif
1f010 66 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65  f</b> ( <b>dbPre
1f020 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  fix</b> <i>Strin
1f030 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72  g</i> , <b>cover
1f040 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53  ageName</b> <i>S
1f050 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73  tring</i> , <b>s
1f060 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69 3e  ectionID</b> <i>
1f070 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
1f080 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69  >filePath</b> <i
1f090 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
1f0a0 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e  >width</b> <i>In
1f0b0 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68  teger</i> , <b>h
1f0c0 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74  eight</b> <i>Int
1f0d0 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61  eger</i> , <b>ba
1f0e0 6e 64 49 6e 64 65 78 52 65 64 3c 2f 62 3e 20 3c  ndIndexRed</b> <
1f0f0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
1f100 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47 72 65 65  <b>bandIndexGree
1f110 6e 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  n</b> <i>Integer
1f120 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e  </i> , <b>bandIn
1f130 64 65 78 42 6c 75 65 3c 2f 62 3e 20 3c 69 3e 49  dexBlue</b> <i>I
1f140 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c 62  nteger</i>  , <b
1f150 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e  >boundingBox</b>
1f160 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72   <i>BLOB-Geometr
1f170 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50  y</i> , <b>horzP
1f180 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f  ixelResolution</
1f190 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e  b> <i>Double</i>
1f1a0 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c 52   , <b>vertPixelR
1f1b0 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69  esolution</b> <i
1f1c0 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20  >Double</i> ) : 
1f1d0 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62  <i>Integer</i><b
1f1e0 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72  r><br>.<b>RL2_Wr
1f1f0 69 74 65 53 65 63 74 69 6f 6e 54 72 69 70 6c 65  iteSectionTriple
1f200 42 61 6e 64 47 65 6f 54 69 66 66 3c 2f 62 3e 20  BandGeoTiff</b> 
1f210 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62  ( <b>dbPrefix</b
1f220 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
1f230 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d  , <b>coverageNam
1f240 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  e</b> <i>String<
1f250 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e  /i> , <b>section
1f260 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ID</b> <i>Intege
1f270 72 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50  r</i> , <b>fileP
1f280 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ath</b> <i>Strin
1f290 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68  g</i> , <b>width
1f2a0 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
1f2b0 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c  /i> , <b>height<
1f2c0 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
1f2d0 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65  i> , <b>bandInde
1f2e0 78 52 65 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  xRed</b> <i>Inte
1f2f0 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e  ger</i> , <b>ban
1f300 64 49 6e 64 65 78 47 72 65 65 6e 3c 2f 62 3e 20  dIndexGreen</b> 
1f310 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
1f320 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 42 6c 75   <b>bandIndexBlu
1f330 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  e</b> <i>Integer
1f340 3c 2f 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64  </i>  , <b>bound
1f350 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c  ingBox</b> <i>BL
1f360 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20  OB-Geometry</i> 
1f370 2c 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65  , <b>horzPixelRe
1f380 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  solution</b> <i>
1f390 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e  Double</i> , <b>
1f3a0 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74  vertPixelResolut
1f3b0 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c  ion</b> <i>Doubl
1f3c0 65 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 74 68 57  e</i> , <b>withW
1f3d0 6f 6c 64 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e 49  oldFile</b> <i>I
1f3e0 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c  nteger</i> ) : <
1f3f0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72  i>Integer</i><br
1f400 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69  ><br>.<b>RL2_Wri
1f410 74 65 53 65 63 74 69 6f 6e 54 72 69 70 6c 65 42  teSectionTripleB
1f420 61 6e 64 47 65 6f 54 69 66 66 3c 2f 62 3e 20 28  andGeoTiff</b> (
1f430 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e   <b>dbPrefix</b>
1f440 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
1f450 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65   <b>coverageName
1f460 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
1f470 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49  i> , <b>sectionI
1f480 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  D</b> <i>Integer
1f490 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61  </i> , <b>filePa
1f4a0 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  th</b> <i>String
1f4b0 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c  </i> , <b>width<
1f4c0 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
1f4d0 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f  i> , <b>height</
1f4e0 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
1f4f0 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78  > , <b>bandIndex
1f500 52 65 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  Red</b> <i>Integ
1f510 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64  er</i> , <b>band
1f520 49 6e 64 65 78 47 72 65 65 6e 3c 2f 62 3e 20 3c  IndexGreen</b> <
1f530 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
1f540 3c 62 3e 62 61 6e 64 49 6e 64 65 78 42 6c 75 65  <b>bandIndexBlue
1f550 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
1f560 2f 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69  /i>  , <b>boundi
1f570 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f  ngBox</b> <i>BLO
1f580 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c  B-Geometry</i> ,
1f590 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73   <b>horzPixelRes
1f5a0 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44  olution</b> <i>D
1f5b0 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76  ouble</i> , <b>v
1f5c0 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69  ertPixelResoluti
1f5d0 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65  on</b> <i>Double
1f5e0 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 74 68 57 6f  </i> , <b>withWo
1f5f0 6c 64 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e 49 6e  ldFile</b> <i>In
1f600 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 74  teger</i> , <b>t
1f610 69 66 66 43 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f  iffCompression</
1f620 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
1f630 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c   ) : <i>Integer<
1f640 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52  /i><br><br>.<b>R
1f650 4c 32 5f 57 72 69 74 65 53 65 63 74 69 6f 6e 54  L2_WriteSectionT
1f660 72 69 70 6c 65 42 61 6e 64 47 65 6f 54 69 66 66  ripleBandGeoTiff
1f670 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66  </b> ( <b>dbPref
1f680 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  ix</b> <i>String
1f690 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61  </i> , <b>covera
1f6a0 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74  geName</b> <i>St
1f6b0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65  ring</i> , <b>se
1f6c0 63 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49  ctionID</b> <i>I
1f6d0 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
1f6e0 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e  filePath</b> <i>
1f6f0 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
1f700 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74  width</b> <i>Int
1f710 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65  eger</i> , <b>he
1f720 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  ight</b> <i>Inte
1f730 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e  ger</i> , <b>ban
1f740 64 49 6e 64 65 78 52 65 64 3c 2f 62 3e 20 3c 69  dIndexRed</b> <i
1f750 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
1f760 62 3e 62 61 6e 64 49 6e 64 65 78 47 72 65 65 6e  b>bandIndexGreen
1f770 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
1f780 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64  /i> , <b>bandInd
1f790 65 78 42 6c 75 65 3c 2f 62 3e 20 3c 69 3e 49 6e  exBlue</b> <i>In
1f7a0 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c 62 3e  teger</i>  , <b>
1f7b0 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20  boundingBox</b> 
1f7c0 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79  <i>BLOB-Geometry
1f7d0 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50 69  </i> , <b>horzPi
1f7e0 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62  xelResolution</b
1f7f0 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20  > <i>Double</i> 
1f800 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c 52 65  , <b>vertPixelRe
1f810 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  solution</b> <i>
1f820 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e  Double</i> , <b>
1f830 77 69 74 68 57 6f 6c 64 46 69 6c 65 3c 2f 62 3e  withWoldFile</b>
1f840 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
1f850 2c 20 3c 62 3e 74 69 66 66 43 6f 6d 70 72 65 73  , <b>tiffCompres
1f860 73 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  sion</b> <i>Stri
1f870 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 66 66  ng</i> , <b>tiff
1f880 54 69 6c 65 53 69 7a 65 3c 2f 62 3e 20 3c 69 3e  TileSize</b> <i>
1f890 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20  Integer</i> ) : 
1f8a0 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f  <i>Integer</i></
1f8b0 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61 74 74  td>.<td>Will att
1f8c0 65 6d 70 74 20 74 6f 20 65 78 70 6f 72 74 20 72  empt to export r
1f8d0 61 77 20 72 61 73 74 65 72 20 64 61 74 61 20 66  aw raster data f
1f8e0 72 6f 6d 20 61 20 4d 55 4c 54 49 42 41 4e 44 20  rom a MULTIBAND 
1f8f0 6f 72 20 52 47 42 20 43 6f 76 65 72 61 67 65 20  or RGB Coverage 
1f900 69 6e 74 6f 20 61 6e 20 65 78 74 65 72 6e 61 6c  into an external
1f910 20 47 65 6f 54 49 46 46 20 66 69 6c 65 20 6f 66   GeoTIFF file of
1f920 20 74 68 65 20 52 47 42 20 74 79 70 65 3b 20 6f   the RGB type; o
1f930 6e 6c 79 20 74 68 65 20 54 69 6c 65 73 20 64 69  nly the Tiles di
1f940 72 65 63 74 6c 79 20 62 65 6c 6f 6e 67 69 6e 67  rectly belonging
1f950 20 74 6f 20 74 68 65 20 73 65 6c 65 63 74 65 64   to the selected
1f960 20 53 65 63 74 69 6f 6e 20 77 69 6c 6c 20 62 65   Section will be
1f970 20 63 6f 6e 73 69 64 65 72 65 64 2e 3c 62 72 3e   considered.<br>
1f980 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20 3c 62 3e  .Will return <b>
1f990 31 3c 2f 62 3e 20 28 54 52 55 45 2f 53 55 43 43  1</b> (TRUE/SUCC
1f9a0 45 53 53 29 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e  ESS) or <b>0</b>
1f9b0 20 28 46 41 4c 53 45 2f 46 41 49 4c 55 52 45 29   (FALSE/FAILURE)
1f9c0 3a 20 6f 72 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f  : or <b>-1</b> o
1f9d0 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65  n invalid argume
1f9e0 6e 74 73 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61  nts.<br>.<u>Plea
1f9f0 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75  se note</u>: .<u
1fa00 6c 3e 0a 3c 6c 69 3e 54 68 65 20 3c 62 3e 3c 69  l>.<li>The <b><i
1fa10 3e 64 62 50 72 65 66 69 78 3c 2f 69 3e 3c 2f 62  >dbPrefix</i></b
1fa20 3e 20 61 72 67 75 6d 65 6e 74 20 69 73 20 69 6e  > argument is in
1fa30 74 65 6e 64 65 64 20 74 6f 20 73 70 65 63 69 66  tended to specif
1fa40 79 20 74 68 65 20 41 54 54 41 43 48 45 44 2d 44  y the ATTACHED-D
1fa50 42 20 77 68 65 72 65 20 74 68 65 20 43 6f 76 65  B where the Cove
1fa60 72 61 67 65 20 69 73 20 65 78 70 65 63 74 65 64  rage is expected
1fa70 20 74 6f 20 62 65 20 66 6f 75 6e 64 3b 20 69 74   to be found; it
1fa80 20 63 6f 75 6c 64 20 62 65 20 65 76 65 6e 74 75   could be eventu
1fa90 61 6c 6c 79 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e  ally <b>NULL</b>
1faa0 2c 20 61 6e 64 20 69 6e 20 74 68 69 73 20 63 61  , and in this ca
1fab0 73 65 20 74 68 65 20 3c 62 3e 4d 41 49 4e 20 44  se the <b>MAIN D
1fac0 42 3c 2f 62 3e 20 77 69 6c 6c 20 69 6d 70 6c 69  B</b> will impli
1fad0 63 69 74 6c 79 20 62 65 20 61 73 73 75 6d 65 64  citly be assumed
1fae0 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c  .</li>.<li>the <
1faf0 62 3e 3c 69 3e 62 61 6e 64 49 6e 64 65 78 52 65  b><i>bandIndexRe
1fb00 64 3c 2f 62 3e 3c 2f 69 3e 2c 20 3c 62 3e 3c 69  d</b></i>, <b><i
1fb10 3e 62 61 6e 64 49 6e 64 65 78 47 72 65 65 6e 3c  >bandIndexGreen<
1fb20 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c  /i></b> and <b><
1fb30 69 3e 62 61 6e 64 49 6e 64 65 78 42 6c 75 65 3c  i>bandIndexBlue<
1fb40 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74  /i></b> argument
1fb50 73 20 61 72 65 20 69 6e 74 65 6e 64 65 64 20 74  s are intended t
1fb60 6f 20 61 72 62 69 74 72 61 72 69 6c 79 20 63 6f  o arbitrarily co
1fb70 6d 70 6f 73 65 20 74 68 65 20 52 47 42 20 54 49  mpose the RGB TI
1fb80 46 46 20 73 74 61 72 74 69 6e 67 20 66 72 6f 6d  FF starting from
1fb90 20 74 68 65 20 42 61 6e 64 73 20 73 75 70 70 6f   the Bands suppo
1fba0 72 74 65 64 20 62 79 20 74 68 65 20 43 6f 76 65  rted by the Cove
1fbb0 72 61 67 65 2e 0a 3c 62 72 3e 3c 75 3e 50 6c 65  rage..<br><u>Ple
1fbc0 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 74 68  ase note</u>: th
1fbd0 65 20 66 69 72 73 74 20 42 61 6e 64 20 61 6c 77  e first Band alw
1fbe0 61 79 73 20 63 6f 72 72 65 73 70 6f 6e 64 73 20  ays corresponds 
1fbf0 74 6f 20 69 6e 64 65 78 20 3c 62 3e 5a 45 52 4f  to index <b>ZERO
1fc00 3c 2f 62 3e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68  </b></li>.<li>th
1fc10 65 20 3c 62 3e 3c 69 3e 62 6f 75 6e 64 69 6e 67  e <b><i>bounding
1fc20 42 6f 78 3c 2f 69 3e 3c 2f 62 3e 20 69 73 20 65  Box</i></b> is e
1fc30 78 70 65 63 74 65 64 20 74 6f 20 72 65 70 72 65  xpected to repre
1fc40 73 65 6e 74 20 74 68 65 20 6f 76 65 72 61 6c 6c  sent the overall
1fc50 20 65 78 74 65 6e 74 20 6f 66 20 74 68 65 20 65   extent of the e
1fc60 78 70 6f 72 74 65 64 20 47 65 6f 54 49 46 46 3b  xported GeoTIFF;
1fc70 20 79 6f 75 20 63 6f 75 6c 64 20 65 76 65 6e 74   you could event
1fc80 75 61 6c 6c 79 20 70 61 73 73 20 61 6e 79 20 61  ually pass any a
1fc90 72 62 69 74 72 61 72 79 20 6b 69 6e 64 20 6f 66  rbitrary kind of
1fca0 20 47 65 6f 6d 65 74 72 79 2c 20 61 6e 64 20 74   Geometry, and t
1fcb0 68 65 20 42 6f 75 6e 64 69 6e 67 20 42 6f 78 20  he Bounding Box 
1fcc0 61 6b 61 20 4d 42 52 20 77 69 6c 6c 20 62 65 20  aka MBR will be 
1fcd0 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 64 65  automatically de
1fce0 74 65 72 6d 69 6e 65 64 2e 3c 2f 6c 69 3e 0a 3c  termined.</li>.<
1fcf0 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 68 6f 72  li>the <b><i>hor
1fd00 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  zPixelResolution
1fd10 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e  </i></b> and <b>
1fd20 3c 69 3e 76 65 72 74 50 69 78 65 6c 52 65 73 6f  <i>vertPixelReso
1fd30 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 6d  lution</i></b> m
1fd40 75 73 74 20 65 78 61 63 74 6c 79 20 6d 61 74 63  ust exactly matc
1fd50 68 20 74 68 65 20 43 6f 76 65 72 61 67 65 27 73  h the Coverage's
1fd60 20 62 61 73 65 20 72 65 73 6f 6c 75 74 69 6f 6e   base resolution
1fd70 20 6f 72 20 6f 6e 65 20 6f 66 20 74 68 65 20 72   or one of the r
1fd80 65 73 6f 6c 75 74 69 6f 6e 73 20 6d 61 64 65 20  esolutions made 
1fd90 61 76 61 69 6c 61 62 6c 65 20 62 79 20 74 68 65  available by the
1fda0 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 50   corresponding P
1fdb0 79 72 61 6d 69 64 20 6c 65 76 65 6c 73 2e 3c 2f  yramid levels.</
1fdc0 6c 69 3e 0a 3c 6c 69 3e 61 6e 64 20 74 68 65 20  li>.<li>and the 
1fdd0 42 6f 75 6e 64 69 6e 67 42 6f 78 20 6d 75 73 74  BoundingBox must
1fde0 20 65 78 61 63 74 6c 79 20 6d 61 74 63 68 20 74   exactly match t
1fdf0 68 65 20 54 49 46 46 20 3c 62 3e 3c 69 3e 77 69  he TIFF <b><i>wi
1fe00 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20  dth</i></b> and 
1fe10 3c 62 3e 3c 69 3e 68 65 69 67 68 74 3c 2f 69 3e  <b><i>height</i>
1fe20 3c 2f 62 3e 20 64 69 6d 65 6e 73 69 6f 6e 73 20  </b> dimensions 
1fe30 61 74 20 74 68 61 74 20 72 65 73 6f 6c 75 74 69  at that resoluti
1fe40 6f 6e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 69 66 20  on.</li>.<li>if 
1fe50 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67  the optional arg
1fe60 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e 77 69 74 68  ument <b><i>with
1fe70 57 6f 72 6c 64 46 69 6c 65 3c 2f 69 3e 3c 2f 62  WorldFile</i></b
1fe80 3e 20 69 73 20 73 65 74 20 74 6f 20 54 52 55 45  > is set to TRUE
1fe90 20 74 68 65 6e 20 61 6e 20 61 75 78 69 6c 69 61   then an auxilia
1fea0 72 79 20 57 6f 72 6c 64 46 69 6c 65 20 77 69 6c  ry WorldFile wil
1feb0 6c 20 62 65 20 65 78 70 6f 72 74 65 64 20 61 73  l be exported as
1fec0 20 77 65 6c 6c 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e   well.</li>.<li>
1fed0 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67  the optional arg
1fee0 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e 74 69 66 66  ument <b><i>tiff
1fef0 43 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c  Compression</i><
1ff00 2f 62 3e 20 63 6f 75 6c 64 20 62 65 20 6f 6e 65  /b> could be one
1ff10 20 6f 66 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62   of <b>'NONE'</b
1ff20 3e 2c 20 3c 62 3e 27 44 45 46 4c 41 54 45 27 3c  >, <b>'DEFLATE'<
1ff30 2f 62 3e 2c 20 3c 62 3e 27 4c 5a 57 27 3c 2f 62  /b>, <b>'LZW'</b
1ff40 3e 2c 20 3c 62 3e 27 4a 50 45 47 27 3c 2f 62 3e  >, <b>'JPEG'</b>
1ff50 2c 20 3c 62 3e 27 46 41 58 33 27 3c 2f 62 3e 20  , <b>'FAX3'</b> 
1ff60 6f 72 20 3c 62 3e 27 46 41 58 34 27 3c 2f 62 3e  or <b>'FAX4'</b>
1ff70 3b 20 64 65 66 61 75 6c 74 20 69 73 20 3c 62 3e  ; default is <b>
1ff80 27 4e 4f 4e 45 27 3c 2f 62 3e 2e 3c 2f 6c 69 3e  'NONE'</b>.</li>
1ff90 0a 3c 6c 69 3e 74 68 65 20 6c 61 73 74 20 6f 70  .<li>the last op
1ffa0 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20  tional argument 
1ffb0 63 61 6e 20 62 65 20 75 73 65 64 20 73 6f 20 74  can be used so t
1ffc0 6f 20 73 70 65 63 69 66 79 20 74 68 65 20 70 72  o specify the pr
1ffd0 65 66 65 72 72 65 64 20 54 49 46 46 20 74 69 6c  eferred TIFF til
1ffe0 65 20 73 69 7a 65 20 28 6f 6e 6c 79 20 73 71 75  e size (only squ
1fff0 61 72 65 20 74 69 6c 65 73 20 61 72 65 20 73 75  are tiles are su
20000 70 70 6f 72 74 65 64 29 3b 20 64 65 66 61 75 6c  pported); defaul
20010 74 20 69 73 20 3c 62 3e 32 35 36 3c 2f 62 3e 2e  t is <b>256</b>.
20020 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61 62  </li>.</ul>.<tab
20030 6c 65 20 77 69 64 74 68 3d 22 31 30 30 25 22 20  le width="100%" 
20040 62 67 63 6f 6c 6f 72 3d 22 23 66 66 64 30 38 30  bgcolor="#ffd080
20050 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36  " cellpadding="6
20060 22 3e 3c 74 72 3e 3c 74 64 3e 0a 3c 75 3e 50 6c  "><tr><td>.<u>Pl
20070 65 61 73 65 20 6e 6f 74 65 20 76 65 72 79 20 77  ease note very w
20080 65 6c 6c 3c 2f 75 3e 3a 20 74 68 69 73 20 53 51  ell</u>: this SQ
20090 4c 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 6f 6e  L function is on
200a0 6c 79 20 61 76 61 69 6c 61 62 6c 65 20 77 68 65  ly available whe
200b0 6e 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e  n the environmen
200c0 74 20 76 61 72 69 61 62 6c 65 20 3c 62 3e 53 50  t variable <b>SP
200d0 41 54 49 41 4c 49 54 45 5f 53 45 43 55 52 49 54  ATIALITE_SECURIT
200e0 59 3d 72 65 6c 61 78 65 64 3c 2f 62 3e 20 69 73  Y=relaxed</b> is
200f0 20 73 65 74 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c   set.</td></tr><
20100 2f 74 61 62 6c 65 3e 3c 2f 74 64 3e 0a 3c 2f 74  /table></td>.</t
20110 72 3e 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c  r>.<tr><td><b>RL
20120 32 5f 57 72 69 74 65 53 65 63 74 69 6f 6e 54 72  2_WriteSectionTr
20130 69 70 6c 65 42 61 6e 64 54 69 66 66 54 46 57 3c  ipleBandTiffTFW<
20140 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69  /b> ( <b>dbPrefi
20150 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  x</b> <i>String<
20160 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67  /i> , <b>coverag
20170 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eName</b> <i>Str
20180 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63  ing</i> , <b>sec
20190 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e  tionID</b> <i>In
201a0 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 66  teger</i> , <b>f
201b0 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53  ilePath</b> <i>S
201c0 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77  tring</i> , <b>w
201d0 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  idth</b> <i>Inte
201e0 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69  ger</i> , <b>hei
201f0 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  ght</b> <i>Integ
20200 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64  er</i> , <b>band
20210 49 6e 64 65 78 52 65 64 3c 2f 62 3e 20 3c 69 3e  IndexRed</b> <i>
20220 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
20230 3e 62 61 6e 64 49 6e 64 65 78 47 72 65 65 6e 3c  >bandIndexGreen<
20240 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
20250 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65  i> , <b>bandInde
20260 78 42 6c 75 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74  xBlue</b> <i>Int
20270 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f  eger</i> , <b>bo
20280 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69  undingBox</b> <i
20290 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f  >BLOB-Geometry</
202a0 69 3e 20 2c 20 3c 62 3e 70 69 78 65 6c 52 65 73  i> , <b>pixelRes
202b0 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44  olution</b> <i>D
202c0 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69  ouble</i> ) : <i
202d0 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e  >Integer</i><br>
202e0 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74  <br>.<b>RL2_Writ
202f0 65 53 65 63 74 69 6f 6e 54 72 69 70 6c 65 42 61  eSectionTripleBa
20300 6e 64 54 69 66 66 54 46 57 3c 2f 62 3e 20 28 20  ndTiffTFW</b> ( 
20310 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20  <b>dbPrefix</b> 
20320 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
20330 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
20340 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
20350 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44  > , <b>sectionID
20360 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
20370 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74  /i> , <b>filePat
20380 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  h</b> <i>String<
20390 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f  /i> , <b>width</
203a0 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
203b0 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62  > , <b>height</b
203c0 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
203d0 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 52   , <b>bandIndexR
203e0 65 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ed</b> <i>Intege
203f0 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49  r</i> , <b>bandI
20400 6e 64 65 78 47 72 65 65 6e 3c 2f 62 3e 20 3c 69  ndexGreen</b> <i
20410 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
20420 62 3e 62 61 6e 64 49 6e 64 65 78 42 6c 75 65 3c  b>bandIndexBlue<
20430 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
20440 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e  i>  , <b>boundin
20450 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42  gBox</b> <i>BLOB
20460 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20  -Geometry</i> , 
20470 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f  <b>horzPixelReso
20480 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f  lution</b> <i>Do
20490 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65  uble</i> , <b>ve
204a0 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rtPixelResolutio
204b0 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c  n</b> <i>Double<
204c0 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67  /i> ) : <i>Integ
204d0 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c  er</i><br><br>.<
204e0 62 3e 52 4c 32 5f 57 72 69 74 65 53 65 63 74 69  b>RL2_WriteSecti
204f0 6f 6e 54 72 69 70 6c 65 42 61 6e 64 54 69 66 66  onTripleBandTiff
20500 54 46 57 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50  TFW</b> ( <b>dbP
20510 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72  refix</b> <i>Str
20520 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76  ing</i> , <b>cov
20530 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69  erageName</b> <i
20540 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
20550 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c  >sectionID</b> <
20560 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
20570 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20  <b>filePath</b> 
20580 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
20590 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e  <b>width</b> <i>
205a0 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
205b0 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49  >height</b> <i>I
205c0 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
205d0 62 61 6e 64 49 6e 64 65 78 52 65 64 3c 2f 62 3e  bandIndexRed</b>
205e0 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
205f0 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47 72  , <b>bandIndexGr
20600 65 65 6e 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  een</b> <i>Integ
20610 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64  er</i> , <b>band
20620 49 6e 64 65 78 42 6c 75 65 3c 2f 62 3e 20 3c 69  IndexBlue</b> <i
20630 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20  >Integer</i>  , 
20640 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f  <b>boundingBox</
20650 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65  b> <i>BLOB-Geome
20660 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72  try</i> , <b>hor
20670 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  zPixelResolution
20680 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f  </b> <i>Double</
20690 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65  i> , <b>vertPixe
206a0 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20  lResolution</b> 
206b0 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20  <i>Double</i> , 
206c0 3c 62 3e 74 69 66 66 43 6f 6d 70 72 65 73 73 69  <b>tiffCompressi
206d0 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  on</b> <i>String
206e0 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65  </i> ) : <i>Inte
206f0 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a  ger</i><br><br>.
20700 3c 62 3e 52 4c 32 5f 57 72 69 74 65 53 65 63 74  <b>RL2_WriteSect
20710 69 6f 6e 54 72 69 70 6c 65 42 61 6e 64 54 69 66  ionTripleBandTif
20720 66 54 46 57 3c 2f 62 3e 20 28 20 3c 62 3e 64 62  fTFW</b> ( <b>db
20730 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74  Prefix</b> <i>St
20740 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f  ring</i> , <b>co
20750 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
20760 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
20770 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20  b>sectionID</b> 
20780 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
20790 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e   <b>filePath</b>
207a0 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
207b0 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69   <b>width</b> <i
207c0 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
207d0 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e  b>height</b> <i>
207e0 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
207f0 3e 62 61 6e 64 49 6e 64 65 78 52 65 64 3c 2f 62  >bandIndexRed</b
20800 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
20810 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47   , <b>bandIndexG
20820 72 65 65 6e 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  reen</b> <i>Inte
20830 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e  ger</i> , <b>ban
20840 64 49 6e 64 65 78 42 6c 75 65 3c 2f 62 3e 20 3c  dIndexBlue</b> <
20850 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c  i>Integer</i>  ,
20860 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c   <b>boundingBox<
20870 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d  /b> <i>BLOB-Geom
20880 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f  etry</i> , <b>ho
20890 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rzPixelResolutio
208a0 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c  n</b> <i>Double<
208b0 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78  /i> , <b>vertPix
208c0 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e  elResolution</b>
208d0 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c   <i>Double</i> ,
208e0 20 3c 62 3e 74 69 66 66 43 6f 6d 70 72 65 73 73   <b>tiffCompress
208f0 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ion</b> <i>Strin
20900 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 66 66 54  g</i> , <b>tiffT
20910 69 6c 65 53 69 7a 65 3c 2f 62 3e 20 3c 69 3e 49  ileSize</b> <i>I
20920 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c  nteger</i> ) : <
20930 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74  i>Integer</i></t
20940 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61 74 74 65  d>.<td>Will atte
20950 6d 70 74 20 74 6f 20 65 78 70 6f 72 74 20 72 61  mpt to export ra
20960 77 20 72 61 73 74 65 72 20 64 61 74 61 20 66 72  w raster data fr
20970 6f 6d 20 61 20 4d 55 4c 54 49 42 41 4e 44 20 6f  om a MULTIBAND o
20980 72 20 52 47 42 20 43 6f 76 65 72 61 67 65 20 69  r RGB Coverage i
20990 6e 74 6f 20 61 6e 20 65 78 74 65 72 6e 61 6c 20  nto an external 
209a0 70 6c 61 69 6e 20 54 49 46 46 20 66 69 6c 65 20  plain TIFF file 
209b0 6f 66 20 74 68 65 20 52 47 42 20 74 79 70 65 20  of the RGB type 
209c0 73 75 70 70 6f 72 74 65 64 20 62 79 20 61 6e 20  supported by an 
209d0 61 75 78 69 6c 69 61 72 79 20 57 6f 72 6c 64 46  auxiliary WorldF
209e0 69 6c 65 3b 20 6f 6e 6c 79 20 74 68 65 20 54 69  ile; only the Ti
209f0 6c 65 73 20 64 69 72 65 63 74 6c 79 20 62 65 6c  les directly bel
20a00 6f 6e 67 69 6e 67 20 74 6f 20 74 68 65 20 73 65  onging to the se
20a10 6c 65 63 74 65 64 20 53 65 63 74 69 6f 6e 20 77  lected Section w
20a20 69 6c 6c 20 62 65 20 63 6f 6e 73 69 64 65 72 65  ill be considere
20a30 64 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75  d.<br>.Will retu
20a40 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20 28 54 52 55  rn <b>1</b> (TRU
20a50 45 2f 53 55 43 43 45 53 53 29 20 6f 72 20 3c 62  E/SUCCESS) or <b
20a60 3e 30 3c 2f 62 3e 20 28 46 41 4c 53 45 2f 46 41  >0</b> (FALSE/FA
20a70 49 4c 55 52 45 29 3a 20 6f 72 20 3c 62 3e 2d 31  ILURE): or <b>-1
20a80 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20  </b> on invalid 
20a90 61 72 67 75 6d 65 6e 74 73 2e 3c 62 72 3e 0a 3c  arguments.<br>.<
20aa0 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75  u>Please note</u
20ab0 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69 3e 54 68 65  >: .<ul>.<li>The
20ac0 20 3c 62 3e 3c 69 3e 64 62 50 72 65 66 69 78 3c   <b><i>dbPrefix<
20ad0 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74  /i></b> argument
20ae0 20 69 73 20 69 6e 74 65 6e 64 65 64 20 74 6f 20   is intended to 
20af0 73 70 65 63 69 66 79 20 74 68 65 20 41 54 54 41  specify the ATTA
20b00 43 48 45 44 2d 44 42 20 77 68 65 72 65 20 74 68  CHED-DB where th
20b10 65 20 43 6f 76 65 72 61 67 65 20 69 73 20 65 78  e Coverage is ex
20b20 70 65 63 74 65 64 20 74 6f 20 62 65 20 66 6f 75  pected to be fou
20b30 6e 64 3b 20 69 74 20 63 6f 75 6c 64 20 62 65 20  nd; it could be 
20b40 65 76 65 6e 74 75 61 6c 6c 79 20 3c 62 3e 4e 55  eventually <b>NU
20b50 4c 4c 3c 2f 62 3e 2c 20 61 6e 64 20 69 6e 20 74  LL</b>, and in t
20b60 68 69 73 20 63 61 73 65 20 74 68 65 20 3c 62 3e  his case the <b>
20b70 4d 41 49 4e 20 44 42 3c 2f 62 3e 20 77 69 6c 6c  MAIN DB</b> will
20b80 20 69 6d 70 6c 69 63 69 74 6c 79 20 62 65 20 61   implicitly be a
20b90 73 73 75 6d 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69  ssumed.</li>.<li
20ba0 3e 74 68 65 20 3c 62 3e 3c 69 3e 62 61 6e 64 49  >the <b><i>bandI
20bb0 6e 64 65 78 52 65 64 3c 2f 62 3e 3c 2f 69 3e 2c  ndexRed</b></i>,
20bc0 20 3c 62 3e 3c 69 3e 62 61 6e 64 49 6e 64 65 78   <b><i>bandIndex
20bd0 47 72 65 65 6e 3c 2f 69 3e 3c 2f 62 3e 20 61 6e  Green</i></b> an
20be0 64 20 3c 62 3e 3c 69 3e 62 61 6e 64 49 6e 64 65  d <b><i>bandInde
20bf0 78 42 6c 75 65 3c 2f 69 3e 3c 2f 62 3e 20 61 72  xBlue</i></b> ar
20c00 67 75 6d 65 6e 74 73 20 61 72 65 20 69 6e 74 65  guments are inte
20c10 6e 64 65 64 20 74 6f 20 61 72 62 69 74 72 61 72  nded to arbitrar
20c20 69 6c 79 20 63 6f 6d 70 6f 73 65 20 74 68 65 20  ily compose the 
20c30 52 47 42 20 54 49 46 46 20 73 74 61 72 74 69 6e  RGB TIFF startin
20c40 67 20 66 72 6f 6d 20 74 68 65 20 42 61 6e 64 73  g from the Bands
20c50 20 73 75 70 70 6f 72 74 65 64 20 62 79 20 74 68   supported by th
20c60 65 20 43 6f 76 65 72 61 67 65 2e 0a 3c 62 72 3e  e Coverage..<br>
20c70 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f  <u>Please note</
20c80 75 3e 3a 20 74 68 65 20 66 69 72 73 74 20 42 61  u>: the first Ba
20c90 6e 64 20 61 6c 77 61 79 73 20 63 6f 72 72 65 73  nd always corres
20ca0 70 6f 6e 64 73 20 74 6f 20 69 6e 64 65 78 20 3c  ponds to index <
20cb0 62 3e 5a 45 52 4f 3c 2f 62 3e 3c 2f 6c 69 3e 0a  b>ZERO</b></li>.
20cc0 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 62 6f  <li>the <b><i>bo
20cd0 75 6e 64 69 6e 67 42 6f 78 3c 2f 69 3e 3c 2f 62  undingBox</i></b
20ce0 3e 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f  > is expected to
20cf0 20 72 65 70 72 65 73 65 6e 74 20 74 68 65 20 6f   represent the o
20d00 76 65 72 61 6c 6c 20 65 78 74 65 6e 74 20 6f 66  verall extent of
20d10 20 74 68 65 20 65 78 70 6f 72 74 65 64 20 54 49   the exported TI
20d20 46 46 3b 20 79 6f 75 20 63 6f 75 6c 64 20 65 76  FF; you could ev
20d30 65 6e 74 75 61 6c 6c 79 20 70 61 73 73 20 61 6e  entually pass an
20d40 79 20 61 72 62 69 74 72 61 72 79 20 6b 69 6e 64  y arbitrary kind
20d50 20 6f 66 20 47 65 6f 6d 65 74 72 79 2c 20 61 6e   of Geometry, an
20d60 64 20 74 68 65 20 42 6f 75 6e 64 69 6e 67 20 42  d the Bounding B
20d70 6f 78 20 61 6b 61 20 4d 42 52 20 77 69 6c 6c 20  ox aka MBR will 
20d80 62 65 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79  be automatically
20d90 20 64 65 74 65 72 6d 69 6e 65 64 2e 3c 2f 6c 69   determined.</li
20da0 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e  >.<li>the <b><i>
20db0 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74  horzPixelResolut
20dc0 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20  ion</i></b> and 
20dd0 3c 62 3e 3c 69 3e 76 65 72 74 50 69 78 65 6c 52  <b><i>vertPixelR
20de0 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62  esolution</i></b
20df0 3e 20 6d 75 73 74 20 65 78 61 63 74 6c 79 20 6d  > must exactly m
20e00 61 74 63 68 20 74 68 65 20 43 6f 76 65 72 61 67  atch the Coverag
20e10 65 27 73 20 62 61 73 65 20 72 65 73 6f 6c 75 74  e's base resolut
20e20 69 6f 6e 20 6f 72 20 6f 6e 65 20 6f 66 20 74 68  ion or one of th
20e30 65 20 72 65 73 6f 6c 75 74 69 6f 6e 73 20 6d 61  e resolutions ma
20e40 64 65 20 61 76 61 69 6c 61 62 6c 65 20 62 79 20  de available by 
20e50 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e  the correspondin
20e60 67 20 50 79 72 61 6d 69 64 20 6c 65 76 65 6c 73  g Pyramid levels
20e70 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 61 6e 64 20 74  .</li>.<li>and t
20e80 68 65 20 42 6f 75 6e 64 69 6e 67 42 6f 78 20 6d  he BoundingBox m
20e90 75 73 74 20 65 78 61 63 74 6c 79 20 6d 61 74 63  ust exactly matc
20ea0 68 20 74 68 65 20 54 49 46 46 20 3c 62 3e 3c 69  h the TIFF <b><i
20eb0 3e 77 69 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20 61  >width</i></b> a
20ec0 6e 64 20 3c 62 3e 3c 69 3e 68 65 69 67 68 74 3c  nd <b><i>height<
20ed0 2f 69 3e 3c 2f 62 3e 20 64 69 6d 65 6e 73 69 6f  /i></b> dimensio
20ee0 6e 73 20 61 74 20 74 68 61 74 20 72 65 73 6f 6c  ns at that resol
20ef0 75 74 69 6f 6e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e  ution.</li>.<li>
20f00 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67  the optional arg
20f10 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e 74 69 66 66  ument <b><i>tiff
20f20 43 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c  Compression</i><
20f30 2f 62 3e 20 63 6f 75 6c 64 20 62 65 20 6f 6e 65  /b> could be one
20f40 20 6f 66 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62   of <b>'NONE'</b
20f50 3e 2c 20 3c 62 3e 27 44 45 46 4c 41 54 45 27 3c  >, <b>'DEFLATE'<
20f60 2f 62 3e 2c 20 3c 62 3e 27 4c 5a 57 27 3c 2f 62  /b>, <b>'LZW'</b
20f70 3e 2c 20 3c 62 3e 27 4a 50 45 47 27 3c 2f 62 3e  >, <b>'JPEG'</b>
20f80 2c 20 3c 62 3e 27 46 41 58 33 27 3c 2f 62 3e 20  , <b>'FAX3'</b> 
20f90 6f 72 20 3c 62 3e 27 46 41 58 34 27 3c 2f 62 3e  or <b>'FAX4'</b>
20fa0 3b 20 64 65 66 61 75 6c 74 20 69 73 20 3c 62 3e  ; default is <b>
20fb0 27 4e 4f 4e 45 27 3c 2f 62 3e 2e 3c 2f 6c 69 3e  'NONE'</b>.</li>
20fc0 0a 3c 6c 69 3e 74 68 65 20 6c 61 73 74 20 6f 70  .<li>the last op
20fd0 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20  tional argument 
20fe0 63 61 6e 20 62 65 20 75 73 65 64 20 73 6f 20 74  can be used so t
20ff0 6f 20 73 70 65 63 69 66 79 20 74 68 65 20 70 72  o specify the pr
21000 65 66 65 72 72 65 64 20 54 49 46 46 20 74 69 6c  eferred TIFF til
21010 65 20 73 69 7a 65 20 28 6f 6e 6c 79 20 73 71 75  e size (only squ
21020 61 72 65 20 74 69 6c 65 73 20 61 72 65 20 73 75  are tiles are su
21030 70 70 6f 72 74 65 64 29 3b 20 64 65 66 61 75 6c  pported); defaul
21040 74 20 69 73 20 3c 62 3e 32 35 36 3c 2f 62 3e 2e  t is <b>256</b>.
21050 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61 62  </li>.</ul>.<tab
21060 6c 65 20 77 69 64 74 68 3d 22 31 30 30 25 22 20  le width="100%" 
21070 62 67 63 6f 6c 6f 72 3d 22 23 66 66 64 30 38 30  bgcolor="#ffd080
21080 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36  " cellpadding="6
21090 22 3e 3c 74 72 3e 3c 74 64 3e 0a 3c 75 3e 50 6c  "><tr><td>.<u>Pl
210a0 65 61 73 65 20 6e 6f 74 65 20 76 65 72 79 20 77  ease note very w
210b0 65 6c 6c 3c 2f 75 3e 3a 20 74 68 69 73 20 53 51  ell</u>: this SQ
210c0 4c 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 6f 6e  L function is on
210d0 6c 79 20 61 76 61 69 6c 61 62 6c 65 20 77 68 65  ly available whe
210e0 6e 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e  n the environmen
210f0 74 20 76 61 72 69 61 62 6c 65 20 3c 62 3e 53 50  t variable <b>SP
21100 41 54 49 41 4c 49 54 45 5f 53 45 43 55 52 49 54  ATIALITE_SECURIT
21110 59 3d 72 65 6c 61 78 65 64 3c 2f 62 3e 20 69 73  Y=relaxed</b> is
21120 20 73 65 74 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c   set.</td></tr><
21130 2f 74 61 62 6c 65 3e 3c 2f 74 64 3e 0a 3c 2f 74  /table></td>.</t
21140 72 3e 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c  r>.<tr><td><b>RL
21150 32 5f 57 72 69 74 65 53 65 63 74 69 6f 6e 54 72  2_WriteSectionTr
21160 69 70 6c 65 42 61 6e 64 54 69 66 66 3c 2f 62 3e  ipleBandTiff</b>
21170 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f   ( <b>dbPrefix</
21180 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
21190 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   , <b>coverageNa
211a0 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
211b0 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f  </i> , <b>sectio
211c0 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  nID</b> <i>Integ
211d0 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65  er</i> , <b>file
211e0 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Path</b> <i>Stri
211f0 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74  ng</i> , <b>widt
21200 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  h</b> <i>Integer
21210 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74  </i> , <b>height
21220 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
21230 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64  /i> , <b>bandInd
21240 65 78 52 65 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74  exRed</b> <i>Int
21250 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61  eger</i> , <b>ba
21260 6e 64 49 6e 64 65 78 47 72 65 65 6e 3c 2f 62 3e  ndIndexGreen</b>
21270 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
21280 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 42 6c  , <b>bandIndexBl
21290 75 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ue</b> <i>Intege
212a0 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64  r</i> , <b>bound
212b0 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c  ingBox</b> <i>BL
212c0 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20  OB-Geometry</i> 
212d0 2c 20 3c 62 3e 70 69 78 65 6c 52 65 73 6f 6c 75  , <b>pixelResolu
212e0 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62  tion</b> <i>Doub
212f0 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e  le</i> ) : <i>In
21300 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72  teger</i><br><br
21310 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 53 65  >.<b>RL2_WriteSe
21320 63 74 69 6f 6e 54 72 69 70 6c 65 42 61 6e 64 54  ctionTripleBandT
21330 69 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50  iff</b> ( <b>dbP
21340 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72  refix</b> <i>Str
21350 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76  ing</i> , <b>cov
21360 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69  erageName</b> <i
21370 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
21380 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c  >sectionID</b> <
21390 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
213a0 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20  <b>filePath</b> 
213b0 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
213c0 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e  <b>width</b> <i>
213d0 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
213e0 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49  >height</b> <i>I
213f0 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
21400 62 61 6e 64 49 6e 64 65 78 52 65 64 3c 2f 62 3e  bandIndexRed</b>
21410 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
21420 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47 72  , <b>bandIndexGr
21430 65 65 6e 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  een</b> <i>Integ
21440 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64  er</i> , <b>band
21450 49 6e 64 65 78 42 6c 75 65 3c 2f 62 3e 20 3c 69  IndexBlue</b> <i
21460 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20  >Integer</i>  , 
21470 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f  <b>boundingBox</
21480 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65  b> <i>BLOB-Geome
21490 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72  try</i> , <b>hor
214a0 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  zPixelResolution
214b0 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f  </b> <i>Double</
214c0 69 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65  i> , <b>vertPixe
214d0 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20  lResolution</b> 
214e0 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20  <i>Double</i> ) 
214f0 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  : <i>Integer</i>
21500 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f  <br><br>.<b>RL2_
21510 57 72 69 74 65 53 65 63 74 69 6f 6e 54 72 69 70  WriteSectionTrip
21520 6c 65 42 61 6e 64 54 69 66 66 3c 2f 62 3e 20 28  leBandTiff</b> (
21530 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e   <b>dbPrefix</b>
21540 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
21550 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65   <b>coverageName
21560 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
21570 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49  i> , <b>sectionI
21580 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  D</b> <i>Integer
21590 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61  </i> , <b>filePa
215a0 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  th</b> <i>String
215b0 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c  </i> , <b>width<
215c0 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
215d0 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f  i> , <b>height</
215e0 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
215f0 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78  > , <b>bandIndex
21600 52 65 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  Red</b> <i>Integ
21610 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64  er</i> , <b>band
21620 49 6e 64 65 78 47 72 65 65 6e 3c 2f 62 3e 20 3c  IndexGreen</b> <
21630 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
21640 3c 62 3e 62 61 6e 64 49 6e 64 65 78 42 6c 75 65  <b>bandIndexBlue
21650 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
21660 2f 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69  /i>  , <b>boundi
21670 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f  ngBox</b> <i>BLO
21680 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c  B-Geometry</i> ,
21690 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73   <b>horzPixelRes
216a0 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44  olution</b> <i>D
216b0 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76  ouble</i> , <b>v
216c0 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69  ertPixelResoluti
216d0 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65  on</b> <i>Double
216e0 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 66 66 43 6f  </i> , <b>tiffCo
216f0 6d 70 72 65 73 73 69 6f 6e 3c 2f 62 3e 20 3c 69  mpression</b> <i
21700 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 29 20 3a 20  >String</i> ) : 
21710 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62  <i>Integer</i><b
21720 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72  r><br>.<b>RL2_Wr
21730 69 74 65 53 65 63 74 69 6f 6e 54 72 69 70 6c 65  iteSectionTriple
21740 42 61 6e 64 54 69 66 66 3c 2f 62 3e 20 28 20 3c  BandTiff</b> ( <
21750 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c  b>dbPrefix</b> <
21760 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
21770 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f  b>coverageName</
21780 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
21790 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c   , <b>sectionID<
217a0 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
217b0 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68  i> , <b>filePath
217c0 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
217d0 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62  i> , <b>width</b
217e0 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
217f0 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e   , <b>height</b>
21800 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
21810 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 52 65  , <b>bandIndexRe
21820 64 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  d</b> <i>Integer
21830 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e  </i> , <b>bandIn
21840 64 65 78 47 72 65 65 6e 3c 2f 62 3e 20 3c 69 3e  dexGreen</b> <i>
21850 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
21860 3e 62 61 6e 64 49 6e 64 65 78 42 6c 75 65 3c 2f  >bandIndexBlue</
21870 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
21880 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67  >  , <b>bounding
21890 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d  Box</b> <i>BLOB-
218a0 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c  Geometry</i> , <
218b0 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c  b>horzPixelResol
218c0 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75  ution</b> <i>Dou
218d0 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72  ble</i> , <b>ver
218e0 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  tPixelResolution
218f0 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f  </b> <i>Double</
21900 69 3e 20 2c 20 3c 62 3e 74 69 66 66 43 6f 6d 70  i> , <b>tiffComp
21910 72 65 73 73 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53  ression</b> <i>S
21920 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74  tring</i> , <b>t
21930 69 66 66 54 69 6c 65 53 69 7a 65 3c 2f 62 3e 20  iffTileSize</b> 
21940 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29  <i>Integer</i> )
21950 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69   : <i>Integer</i
21960 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20  ></td>.<td>Will 
21970 61 74 74 65 6d 70 74 20 74 6f 20 65 78 70 6f 72  attempt to expor
21980 74 20 72 61 77 20 72 61 73 74 65 72 20 64 61 74  t raw raster dat
21990 61 20 66 72 6f 6d 20 61 20 4d 55 4c 54 49 42 41  a from a MULTIBA
219a0 4e 44 20 6f 72 20 52 47 42 20 43 6f 76 65 72 61  ND or RGB Covera
219b0 67 65 20 69 6e 74 6f 20 61 6e 20 65 78 74 65 72  ge into an exter
219c0 6e 61 6c 20 70 6c 61 69 6e 20 54 49 46 46 20 66  nal plain TIFF f
219d0 69 6c 65 20 6f 66 20 74 68 65 20 52 47 42 20 74  ile of the RGB t
219e0 79 70 65 3b 20 6f 6e 6c 79 20 74 68 65 20 54 69  ype; only the Ti
219f0 6c 65 73 20 64 69 72 65 63 74 6c 79 20 62 65 6c  les directly bel
21a00 6f 6e 67 69 6e 67 20 74 6f 20 74 68 65 20 73 65  onging to the se
21a10 6c 65 63 74 65 64 20 53 65 63 74 69 6f 6e 20 77  lected Section w
21a20 69 6c 6c 20 62 65 20 63 6f 6e 73 69 64 65 72 65  ill be considere
21a30 64 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75  d.<br>.Will retu
21a40 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20 28 54 52 55  rn <b>1</b> (TRU
21a50 45 2f 53 55 43 43 45 53 53 29 20 6f 72 20 3c 62  E/SUCCESS) or <b
21a60 3e 30 3c 2f 62 3e 20 28 46 41 4c 53 45 2f 46 41  >0</b> (FALSE/FA
21a70 49 4c 55 52 45 29 3a 20 6f 72 20 3c 62 3e 2d 31  ILURE): or <b>-1
21a80 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20  </b> on invalid 
21a90 61 72 67 75 6d 65 6e 74 73 2e 3c 62 72 3e 0a 3c  arguments.<br>.<
21aa0 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75  u>Please note</u
21ab0 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69 3e 54 68 65  >: .<ul>.<li>The
21ac0 20 3c 62 3e 3c 69 3e 64 62 50 72 65 66 69 78 3c   <b><i>dbPrefix<
21ad0 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74  /i></b> argument
21ae0 20 69 73 20 69 6e 74 65 6e 64 65 64 20 74 6f 20   is intended to 
21af0 73 70 65 63 69 66 79 20 74 68 65 20 41 54 54 41  specify the ATTA
21b00 43 48 45 44 2d 44 42 20 77 68 65 72 65 20 74 68  CHED-DB where th
21b10 65 20 43 6f 76 65 72 61 67 65 20 69 73 20 65 78  e Coverage is ex
21b20 70 65 63 74 65 64 20 74 6f 20 62 65 20 66 6f 75  pected to be fou
21b30 6e 64 3b 20 69 74 20 63 6f 75 6c 64 20 62 65 20  nd; it could be 
21b40 65 76 65 6e 74 75 61 6c 6c 79 20 3c 62 3e 4e 55  eventually <b>NU
21b50 4c 4c 3c 2f 62 3e 2c 20 61 6e 64 20 69 6e 20 74  LL</b>, and in t
21b60 68 69 73 20 63 61 73 65 20 74 68 65 20 3c 62 3e  his case the <b>
21b70 4d 41 49 4e 20 44 42 3c 2f 62 3e 20 77 69 6c 6c  MAIN DB</b> will
21b80 20 69 6d 70 6c 69 63 69 74 6c 79 20 62 65 20 61   implicitly be a
21b90 73 73 75 6d 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69  ssumed.</li>.<li
21ba0 3e 74 68 65 20 3c 62 3e 3c 69 3e 62 61 6e 64 49  >the <b><i>bandI
21bb0 6e 64 65 78 52 65 64 3c 2f 62 3e 3c 2f 69 3e 2c  ndexRed</b></i>,
21bc0 20 3c 62 3e 3c 69 3e 62 61 6e 64 49 6e 64 65 78   <b><i>bandIndex
21bd0 47 72 65 65 6e 3c 2f 69 3e 3c 2f 62 3e 20 61 6e  Green</i></b> an
21be0 64 20 3c 62 3e 3c 69 3e 62 61 6e 64 49 6e 64 65  d <b><i>bandInde
21bf0 78 42 6c 75 65 3c 2f 69 3e 3c 2f 62 3e 20 61 72  xBlue</i></b> ar
21c00 67 75 6d 65 6e 74 73 20 61 72 65 20 69 6e 74 65  guments are inte
21c10 6e 64 65 64 20 74 6f 20 61 72 62 69 74 72 61 72  nded to arbitrar
21c20 69 6c 79 20 63 6f 6d 70 6f 73 65 20 74 68 65 20  ily compose the 
21c30 52 47 42 20 54 49 46 46 20 73 74 61 72 74 69 6e  RGB TIFF startin
21c40 67 20 66 72 6f 6d 20 74 68 65 20 42 61 6e 64 73  g from the Bands
21c50 20 73 75 70 70 6f 72 74 65 64 20 62 79 20 74 68   supported by th
21c60 65 20 43 6f 76 65 72 61 67 65 2e 0a 3c 62 72 3e  e Coverage..<br>
21c70 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f  <u>Please note</
21c80 75 3e 3a 20 74 68 65 20 66 69 72 73 74 20 42 61  u>: the first Ba
21c90 6e 64 20 61 6c 77 61 79 73 20 63 6f 72 72 65 73  nd always corres
21ca0 70 6f 6e 64 73 20 74 6f 20 69 6e 64 65 78 20 3c  ponds to index <
21cb0 62 3e 5a 45 52 4f 3c 2f 62 3e 3c 2f 6c 69 3e 0a  b>ZERO</b></li>.
21cc0 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 62 6f  <li>the <b><i>bo
21cd0 75 6e 64 69 6e 67 42 6f 78 3c 2f 69 3e 3c 2f 62  undingBox</i></b
21ce0 3e 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f  > is expected to
21cf0 20 72 65 70 72 65 73 65 6e 74 20 74 68 65 20 6f   represent the o
21d00 76 65 72 61 6c 6c 20 65 78 74 65 6e 74 20 6f 66  verall extent of
21d10 20 74 68 65 20 65 78 70 6f 72 74 65 64 20 54 49   the exported TI
21d20 46 46 3b 20 79 6f 75 20 63 6f 75 6c 64 20 65 76  FF; you could ev
21d30 65 6e 74 75 61 6c 6c 79 20 70 61 73 73 20 61 6e  entually pass an
21d40 79 20 61 72 62 69 74 72 61 72 79 20 6b 69 6e 64  y arbitrary kind
21d50 20 6f 66 20 47 65 6f 6d 65 74 72 79 2c 20 61 6e   of Geometry, an
21d60 64 20 74 68 65 20 42 6f 75 6e 64 69 6e 67 20 42  d the Bounding B
21d70 6f 78 20 61 6b 61 20 4d 42 52 20 77 69 6c 6c 20  ox aka MBR will 
21d80 62 65 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79  be automatically
21d90 20 64 65 74 65 72 6d 69 6e 65 64 2e 3c 2f 6c 69   determined.</li
21da0 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e  >.<li>the <b><i>
21db0 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75 74  horzPixelResolut
21dc0 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20  ion</i></b> and 
21dd0 3c 62 3e 3c 69 3e 76 65 72 74 50 69 78 65 6c 52  <b><i>vertPixelR
21de0 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62  esolution</i></b
21df0 3e 20 6d 75 73 74 20 65 78 61 63 74 6c 79 20 6d  > must exactly m
21e00 61 74 63 68 20 74 68 65 20 43 6f 76 65 72 61 67  atch the Coverag
21e10 65 27 73 20 62 61 73 65 20 72 65 73 6f 6c 75 74  e's base resolut
21e20 69 6f 6e 20 6f 72 20 6f 6e 65 20 6f 66 20 74 68  ion or one of th
21e30 65 20 72 65 73 6f 6c 75 74 69 6f 6e 73 20 6d 61  e resolutions ma
21e40 64 65 20 61 76 61 69 6c 61 62 6c 65 20 62 79 20  de available by 
21e50 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e  the correspondin
21e60 67 20 50 79 72 61 6d 69 64 20 6c 65 76 65 6c 73  g Pyramid levels
21e70 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 61 6e 64 20 74  .</li>.<li>and t
21e80 68 65 20 42 6f 75 6e 64 69 6e 67 42 6f 78 20 6d  he BoundingBox m
21e90 75 73 74 20 65 78 61 63 74 6c 79 20 6d 61 74 63  ust exactly matc
21ea0 68 20 74 68 65 20 54 49 46 46 20 3c 62 3e 3c 69  h the TIFF <b><i
21eb0 3e 77 69 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20 61  >width</i></b> a
21ec0 6e 64 20 3c 62 3e 3c 69 3e 68 65 69 67 68 74 3c  nd <b><i>height<
21ed0 2f 69 3e 3c 2f 62 3e 20 64 69 6d 65 6e 73 69 6f  /i></b> dimensio
21ee0 6e 73 20 61 74 20 74 68 61 74 20 72 65 73 6f 6c  ns at that resol
21ef0 75 74 69 6f 6e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e  ution.</li>.<li>
21f00 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67  the optional arg
21f10 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e 74 69 66 66  ument <b><i>tiff
21f20 43 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c  Compression</i><
21f30 2f 62 3e 20 63 6f 75 6c 64 20 62 65 20 6f 6e 65  /b> could be one
21f40 20 6f 66 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62   of <b>'NONE'</b
21f50 3e 2c 20 3c 62 3e 27 44 45 46 4c 41 54 45 27 3c  >, <b>'DEFLATE'<
21f60 2f 62 3e 2c 20 3c 62 3e 27 4c 5a 57 27 3c 2f 62  /b>, <b>'LZW'</b
21f70 3e 2c 20 3c 62 3e 27 4a 50 45 47 27 3c 2f 62 3e  >, <b>'JPEG'</b>
21f80 2c 20 3c 62 3e 27 46 41 58 33 27 3c 2f 62 3e 20  , <b>'FAX3'</b> 
21f90 6f 72 20 3c 62 3e 27 46 41 58 34 27 3c 2f 62 3e  or <b>'FAX4'</b>
21fa0 3b 20 64 65 66 61 75 6c 74 20 69 73 20 3c 62 3e  ; default is <b>
21fb0 27 4e 4f 4e 45 27 3c 2f 62 3e 2e 3c 2f 6c 69 3e  'NONE'</b>.</li>
21fc0 0a 3c 6c 69 3e 74 68 65 20 6c 61 73 74 20 6f 70  .<li>the last op
21fd0 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20  tional argument 
21fe0 63 61 6e 20 62 65 20 75 73 65 64 20 73 6f 20 74  can be used so t
21ff0 6f 20 73 70 65 63 69 66 79 20 74 68 65 20 70 72  o specify the pr
22000 65 66 65 72 72 65 64 20 54 49 46 46 20 74 69 6c  eferred TIFF til
22010 65 20 73 69 7a 65 20 28 6f 6e 6c 79 20 73 71 75  e size (only squ
22020 61 72 65 20 74 69 6c 65 73 20 61 72 65 20 73 75  are tiles are su
22030 70 70 6f 72 74 65 64 29 3b 20 64 65 66 61 75 6c  pported); defaul
22040 74 20 69 73 20 3c 62 3e 32 35 36 3c 2f 62 3e 2e  t is <b>256</b>.
22050 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61 62  </li>.</ul>.<tab
22060 6c 65 20 77 69 64 74 68 3d 22 31 30 30 25 22 20  le width="100%" 
22070 62 67 63 6f 6c 6f 72 3d 22 23 66 66 64 30 38 30  bgcolor="#ffd080
22080 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36  " cellpadding="6
22090 22 3e 3c 74 72 3e 3c 74 64 3e 0a 3c 75 3e 50 6c  "><tr><td>.<u>Pl
220a0 65 61 73 65 20 6e 6f 74 65 20 76 65 72 79 20 77  ease note very w
220b0 65 6c 6c 3c 2f 75 3e 3a 20 74 68 69 73 20 53 51  ell</u>: this SQ
220c0 4c 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 6f 6e  L function is on
220d0 6c 79 20 61 76 61 69 6c 61 62 6c 65 20 77 68 65  ly available whe
220e0 6e 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e  n the environmen
220f0 74 20 76 61 72 69 61 62 6c 65 20 3c 62 3e 53 50  t variable <b>SP
22100 41 54 49 41 4c 49 54 45 5f 53 45 43 55 52 49 54  ATIALITE_SECURIT
22110 59 3d 72 65 6c 61 78 65 64 3c 2f 62 3e 20 69 73  Y=relaxed</b> is
22120 20 73 65 74 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c   set.</td></tr><
22130 2f 74 61 62 6c 65 3e 3c 2f 74 64 3e 0a 3c 2f 74  /table></td>.</t
22140 72 3e 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c  r>.<tr><td><b>RL
22150 32 5f 57 72 69 74 65 53 65 63 74 69 6f 6e 4d 6f  2_WriteSectionMo
22160 6e 6f 42 61 6e 64 47 65 6f 54 69 66 66 3c 2f 62  noBandGeoTiff</b
22170 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c  > ( <b>dbPrefix<
22180 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
22190 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e  > , <b>coverageN
221a0 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e  ame</b> <i>Strin
221b0 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69  g</i> , <b>secti
221c0 6f 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  onID</b> <i>Inte
221d0 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c  ger</i> , <b>fil
221e0 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72  ePath</b> <i>Str
221f0 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64  ing</i> , <b>wid
22200 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  th</b> <i>Intege
22210 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68  r</i> , <b>heigh
22220 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  t</b> <i>Integer
22230 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e  </i> , <b>bandIn
22240 64 65 78 47 72 61 79 3c 2f 62 3e 20 3c 69 3e 49  dexGray</b> <i>I
22250 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
22260 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20  boundingBox</b> 
22270 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79  <i>BLOB-Geometry
22280 3c 2f 69 3e 20 2c 20 3c 62 3e 70 69 78 65 6c 52  </i> , <b>pixelR
22290 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69  esolution</b> <i
222a0 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20  >Double</i> ) : 
222b0 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62  <i>Integer</i><b
222c0 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72  r><br>.<b>RL2_Wr
222d0 69 74 65 53 65 63 74 69 6f 6e 4d 6f 6e 6f 42 61  iteSectionMonoBa
222e0 6e 64 47 65 6f 54 69 66 66 3c 2f 62 3e 20 28 20  ndGeoTiff</b> ( 
222f0 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20  <b>dbPrefix</b> 
22300 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
22310 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
22320 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
22330 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44  > , <b>sectionID
22340 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
22350 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74  /i> , <b>filePat
22360 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  h</b> <i>String<
22370 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f  /i> , <b>width</
22380 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
22390 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62  > , <b>height</b
223a0 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
223b0 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47   , <b>bandIndexG
223c0 72 61 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  ray</b> <i>Integ
223d0 65 72 3c 2f 69 3e 20 20 2c 20 3c 62 3e 62 6f 75  er</i>  , <b>bou
223e0 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e  ndingBox</b> <i>
223f0 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69  BLOB-Geometry</i
22400 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c  > , <b>horzPixel
22410 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
22420 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c  i>Double</i> , <
22430 62 3e 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c  b>vertPixelResol
22440 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75  ution</b> <i>Dou
22450 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49  ble</i> ) : <i>I
22460 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62  nteger</i><br><b
22470 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 53  r>.<b>RL2_WriteS
22480 65 63 74 69 6f 6e 4d 6f 6e 6f 42 61 6e 64 47 65  ectionMonoBandGe
22490 6f 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64  oTiff</b> ( <b>d
224a0 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53  bPrefix</b> <i>S
224b0 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63  tring</i> , <b>c
224c0 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20  overageName</b> 
224d0 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
224e0 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e  <b>sectionID</b>
224f0 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
22500 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62  , <b>filePath</b
22510 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
22520 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c  , <b>width</b> <
22530 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
22540 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69  <b>height</b> <i
22550 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
22560 62 3e 62 61 6e 64 49 6e 64 65 78 47 72 61 79 3c  b>bandIndexGray<
22570 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
22580 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e  i>  , <b>boundin
22590 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42  gBox</b> <i>BLOB
225a0 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20  -Geometry</i> , 
225b0 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f  <b>horzPixelReso
225c0 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f  lution</b> <i>Do
225d0 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65  uble</i> , <b>ve
225e0 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rtPixelResolutio
225f0 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c  n</b> <i>Double<
22600 2f 69 3e 20 2c 20 3c 62 3e 77 69 74 68 57 6f 6c  /i> , <b>withWol
22610 64 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74  dFile</b> <i>Int
22620 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e  eger</i> ) : <i>
22630 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c  Integer</i><br><
22640 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65  br>.<b>RL2_Write
22650 53 65 63 74 69 6f 6e 4d 6f 6e 6f 42 61 6e 64 47  SectionMonoBandG
22660 65 6f 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62 3e  eoTiff</b> ( <b>
22670 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e  dbPrefix</b> <i>
22680 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
22690 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e  coverageName</b>
226a0 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
226b0 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62   <b>sectionID</b
226c0 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
226d0 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f   , <b>filePath</
226e0 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
226f0 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20   , <b>width</b> 
22700 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
22710 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c   <b>height</b> <
22720 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
22730 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47 72 61 79  <b>bandIndexGray
22740 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
22750 2f 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69  /i>  , <b>boundi
22760 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f  ngBox</b> <i>BLO
22770 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c  B-Geometry</i> ,
22780 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73   <b>horzPixelRes
22790 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44  olution</b> <i>D
227a0 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76  ouble</i> , <b>v
227b0 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69  ertPixelResoluti
227c0 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65  on</b> <i>Double
227d0 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 74 68 57 6f  </i> , <b>withWo
227e0 6c 64 46 69 6c 65 3c 2f 62 3e 20 3c 69 3e 49 6e  ldFile</b> <i>In
227f0 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 74  teger</i> , <b>t
22800 69 66 66 43 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f  iffCompression</
22810 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
22820 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c   ) : <i>Integer<
22830 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52  /i><br><br>.<b>R
22840 4c 32 5f 57 72 69 74 65 53 65 63 74 69 6f 6e 4d  L2_WriteSectionM
22850 6f 6e 6f 42 61 6e 64 47 65 6f 54 69 66 66 3c 2f  onoBandGeoTiff</
22860 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78  b> ( <b>dbPrefix
22870 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
22880 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65  i> , <b>coverage
22890 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Name</b> <i>Stri
228a0 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74  ng</i> , <b>sect
228b0 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74  ionID</b> <i>Int
228c0 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69  eger</i> , <b>fi
228d0 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74  lePath</b> <i>St
228e0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69  ring</i> , <b>wi
228f0 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  dth</b> <i>Integ
22900 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67  er</i> , <b>heig
22910 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
22920 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49  r</i> , <b>bandI
22930 6e 64 65 78 47 72 61 79 3c 2f 62 3e 20 3c 69 3e  ndexGray</b> <i>
22940 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c  Integer</i>  , <
22950 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
22960 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
22970 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a  ry</i> , <b>horz
22980 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
22990 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
229a0 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c  > , <b>vertPixel
229b0 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
229c0 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c  i>Double</i> , <
229d0 62 3e 77 69 74 68 57 6f 6c 64 46 69 6c 65 3c 2f  b>withWoldFile</
229e0 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
229f0 3e 20 2c 20 3c 62 3e 74 69 66 66 43 6f 6d 70 72  > , <b>tiffCompr
22a00 65 73 73 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53 74  ession</b> <i>St
22a10 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69  ring</i> , <b>ti
22a20 66 66 54 69 6c 65 53 69 7a 65 3c 2f 62 3e 20 3c  ffTileSize</b> <
22a30 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20  i>Integer</i> ) 
22a40 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  : <i>Integer</i>
22a50 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61  </td>.<td>Will a
22a60 74 74 65 6d 70 74 20 74 6f 20 65 78 70 6f 72 74  ttempt to export
22a70 20 72 61 77 20 72 61 73 74 65 72 20 64 61 74 61   raw raster data
22a80 20 66 72 6f 6d 20 61 20 4d 55 4c 54 49 42 41 4e   from a MULTIBAN
22a90 44 20 6f 72 20 52 47 42 20 43 6f 76 65 72 61 67  D or RGB Coverag
22aa0 65 20 69 6e 74 6f 20 61 6e 20 65 78 74 65 72 6e  e into an extern
22ab0 61 6c 20 47 65 6f 54 49 46 46 20 66 69 6c 65 20  al GeoTIFF file 
22ac0 6f 66 20 74 68 65 20 47 72 61 79 73 63 61 6c 65  of the Grayscale
22ad0 20 74 79 70 65 3b 20 6f 6e 6c 79 20 74 68 65 20   type; only the 
22ae0 54 69 6c 65 73 20 64 69 72 65 63 74 6c 79 20 62  Tiles directly b
22af0 65 6c 6f 6e 67 69 6e 67 20 74 6f 20 74 68 65 20  elonging to the 
22b00 73 65 6c 65 63 74 65 64 20 53 65 63 74 69 6f 6e  selected Section
22b10 20 77 69 6c 6c 20 62 65 20 63 6f 6e 73 69 64 65   will be conside
22b20 72 65 64 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65  red.<br>.Will re
22b30 74 75 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20 28 54  turn <b>1</b> (T
22b40 52 55 45 2f 53 55 43 43 45 53 53 29 20 6f 72 20  RUE/SUCCESS) or 
22b50 3c 62 3e 30 3c 2f 62 3e 20 28 46 41 4c 53 45 2f  <b>0</b> (FALSE/
22b60 46 41 49 4c 55 52 45 29 3a 20 6f 72 20 3c 62 3e  FAILURE): or <b>
22b70 2d 31 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69  -1</b> on invali
22b80 64 20 61 72 67 75 6d 65 6e 74 73 2e 3c 62 72 3e  d arguments.<br>
22b90 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c  .<u>Please note<
22ba0 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69 3e 54  /u>: .<ul>.<li>T
22bb0 68 65 20 3c 62 3e 3c 69 3e 64 62 50 72 65 66 69  he <b><i>dbPrefi
22bc0 78 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65  x</i></b> argume
22bd0 6e 74 20 69 73 20 69 6e 74 65 6e 64 65 64 20 74  nt is intended t
22be0 6f 20 73 70 65 63 69 66 79 20 74 68 65 20 41 54  o specify the AT
22bf0 54 41 43 48 45 44 2d 44 42 20 77 68 65 72 65 20  TACHED-DB where 
22c00 74 68 65 20 43 6f 76 65 72 61 67 65 20 69 73 20  the Coverage is 
22c10 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 66  expected to be f
22c20 6f 75 6e 64 3b 20 69 74 20 63 6f 75 6c 64 20 62  ound; it could b
22c30 65 20 65 76 65 6e 74 75 61 6c 6c 79 20 3c 62 3e  e eventually <b>
22c40 4e 55 4c 4c 3c 2f 62 3e 2c 20 61 6e 64 20 69 6e  NULL</b>, and in
22c50 20 74 68 69 73 20 63 61 73 65 20 74 68 65 20 3c   this case the <
22c60 62 3e 4d 41 49 4e 20 44 42 3c 2f 62 3e 20 77 69  b>MAIN DB</b> wi
22c70 6c 6c 20 69 6d 70 6c 69 63 69 74 6c 79 20 62 65  ll implicitly be
22c80 20 61 73 73 75 6d 65 64 2e 3c 2f 6c 69 3e 0a 3c   assumed.</li>.<
22c90 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 62 61 6e  li>the <b><i>ban
22ca0 64 49 6e 64 65 78 47 72 61 79 3c 2f 69 3e 3c 2f  dIndexGray</i></
22cb0 62 3e 20 61 72 67 75 6d 65 6e 74 20 69 73 20 69  b> argument is i
22cc0 6e 74 65 6e 64 65 64 20 74 6f 20 61 72 62 69 74  ntended to arbit
22cd0 72 61 72 69 6c 79 20 63 6f 6d 70 6f 73 65 20 74  rarily compose t
22ce0 68 65 20 47 72 61 79 73 63 61 6c 65 20 54 49 46  he Grayscale TIF
22cf0 46 20 73 74 61 72 74 69 6e 67 20 66 72 6f 6d 20  F starting from 
22d00 74 68 65 20 42 61 6e 64 73 20 73 75 70 70 6f 72  the Bands suppor
22d10 74 65 64 20 62 79 20 74 68 65 20 43 6f 76 65 72  ted by the Cover
22d20 61 67 65 2e 0a 3c 62 72 3e 3c 75 3e 50 6c 65 61  age..<br><u>Plea
22d30 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 74 68 65  se note</u>: the
22d40 20 66 69 72 73 74 20 42 61 6e 64 20 61 6c 77 61   first Band alwa
22d50 79 73 20 63 6f 72 72 65 73 70 6f 6e 64 73 20 74  ys corresponds t
22d60 6f 20 69 6e 64 65 78 20 3c 62 3e 5a 45 52 4f 3c  o index <b>ZERO<
22d70 2f 62 3e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65  /b></li>.<li>the
22d80 20 3c 62 3e 3c 69 3e 62 6f 75 6e 64 69 6e 67 42   <b><i>boundingB
22d90 6f 78 3c 2f 69 3e 3c 2f 62 3e 20 69 73 20 65 78  ox</i></b> is ex
22da0 70 65 63 74 65 64 20 74 6f 20 72 65 70 72 65 73  pected to repres
22db0 65 6e 74 20 74 68 65 20 6f 76 65 72 61 6c 6c 20  ent the overall 
22dc0 65 78 74 65 6e 74 20 6f 66 20 74 68 65 20 65 78  extent of the ex
22dd0 70 6f 72 74 65 64 20 47 65 6f 54 49 46 46 3b 20  ported GeoTIFF; 
22de0 79 6f 75 20 63 6f 75 6c 64 20 65 76 65 6e 74 75  you could eventu
22df0 61 6c 6c 79 20 70 61 73 73 20 61 6e 79 20 61 72  ally pass any ar
22e00 62 69 74 72 61 72 79 20 6b 69 6e 64 20 6f 66 20  bitrary kind of 
22e10 47 65 6f 6d 65 74 72 79 2c 20 61 6e 64 20 74 68  Geometry, and th
22e20 65 20 42 6f 75 6e 64 69 6e 67 20 42 6f 78 20 61  e Bounding Box a
22e30 6b 61 20 4d 42 52 20 77 69 6c 6c 20 62 65 20 61  ka MBR will be a
22e40 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 64 65 74  utomatically det
22e50 65 72 6d 69 6e 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c  ermined.</li>.<l
22e60 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 68 6f 72 7a  i>the <b><i>horz
22e70 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
22e80 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c  /i></b> and <b><
22e90 69 3e 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c  i>vertPixelResol
22ea0 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 6d 75  ution</i></b> mu
22eb0 73 74 20 65 78 61 63 74 6c 79 20 6d 61 74 63 68  st exactly match
22ec0 20 74 68 65 20 43 6f 76 65 72 61 67 65 27 73 20   the Coverage's 
22ed0 62 61 73 65 20 72 65 73 6f 6c 75 74 69 6f 6e 20  base resolution 
22ee0 6f 72 20 6f 6e 65 20 6f 66 20 74 68 65 20 72 65  or one of the re
22ef0 73 6f 6c 75 74 69 6f 6e 73 20 6d 61 64 65 20 61  solutions made a
22f00 76 61 69 6c 61 62 6c 65 20 62 79 20 74 68 65 20  vailable by the 
22f10 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 50 79  corresponding Py
22f20 72 61 6d 69 64 20 6c 65 76 65 6c 73 2e 3c 2f 6c  ramid levels.</l
22f30 69 3e 0a 3c 6c 69 3e 61 6e 64 20 74 68 65 20 42  i>.<li>and the B
22f40 6f 75 6e 64 69 6e 67 42 6f 78 20 6d 75 73 74 20  oundingBox must 
22f50 65 78 61 63 74 6c 79 20 6d 61 74 63 68 20 74 68  exactly match th
22f60 65 20 54 49 46 46 20 3c 62 3e 3c 69 3e 77 69 64  e TIFF <b><i>wid
22f70 74 68 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20 3c  th</i></b> and <
22f80 62 3e 3c 69 3e 68 65 69 67 68 74 3c 2f 69 3e 3c  b><i>height</i><
22f90 2f 62 3e 20 64 69 6d 65 6e 73 69 6f 6e 73 20 61  /b> dimensions a
22fa0 74 20 74 68 61 74 20 72 65 73 6f 6c 75 74 69 6f  t that resolutio
22fb0 6e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 69 66 20 74  n.</li>.<li>if t
22fc0 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75  he optional argu
22fd0 6d 65 6e 74 20 3c 62 3e 3c 69 3e 77 69 74 68 57  ment <b><i>withW
22fe0 6f 72 6c 64 46 69 6c 65 3c 2f 69 3e 3c 2f 62 3e  orldFile</i></b>
22ff0 20 69 73 20 73 65 74 20 74 6f 20 54 52 55 45 20   is set to TRUE 
23000 74 68 65 6e 20 61 6e 20 61 75 78 69 6c 69 61 72  then an auxiliar
23010 79 20 57 6f 72 6c 64 46 69 6c 65 20 77 69 6c 6c  y WorldFile will
23020 20 62 65 20 65 78 70 6f 72 74 65 64 20 61 73 20   be exported as 
23030 77 65 6c 6c 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74  well.</li>.<li>t
23040 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75  he optional argu
23050 6d 65 6e 74 20 3c 62 3e 3c 69 3e 74 69 66 66 43  ment <b><i>tiffC
23060 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 69 3e 3c 2f  ompression</i></
23070 62 3e 20 63 6f 75 6c 64 20 62 65 20 6f 6e 65 20  b> could be one 
23080 6f 66 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62 3e  of <b>'NONE'</b>
23090 2c 20 3c 62 3e 27 44 45 46 4c 41 54 45 27 3c 2f  , <b>'DEFLATE'</
230a0 62 3e 2c 20 3c 62 3e 27 4c 5a 57 27 3c 2f 62 3e  b>, <b>'LZW'</b>
230b0 2c 20 3c 62 3e 27 4a 50 45 47 27 3c 2f 62 3e 2c  , <b>'JPEG'</b>,
230c0 20 3c 62 3e 27 46 41 58 33 27 3c 2f 62 3e 20 6f   <b>'FAX3'</b> o
230d0 72 20 3c 62 3e 27 46 41 58 34 27 3c 2f 62 3e 3b  r <b>'FAX4'</b>;
230e0 20 64 65 66 61 75 6c 74 20 69 73 20 3c 62 3e 27   default is <b>'
230f0 4e 4f 4e 45 27 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a  NONE'</b>.</li>.
23100 3c 6c 69 3e 74 68 65 20 6c 61 73 74 20 6f 70 74  <li>the last opt
23110 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 63  ional argument c
23120 61 6e 20 62 65 20 75 73 65 64 20 73 6f 20 74 6f  an be used so to
23130 20 73 70 65 63 69 66 79 20 74 68 65 20 70 72 65   specify the pre
23140 66 65 72 72 65 64 20 54 49 46 46 20 74 69 6c 65  ferred TIFF tile
23150 20 73 69 7a 65 20 28 6f 6e 6c 79 20 73 71 75 61   size (only squa
23160 72 65 20 74 69 6c 65 73 20 61 72 65 20 73 75 70  re tiles are sup
23170 70 6f 72 74 65 64 29 3b 20 64 65 66 61 75 6c 74  ported); default
23180 20 69 73 20 3c 62 3e 32 35 36 3c 2f 62 3e 2e 3c   is <b>256</b>.<
23190 2f 6c 69 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61 62 6c  /li>.</ul>.<tabl
231a0 65 20 77 69 64 74 68 3d 22 31 30 30 25 22 20 62  e width="100%" b
231b0 67 63 6f 6c 6f 72 3d 22 23 66 66 64 30 38 30 22  gcolor="#ffd080"
231c0 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36 22   cellpadding="6"
231d0 3e 3c 74 72 3e 3c 74 64 3e 0a 3c 75 3e 50 6c 65  ><tr><td>.<u>Ple
231e0 61 73 65 20 6e 6f 74 65 20 76 65 72 79 20 77 65  ase note very we
231f0 6c 6c 3c 2f 75 3e 3a 20 74 68 69 73 20 53 51 4c  ll</u>: this SQL
23200 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 6f 6e 6c   function is onl
23210 79 20 61 76 61 69 6c 61 62 6c 65 20 77 68 65 6e  y available when
23220 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74   the environment
23230 20 76 61 72 69 61 62 6c 65 20 3c 62 3e 53 50 41   variable <b>SPA
23240 54 49 41 4c 49 54 45 5f 53 45 43 55 52 49 54 59  TIALITE_SECURITY
23250 3d 72 65 6c 61 78 65 64 3c 2f 62 3e 20 69 73 20  =relaxed</b> is 
23260 73 65 74 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f  set.</td></tr></
23270 74 61 62 6c 65 3e 3c 2f 74 64 3e 0a 3c 2f 74 72  table></td>.</tr
23280 3e 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32  >.<tr><td><b>RL2
23290 5f 57 72 69 74 65 53 65 63 74 69 6f 6e 4d 6f 6e  _WriteSectionMon
232a0 6f 42 61 6e 64 54 69 66 66 54 46 57 3c 2f 62 3e  oBandTiffTFW</b>
232b0 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f   ( <b>dbPrefix</
232c0 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
232d0 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61   , <b>coverageNa
232e0 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  me</b> <i>String
232f0 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f  </i> , <b>sectio
23300 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  nID</b> <i>Integ
23310 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65  er</i> , <b>file
23320 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Path</b> <i>Stri
23330 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74  ng</i> , <b>widt
23340 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  h</b> <i>Integer
23350 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74  </i> , <b>height
23360 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
23370 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64  /i> , <b>bandInd
23380 65 78 47 72 61 79 3c 2f 62 3e 20 3c 69 3e 49 6e  exGray</b> <i>In
23390 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62  teger</i> , <b>b
233a0 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c  oundingBox</b> <
233b0 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c  i>BLOB-Geometry<
233c0 2f 69 3e 20 2c 20 3c 62 3e 70 69 78 65 6c 52 65  /i> , <b>pixelRe
233d0 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  solution</b> <i>
233e0 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c  Double</i> ) : <
233f0 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72  i>Integer</i><br
23400 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69  ><br>.<b>RL2_Wri
23410 74 65 53 65 63 74 69 6f 6e 4d 6f 6e 6f 42 61 6e  teSectionMonoBan
23420 64 54 69 66 66 54 46 57 3c 2f 62 3e 20 28 20 3c  dTiffTFW</b> ( <
23430 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c  b>dbPrefix</b> <
23440 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
23450 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f  b>coverageName</
23460 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
23470 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c   , <b>sectionID<
23480 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
23490 69 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68  i> , <b>filePath
234a0 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
234b0 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62  i> , <b>width</b
234c0 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
234d0 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e   , <b>height</b>
234e0 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
234f0 2c 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47 72  , <b>bandIndexGr
23500 61 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ay</b> <i>Intege
23510 72 3c 2f 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e  r</i>  , <b>boun
23520 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42  dingBox</b> <i>B
23530 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e  LOB-Geometry</i>
23540 20 2c 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52   , <b>horzPixelR
23550 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69  esolution</b> <i
23560 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62  >Double</i> , <b
23570 3e 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75  >vertPixelResolu
23580 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62  tion</b> <i>Doub
23590 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e  le</i> ) : <i>In
235a0 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72  teger</i><br><br
235b0 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 53 65  >.<b>RL2_WriteSe
235c0 63 74 69 6f 6e 4d 6f 6e 6f 42 61 6e 64 54 69 66  ctionMonoBandTif
235d0 66 54 46 57 3c 2f 62 3e 20 28 20 3c 62 3e 64 62  fTFW</b> ( <b>db
235e0 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74  Prefix</b> <i>St
235f0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f  ring</i> , <b>co
23600 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
23610 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
23620 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20  b>sectionID</b> 
23630 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
23640 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e   <b>filePath</b>
23650 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
23660 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69   <b>width</b> <i
23670 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
23680 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e  b>height</b> <i>
23690 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
236a0 3e 62 61 6e 64 49 6e 64 65 78 47 72 61 79 3c 2f  >bandIndexGray</
236b0 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
236c0 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67  >  , <b>bounding
236d0 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d  Box</b> <i>BLOB-
236e0 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c  Geometry</i> , <
236f0 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c  b>horzPixelResol
23700 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75  ution</b> <i>Dou
23710 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72  ble</i> , <b>ver
23720 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  tPixelResolution
23730 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f  </b> <i>Double</
23740 69 3e 20 2c 20 3c 62 3e 74 69 66 66 43 6f 6d 70  i> , <b>tiffComp
23750 72 65 73 73 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 53  ression</b> <i>S
23760 74 72 69 6e 67 3c 2f 69 3e 20 29 20 3a 20 3c 69  tring</i> ) : <i
23770 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e  >Integer</i><br>
23780 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74  <br>.<b>RL2_Writ
23790 65 53 65 63 74 69 6f 6e 4d 6f 6e 6f 42 61 6e 64  eSectionMonoBand
237a0 54 69 66 66 54 46 57 3c 2f 62 3e 20 28 20 3c 62  TiffTFW</b> ( <b
237b0 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69  >dbPrefix</b> <i
237c0 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62  >String</i> , <b
237d0 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62  >coverageName</b
237e0 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
237f0 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f  , <b>sectionID</
23800 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
23810 3e 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c  > , <b>filePath<
23820 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
23830 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e  > , <b>width</b>
23840 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
23850 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20  , <b>height</b> 
23860 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
23870 20 3c 62 3e 62 61 6e 64 49 6e 64 65 78 47 72 61   <b>bandIndexGra
23880 79 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  y</b> <i>Integer
23890 3c 2f 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64  </i>  , <b>bound
238a0 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c  ingBox</b> <i>BL
238b0 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20  OB-Geometry</i> 
238c0 2c 20 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65  , <b>horzPixelRe
238d0 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  solution</b> <i>
238e0 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e  Double</i> , <b>
238f0 76 65 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74  vertPixelResolut
23900 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c  ion</b> <i>Doubl
23910 65 3c 2f 69 3e 20 2c 20 3c 62 3e 74 69 66 66 43  e</i> , <b>tiffC
23920 6f 6d 70 72 65 73 73 69 6f 6e 3c 2f 62 3e 20 3c  ompression</b> <
23930 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
23940 62 3e 74 69 66 66 54 69 6c 65 53 69 7a 65 3c 2f  b>tiffTileSize</
23950 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
23960 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72  > ) : <i>Integer
23970 3c 2f 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69  </i></td>.<td>Wi
23980 6c 6c 20 61 74 74 65 6d 70 74 20 74 6f 20 65 78  ll attempt to ex
23990 70 6f 72 74 20 72 61 77 20 72 61 73 74 65 72 20  port raw raster 
239a0 64 61 74 61 20 66 72 6f 6d 20 61 20 4d 55 4c 54  data from a MULT
239b0 49 42 41 4e 44 20 6f 72 20 52 47 42 20 43 6f 76  IBAND or RGB Cov
239c0 65 72 61 67 65 20 69 6e 74 6f 20 61 6e 20 65 78  erage into an ex
239d0 74 65 72 6e 61 6c 20 70 6c 61 69 6e 20 54 49 46  ternal plain TIF
239e0 46 20 66 69 6c 65 20 6f 66 20 74 68 65 20 47 72  F file of the Gr
239f0 61 79 73 63 61 6c 65 20 74 79 70 65 20 73 75 70  ayscale type sup
23a00 70 6f 72 74 65 64 20 62 79 20 61 6e 20 61 75 78  ported by an aux
23a10 69 6c 69 61 72 79 20 57 6f 72 6c 64 46 69 6c 65  iliary WorldFile
23a20 3b 20 6f 6e 6c 79 20 74 68 65 20 54 69 6c 65 73  ; only the Tiles
23a30 20 64 69 72 65 63 74 6c 79 20 62 65 6c 6f 6e 67   directly belong
23a40 69 6e 67 20 74 6f 20 74 68 65 20 73 65 6c 65 63  ing to the selec
23a50 74 65 64 20 53 65 63 74 69 6f 6e 20 77 69 6c 6c  ted Section will
23a60 20 62 65 20 63 6f 6e 73 69 64 65 72 65 64 2e 3c   be considered.<
23a70 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20  br>.Will return 
23a80 3c 62 3e 31 3c 2f 62 3e 20 28 54 52 55 45 2f 53  <b>1</b> (TRUE/S
23a90 55 43 43 45 53 53 29 20 6f 72 20 3c 62 3e 30 3c  UCCESS) or <b>0<
23aa0 2f 62 3e 20 28 46 41 4c 53 45 2f 46 41 49 4c 55  /b> (FALSE/FAILU
23ab0 52 45 29 3a 20 6f 72 20 3c 62 3e 2d 31 3c 2f 62  RE): or <b>-1</b
23ac0 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61 72 67  > on invalid arg
23ad0 75 6d 65 6e 74 73 2e 3c 62 72 3e 0a 3c 75 3e 50  uments.<br>.<u>P
23ae0 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20  lease note</u>: 
23af0 0a 3c 75 6c 3e 0a 3c 6c 69 3e 54 68 65 20 3c 62  .<ul>.<li>The <b
23b00 3e 3c 69 3e 64 62 50 72 65 66 69 78 3c 2f 69 3e  ><i>dbPrefix</i>
23b10 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74 20 69 73  </b> argument is
23b20 20 69 6e 74 65 6e 64 65 64 20 74 6f 20 73 70 65   intended to spe
23b30 63 69 66 79 20 74 68 65 20 41 54 54 41 43 48 45  cify the ATTACHE
23b40 44 2d 44 42 20 77 68 65 72 65 20 74 68 65 20 43  D-DB where the C
23b50 6f 76 65 72 61 67 65 20 69 73 20 65 78 70 65 63  overage is expec
23b60 74 65 64 20 74 6f 20 62 65 20 66 6f 75 6e 64 3b  ted to be found;
23b70 20 69 74 20 63 6f 75 6c 64 20 62 65 20 65 76 65   it could be eve
23b80 6e 74 75 61 6c 6c 79 20 3c 62 3e 4e 55 4c 4c 3c  ntually <b>NULL<
23b90 2f 62 3e 2c 20 61 6e 64 20 69 6e 20 74 68 69 73  /b>, and in this
23ba0 20 63 61 73 65 20 74 68 65 20 3c 62 3e 4d 41 49   case the <b>MAI
23bb0 4e 20 44 42 3c 2f 62 3e 20 77 69 6c 6c 20 69 6d  N DB</b> will im
23bc0 70 6c 69 63 69 74 6c 79 20 62 65 20 61 73 73 75  plicitly be assu
23bd0 6d 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68  med.</li>.<li>th
23be0 65 20 3c 62 3e 3c 69 3e 62 61 6e 64 49 6e 64 65  e <b><i>bandInde
23bf0 78 47 72 61 79 3c 2f 69 3e 3c 2f 62 3e 20 61 72  xGray</i></b> ar
23c00 67 75 6d 65 6e 74 20 69 73 20 69 6e 74 65 6e 64  gument is intend
23c10 65 64 20 74 6f 20 61 72 62 69 74 72 61 72 69 6c  ed to arbitraril
23c20 79 20 63 6f 6d 70 6f 73 65 20 74 68 65 20 47 72  y compose the Gr
23c30 61 79 73 63 61 6c 65 20 54 49 46 46 20 73 74 61  ayscale TIFF sta
23c40 72 74 69 6e 67 20 66 72 6f 6d 20 74 68 65 20 42  rting from the B
23c50 61 6e 64 73 20 73 75 70 70 6f 72 74 65 64 20 62  ands supported b
23c60 79 20 74 68 65 20 43 6f 76 65 72 61 67 65 2e 0a  y the Coverage..
23c70 3c 62 72 3e 3c 75 3e 50 6c 65 61 73 65 20 6e 6f  <br><u>Please no
23c80 74 65 3c 2f 75 3e 3a 20 74 68 65 20 66 69 72 73  te</u>: the firs
23c90 74 20 42 61 6e 64 20 61 6c 77 61 79 73 20 63 6f  t Band always co
23ca0 72 72 65 73 70 6f 6e 64 73 20 74 6f 20 69 6e 64  rresponds to ind
23cb0 65 78 20 3c 62 3e 5a 45 52 4f 3c 2f 62 3e 3c 2f  ex <b>ZERO</b></
23cc0 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c  li>.<li>the <b><
23cd0 69 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 69  i>boundingBox</i
23ce0 3e 3c 2f 62 3e 20 69 73 20 65 78 70 65 63 74 65  ></b> is expecte
23cf0 64 20 74 6f 20 72 65 70 72 65 73 65 6e 74 20 74  d to represent t
23d00 68 65 20 6f 76 65 72 61 6c 6c 20 65 78 74 65 6e  he overall exten
23d10 74 20 6f 66 20 74 68 65 20 65 78 70 6f 72 74 65  t of the exporte
23d20 64 20 54 49 46 46 3b 20 79 6f 75 20 63 6f 75 6c  d TIFF; you coul
23d30 64 20 65 76 65 6e 74 75 61 6c 6c 79 20 70 61 73  d eventually pas
23d40 73 20 61 6e 79 20 61 72 62 69 74 72 61 72 79 20  s any arbitrary 
23d50 6b 69 6e 64 20 6f 66 20 47 65 6f 6d 65 74 72 79  kind of Geometry
23d60 2c 20 61 6e 64 20 74 68 65 20 42 6f 75 6e 64 69  , and the Boundi
23d70 6e 67 20 42 6f 78 20 61 6b 61 20 4d 42 52 20 77  ng Box aka MBR w
23d80 69 6c 6c 20 62 65 20 61 75 74 6f 6d 61 74 69 63  ill be automatic
23d90 61 6c 6c 79 20 64 65 74 65 72 6d 69 6e 65 64 2e  ally determined.
23da0 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62  </li>.<li>the <b
23db0 3e 3c 69 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73  ><i>horzPixelRes
23dc0 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20  olution</i></b> 
23dd0 61 6e 64 20 3c 62 3e 3c 69 3e 76 65 72 74 50 69  and <b><i>vertPi
23de0 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69  xelResolution</i
23df0 3e 3c 2f 62 3e 20 6d 75 73 74 20 65 78 61 63 74  ></b> must exact
23e00 6c 79 20 6d 61 74 63 68 20 74 68 65 20 43 6f 76  ly match the Cov
23e10 65 72 61 67 65 27 73 20 62 61 73 65 20 72 65 73  erage's base res
23e20 6f 6c 75 74 69 6f 6e 20 6f 72 20 6f 6e 65 20 6f  olution or one o
23e30 66 20 74 68 65 20 72 65 73 6f 6c 75 74 69 6f 6e  f the resolution
23e40 73 20 6d 61 64 65 20 61 76 61 69 6c 61 62 6c 65  s made available
23e50 20 62 79 20 74 68 65 20 63 6f 72 72 65 73 70 6f   by the correspo
23e60 6e 64 69 6e 67 20 50 79 72 61 6d 69 64 20 6c 65  nding Pyramid le
23e70 76 65 6c 73 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 61  vels.</li>.<li>a
23e80 6e 64 20 74 68 65 20 42 6f 75 6e 64 69 6e 67 42  nd the BoundingB
23e90 6f 78 20 6d 75 73 74 20 65 78 61 63 74 6c 79 20  ox must exactly 
23ea0 6d 61 74 63 68 20 74 68 65 20 54 49 46 46 20 3c  match the TIFF <
23eb0 62 3e 3c 69 3e 77 69 64 74 68 3c 2f 69 3e 3c 2f  b><i>width</i></
23ec0 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 68 65 69  b> and <b><i>hei
23ed0 67 68 74 3c 2f 69 3e 3c 2f 62 3e 20 64 69 6d 65  ght</i></b> dime
23ee0 6e 73 69 6f 6e 73 20 61 74 20 74 68 61 74 20 72  nsions at that r
23ef0 65 73 6f 6c 75 74 69 6f 6e 2e 3c 2f 6c 69 3e 0a  esolution.</li>.
23f00 3c 6c 69 3e 74 68 65 20 6f 70 74 69 6f 6e 61 6c  <li>the optional
23f10 20 61 72 67 75 6d 65 6e 74 20 3c 62 3e 3c 69 3e   argument <b><i>
23f20 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f 6e 3c  tiffCompression<
23f30 2f 69 3e 3c 2f 62 3e 20 63 6f 75 6c 64 20 62 65  /i></b> could be
23f40 20 6f 6e 65 20 6f 66 20 3c 62 3e 27 4e 4f 4e 45   one of <b>'NONE
23f50 27 3c 2f 62 3e 2c 20 3c 62 3e 27 44 45 46 4c 41  '</b>, <b>'DEFLA
23f60 54 45 27 3c 2f 62 3e 2c 20 3c 62 3e 27 4c 5a 57  TE'</b>, <b>'LZW
23f70 27 3c 2f 62 3e 2c 20 3c 62 3e 27 4a 50 45 47 27  '</b>, <b>'JPEG'
23f80 3c 2f 62 3e 2c 20 3c 62 3e 27 46 41 58 33 27 3c  </b>, <b>'FAX3'<
23f90 2f 62 3e 20 6f 72 20 3c 62 3e 27 46 41 58 34 27  /b> or <b>'FAX4'
23fa0 3c 2f 62 3e 3b 20 64 65 66 61 75 6c 74 20 69 73  </b>; default is
23fb0 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62 3e 2e 3c   <b>'NONE'</b>.<
23fc0 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 6c 61 73  /li>.<li>the las
23fd0 74 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d  t optional argum
23fe0 65 6e 74 20 63 61 6e 20 62 65 20 75 73 65 64 20  ent can be used 
23ff0 73 6f 20 74 6f 20 73 70 65 63 69 66 79 20 74 68  so to specify th
24000 65 20 70 72 65 66 65 72 72 65 64 20 54 49 46 46  e preferred TIFF
24010 20 74 69 6c 65 20 73 69 7a 65 20 28 6f 6e 6c 79   tile size (only
24020 20 73 71 75 61 72 65 20 74 69 6c 65 73 20 61 72   square tiles ar
24030 65 20 73 75 70 70 6f 72 74 65 64 29 3b 20 64 65  e supported); de
24040 66 61 75 6c 74 20 69 73 20 3c 62 3e 32 35 36 3c  fault is <b>256<
24050 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 2f 75 6c 3e 0a  /b>.</li>.</ul>.
24060 3c 74 61 62 6c 65 20 77 69 64 74 68 3d 22 31 30  <table width="10
24070 30 25 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66  0%" bgcolor="#ff
24080 64 30 38 30 22 20 63 65 6c 6c 70 61 64 64 69 6e  d080" cellpaddin
24090 67 3d 22 36 22 3e 3c 74 72 3e 3c 74 64 3e 0a 3c  g="6"><tr><td>.<
240a0 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 20 76 65  u>Please note ve
240b0 72 79 20 77 65 6c 6c 3c 2f 75 3e 3a 20 74 68 69  ry well</u>: thi
240c0 73 20 53 51 4c 20 66 75 6e 63 74 69 6f 6e 20 69  s SQL function i
240d0 73 20 6f 6e 6c 79 20 61 76 61 69 6c 61 62 6c 65  s only available
240e0 20 77 68 65 6e 20 74 68 65 20 65 6e 76 69 72 6f   when the enviro
240f0 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 20 3c  nment variable <
24100 62 3e 53 50 41 54 49 41 4c 49 54 45 5f 53 45 43  b>SPATIALITE_SEC
24110 55 52 49 54 59 3d 72 65 6c 61 78 65 64 3c 2f 62  URITY=relaxed</b
24120 3e 20 69 73 20 73 65 74 2e 3c 2f 74 64 3e 3c 2f  > is set.</td></
24130 74 72 3e 3c 2f 74 61 62 6c 65 3e 3c 2f 74 64 3e  tr></table></td>
24140 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 3c 74 64 3e 3c  .</tr>.<tr><td><
24150 62 3e 52 4c 32 5f 57 72 69 74 65 53 65 63 74 69  b>RL2_WriteSecti
24160 6f 6e 4d 6f 6e 6f 42 61 6e 64 54 69 66 66 3c 2f  onMonoBandTiff</
24170 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78  b> ( <b>dbPrefix
24180 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
24190 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65  i> , <b>coverage
241a0 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Name</b> <i>Stri
241b0 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69 6c 65  ng</i> , <b>file
241c0 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Path</b> <i>Stri
241d0 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74  ng</i> , <b>widt
241e0 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72  h</b> <i>Integer
241f0 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74  </i> , <b>height
24200 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
24210 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49 6e 64  /i> , <b>bandInd
24220 65 78 47 72 61 79 3c 2f 62 3e 20 3c 69 3e 49 6e  exGray</b> <i>In
24230 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62  teger</i> , <b>b
24240 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c  oundingBox</b> <
24250 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c  i>BLOB-Geometry<
24260 2f 69 3e 20 2c 20 3c 62 3e 70 69 78 65 6c 52 65  /i> , <b>pixelRe
24270 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  solution</b> <i>
24280 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c  Double</i> ) : <
24290 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72  i>Integer</i><br
242a0 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69  ><br>.<b>RL2_Wri
242b0 74 65 53 65 63 74 69 6f 6e 4d 6f 6e 6f 42 61 6e  teSectionMonoBan
242c0 64 54 69 66 66 3c 2f 62 3e 20 28 20 3c 62 3e 64  dTiff</b> ( <b>d
242d0 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53  bPrefix</b> <i>S
242e0 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63  tring</i> , <b>c
242f0 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20  overageName</b> 
24300 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
24310 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e  <b>sectionID</b>
24320 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
24330 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62  , <b>filePath</b
24340 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
24350 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c  , <b>width</b> <
24360 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
24370 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69  <b>height</b> <i
24380 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
24390 62 3e 62 61 6e 64 49 6e 64 65 78 47 72 61 79 3c  b>bandIndexGray<
243a0 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
243b0 69 3e 20 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e  i>  , <b>boundin
243c0 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42  gBox</b> <i>BLOB
243d0 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20  -Geometry</i> , 
243e0 3c 62 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f  <b>horzPixelReso
243f0 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f  lution</b> <i>Do
24400 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65  uble</i> , <b>ve
24410 72 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f  rtPixelResolutio
24420 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c  n</b> <i>Double<
24430 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67  /i> ) : <i>Integ
24440 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c  er</i><br><br>.<
24450 62 3e 52 4c 32 5f 57 72 69 74 65 53 65 63 74 69  b>RL2_WriteSecti
24460 6f 6e 4d 6f 6e 6f 42 61 6e 64 54 69 66 66 3c 2f  onMonoBandTiff</
24470 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78  b> ( <b>dbPrefix
24480 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
24490 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65  i> , <b>coverage
244a0 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Name</b> <i>Stri
244b0 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74  ng</i> , <b>sect
244c0 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74  ionID</b> <i>Int
244d0 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69  eger</i> , <b>fi
244e0 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74  lePath</b> <i>St
244f0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69  ring</i> , <b>wi
24500 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  dth</b> <i>Integ
24510 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67  er</i> , <b>heig
24520 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
24530 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49  r</i> , <b>bandI
24540 6e 64 65 78 47 72 61 79 3c 2f 62 3e 20 3c 69 3e  ndexGray</b> <i>
24550 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c  Integer</i>  , <
24560 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
24570 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
24580 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a  ry</i> , <b>horz
24590 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
245a0 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
245b0 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c  > , <b>vertPixel
245c0 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
245d0 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c  i>Double</i> , <
245e0 62 3e 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f  b>tiffCompressio
245f0 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  n</b> <i>String<
24600 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67  /i> ) : <i>Integ
24610 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c  er</i><br><br>.<
24620 62 3e 52 4c 32 5f 57 72 69 74 65 53 65 63 74 69  b>RL2_WriteSecti
24630 6f 6e 4d 6f 6e 6f 42 61 6e 64 54 69 66 66 3c 2f  onMonoBandTiff</
24640 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78  b> ( <b>dbPrefix
24650 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
24660 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65  i> , <b>coverage
24670 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Name</b> <i>Stri
24680 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74  ng</i> , <b>sect
24690 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74  ionID</b> <i>Int
246a0 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 66 69  eger</i> , <b>fi
246b0 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53 74  lePath</b> <i>St
246c0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69  ring</i> , <b>wi
246d0 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  dth</b> <i>Integ
246e0 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69 67  er</i> , <b>heig
246f0 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65  ht</b> <i>Intege
24700 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 61 6e 64 49  r</i> , <b>bandI
24710 6e 64 65 78 47 72 61 79 3c 2f 62 3e 20 3c 69 3e  ndexGray</b> <i>
24720 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c  Integer</i>  , <
24730 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
24740 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
24750 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a  ry</i> , <b>horz
24760 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
24770 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
24780 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c  > , <b>vertPixel
24790 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
247a0 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c  i>Double</i> , <
247b0 62 3e 74 69 66 66 43 6f 6d 70 72 65 73 73 69 6f  b>tiffCompressio
247c0 6e 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  n</b> <i>String<
247d0 2f 69 3e 20 2c 20 3c 62 3e 74 69 66 66 54 69 6c  /i> , <b>tiffTil
247e0 65 53 69 7a 65 3c 2f 62 3e 20 3c 69 3e 49 6e 74  eSize</b> <i>Int
247f0 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e  eger</i> ) : <i>
24800 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74 64 3e  Integer</i></td>
24810 0a 3c 74 64 3e 57 69 6c 6c 20 61 74 74 65 6d 70  .<td>Will attemp
24820 74 20 74 6f 20 65 78 70 6f 72 74 20 72 61 77 20  t to export raw 
24830 72 61 73 74 65 72 20 64 61 74 61 20 66 72 6f 6d  raster data from
24840 20 61 20 4d 55 4c 54 49 42 41 4e 44 20 6f 72 20   a MULTIBAND or 
24850 52 47 42 20 43 6f 76 65 72 61 67 65 20 69 6e 74  RGB Coverage int
24860 6f 20 61 6e 20 65 78 74 65 72 6e 61 6c 20 70 6c  o an external pl
24870 61 69 6e 20 54 49 46 46 20 66 69 6c 65 20 6f 66  ain TIFF file of
24880 20 74 68 65 20 47 72 61 79 73 63 61 6c 65 20 74   the Grayscale t
24890 79 70 65 3b 20 6f 6e 6c 79 20 74 68 65 20 54 69  ype; only the Ti
248a0 6c 65 73 20 64 69 72 65 63 74 6c 79 20 62 65 6c  les directly bel
248b0 6f 6e 67 69 6e 67 20 74 6f 20 74 68 65 20 73 65  onging to the se
248c0 6c 65 63 74 65 64 20 53 65 63 74 69 6f 6e 20 77  lected Section w
248d0 69 6c 6c 20 62 65 20 63 6f 6e 73 69 64 65 72 65  ill be considere
248e0 64 2e 3c 62 72 3e 0a 57 69 6c 6c 20 72 65 74 75  d.<br>.Will retu
248f0 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20 28 54 52 55  rn <b>1</b> (TRU
24900 45 2f 53 55 43 43 45 53 53 29 20 6f 72 20 3c 62  E/SUCCESS) or <b
24910 3e 30 3c 2f 62 3e 20 28 46 41 4c 53 45 2f 46 41  >0</b> (FALSE/FA
24920 49 4c 55 52 45 29 3a 20 6f 72 20 3c 62 3e 2d 31  ILURE): or <b>-1
24930 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61 6c 69 64 20  </b> on invalid 
24940 61 72 67 75 6d 65 6e 74 73 2e 3c 62 72 3e 0a 3c  arguments.<br>.<
24950 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65 3c 2f 75  u>Please note</u
24960 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69 3e 54 68 65  >: .<ul>.<li>The
24970 20 3c 62 3e 3c 69 3e 64 62 50 72 65 66 69 78 3c   <b><i>dbPrefix<
24980 2f 69 3e 3c 2f 62 3e 20 61 72 67 75 6d 65 6e 74  /i></b> argument
24990 20 69 73 20 69 6e 74 65 6e 64 65 64 20 74 6f 20   is intended to 
249a0 73 70 65 63 69 66 79 20 74 68 65 20 41 54 54 41  specify the ATTA
249b0 43 48 45 44 2d 44 42 20 77 68 65 72 65 20 74 68  CHED-DB where th
249c0 65 20 43 6f 76 65 72 61 67 65 20 69 73 20 65 78  e Coverage is ex
249d0 70 65 63 74 65 64 20 74 6f 20 62 65 20 66 6f 75  pected to be fou
249e0 6e 64 3b 20 69 74 20 63 6f 75 6c 64 20 62 65 20  nd; it could be 
249f0 65 76 65 6e 74 75 61 6c 6c 79 20 3c 62 3e 4e 55  eventually <b>NU
24a00 4c 4c 3c 2f 62 3e 2c 20 61 6e 64 20 69 6e 20 74  LL</b>, and in t
24a10 68 69 73 20 63 61 73 65 20 74 68 65 20 3c 62 3e  his case the <b>
24a20 4d 41 49 4e 20 44 42 3c 2f 62 3e 20 77 69 6c 6c  MAIN DB</b> will
24a30 20 69 6d 70 6c 69 63 69 74 6c 79 20 62 65 20 61   implicitly be a
24a40 73 73 75 6d 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69  ssumed.</li>.<li
24a50 3e 74 68 65 20 3c 62 3e 3c 69 3e 62 61 6e 64 49  >the <b><i>bandI
24a60 6e 64 65 78 47 72 61 79 3c 2f 69 3e 3c 2f 62 3e  ndexGray</i></b>
24a70 20 61 72 67 75 6d 65 6e 74 20 69 73 20 69 6e 74   argument is int
24a80 65 6e 64 65 64 20 74 6f 20 61 72 62 69 74 72 61  ended to arbitra
24a90 72 69 6c 79 20 63 6f 6d 70 6f 73 65 20 74 68 65  rily compose the
24aa0 20 47 72 61 79 73 63 61 6c 65 20 54 49 46 46 20   Grayscale TIFF 
24ab0 73 74 61 72 74 69 6e 67 20 66 72 6f 6d 20 74 68  starting from th
24ac0 65 20 42 61 6e 64 73 20 73 75 70 70 6f 72 74 65  e Bands supporte
24ad0 64 20 62 79 20 74 68 65 20 43 6f 76 65 72 61 67  d by the Coverag
24ae0 65 2e 0a 3c 62 72 3e 3c 75 3e 50 6c 65 61 73 65  e..<br><u>Please
24af0 20 6e 6f 74 65 3c 2f 75 3e 3a 20 74 68 65 20 66   note</u>: the f
24b00 69 72 73 74 20 42 61 6e 64 20 61 6c 77 61 79 73  irst Band always
24b10 20 63 6f 72 72 65 73 70 6f 6e 64 73 20 74 6f 20   corresponds to 
24b20 69 6e 64 65 78 20 3c 62 3e 5a 45 52 4f 3c 2f 62  index <b>ZERO</b
24b30 3e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c  ></li>.<li>the <
24b40 62 3e 3c 69 3e 62 6f 75 6e 64 69 6e 67 42 6f 78  b><i>boundingBox
24b50 3c 2f 69 3e 3c 2f 62 3e 20 69 73 20 65 78 70 65  </i></b> is expe
24b60 63 74 65 64 20 74 6f 20 72 65 70 72 65 73 65 6e  cted to represen
24b70 74 20 74 68 65 20 6f 76 65 72 61 6c 6c 20 65 78  t the overall ex
24b80 74 65 6e 74 20 6f 66 20 74 68 65 20 65 78 70 6f  tent of the expo
24b90 72 74 65 64 20 54 49 46 46 3b 20 79 6f 75 20 63  rted TIFF; you c
24ba0 6f 75 6c 64 20 65 76 65 6e 74 75 61 6c 6c 79 20  ould eventually 
24bb0 70 61 73 73 20 61 6e 79 20 61 72 62 69 74 72 61  pass any arbitra
24bc0 72 79 20 6b 69 6e 64 20 6f 66 20 47 65 6f 6d 65  ry kind of Geome
24bd0 74 72 79 2c 20 61 6e 64 20 74 68 65 20 42 6f 75  try, and the Bou
24be0 6e 64 69 6e 67 20 42 6f 78 20 61 6b 61 20 4d 42  nding Box aka MB
24bf0 52 20 77 69 6c 6c 20 62 65 20 61 75 74 6f 6d 61  R will be automa
24c00 74 69 63 61 6c 6c 79 20 64 65 74 65 72 6d 69 6e  tically determin
24c10 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65  ed.</li>.<li>the
24c20 20 3c 62 3e 3c 69 3e 68 6f 72 7a 50 69 78 65 6c   <b><i>horzPixel
24c30 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f  Resolution</i></
24c40 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 76 65 72  b> and <b><i>ver
24c50 74 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e  tPixelResolution
24c60 3c 2f 69 3e 3c 2f 62 3e 20 6d 75 73 74 20 65 78  </i></b> must ex
24c70 61 63 74 6c 79 20 6d 61 74 63 68 20 74 68 65 20  actly match the 
24c80 43 6f 76 65 72 61 67 65 27 73 20 62 61 73 65 20  Coverage's base 
24c90 72 65 73 6f 6c 75 74 69 6f 6e 20 6f 72 20 6f 6e  resolution or on
24ca0 65 20 6f 66 20 74 68 65 20 72 65 73 6f 6c 75 74  e of the resolut
24cb0 69 6f 6e 73 20 6d 61 64 65 20 61 76 61 69 6c 61  ions made availa
24cc0 62 6c 65 20 62 79 20 74 68 65 20 63 6f 72 72 65  ble by the corre
24cd0 73 70 6f 6e 64 69 6e 67 20 50 79 72 61 6d 69 64  sponding Pyramid
24ce0 20 6c 65 76 65 6c 73 2e 3c 2f 6c 69 3e 0a 3c 6c   levels.</li>.<l
24cf0 69 3e 61 6e 64 20 74 68 65 20 42 6f 75 6e 64 69  i>and the Boundi
24d00 6e 67 42 6f 78 20 6d 75 73 74 20 65 78 61 63 74  ngBox must exact
24d10 6c 79 20 6d 61 74 63 68 20 74 68 65 20 54 49 46  ly match the TIF
24d20 46 20 3c 62 3e 3c 69 3e 77 69 64 74 68 3c 2f 69  F <b><i>width</i
24d30 3e 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e  ></b> and <b><i>
24d40 68 65 69 67 68 74 3c 2f 69 3e 3c 2f 62 3e 20 64  height</i></b> d
24d50 69 6d 65 6e 73 69 6f 6e 73 20 61 74 20 74 68 61  imensions at tha
24d60 74 20 72 65 73 6f 6c 75 74 69 6f 6e 2e 3c 2f 6c  t resolution.</l
24d70 69 3e 0a 3c 6c 69 3e 74 68 65 20 6f 70 74 69 6f  i>.<li>the optio
24d80 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 3c 62 3e  nal argument <b>
24d90 3c 69 3e 74 69 66 66 43 6f 6d 70 72 65 73 73 69  <i>tiffCompressi
24da0 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 63 6f 75 6c 64  on</i></b> could
24db0 20 62 65 20 6f 6e 65 20 6f 66 20 3c 62 3e 27 4e   be one of <b>'N
24dc0 4f 4e 45 27 3c 2f 62 3e 2c 20 3c 62 3e 27 44 45  ONE'</b>, <b>'DE
24dd0 46 4c 41 54 45 27 3c 2f 62 3e 2c 20 3c 62 3e 27  FLATE'</b>, <b>'
24de0 4c 5a 57 27 3c 2f 62 3e 2c 20 3c 62 3e 27 4a 50  LZW'</b>, <b>'JP
24df0 45 47 27 3c 2f 62 3e 2c 20 3c 62 3e 27 46 41 58  EG'</b>, <b>'FAX
24e00 33 27 3c 2f 62 3e 20 6f 72 20 3c 62 3e 27 46 41  3'</b> or <b>'FA
24e10 58 34 27 3c 2f 62 3e 3b 20 64 65 66 61 75 6c 74  X4'</b>; default
24e20 20 69 73 20 3c 62 3e 27 4e 4f 4e 45 27 3c 2f 62   is <b>'NONE'</b
24e30 3e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20  >.</li>.<li>the 
24e40 6c 61 73 74 20 6f 70 74 69 6f 6e 61 6c 20 61 72  last optional ar
24e50 67 75 6d 65 6e 74 20 63 61 6e 20 62 65 20 75 73  gument can be us
24e60 65 64 20 73 6f 20 74 6f 20 73 70 65 63 69 66 79  ed so to specify
24e70 20 74 68 65 20 70 72 65 66 65 72 72 65 64 20 54   the preferred T
24e80 49 46 46 20 74 69 6c 65 20 73 69 7a 65 20 28 6f  IFF tile size (o
24e90 6e 6c 79 20 73 71 75 61 72 65 20 74 69 6c 65 73  nly square tiles
24ea0 20 61 72 65 20 73 75 70 70 6f 72 74 65 64 29 3b   are supported);
24eb0 20 64 65 66 61 75 6c 74 20 69 73 20 3c 62 3e 32   default is <b>2
24ec0 35 36 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a 3c 2f 75  56</b>.</li>.</u
24ed0 6c 3e 0a 3c 74 61 62 6c 65 20 77 69 64 74 68 3d  l>.<table width=
24ee0 22 31 30 30 25 22 20 62 67 63 6f 6c 6f 72 3d 22  "100%" bgcolor="
24ef0 23 66 66 64 30 38 30 22 20 63 65 6c 6c 70 61 64  #ffd080" cellpad
24f00 64 69 6e 67 3d 22 36 22 3e 3c 74 72 3e 3c 74 64  ding="6"><tr><td
24f10 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74 65  >.<u>Please note
24f20 20 76 65 72 79 20 77 65 6c 6c 3c 2f 75 3e 3a 20   very well</u>: 
24f30 74 68 69 73 20 53 51 4c 20 66 75 6e 63 74 69 6f  this SQL functio
24f40 6e 20 69 73 20 6f 6e 6c 79 20 61 76 61 69 6c 61  n is only availa
24f50 62 6c 65 20 77 68 65 6e 20 74 68 65 20 65 6e 76  ble when the env
24f60 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c  ironment variabl
24f70 65 20 3c 62 3e 53 50 41 54 49 41 4c 49 54 45 5f  e <b>SPATIALITE_
24f80 53 45 43 55 52 49 54 59 3d 72 65 6c 61 78 65 64  SECURITY=relaxed
24f90 3c 2f 62 3e 20 69 73 20 73 65 74 2e 3c 2f 74 64  </b> is set.</td
24fa0 3e 3c 2f 74 72 3e 3c 2f 74 61 62 6c 65 3e 3c 2f  ></tr></table></
24fb0 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 74 72 3e 3c 74  td>.</tr>.<tr><t
24fc0 64 3e 3c 62 3e 52 4c 32 5f 57 72 69 74 65 53 65  d><b>RL2_WriteSe
24fd0 63 74 69 6f 6e 41 73 63 69 69 47 72 69 64 3c 2f  ctionAsciiGrid</
24fe0 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78  b> ( <b>dbPrefix
24ff0 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
25000 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65  i> , <b>coverage
25010 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Name</b> <i>Stri
25020 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74  ng</i> , <b>sect
25030 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74  ionID</b> <i>Int
25040 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c 62 3e 66  eger</i>  , <b>f
25050 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53  ilePath</b> <i>S
25060 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77  tring</i> , <b>w
25070 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  idth</b> <i>Inte
25080 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69  ger</i> , <b>hei
25090 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  ght</b> <i>Integ
250a0 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e  er</i> , <b>boun
250b0 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42  dingBox</b> <i>B
250c0 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e  LOB-Geometry</i>
250d0 20 2c 20 3c 62 3e 70 69 78 65 6c 52 65 73 6f 6c   , <b>pixelResol
250e0 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75  ution</b> <i>Dou
250f0 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49  ble</i> ) : <i>I
25100 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62  nteger</i><br><b
25110 72 3e 0a 3c 62 3e 52 4c 32 5f 57 72 69 74 65 53  r>.<b>RL2_WriteS
25120 65 63 74 69 6f 6e 41 73 63 69 69 47 72 69 64 3c  ectionAsciiGrid<
25130 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69  /b> ( <b>dbPrefi
25140 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  x</b> <i>String<
25150 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67  /i> , <b>coverag
25160 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72  eName</b> <i>Str
25170 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63  ing</i> , <b>sec
25180 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e  tionID</b> <i>In
25190 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c 62 3e  teger</i>  , <b>
251a0 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e  filePath</b> <i>
251b0 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
251c0 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74  width</b> <i>Int
251d0 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65  eger</i> , <b>he
251e0 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  ight</b> <i>Inte
251f0 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75  ger</i> , <b>bou
25200 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e  ndingBox</b> <i>
25210 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69  BLOB-Geometry</i
25220 3e 20 2c 20 3c 62 3e 70 69 78 65 6c 52 65 73 6f  > , <b>pixelReso
25230 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f  lution</b> <i>Do
25240 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 69 73  uble</i> , <b>is
25250 50 69 78 65 6c 43 65 6e 74 65 72 65 64 3c 2f 62  PixelCentered</b
25260 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
25270 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c   ) : <i>Integer<
25280 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52  /i><br><br>.<b>R
25290 4c 32 5f 57 72 69 74 65 53 65 63 74 69 6f 6e 41  L2_WriteSectionA
252a0 73 63 69 69 47 72 69 64 3c 2f 62 3e 20 28 20 3c  sciiGrid</b> ( <
252b0 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c  b>dbPrefix</b> <
252c0 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
252d0 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f  b>coverageName</
252e0 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  b> <i>String</i>
252f0 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c   , <b>sectionID<
25300 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
25310 69 3e 20 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74  i>  , <b>filePat
25320 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c  h</b> <i>String<
25330 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f  /i> , <b>width</
25340 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
25350 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62  > , <b>height</b
25360 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
25370 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f   , <b>boundingBo
25380 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65  x</b> <i>BLOB-Ge
25390 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e  ometry</i> , <b>
253a0 70 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  pixelResolution<
253b0 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
253c0 3e 20 2c 20 3c 62 3e 69 73 50 69 78 65 6c 43 65  > , <b>isPixelCe
253d0 6e 74 65 72 65 64 3c 2f 62 3e 20 3c 69 3e 49 6e  ntered</b> <i>In
253e0 74 65 67 65 72 3c 2f 69 3e 20 2c 0a 3c 62 3e 64  teger</i> ,.<b>d
253f0 65 63 69 6d 61 6c 44 69 67 69 74 73 3c 2f 62 3e  ecimalDigits</b>
25400 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
25410 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
25420 69 3e 3c 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c  i></td>.<td>Will
25430 20 61 74 74 65 6d 70 74 20 74 6f 20 65 78 70 6f   attempt to expo
25440 72 74 20 72 61 77 20 72 61 73 74 65 72 20 64 61  rt raw raster da
25450 74 61 20 66 72 6f 6d 20 61 20 44 41 54 41 47 52  ta from a DATAGR
25460 49 44 20 43 6f 76 65 72 61 67 65 20 69 6e 74 6f  ID Coverage into
25470 20 61 6e 20 65 78 74 65 72 6e 61 6c 20 41 53 43   an external ASC
25480 49 49 20 47 72 69 64 20 66 69 6c 65 3b 20 6f 6e  II Grid file; on
25490 6c 79 20 74 68 65 20 54 69 6c 65 73 20 64 69 72  ly the Tiles dir
254a0 65 63 74 6c 79 20 62 65 6c 6f 6e 67 69 6e 67 20  ectly belonging 
254b0 74 6f 20 74 68 65 20 73 65 6c 65 63 74 65 64 20  to the selected 
254c0 53 65 63 74 69 6f 6e 20 77 69 6c 6c 20 62 65 20  Section will be 
254d0 63 6f 6e 73 69 64 65 72 65 64 2e 3c 62 72 3e 0a  considered.<br>.
254e0 57 69 6c 6c 20 72 65 74 75 72 6e 20 3c 62 3e 31  Will return <b>1
254f0 3c 2f 62 3e 20 28 54 52 55 45 2f 53 55 43 43 45  </b> (TRUE/SUCCE
25500 53 53 29 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20  SS) or <b>0</b> 
25510 28 46 41 4c 53 45 2f 46 41 49 4c 55 52 45 29 3a  (FALSE/FAILURE):
25520 20 6f 72 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e   or <b>-1</b> on
25530 20 69 6e 76 61 6c 69 64 20 61 72 67 75 6d 65 6e   invalid argumen
25540 74 73 2e 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73  ts.<br>.<u>Pleas
25550 65 20 6e 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75 6c  e note</u>: .<ul
25560 3e 0a 3c 6c 69 3e 54 68 65 20 3c 62 3e 3c 69 3e  >.<li>The <b><i>
25570 64 62 50 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e  dbPrefix</i></b>
25580 20 61 72 67 75 6d 65 6e 74 20 69 73 20 69 6e 74   argument is int
25590 65 6e 64 65 64 20 74 6f 20 73 70 65 63 69 66 79  ended to specify
255a0 20 74 68 65 20 41 54 54 41 43 48 45 44 2d 44 42   the ATTACHED-DB
255b0 20 77 68 65 72 65 20 74 68 65 20 43 6f 76 65 72   where the Cover
255c0 61 67 65 20 69 73 20 65 78 70 65 63 74 65 64 20  age is expected 
255d0 74 6f 20 62 65 20 66 6f 75 6e 64 3b 20 69 74 20  to be found; it 
255e0 63 6f 75 6c 64 20 62 65 20 65 76 65 6e 74 75 61  could be eventua
255f0 6c 6c 79 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c  lly <b>NULL</b>,
25600 20 61 6e 64 20 69 6e 20 74 68 69 73 20 63 61 73   and in this cas
25610 65 20 74 68 65 20 3c 62 3e 4d 41 49 4e 20 44 42  e the <b>MAIN DB
25620 3c 2f 62 3e 20 77 69 6c 6c 20 69 6d 70 6c 69 63  </b> will implic
25630 69 74 6c 79 20 62 65 20 61 73 73 75 6d 65 64 2e  itly be assumed.
25640 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62  </li>.<li>the <b
25650 3e 3c 69 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c  ><i>boundingBox<
25660 2f 69 3e 3c 2f 62 3e 20 69 73 20 65 78 70 65 63  /i></b> is expec
25670 74 65 64 20 74 6f 20 72 65 70 72 65 73 65 6e 74  ted to represent
25680 20 74 68 65 20 6f 76 65 72 61 6c 6c 20 65 78 74   the overall ext
25690 65 6e 74 20 6f 66 20 74 68 65 20 65 78 70 6f 72  ent of the expor
256a0 74 65 64 20 41 53 43 49 49 20 47 72 69 64 3b 20  ted ASCII Grid; 
256b0 79 6f 75 20 63 6f 75 6c 64 20 65 76 65 6e 74 75  you could eventu
256c0 61 6c 6c 79 20 70 61 73 73 20 61 6e 79 20 61 72  ally pass any ar
256d0 62 69 74 72 61 72 79 20 6b 69 6e 64 20 6f 66 20  bitrary kind of 
256e0 47 65 6f 6d 65 74 72 79 2c 20 61 6e 64 20 74 68  Geometry, and th
256f0 65 20 42 6f 75 6e 64 69 6e 67 20 42 6f 78 20 61  e Bounding Box a
25700 6b 61 20 4d 42 52 20 77 69 6c 6c 20 62 65 20 61  ka MBR will be a
25710 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 64 65 74  utomatically det
25720 65 72 6d 69 6e 65 64 2e 3c 2f 6c 69 3e 0a 3c 6c  ermined.</li>.<l
25730 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 70 69 78 65  i>the <b><i>pixe
25740 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c  lResolution</i><
25750 2f 62 3e 20 20 6d 75 73 74 20 65 78 61 63 74 6c  /b>  must exactl
25760 79 20 6d 61 74 63 68 20 74 68 65 20 43 6f 76 65  y match the Cove
25770 72 61 67 65 27 73 20 62 61 73 65 20 72 65 73 6f  rage's base reso
25780 6c 75 74 69 6f 6e 20 6f 72 20 6f 6e 65 20 6f 66  lution or one of
25790 20 74 68 65 20 72 65 73 6f 6c 75 74 69 6f 6e 73   the resolutions
257a0 20 6d 61 64 65 20 61 76 61 69 6c 61 62 6c 65 20   made available 
257b0 62 79 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e  by the correspon
257c0 64 69 6e 67 20 50 79 72 61 6d 69 64 20 6c 65 76  ding Pyramid lev
257d0 65 6c 73 3b 20 72 65 63 74 61 6e 67 75 6c 61 72  els; rectangular
257e0 20 70 69 78 65 6c 73 20 61 72 65 6e 27 74 20 73   pixels aren't s
257f0 75 70 70 6f 72 74 65 64 20 62 79 20 41 53 43 49  upported by ASCI
25800 49 20 47 72 69 64 73 2e 3c 2f 6c 69 3e 0a 3c 6c  I Grids.</li>.<l
25810 69 3e 61 6e 64 20 74 68 65 20 42 6f 75 6e 64 69  i>and the Boundi
25820 6e 67 42 6f 78 20 6d 75 73 74 20 65 78 61 63 74  ngBox must exact
25830 6c 79 20 6d 61 74 63 68 20 74 68 65 20 41 53 43  ly match the ASC
25840 49 49 20 47 72 69 64 20 3c 62 3e 3c 69 3e 77 69  II Grid <b><i>wi
25850 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64 20  dth</i></b> and 
25860 3c 62 3e 3c 69 3e 68 65 69 67 68 74 3c 2f 69 3e  <b><i>height</i>
25870 3c 2f 62 3e 20 64 69 6d 65 6e 73 69 6f 6e 73 20  </b> dimensions 
25880 61 74 20 74 68 61 74 20 72 65 73 6f 6c 75 74 69  at that resoluti
25890 6f 6e 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65  on.</li>.<li>the
258a0 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65   optional argume
258b0 6e 74 20 3c 62 3e 3c 69 3e 69 73 50 69 78 65 6c  nt <b><i>isPixel
258c0 43 65 6e 74 65 72 65 64 3c 2f 69 3e 3c 2f 62 3e  Centered</i></b>
258d0 20 28 65 78 70 65 63 74 65 64 20 74 6f 20 62 65   (expected to be
258e0 20 6f 66 20 74 68 65 20 42 6f 6f 6c 65 61 6e 20   of the Boolean 
258f0 74 79 70 65 29 20 64 65 74 65 72 6d 69 6e 65 73  type) determines
25900 20 69 66 20 74 68 65 20 41 53 43 49 49 20 47 72   if the ASCII Gr
25910 69 64 20 77 69 6c 6c 20 64 65 63 6c 61 72 65 20  id will declare 
25920 3c 62 3e 78 6c 6c 63 65 6e 74 65 72 3c 2f 62 3e  <b>xllcenter</b>
25930 20 61 6e 64 20 3c 62 3e 79 6c 6c 63 65 6e 74 65   and <b>yllcente
25940 72 3c 2f 62 3e 20 69 6e 73 74 65 61 64 20 6f 66  r</b> instead of
25950 20 3c 62 3e 78 6c 6c 63 6f 72 6e 65 72 3c 2f 62   <b>xllcorner</b
25960 3e 20 61 6e 64 20 3c 62 3e 79 6c 6c 63 6f 6e 65  > and <b>yllcone
25970 72 3c 2f 62 3e 20 28 64 65 66 61 75 6c 74 20 69  r</b> (default i
25980 73 20 54 52 55 45 29 2e 3c 2f 6c 69 3e 0a 3c 6c  s TRUE).</li>.<l
25990 69 3e 74 68 65 20 6c 61 73 74 20 6f 70 74 69 6f  i>the last optio
259a0 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 63 61 6e  nal argument can
259b0 20 62 65 20 75 73 65 64 20 73 6f 20 74 6f 20 73   be used so to s
259c0 70 65 63 69 66 79 20 68 6f 77 20 6d 61 6e 79 20  pecify how many 
259d0 64 65 63 69 6d 61 6c 20 64 69 67 69 74 73 20 68  decimal digits h
259e0 61 76 65 20 74 6f 20 62 65 20 65 78 70 6f 72 74  ave to be export
259f0 65 64 20 69 6e 74 6f 20 74 68 65 20 41 53 43 49  ed into the ASCI
25a00 49 20 47 72 69 64 3b 20 64 65 66 61 75 6c 74 20  I Grid; default 
25a10 69 73 20 3c 62 3e 34 3c 2f 62 3e 20 64 65 63 69  is <b>4</b> deci
25a20 6d 61 6c 20 64 69 67 69 74 73 2e 3c 2f 6c 69 3e  mal digits.</li>
25a30 0a 3c 2f 75 6c 3e 0a 3c 74 61 62 6c 65 20 77 69  .</ul>.<table wi
25a40 64 74 68 3d 22 31 30 30 25 22 20 62 67 63 6f 6c  dth="100%" bgcol
25a50 6f 72 3d 22 23 66 66 64 30 38 30 22 20 63 65 6c  or="#ffd080" cel
25a60 6c 70 61 64 64 69 6e 67 3d 22 36 22 3e 3c 74 72  lpadding="6"><tr
25a70 3e 3c 74 64 3e 0a 3c 75 3e 50 6c 65 61 73 65 20  ><td>.<u>Please 
25a80 6e 6f 74 65 20 76 65 72 79 20 77 65 6c 6c 3c 2f  note very well</
25a90 75 3e 3a 20 74 68 69 73 20 53 51 4c 20 66 75 6e  u>: this SQL fun
25aa0 63 74 69 6f 6e 20 69 73 20 6f 6e 6c 79 20 61 76  ction is only av
25ab0 61 69 6c 61 62 6c 65 20 77 68 65 6e 20 74 68 65  ailable when the
25ac0 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72   environment var
25ad0 69 61 62 6c 65 20 3c 62 3e 53 50 41 54 49 41 4c  iable <b>SPATIAL
25ae0 49 54 45 5f 53 45 43 55 52 49 54 59 3d 72 65 6c  ITE_SECURITY=rel
25af0 61 78 65 64 3c 2f 62 3e 20 69 73 20 73 65 74 2e  axed</b> is set.
25b00 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61 62 6c  </td></tr></tabl
25b10 65 3e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 2f  e></td>.</tr>.</
25b20 74 72 3e 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e 52  tr>.<tr><td><b>R
25b30 4c 32 5f 57 72 69 74 65 53 65 63 74 69 6f 6e 4a  L2_WriteSectionJ
25b40 70 65 67 4a 47 57 3c 2f 62 3e 20 28 20 3c 62 3e  pegJGW</b> ( <b>
25b50 64 62 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e  dbPrefix</b> <i>
25b60 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
25b70 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e  coverageName</b>
25b80 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
25b90 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62   <b>sectionID</b
25ba0 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e  > <i>Integer</i>
25bb0 20 20 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c    , <b>filePath<
25bc0 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
25bd0 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e  > , <b>width</b>
25be0 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20   <i>Integer</i> 
25bf0 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20  , <b>height</b> 
25c00 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c  <i>Integer</i> ,
25c10 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c   <b>boundingBox<
25c20 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d  /b> <i>BLOB-Geom
25c30 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 70 69  etry</i> , <b>pi
25c40 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62  xelResolution</b
25c50 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20  > <i>Double</i> 
25c60 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  ) : <i>Integer</
25c70 69 3e 3c 62 72 3e 3c 62 72 3e 3c 62 3e 52 4c 32  i><br><br><b>RL2
25c80 5f 57 72 69 74 65 53 65 63 74 69 6f 6e 4a 70 65  _WriteSectionJpe
25c90 67 4a 47 57 3c 2f 62 3e 20 28 20 3c 62 3e 64 62  gJGW</b> ( <b>db
25ca0 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74  Prefix</b> <i>St
25cb0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f  ring</i> , <b>co
25cc0 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
25cd0 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
25ce0 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20  b>sectionID</b> 
25cf0 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20  <i>Integer</i>  
25d00 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62  , <b>filePath</b
25d10 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
25d20 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c  , <b>width</b> <
25d30 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
25d40 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69  <b>height</b> <i
25d50 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
25d60 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
25d70 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
25d80 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a  ry</i> , <b>horz
25d90 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
25da0 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
25db0 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c  > , <b>vertPixel
25dc0 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
25dd0 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 29 20 3a  i>Double</i> ) :
25de0 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
25df0 62 72 3e 3c 62 72 3e 0a 3c 62 3e 52 4c 32 5f 57  br><br>.<b>RL2_W
25e00 72 69 74 65 53 65 63 74 69 6f 6e 4a 70 65 67 4a  riteSectionJpegJ
25e10 47 57 3c 2f 62 3e 20 28 20 3c 62 3e 64 62 50 72  GW</b> ( <b>dbPr
25e20 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  efix</b> <i>Stri
25e30 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f 76 65  ng</i> , <b>cove
25e40 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e  rageName</b> <i>
25e50 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e  String</i> , <b>
25e60 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69  sectionID</b> <i
25e70 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20 2c 20  >Integer</i>  , 
25e80 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62 3e 20  <b>filePath</b> 
25e90 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
25ea0 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c 69 3e  <b>width</b> <i>
25eb0 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62  Integer</i> , <b
25ec0 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69 3e 49  >height</b> <i>I
25ed0 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e  nteger</i> , <b>
25ee0 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62 3e 20  boundingBox</b> 
25ef0 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74 72 79  <i>BLOB-Geometry
25f00 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a 50 69  </i> , <b>horzPi
25f10 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62  xelResolution</b
25f20 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20  > <i>Double</i> 
25f30 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c 52 65  , <b>vertPixelRe
25f40 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e  solution</b> <i>
25f50 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e  Double</i> , <b>
25f60 71 75 61 6c 69 74 79 3c 2f 62 3e 20 3c 69 3e 49  quality</b> <i>I
25f70 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20 3c  nteger</i> ) : <
25f80 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c 2f 74  i>Integer</i></t
25f90 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61 74 74 65  d>.<td>Will atte
25fa0 6d 70 74 20 74 6f 20 65 78 70 6f 72 74 20 72 61  mpt to export ra
25fb0 77 20 72 61 73 74 65 72 20 64 61 74 61 20 66 72  w raster data fr
25fc0 6f 6d 20 61 20 47 52 41 59 53 43 41 4c 45 20 55  om a GRAYSCALE U
25fd0 49 4e 54 38 20 6f 72 20 52 47 42 20 55 49 4e 54  INT8 or RGB UINT
25fe0 38 20 43 6f 76 65 72 61 67 65 20 69 6e 74 6f 20  8 Coverage into 
25ff0 61 6e 20 65 78 74 65 72 6e 61 6c 20 4a 50 45 47  an external JPEG
26000 20 66 69 6c 65 20 73 75 70 70 6f 72 74 65 64 20   file supported 
26010 62 79 20 61 6e 20 61 75 78 69 6c 69 61 72 79 20  by an auxiliary 
26020 57 6f 72 6c 64 46 69 6c 65 3b 20 6f 6e 6c 79 20  WorldFile; only 
26030 74 68 65 20 54 69 6c 65 73 20 64 69 72 65 63 74  the Tiles direct
26040 6c 79 20 62 65 6c 6f 6e 67 69 6e 67 20 74 6f 20  ly belonging to 
26050 74 68 65 20 73 65 6c 65 63 74 65 64 20 53 65 63  the selected Sec
26060 74 69 6f 6e 20 77 69 6c 6c 20 62 65 20 63 6f 6e  tion will be con
26070 73 69 64 65 72 65 64 2e 3c 62 72 3e 0a 57 69 6c  sidered.<br>.Wil
26080 6c 20 72 65 74 75 72 6e 20 3c 62 3e 31 3c 2f 62  l return <b>1</b
26090 3e 20 28 54 52 55 45 2f 53 55 43 43 45 53 53 29  > (TRUE/SUCCESS)
260a0 20 6f 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41   or <b>0</b> (FA
260b0 4c 53 45 2f 46 41 49 4c 55 52 45 29 3a 20 6f 72  LSE/FAILURE): or
260c0 20 3c 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20 69 6e   <b>-1</b> on in
260d0 76 61 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 2e  valid arguments.
260e0 3c 62 72 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e  <br>.<u>Please n
260f0 6f 74 65 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c  ote</u>: .<ul>.<
26100 6c 69 3e 54 68 65 20 3c 62 3e 3c 69 3e 64 62 50  li>The <b><i>dbP
26110 72 65 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20 61 72  refix</i></b> ar
26120 67 75 6d 65 6e 74 20 69 73 20 69 6e 74 65 6e 64  gument is intend
26130 65 64 20 74 6f 20 73 70 65 63 69 66 79 20 74 68  ed to specify th
26140 65 20 41 54 54 41 43 48 45 44 2d 44 42 20 77 68  e ATTACHED-DB wh
26150 65 72 65 20 74 68 65 20 43 6f 76 65 72 61 67 65  ere the Coverage
26160 20 69 73 20 65 78 70 65 63 74 65 64 20 74 6f 20   is expected to 
26170 62 65 20 66 6f 75 6e 64 3b 20 69 74 20 63 6f 75  be found; it cou
26180 6c 64 20 62 65 20 65 76 65 6e 74 75 61 6c 6c 79  ld be eventually
26190 20 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20 61 6e   <b>NULL</b>, an
261a0 64 20 69 6e 20 74 68 69 73 20 63 61 73 65 20 74  d in this case t
261b0 68 65 20 3c 62 3e 4d 41 49 4e 20 44 42 3c 2f 62  he <b>MAIN DB</b
261c0 3e 20 77 69 6c 6c 20 69 6d 70 6c 69 63 69 74 6c  > will implicitl
261d0 79 20 62 65 20 61 73 73 75 6d 65 64 2e 3c 2f 6c  y be assumed.</l
261e0 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69  i>.<li>the <b><i
261f0 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 69 3e  >boundingBox</i>
26200 3c 2f 62 3e 20 69 73 20 65 78 70 65 63 74 65 64  </b> is expected
26210 20 74 6f 20 72 65 70 72 65 73 65 6e 74 20 74 68   to represent th
26220 65 20 6f 76 65 72 61 6c 6c 20 65 78 74 65 6e 74  e overall extent
26230 20 6f 66 20 74 68 65 20 65 78 70 6f 72 74 65 64   of the exported
26240 20 4a 50 45 47 3b 20 79 6f 75 20 63 6f 75 6c 64   JPEG; you could
26250 20 65 76 65 6e 74 75 61 6c 6c 79 20 70 61 73 73   eventually pass
26260 20 61 6e 79 20 61 72 62 69 74 72 61 72 79 20 6b   any arbitrary k
26270 69 6e 64 20 6f 66 20 47 65 6f 6d 65 74 72 79 2c  ind of Geometry,
26280 20 61 6e 64 20 74 68 65 20 42 6f 75 6e 64 69 6e   and the Boundin
26290 67 20 42 6f 78 20 61 6b 61 20 4d 42 52 20 77 69  g Box aka MBR wi
262a0 6c 6c 20 62 65 20 61 75 74 6f 6d 61 74 69 63 61  ll be automatica
262b0 6c 6c 79 20 64 65 74 65 72 6d 69 6e 65 64 2e 3c  lly determined.<
262c0 2f 6c 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e  /li>.<li>the <b>
262d0 3c 69 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f  <i>horzPixelReso
262e0 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 61  lution</i></b> a
262f0 6e 64 20 3c 62 3e 3c 69 3e 76 65 72 74 50 69 78  nd <b><i>vertPix
26300 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e  elResolution</i>
26310 3c 2f 62 3e 20 6d 75 73 74 20 65 78 61 63 74 6c  </b> must exactl
26320 79 20 6d 61 74 63 68 20 74 68 65 20 43 6f 76 65  y match the Cove
26330 72 61 67 65 27 73 20 62 61 73 65 20 72 65 73 6f  rage's base reso
26340 6c 75 74 69 6f 6e 20 6f 72 20 6f 6e 65 20 6f 66  lution or one of
26350 20 74 68 65 20 72 65 73 6f 6c 75 74 69 6f 6e 73   the resolutions
26360 20 6d 61 64 65 20 61 76 61 69 6c 61 62 6c 65 20   made available 
26370 62 79 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e  by the correspon
26380 64 69 6e 67 20 50 79 72 61 6d 69 64 20 6c 65 76  ding Pyramid lev
26390 65 6c 73 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 61 6e  els.</li>.<li>an
263a0 64 20 74 68 65 20 42 6f 75 6e 64 69 6e 67 42 6f  d the BoundingBo
263b0 78 20 6d 75 73 74 20 65 78 61 63 74 6c 79 20 6d  x must exactly m
263c0 61 74 63 68 20 74 68 65 20 4a 50 45 47 20 3c 62  atch the JPEG <b
263d0 3e 3c 69 3e 77 69 64 74 68 3c 2f 69 3e 3c 2f 62  ><i>width</i></b
263e0 3e 20 61 6e 64 20 3c 62 3e 3c 69 3e 68 65 69 67  > and <b><i>heig
263f0 68 74 3c 2f 69 3e 3c 2f 62 3e 20 64 69 6d 65 6e  ht</i></b> dimen
26400 73 69 6f 6e 73 20 61 74 20 74 68 61 74 20 72 65  sions at that re
26410 73 6f 6c 75 74 69 6f 6e 2e 3c 2f 6c 69 3e 0a 3c  solution.</li>.<
26420 6c 69 3e 74 68 65 20 6c 61 73 74 20 6f 70 74 69  li>the last opti
26430 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 63 61  onal argument ca
26440 6e 20 62 65 20 75 73 65 64 20 73 6f 20 74 6f 20  n be used so to 
26450 73 70 65 63 69 66 79 20 74 68 65 20 70 72 65 66  specify the pref
26460 65 72 72 65 64 20 4a 50 45 47 20 3c 62 3e 3c 69  erred JPEG <b><i
26470 3e 71 75 61 6c 69 74 79 3c 2f 69 3e 3c 2f 62 3e  >quality</i></b>
26480 20 28 69 6e 20 74 68 65 20 72 61 6e 67 65 20 3c   (in the range <
26490 62 3e 30 3c 2f 62 3e 20 2d 20 3c 62 3e 31 30 30  b>0</b> - <b>100
264a0 3c 2f 62 3e 29 3b 20 64 65 66 61 75 6c 74 20 69  </b>); default i
264b0 73 20 3c 62 3e 38 30 3c 2f 62 3e 2e 3c 2f 6c 69  s <b>80</b>.</li
264c0 3e 0a 3c 2f 75 6c 3e 0a 3c 74 61 62 6c 65 20 77  >.</ul>.<table w
264d0 69 64 74 68 3d 22 31 30 30 25 22 20 62 67 63 6f  idth="100%" bgco
264e0 6c 6f 72 3d 22 23 66 66 64 30 38 30 22 20 63 65  lor="#ffd080" ce
264f0 6c 6c 70 61 64 64 69 6e 67 3d 22 36 22 3e 3c 74  llpadding="6"><t
26500 72 3e 3c 74 64 3e 0a 3c 75 3e 50 6c 65 61 73 65  r><td>.<u>Please
26510 20 6e 6f 74 65 20 76 65 72 79 20 77 65 6c 6c 3c   note very well<
26520 2f 75 3e 3a 20 74 68 69 73 20 53 51 4c 20 66 75  /u>: this SQL fu
26530 6e 63 74 69 6f 6e 20 69 73 20 6f 6e 6c 79 20 61  nction is only a
26540 76 61 69 6c 61 62 6c 65 20 77 68 65 6e 20 74 68  vailable when th
26550 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61  e environment va
26560 72 69 61 62 6c 65 20 3c 62 3e 53 50 41 54 49 41  riable <b>SPATIA
26570 4c 49 54 45 5f 53 45 43 55 52 49 54 59 3d 72 65  LITE_SECURITY=re
26580 6c 61 78 65 64 3c 2f 62 3e 20 69 73 20 73 65 74  laxed</b> is set
26590 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61 62  .</td></tr></tab
265a0 6c 65 3e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c  le></td>.</tr>.<
265b0 74 72 3e 3c 74 64 3e 3c 62 3e 52 4c 32 5f 57 72  tr><td><b>RL2_Wr
265c0 69 74 65 53 65 63 74 69 6f 6e 4a 70 65 67 3c 2f  iteSectionJpeg</
265d0 62 3e 20 28 20 3c 62 3e 64 62 50 72 65 66 69 78  b> ( <b>dbPrefix
265e0 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  </b> <i>String</
265f0 69 3e 20 2c 20 3c 62 3e 63 6f 76 65 72 61 67 65  i> , <b>coverage
26600 4e 61 6d 65 3c 2f 62 3e 20 3c 69 3e 53 74 72 69  Name</b> <i>Stri
26610 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 73 65 63 74  ng</i> , <b>sect
26620 69 6f 6e 49 44 3c 2f 62 3e 20 3c 69 3e 49 6e 74  ionID</b> <i>Int
26630 65 67 65 72 3c 2f 69 3e 20 20 2c 20 3c 62 3e 66  eger</i>  , <b>f
26640 69 6c 65 50 61 74 68 3c 2f 62 3e 20 3c 69 3e 53  ilePath</b> <i>S
26650 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 77  tring</i> , <b>w
26660 69 64 74 68 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65  idth</b> <i>Inte
26670 67 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 68 65 69  ger</i> , <b>hei
26680 67 68 74 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67  ght</b> <i>Integ
26690 65 72 3c 2f 69 3e 20 2c 20 3c 62 3e 62 6f 75 6e  er</i> , <b>boun
266a0 64 69 6e 67 42 6f 78 3c 2f 62 3e 20 3c 69 3e 42  dingBox</b> <i>B
266b0 4c 4f 42 2d 47 65 6f 6d 65 74 72 79 3c 2f 69 3e  LOB-Geometry</i>
266c0 20 2c 20 3c 62 3e 70 69 78 65 6c 52 65 73 6f 6c   , <b>pixelResol
266d0 75 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75  ution</b> <i>Dou
266e0 62 6c 65 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49  ble</i> ) : <i>I
266f0 6e 74 65 67 65 72 3c 2f 69 3e 3c 62 72 3e 3c 62  nteger</i><br><b
26700 72 3e 3c 62 3e 52 4c 32 5f 57 72 69 74 65 53 65  r><b>RL2_WriteSe
26710 63 74 69 6f 6e 4a 70 65 67 3c 2f 62 3e 20 28 20  ctionJpeg</b> ( 
26720 3c 62 3e 64 62 50 72 65 66 69 78 3c 2f 62 3e 20  <b>dbPrefix</b> 
26730 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
26740 3c 62 3e 63 6f 76 65 72 61 67 65 4e 61 6d 65 3c  <b>coverageName<
26750 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69  /b> <i>String</i
26760 3e 20 2c 20 3c 62 3e 73 65 63 74 69 6f 6e 49 44  > , <b>sectionID
26770 3c 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c  </b> <i>Integer<
26780 2f 69 3e 20 20 2c 20 3c 62 3e 66 69 6c 65 50 61  /i>  , <b>filePa
26790 74 68 3c 2f 62 3e 20 3c 69 3e 53 74 72 69 6e 67  th</b> <i>String
267a0 3c 2f 69 3e 20 2c 20 3c 62 3e 77 69 64 74 68 3c  </i> , <b>width<
267b0 2f 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f  /b> <i>Integer</
267c0 69 3e 20 2c 20 3c 62 3e 68 65 69 67 68 74 3c 2f  i> , <b>height</
267d0 62 3e 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  b> <i>Integer</i
267e0 3e 20 2c 20 3c 62 3e 62 6f 75 6e 64 69 6e 67 42  > , <b>boundingB
267f0 6f 78 3c 2f 62 3e 20 3c 69 3e 42 4c 4f 42 2d 47  ox</b> <i>BLOB-G
26800 65 6f 6d 65 74 72 79 3c 2f 69 3e 20 2c 20 3c 62  eometry</i> , <b
26810 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75  >horzPixelResolu
26820 74 69 6f 6e 3c 2f 62 3e 20 3c 69 3e 44 6f 75 62  tion</b> <i>Doub
26830 6c 65 3c 2f 69 3e 20 2c 20 3c 62 3e 76 65 72 74  le</i> , <b>vert
26840 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
26850 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
26860 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65 72  > ) : <i>Integer
26870 3c 2f 69 3e 3c 62 72 3e 3c 62 72 3e 0a 3c 62 3e  </i><br><br>.<b>
26880 52 4c 32 5f 57 72 69 74 65 53 65 63 74 69 6f 6e  RL2_WriteSection
26890 4a 70 65 67 3c 2f 62 3e 20 28 20 3c 62 3e 64 62  Jpeg</b> ( <b>db
268a0 50 72 65 66 69 78 3c 2f 62 3e 20 3c 69 3e 53 74  Prefix</b> <i>St
268b0 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c 62 3e 63 6f  ring</i> , <b>co
268c0 76 65 72 61 67 65 4e 61 6d 65 3c 2f 62 3e 20 3c  verageName</b> <
268d0 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 3c  i>String</i> , <
268e0 62 3e 73 65 63 74 69 6f 6e 49 44 3c 2f 62 3e 20  b>sectionID</b> 
268f0 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 20  <i>Integer</i>  
26900 2c 20 3c 62 3e 66 69 6c 65 50 61 74 68 3c 2f 62  , <b>filePath</b
26910 3e 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20  > <i>String</i> 
26920 2c 20 3c 62 3e 77 69 64 74 68 3c 2f 62 3e 20 3c  , <b>width</b> <
26930 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20  i>Integer</i> , 
26940 3c 62 3e 68 65 69 67 68 74 3c 2f 62 3e 20 3c 69  <b>height</b> <i
26950 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 2c 20 3c  >Integer</i> , <
26960 62 3e 62 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 62  b>boundingBox</b
26970 3e 20 3c 69 3e 42 4c 4f 42 2d 47 65 6f 6d 65 74  > <i>BLOB-Geomet
26980 72 79 3c 2f 69 3e 20 2c 20 3c 62 3e 68 6f 72 7a  ry</i> , <b>horz
26990 50 69 78 65 6c 52 65 73 6f 6c 75 74 69 6f 6e 3c  PixelResolution<
269a0 2f 62 3e 20 3c 69 3e 44 6f 75 62 6c 65 3c 2f 69  /b> <i>Double</i
269b0 3e 20 2c 20 3c 62 3e 76 65 72 74 50 69 78 65 6c  > , <b>vertPixel
269c0 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 62 3e 20 3c  Resolution</b> <
269d0 69 3e 44 6f 75 62 6c 65 3c 2f 69 3e 20 2c 20 3c  i>Double</i> , <
269e0 62 3e 71 75 61 6c 69 74 79 3c 2f 62 3e 20 3c 69  b>quality</b> <i
269f0 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a  >Integer</i> ) :
26a00 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69 3e 3c   <i>Integer</i><
26a10 2f 74 64 3e 0a 3c 74 64 3e 57 69 6c 6c 20 61 74  /td>.<td>Will at
26a20 74 65 6d 70 74 20 74 6f 20 65 78 70 6f 72 74 20  tempt to export 
26a30 72 61 77 20 72 61 73 74 65 72 20 64 61 74 61 20  raw raster data 
26a40 66 72 6f 6d 20 61 20 47 52 41 59 53 43 41 4c 45  from a GRAYSCALE
26a50 20 55 49 4e 54 38 20 6f 72 20 52 47 42 20 55 49   UINT8 or RGB UI
26a60 4e 54 38 20 43 6f 76 65 72 61 67 65 20 69 6e 74  NT8 Coverage int
26a70 6f 20 61 6e 20 65 78 74 65 72 6e 61 6c 20 4a 50  o an external JP
26a80 45 47 20 66 69 6c 65 3b 20 6f 6e 6c 79 20 74 68  EG file; only th
26a90 65 20 54 69 6c 65 73 20 64 69 72 65 63 74 6c 79  e Tiles directly
26aa0 20 62 65 6c 6f 6e 67 69 6e 67 20 74 6f 20 74 68   belonging to th
26ab0 65 20 73 65 6c 65 63 74 65 64 20 53 65 63 74 69  e selected Secti
26ac0 6f 6e 20 77 69 6c 6c 20 62 65 20 63 6f 6e 73 69  on will be consi
26ad0 64 65 72 65 64 2e 3c 62 72 3e 0a 57 69 6c 6c 20  dered.<br>.Will 
26ae0 72 65 74 75 72 6e 20 3c 62 3e 31 3c 2f 62 3e 20  return <b>1</b> 
26af0 28 54 52 55 45 2f 53 55 43 43 45 53 53 29 20 6f  (TRUE/SUCCESS) o
26b00 72 20 3c 62 3e 30 3c 2f 62 3e 20 28 46 41 4c 53  r <b>0</b> (FALS
26b10 45 2f 46 41 49 4c 55 52 45 29 3a 20 6f 72 20 3c  E/FAILURE): or <
26b20 62 3e 2d 31 3c 2f 62 3e 20 6f 6e 20 69 6e 76 61  b>-1</b> on inva
26b30 6c 69 64 20 61 72 67 75 6d 65 6e 74 73 2e 3c 62  lid arguments.<b
26b40 72 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e 6f 74  r>.<u>Please not
26b50 65 3c 2f 75 3e 3a 20 0a 3c 75 6c 3e 0a 3c 6c 69  e</u>: .<ul>.<li
26b60 3e 54 68 65 20 3c 62 3e 3c 69 3e 64 62 50 72 65  >The <b><i>dbPre
26b70 66 69 78 3c 2f 69 3e 3c 2f 62 3e 20 61 72 67 75  fix</i></b> argu
26b80 6d 65 6e 74 20 69 73 20 69 6e 74 65 6e 64 65 64  ment is intended
26b90 20 74 6f 20 73 70 65 63 69 66 79 20 74 68 65 20   to specify the 
26ba0 41 54 54 41 43 48 45 44 2d 44 42 20 77 68 65 72  ATTACHED-DB wher
26bb0 65 20 74 68 65 20 43 6f 76 65 72 61 67 65 20 69  e the Coverage i
26bc0 73 20 65 78 70 65 63 74 65 64 20 74 6f 20 62 65  s expected to be
26bd0 20 66 6f 75 6e 64 3b 20 69 74 20 63 6f 75 6c 64   found; it could
26be0 20 62 65 20 65 76 65 6e 74 75 61 6c 6c 79 20 3c   be eventually <
26bf0 62 3e 4e 55 4c 4c 3c 2f 62 3e 2c 20 61 6e 64 20  b>NULL</b>, and 
26c00 69 6e 20 74 68 69 73 20 63 61 73 65 20 74 68 65  in this case the
26c10 20 3c 62 3e 4d 41 49 4e 20 44 42 3c 2f 62 3e 20   <b>MAIN DB</b> 
26c20 77 69 6c 6c 20 69 6d 70 6c 69 63 69 74 6c 79 20  will implicitly 
26c30 62 65 20 61 73 73 75 6d 65 64 2e 3c 2f 6c 69 3e  be assumed.</li>
26c40 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69 3e 62  .<li>the <b><i>b
26c50 6f 75 6e 64 69 6e 67 42 6f 78 3c 2f 69 3e 3c 2f  oundingBox</i></
26c60 62 3e 20 69 73 20 65 78 70 65 63 74 65 64 20 74  b> is expected t
26c70 6f 20 72 65 70 72 65 73 65 6e 74 20 74 68 65 20  o represent the 
26c80 6f 76 65 72 61 6c 6c 20 65 78 74 65 6e 74 20 6f  overall extent o
26c90 66 20 74 68 65 20 65 78 70 6f 72 74 65 64 20 4a  f the exported J
26ca0 50 45 47 3b 20 79 6f 75 20 63 6f 75 6c 64 20 65  PEG; you could e
26cb0 76 65 6e 74 75 61 6c 6c 79 20 70 61 73 73 20 61  ventually pass a
26cc0 6e 79 20 61 72 62 69 74 72 61 72 79 20 6b 69 6e  ny arbitrary kin
26cd0 64 20 6f 66 20 47 65 6f 6d 65 74 72 79 2c 20 61  d of Geometry, a
26ce0 6e 64 20 74 68 65 20 42 6f 75 6e 64 69 6e 67 20  nd the Bounding 
26cf0 42 6f 78 20 61 6b 61 20 4d 42 52 20 77 69 6c 6c  Box aka MBR will
26d00 20 62 65 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c   be automaticall
26d10 79 20 64 65 74 65 72 6d 69 6e 65 64 2e 3c 2f 6c  y determined.</l
26d20 69 3e 0a 3c 6c 69 3e 74 68 65 20 3c 62 3e 3c 69  i>.<li>the <b><i
26d30 3e 68 6f 72 7a 50 69 78 65 6c 52 65 73 6f 6c 75  >horzPixelResolu
26d40 74 69 6f 6e 3c 2f 69 3e 3c 2f 62 3e 20 61 6e 64  tion</i></b> and
26d50 20 3c 62 3e 3c 69 3e 76 65 72 74 50 69 78 65 6c   <b><i>vertPixel
26d60 52 65 73 6f 6c 75 74 69 6f 6e 3c 2f 69 3e 3c 2f  Resolution</i></
26d70 62 3e 20 6d 75 73 74 20 65 78 61 63 74 6c 79 20  b> must exactly 
26d80 6d 61 74 63 68 20 74 68 65 20 43 6f 76 65 72 61  match the Covera
26d90 67 65 27 73 20 62 61 73 65 20 72 65 73 6f 6c 75  ge's base resolu
26da0 74 69 6f 6e 20 6f 72 20 6f 6e 65 20 6f 66 20 74  tion or one of t
26db0 68 65 20 72 65 73 6f 6c 75 74 69 6f 6e 73 20 6d  he resolutions m
26dc0 61 64 65 20 61 76 61 69 6c 61 62 6c 65 20 62 79  ade available by
26dd0 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69   the correspondi
26de0 6e 67 20 50 79 72 61 6d 69 64 20 6c 65 76 65 6c  ng Pyramid level
26df0 73 2e 3c 2f 6c 69 3e 0a 3c 6c 69 3e 61 6e 64 20  s.</li>.<li>and 
26e00 74 68 65 20 42 6f 75 6e 64 69 6e 67 42 6f 78 20  the BoundingBox 
26e10 6d 75 73 74 20 65 78 61 63 74 6c 79 20 6d 61 74  must exactly mat
26e20 63 68 20 74 68 65 20 4a 50 45 47 20 3c 62 3e 3c  ch the JPEG <b><
26e30 69 3e 77 69 64 74 68 3c 2f 69 3e 3c 2f 62 3e 20  i>width</i></b> 
26e40 61 6e 64 20 3c 62 3e 3c 69 3e 68 65 69 67 68 74  and <b><i>height
26e50 3c 2f 69 3e 3c 2f 62 3e 20 64 69 6d 65 6e 73 69  </i></b> dimensi
26e60 6f 6e 73 20 61 74 20 74 68 61 74 20 72 65 73 6f  ons at that reso
26e70 6c 75 74 69 6f 6e 2e 3c 2f 6c 69 3e 0a 3c 6c 69  lution.</li>.<li
26e80 3e 74 68 65 20 6c 61 73 74 20 6f 70 74 69 6f 6e  >the last option
26e90 61 6c 20 61 72 67 75 6d 65 6e 74 20 63 61 6e 20  al argument can 
26ea0 62 65 20 75 73 65 64 20 73 6f 20 74 6f 20 73 70  be used so to sp
26eb0 65 63 69 66 79 20 74 68 65 20 70 72 65 66 65 72  ecify the prefer
26ec0 72 65 64 20 4a 50 45 47 20 3c 62 3e 3c 69 3e 71  red JPEG <b><i>q
26ed0 75 61 6c 69 74 79 3c 2f 69 3e 3c 2f 62 3e 20 28  uality</i></b> (
26ee0 69 6e 20 74 68 65 20 72 61 6e 67 65 20 3c 62 3e  in the range <b>
26ef0 30 3c 2f 62 3e 20 2d 20 3c 62 3e 31 30 30 3c 2f  0</b> - <b>100</
26f00 62 3e 29 3b 20 64 65 66 61 75 6c 74 20 69 73 20  b>); default is 
26f10 3c 62 3e 38 30 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0a  <b>80</b>.</li>.
26f20 3c 2f 75 6c 3e 0a 3c 74 61 62 6c 65 20 77 69 64  </ul>.<table wid
26f30 74 68 3d 22 31 30 30 25 22 20 62 67 63 6f 6c 6f  th="100%" bgcolo
26f40 72 3d 22 23 66 66 64 30 38 30 22 20 63 65 6c 6c  r="#ffd080" cell
26f50 70 61 64 64 69 6e 67 3d 22 36 22 3e 3c 74 72 3e  padding="6"><tr>
26f60 3c 74 64 3e 0a 3c 75 3e 50 6c 65 61 73 65 20 6e  <td>.<u>Please n
26f70 6f 74 65 20 76 65 72 79 20 77 65 6c 6c 3c 2f 75  ote very well</u
26f80 3e 3a 20 74 68 69 73 20 53 51 4c 20 66 75 6e 63  >: this SQL func
26f90 74 69 6f 6e 20 69 73 20 6f 6e 6c 79 20 61 76 61  tion is only ava
26fa0 69 6c 61 62 6c 65 20 77 68 65 6e 20 74 68 65 20  ilable when the 
26fb0 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69  environment vari
26fc0 61 62 6c 65 20 3c 62 3e 53 50 41 54 49 41 4c 49  able <b>SPATIALI
26fd0 54 45 5f 53 45 43 55 52 49 54 59 3d 72 65 6c 61  TE_SECURITY=rela
26fe0 78 65 64 3c 2f 62 3e 20 69 73 20 73 65 74 2e 3c  xed</b> is set.<
26ff0 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61 62 6c 65  /td></tr></table
27000 3e 3c 2f 74 64 3e 0a 3c 2f 74 72 3e 0a 3c 2f 74  ></td>.</tr>.</t
27010 61 62 6c 65 3e 0a 3c 62 72 3e 3c 62 72 3e 3c 68  able>.<br><br><h
27020 72 3e 0a 42 61 63 6b 20 74 6f 20 3c 61 20 68 72  r>.Back to <a hr
27030 65 66 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e  ef="https://www.
27040 67 61 69 61 2d 67 69 73 2e 69 74 2f 66 6f 73 73  gaia-gis.it/foss
27050 69 6c 2f 6c 69 62 72 61 73 74 65 72 6c 69 74 65  il/librasterlite
27060 32 2f 77 69 6b 69 3f 6e 61 6d 65 3d 72 61 73 74  2/wiki?name=rast
27070 65 72 6c 69 74 65 32 2d 64 6f 63 22 3e 52 61 73  erlite2-doc">Ras
27080 74 65 72 4c 69 74 65 32 20 64 6f 63 20 69 6e 64  terLite2 doc ind
27090 65 78 3c 2f 61 3e 0a 5a 20 31 33 32 36 33 33 61  ex</a>.Z 132633a
270a0 33 39 63 31 36 30 66 36 38 35 61 33 66 36 61 66  39c160f685a3f6af
270b0 36 32 32 30 31 33 65 30 66 0a                    622013e0f.