Hex Artifact Content
Not logged in

Artifact 461b173ec3618eb5c46e3dee9e7309c162233b88:

Wiki page [PROJ.6] by sandro 2019-04-22 17:27:49.
0000: 44 20 32 30 31 39 2d 30 34 2d 32 32 54 31 37 3a  D 2019-04-22T17:
0010: 32 37 3a 34 39 2e 36 34 36 0a 4c 20 50 52 4f 4a  27:49.646.L PROJ
0020: 2e 36 0a 50 20 34 65 65 33 31 31 34 31 65 36 63  .6.P 4ee31141e6c
0030: 63 64 30 39 63 36 34 32 33 30 34 65 36 34 63 35  cd09c642304e64c5
0040: 65 31 35 39 38 39 31 32 36 38 32 34 30 0a 55 20  e159891268240.U 
0050: 73 61 6e 64 72 6f 0a 57 20 32 31 35 32 32 0a 3c  sandro.W 21522.<
0060: 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f  a href="https://
0070: 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f  www.gaia-gis.it/
0080: 66 6f 73 73 69 6c 2f 6c 69 62 73 70 61 74 69 61  fossil/libspatia
0090: 6c 69 74 65 2f 77 69 6b 69 3f 6e 61 6d 65 3d 34  lite/wiki?name=4
00a0: 2e 33 2e 30 2d 64 6f 63 22 3e 62 61 63 6b 3c 2f  .3.0-doc">back</
00b0: 61 3e 3c 68 72 3e 3c 62 72 3e 0d 0a 3c 68 31 3e  a><hr><br>..<h1>
00c0: 49 6e 74 72 6f 64 75 63 74 69 6f 6e 3c 2f 68 31  Introduction</h1
00d0: 3e 0d 0a 3c 62 3e 50 52 4f 4a 3c 2f 62 3e 20 69  >..<b>PROJ</b> i
00e0: 73 20 61 20 77 65 6c 6c 2d 6b 6e 6f 77 6e 20 6c  s a well-known l
00f0: 69 62 72 61 72 79 20 66 6f 72 20 70 65 72 66 6f  ibrary for perfo
0100: 72 6d 69 6e 67 20 63 6f 6e 76 65 72 73 69 6f 6e  rming conversion
0110: 73 20 62 65 74 77 65 65 6e 20 63 61 72 74 6f 67  s between cartog
0120: 72 61 70 68 69 63 20 70 72 6f 6a 65 63 74 69 6f  raphic projectio
0130: 6e 73 2e 3c 62 72 3e 0d 0a 49 74 27 73 20 75 6e  ns.<br>..It's un
0140: 69 76 65 72 73 61 6c 6c 79 20 73 75 70 70 6f 72  iversally suppor
0150: 74 65 64 20 62 79 20 61 6c 6d 6f 73 74 20 61 6c  ted by almost al
0160: 6c 20 6f 70 65 6e 20 73 6f 75 72 63 65 20 47 49  l open source GI
0170: 53 2d 6f 72 69 65 6e 74 65 64 20 61 70 70 6c 69  S-oriented appli
0180: 63 61 74 69 6f 6e 73 20 61 6e 64 20 70 61 63 6b  cations and pack
0190: 61 67 65 73 2c 20 73 6f 20 74 68 65 72 65 20 69  ages, so there i
01a0: 73 20 6e 6f 20 6e 65 65 64 20 74 6f 20 77 61 73  s no need to was
01b0: 74 65 20 74 69 6d 65 20 69 6e 20 66 75 74 68 65  te time in futhe
01c0: 72 20 70 72 65 73 65 6e 74 61 74 69 6f 6e 73 2e  r presentations.
01d0: 3c 62 72 3e 0d 0a 57 65 20 6a 75 73 74 20 6e 65  <br>..We just ne
01e0: 65 64 20 61 20 62 69 74 20 6f 66 20 68 69 73 74  ed a bit of hist
01f0: 6f 72 79 20 74 6f 20 66 75 6c 6c 79 20 75 6e 64  ory to fully und
0200: 65 72 73 74 61 6e 64 20 74 68 65 20 63 75 72 72  erstand the curr
0210: 65 6e 74 20 73 74 61 74 65 2d 6f 66 2d 74 68 65  ent state-of-the
0220: 2d 61 72 74 3a 3c 62 72 3e 3c 62 72 3e 0d 0a 54  -art:<br><br>..T
0230: 69 6d 65 6c 69 6e 65 3a 0d 0a 3c 75 6c 3e 0d 0a  imeline:..<ul>..
0240: 3c 6c 69 3e 56 65 72 79 20 66 65 77 20 75 73 65  <li>Very few use
0250: 72 73 20 61 6e 64 20 64 65 76 65 6c 6f 70 65 72  rs and developer
0260: 73 20 64 6f 20 72 65 61 6c 6c 79 20 72 65 61 6c  s do really real
0270: 69 7a 65 20 68 6f 77 20 61 6e 63 69 65 6e 74 20  ize how ancient 
0280: 69 73 20 50 52 4f 4a 2c 20 61 6e 64 20 68 6f 77  is PROJ, and how
0290: 20 66 61 72 20 69 6e 20 74 69 6d 65 20 69 74 20   far in time it 
02a0: 73 74 61 72 74 65 64 20 6d 6f 76 69 6e 67 20 69  started moving i
02b0: 74 73 20 66 69 72 73 74 20 73 74 65 70 73 2e 3c  ts first steps.<
02c0: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 69 6e 20 3c 62 3e  /li>..<li>in <b>
02d0: 31 39 38 30 3c 2f 62 3e 20 28 61 62 6f 75 74 20  1980</b> (about 
02e0: 34 30 20 79 65 61 72 73 20 61 67 6f 29 20 47 65  40 years ago) Ge
02f0: 72 61 6c 64 20 45 76 65 6e 64 65 6e 20 73 74 61  rald Evenden sta
0300: 72 74 65 64 20 77 6f 72 6b 69 6e 67 20 6f 6e 20  rted working on 
0310: 74 68 65 20 76 65 72 79 20 66 69 72 73 74 20 50  the very first P
0320: 52 4f 4a 20 76 65 72 73 69 6f 6e 2c 20 61 6e 64  ROJ version, and
0330: 20 61 74 20 74 68 65 20 74 69 6d 65 20 69 74 20   at the time it 
0340: 77 61 73 20 61 20 52 61 74 66 6f 72 20 70 72 6f  was a Ratfor pro
0350: 67 72 61 6d 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e  gram.</li>..<li>
0360: 69 6e 20 3c 62 3e 31 39 38 35 3c 2f 62 3e 20 74  in <b>1985</b> t
0370: 68 65 20 63 6f 64 65 20 77 61 73 20 63 6f 6d 70  he code was comp
0380: 6c 65 74 65 6c 79 20 72 65 77 72 69 74 74 65 6e  letely rewritten
0390: 20 69 6e 20 43 20 74 6f 20 72 75 6e 20 6f 6e 20   in C to run on 
03a0: 55 4e 49 58 20 73 79 73 74 65 6d 73 2c 20 61 6e  UNIX systems, an
03b0: 64 20 69 74 20 77 61 73 20 6e 61 6d 65 64 20 3c  d it was named <
03c0: 62 3e 50 52 4f 4a 2e 32 3c 2f 62 3e 2e 3c 2f 6c  b>PROJ.2</b>.</l
03d0: 69 3e 0d 0a 3c 6c 69 3e 69 6e 20 3c 62 3e 31 39  i>..<li>in <b>19
03e0: 39 30 3c 2f 62 3e 20 77 61 73 20 72 65 6c 65 61  90</b> was relea
03f0: 73 65 64 20 61 6e 20 75 70 64 61 74 65 64 20 76  sed an updated v
0400: 65 72 73 69 6f 6e 20 6e 61 6d 65 64 20 3c 62 3e  ersion named <b>
0410: 50 52 4f 4a 2e 33 3c 2f 6c 69 3e 0d 0a 3c 6c 69  PROJ.3</li>..<li
0420: 3e 69 6e 20 3c 62 3e 31 39 39 34 3c 2f 62 3e 20  >in <b>1994</b> 
0430: 61 20 6d 6f 72 65 20 61 64 76 61 6e 63 65 64 20  a more advanced 
0440: 76 65 72 73 69 6f 6e 20 77 61 73 20 72 65 6c 65  version was rele
0450: 61 73 65 64 2c 20 61 6e 64 20 69 74 20 77 61 73  ased, and it was
0460: 20 6f 62 76 69 6f 75 73 6c 79 20 6e 61 6d 65 64   obviously named
0470: 20 3c 62 3e 50 52 4f 4a 2e 34 3c 2f 62 3e 3c 2f   <b>PROJ.4</b></
0480: 6c 69 3e 0d 0a 3c 6c 69 3e 69 6e 20 3c 62 3e 31  li>..<li>in <b>1
0490: 39 39 35 3c 2f 62 3e 20 45 76 65 6e 64 65 6e 20  995</b> Evenden 
04a0: 73 74 6f 70 70 65 64 20 61 6e 79 20 66 75 72 74  stopped any furt
04b0: 68 65 72 20 64 65 76 65 6c 6f 70 6d 65 6e 74 20  her development 
04c0: 61 63 74 69 76 69 74 79 20 61 6e 64 20 74 68 65  activity and the
04d0: 20 70 72 6f 6a 65 63 74 20 62 65 63 6f 6d 65 20   project become 
04e0: 69 6e 61 63 74 69 76 65 20 66 6f 72 20 73 65 76  inactive for sev
04f0: 65 72 61 6c 20 79 65 61 72 73 2e 3c 2f 6c 69 3e  eral years.</li>
0500: 0d 0a 3c 6c 69 3e 69 6e 20 3c 62 3e 32 30 30 30  ..<li>in <b>2000
0510: 3c 2f 62 3e 20 46 72 61 6e 6b 20 57 61 72 6d 65  </b> Frank Warme
0520: 72 64 61 6d 20 62 61 63 61 6d 65 20 74 68 65 20  rdam bacame the 
0530: 6e 65 77 20 6d 61 69 6e 74 61 69 6e 65 72 20 61  new maintainer a
0540: 6e 64 20 72 65 6c 65 61 73 65 64 20 76 65 72 73  nd released vers
0550: 69 6f 6e 20 3c 62 3e 34 2e 34 3c 2f 62 3e 3c 2f  ion <b>4.4</b></
0560: 6c 69 3e 0d 0a 3c 6c 69 3e 41 66 74 65 72 20 74  li>..<li>After t
0570: 68 69 73 20 72 65 62 6f 72 6e 20 74 68 65 20 72  his reborn the r
0580: 65 76 69 74 61 6c 69 7a 65 64 20 70 72 6f 6a 65  evitalized proje
0590: 63 74 20 63 6f 6e 74 69 6e 75 65 64 20 74 6f 20  ct continued to 
05a0: 62 65 20 72 65 67 75 6c 61 72 6c 79 20 6d 61 69  be regularly mai
05b0: 6e 74 61 69 6e 65 64 2c 20 62 75 74 20 6e 6f 20  ntained, but no 
05c0: 66 75 72 74 68 65 72 20 72 65 6c 65 76 61 6e 74  further relevant
05d0: 20 69 6d 70 72 6f 76 65 6d 65 6e 74 73 20 77 65   improvements we
05e0: 72 65 20 69 6e 74 72 6f 64 75 63 65 64 2e 3c 62  re introduced.<b
05f0: 72 3e 0d 0a 50 52 4f 4a 2e 34 20 6a 75 73 74 20  r>..PROJ.4 just 
0600: 63 6f 6e 74 69 6e 75 65 64 20 69 74 73 20 76 65  continued its ve
0610: 72 79 20 70 6c 61 63 69 64 20 65 76 6f 6c 75 74  ry placid evolut
0620: 69 6f 6e 20 69 6e 20 61 20 73 75 62 73 74 61 6e  ion in a substan
0630: 74 69 61 6c 6c 79 20 63 6f 6e 73 65 72 76 61 74  tially conservat
0640: 69 76 65 20 77 61 79 2e 3c 2f 6c 69 3e 0d 0a 3c  ive way.</li>..<
0650: 2f 75 6c 3e 3c 62 72 3e 0d 0a 3c 62 3e 3c 75 3e  /ul><br>..<b><u>
0660: 53 68 6f 72 74 20 63 6f 6e 63 6c 75 73 69 6f 6e  Short conclusion
0670: 3c 2f 75 3e 3c 2f 62 3e 3a 20 74 68 65 20 66 6f  </u></b>: the fo
0680: 75 72 74 68 20 76 65 72 73 69 6f 6e 20 6f 66 20  urth version of 
0690: 50 52 4f 4a 20 28 61 6b 61 20 3c 62 3e 50 52 4f  PROJ (aka <b>PRO
06a0: 4a 2e 34 3c 2f 62 3e 29 20 6c 61 73 74 65 64 20  J.4</b>) lasted 
06b0: 66 6f 72 20 61 62 6f 75 74 20 74 77 6f 20 64 65  for about two de
06c0: 63 61 64 65 73 2c 20 61 20 76 65 72 79 20 75 6e  cades, a very un
06d0: 63 6f 6d 6d 6f 6e 20 73 69 74 75 61 74 69 6f 6e  common situation
06e0: 2e 3c 62 72 3e 0d 0a 41 6e 64 20 61 20 66 75 6c  .<br>..And a ful
06f0: 6c 20 67 65 6e 65 72 61 74 69 6f 6e 20 6f 66 20  l generation of 
0700: 64 65 76 65 6c 6f 70 65 72 73 20 61 6e 64 20 75  developers and u
0710: 73 65 72 73 20 62 65 63 6f 6d 65 20 73 69 6e 63  sers become sinc
0720: 65 72 6c 79 20 63 6f 6e 76 69 6e 63 65 64 20 74  erly convinced t
0730: 68 61 74 20 50 52 4f 4a 2e 34 20 77 61 73 20 74  hat PROJ.4 was t
0740: 68 65 20 72 65 61 6c 20 6e 61 6d 65 20 6f 66 20  he real name of 
0750: 74 68 65 20 6c 69 62 72 61 72 79 2e 0d 0a 3c 68  the library...<h
0760: 33 3e 54 68 65 20 72 65 76 6f 6c 75 74 69 6f 6e  3>The revolution
0770: 20 63 6f 6d 65 73 3c 2f 68 33 3e 0d 0a 54 69 6d   comes</h3>..Tim
0780: 65 6c 69 6e 65 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c  eline:..<ul>..<l
0790: 69 3e 69 6e 20 3c 62 3e 32 30 31 38 3c 2f 62 3e  i>in <b>2018</b>
07a0: 20 45 76 65 6e 20 52 6f 75 61 75 6c 74 2c 20 4b   Even Rouault, K
07b0: 72 69 73 74 69 61 6e 20 45 76 65 72 73 20 61 6e  ristian Evers an
07c0: 64 20 6f 74 68 65 72 73 20 73 74 61 72 74 20 64  d others start d
07d0: 65 76 65 6c 6f 70 69 6e 67 20 61 20 72 65 76 6f  eveloping a revo
07e0: 6c 75 74 69 6f 6e 69 7a 65 64 20 50 52 4f 4a 20  lutionized PROJ 
07f0: 73 75 70 70 6f 72 74 69 6e 67 20 6d 61 6e 79 20  supporting many 
0800: 72 65 6c 65 76 61 6e 74 20 69 6e 6e 6f 76 61 74  relevant innovat
0810: 69 6f 6e 73 2e 3c 62 72 3e 0d 0a 3c 62 3e 50 52  ions.<br>..<b>PR
0820: 4f 4a 2e 35 3c 2f 62 3e 20 69 73 20 69 6e 74 65  OJ.5</b> is inte
0830: 6e 64 65 64 20 74 6f 20 62 65 20 74 68 65 20 66  nded to be the f
0840: 69 72 73 74 20 70 72 65 6c 69 6d 69 6e 61 72 79  irst preliminary
0850: 20 73 74 65 70 20 6f 66 20 61 20 6d 6f 72 65 20   step of a more 
0860: 63 6f 6d 70 6c 65 78 20 65 76 6f 6c 75 74 69 6f  complex evolutio
0870: 6e 20 73 63 68 65 6d 61 2e 3c 2f 6c 69 3e 0d 0a  n schema.</li>..
0880: 3c 6c 69 3e 6f 6e 20 3c 62 3e 4d 61 72 63 68 20  <li>on <b>March 
0890: 32 30 31 39 3c 2f 62 3e 20 61 20 6d 6f 72 65 20  2019</b> a more 
08a0: 6d 61 74 75 72 65 20 76 65 72 73 69 6f 6e 20 69  mature version i
08b0: 73 20 72 65 6c 65 61 73 65 64 2c 20 61 6e 64 20  s released, and 
08c0: 69 74 27 73 20 3c 62 3e 50 52 4f 4a 2e 36 3c 2f  it's <b>PROJ.6</
08d0: 62 3e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 4e 65 78  b></li>..<li>Nex
08e0: 74 20 79 65 61 72 20 28 32 30 32 30 29 20 3c 62  t year (2020) <b
08f0: 3e 50 52 4f 4a 2e 37 3c 2f 62 3e 20 69 73 20 65  >PROJ.7</b> is e
0900: 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 72 65  xpected to be re
0910: 6c 65 61 73 65 64 2c 20 61 6e 64 20 69 74 20 77  leased, and it w
0920: 69 6c 6c 20 66 75 6c 6c 79 20 63 6f 6d 70 6c 65  ill fully comple
0930: 74 65 20 74 68 65 20 74 72 61 6e 73 69 74 69 6f  te the transitio
0940: 6e 20 62 65 74 77 65 65 6e 20 74 68 65 20 6f 6c  n between the ol
0950: 64 20 61 6e 64 20 6e 65 77 20 61 72 63 68 69 74  d and new archit
0960: 65 63 74 75 72 65 73 2e 3c 2f 6c 69 3e 0d 0a 3c  ectures.</li>..<
0970: 2f 75 6c 3e 0d 0a 3c 62 72 3e 0d 0a 3c 62 3e 3c  /ul>..<br>..<b><
0980: 75 3e 4e 6f 74 65 3c 2f 75 3e 3c 2f 62 3e 3a 20  u>Note</u></b>: 
0990: 74 68 65 20 77 68 6f 6c 65 20 74 72 61 6e 73 69  the whole transi
09a0: 74 69 6f 6e 20 69 6d 70 6c 69 65 73 20 6d 61 6e  tion implies man
09b0: 79 20 72 65 6c 65 76 61 6e 74 20 63 68 61 6e 67  y relevant chang
09c0: 65 73 2c 20 73 6f 20 74 68 61 74 20 61 20 64 65  es, so that a de
09d0: 65 70 6c 79 20 72 65 76 69 73 65 64 20 41 50 49  eply revised API
09e0: 20 77 69 6c 6c 20 62 65 20 72 65 71 75 69 72 65   will be require
09f0: 64 2e 0d 0a 49 6e 20 6f 74 68 65 72 20 77 6f 72  d...In other wor
0a00: 64 73 2c 20 74 68 65 20 6f 6c 64 20 3c 62 3e 50  ds, the old <b>P
0a10: 52 4f 4a 2e 34 3c 2f 62 3e 20 61 6e 64 20 74 68  ROJ.4</b> and th
0a20: 65 20 6e 65 77 20 3c 62 3e 50 52 4f 4a 2e 37 3c  e new <b>PROJ.7<
0a30: 2f 62 3e 20 77 69 6c 6c 20 73 75 70 70 6f 72 74  /b> will support
0a40: 20 74 77 6f 20 64 69 66 66 65 72 65 6e 74 20 41   two different A
0a50: 50 49 73 2c 20 74 68 75 73 20 61 62 72 75 70 74  PIs, thus abrupt
0a60: 6c 79 20 62 72 65 61 6b 69 6e 67 20 63 72 6f 73  ly breaking cros
0a70: 73 2d 76 65 72 73 69 6f 6e 20 63 6f 6d 70 61 74  s-version compat
0a80: 69 62 69 6c 69 74 79 2e 3c 62 72 3e 0d 0a 54 68  ibility.<br>..Th
0a90: 69 73 20 69 73 20 61 6e 20 75 6d 70 6c 65 61 73  is is an umpleas
0aa0: 61 6e 74 20 6e 65 77 2c 20 62 65 63 61 75 73 65  ant new, because
0ab0: 20 69 74 20 70 72 61 63 74 69 63 61 6c 6c 79 20   it practically 
0ac0: 6d 65 61 6e 73 20 74 68 61 74 20 61 6c 6c 20 73  means that all s
0ad0: 6f 66 74 77 61 72 65 20 6d 6f 64 75 6c 65 73 20  oftware modules 
0ae0: 64 65 70 65 6e 64 69 6e 67 20 6f 6e 20 50 52 4f  depending on PRO
0af0: 4a 20 28 74 68 69 73 20 69 6e 63 6c 75 64 69 6e  J (this includin
0b00: 67 20 53 70 61 74 69 61 4c 69 74 65 29 20 77 69  g SpatiaLite) wi
0b10: 6c 6c 20 72 65 71 75 69 72 65 20 61 20 6e 6f 74  ll require a not
0b20: 20 61 74 20 61 6c 6c 20 74 72 69 76 69 61 6c 20   at all trivial 
0b30: 72 65 77 72 69 74 65 20 69 6e 20 6f 72 64 65 72  rewrite in order
0b40: 20 74 6f 20 66 75 6c 66 69 6c 6c 20 74 68 65 20   to fulfill the 
0b50: 6e 65 77 20 41 50 49 20 72 65 71 75 69 72 65 6d  new API requirem
0b60: 65 6e 74 73 2e 3c 62 72 3e 0d 0a 42 75 74 20 77  ents.<br>..But w
0b70: 68 65 6e 20 79 6f 75 20 63 6f 6e 73 69 64 65 72  hen you consider
0b80: 20 74 68 61 74 27 73 20 74 68 65 20 66 69 72 73   that's the firs
0b90: 74 20 74 69 6d 65 20 69 6e 20 69 74 73 20 76 65  t time in its ve
0ba0: 72 79 20 6c 6f 6e 67 20 6c 69 66 65 20 74 68 61  ry long life tha
0bb0: 74 20 50 52 4f 4a 20 72 65 71 75 69 72 65 73 20  t PROJ requires 
0bc0: 61 6e 20 65 78 74 72 61 20 65 66 66 72 6f 74 20  an extra effrot 
0bd0: 69 6e 20 6f 72 64 65 72 20 74 6f 20 69 6e 74 72  in order to intr
0be0: 6f 64 75 63 65 20 73 6f 20 6d 61 6e 79 20 75 73  oduce so many us
0bf0: 65 66 75 6c 20 69 6e 6e 6f 76 61 74 69 6f 6e 73  eful innovations
0c00: 2c 20 74 68 69 73 20 75 6e 65 78 70 65 63 74 65  , this unexpecte
0c10: 64 20 41 50 49 20 62 72 65 61 6b 61 67 65 20 6c  d API breakage l
0c20: 6f 6f 6b 73 20 66 75 6c 6c 79 20 6a 75 73 74 69  ooks fully justi
0c30: 66 69 65 64 20 61 6e 64 20 61 62 73 6f 6c 75 74  fied and absolut
0c40: 65 6c 79 20 72 65 61 73 6f 6e 61 62 6c 65 2e 3c  ely reasonable.<
0c50: 62 72 3e 3c 62 72 3e 0d 0a 3c 62 3e 3c 75 3e 4d  br><br>..<b><u>M
0c60: 6f 72 65 20 64 65 74 61 69 6c 73 20 61 62 6f 75  ore details abou
0c70: 74 20 74 68 65 20 41 50 49 20 62 72 65 61 6b 61  t the API breaka
0c80: 67 65 3c 2f 75 3e 3c 2f 62 3e 3a 0d 0a 3c 75 6c  ge</u></b>:..<ul
0c90: 3e 0d 0a 3c 6c 69 3e 3c 62 3e 50 52 4f 4a 2e 35  >..<li><b>PROJ.5
0ca0: 3c 2f 62 3e 20 73 74 61 72 74 65 64 20 69 6e 74  </b> started int
0cb0: 72 6f 64 75 63 69 6e 67 20 74 68 65 20 6e 65 77  roducing the new
0cc0: 20 41 50 49 2c 20 62 75 74 20 77 61 73 20 73 74   API, but was st
0cd0: 69 6c 6c 20 61 62 6c 65 20 74 6f 20 73 75 70 70  ill able to supp
0ce0: 6f 72 74 20 74 68 65 20 6f 6c 64 20 74 72 61 64  ort the old trad
0cf0: 69 74 69 6f 6e 61 6c 20 41 50 49 20 77 69 74 68  itional API with
0d00: 6f 75 74 20 61 6e 79 20 63 6f 6d 70 6c 61 69 6e  out any complain
0d10: 74 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e  t.</li>..<li><b>
0d20: 50 52 4f 4a 2e 36 3c 2f 62 3e 20 68 61 76 65 20  PROJ.6</b> have 
0d30: 64 65 70 72 65 63 65 74 65 64 20 74 68 65 20 6f  depreceted the o
0d40: 6c 64 20 74 72 61 64 69 74 69 6f 6e 61 6c 20 41  ld traditional A
0d50: 50 49 2e 3c 62 72 3e 0d 0a 49 74 20 73 74 69 6c  PI.<br>..It stil
0d60: 6c 20 63 6f 6e 74 69 6e 75 65 73 20 74 6f 20 62  l continues to b
0d70: 65 20 72 65 6c 75 63 74 61 6e 63 74 6c 79 20 73  e reluctanctly s
0d80: 75 70 70 6f 72 74 65 64 2c 20 62 75 74 20 74 68  upported, but th
0d90: 65 20 6c 69 62 72 61 72 79 20 72 65 71 75 69 72  e library requir
0da0: 65 73 20 74 6f 20 62 65 20 63 6f 6d 70 69 6c 65  es to be compile
0db0: 64 20 62 79 20 65 78 70 6c 69 63 69 74 6c 79 20  d by explicitly 
0dc0: 64 65 66 69 6e 69 6e 67 20 61 20 3c 62 3e 2d 44  defining a <b>-D
0dd0: 41 43 43 45 50 54 5f 55 53 45 5f 4f 46 5f 44 45  ACCEPT_USE_OF_DE
0de0: 50 52 45 43 41 54 45 44 5f 50 52 4f 4a 5f 41 50  PRECATED_PROJ_AP
0df0: 49 5f 48 3d 31 3c 2f 62 3e 20 64 69 72 65 63 74  I_H=1</b> direct
0e00: 69 76 65 20 69 6e 20 6f 72 64 65 72 20 74 6f 20  ive in order to 
0e10: 65 66 66 65 63 74 69 76 65 6c 79 20 65 6e 61 62  effectively enab
0e20: 6c 65 20 74 68 69 73 20 6f 70 74 69 6f 6e 2e 3c  le this option.<
0e30: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 61 6e 64 20 66 69  /li>..<li>and fi
0e40: 6e 61 6c 6c 79 20 74 68 65 20 6e 65 78 74 2d 74  nally the next-t
0e50: 6f 2d 63 6f 6d 65 20 3c 62 3e 50 52 4f 4a 2e 37  o-come <b>PROJ.7
0e60: 3c 2f 62 3e 20 77 69 6c 6c 20 63 6f 6d 70 6c 65  </b> will comple
0e70: 74 65 6c 79 20 67 65 74 20 72 69 64 20 6f 66 20  tely get rid of 
0e80: 74 68 65 20 6f 6c 64 20 41 50 49 2e 3c 2f 6c 69  the old API.</li
0e90: 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 62 72 3e 0d 0a  >..</ul>..<br>..
0ea0: 3c 68 72 3e 0d 0a 3c 68 31 3e 57 68 61 74 27 73  <hr>..<h1>What's
0eb0: 20 6e 65 77 20 69 6e 20 50 52 4f 4a 2e 36 3c 2f   new in PROJ.6</
0ec0: 68 31 3e 0d 0a 3c 68 33 3e 46 75 6c 6c 79 20 73  h1>..<h3>Fully s
0ed0: 75 70 70 6f 72 74 69 6e 67 20 49 53 4f 2d 31 39  upporting ISO-19
0ee0: 31 31 31 3a 32 30 31 39 20 57 4b 54 3c 2f 68 33  111:2019 WKT</h3
0ef0: 3e 0d 0a 4f 6c 64 20 76 65 72 73 69 6f 6e 73 20  >..Old versions 
0f00: 6f 66 20 50 52 4f 4a 20 28 69 6e 63 6c 75 64 69  of PROJ (includi
0f10: 6e 67 20 3c 62 3e 50 52 4f 4a 2e 34 3c 2f 62 3e  ng <b>PROJ.4</b>
0f20: 29 20 72 65 71 75 69 72 65 64 20 74 6f 20 64 65  ) required to de
0f30: 66 69 6e 65 20 65 61 63 68 20 3c 62 3e 43 52 53  fine each <b>CRS
0f40: 3c 2f 62 3e 20 28 3c 69 3e 43 6f 6f 72 64 69 6e  </b> (<i>Coordin
0f50: 61 74 65 20 52 65 66 65 72 65 6e 63 65 20 53 79  ate Reference Sy
0f60: 73 74 65 6d 3c 2f 69 3e 29 20 62 79 20 61 20 63  stem</i>) by a c
0f70: 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 3c 62 3e  orresponding <b>
0f80: 70 72 6f 6a 2d 73 74 72 69 6e 67 3c 2f 62 3e 2e  proj-string</b>.
0f90: 0d 0a 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20  ..The following 
0fa0: 74 61 62 6c 65 20 65 78 65 6d 70 6c 69 66 69 65  table exemplifie
0fb0: 73 20 74 68 65 20 63 61 73 65 20 6f 66 20 66 65  s the case of fe
0fc0: 77 20 43 52 53 65 73 3a 3c 62 72 3e 3c 62 72 3e  w CRSes:<br><br>
0fd0: 0d 0a 3c 74 61 62 6c 65 20 63 65 6c 6c 73 70 61  ..<table cellspa
0fe0: 63 69 6e 67 3d 22 38 22 20 63 65 6c 6c 70 61 64  cing="8" cellpad
0ff0: 64 69 6e 67 3d 22 38 22 20 62 67 63 6f 6c 6f 72  ding="8" bgcolor
1000: 3d 22 23 64 30 66 66 64 30 22 20 62 6f 72 64 65  ="#d0ffd0" borde
1010: 72 3d 22 31 22 3e 0d 0a 3c 74 72 3e 3c 74 68 3e  r="1">..<tr><th>
1020: 53 52 49 44 3c 2f 74 68 3e 3c 74 68 3e 43 52 53  SRID</th><th>CRS
1030: 20 4e 61 6d 65 3c 2f 74 68 3e 3c 74 68 3e 70 72   Name</th><th>pr
1040: 6f 6a 2d 73 74 72 69 6e 67 3c 2f 74 68 3e 3c 2f  oj-string</th></
1050: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 61 6c 69  tr>..<tr><td ali
1060: 67 6e 3d 22 72 69 67 68 74 22 3e 33 30 30 33 3c  gn="right">3003<
1070: 2f 74 64 3e 3c 74 64 3e 4d 6f 6e 74 65 20 4d 61  /td><td>Monte Ma
1080: 72 69 6f 20 2f 20 49 74 61 6c 79 20 7a 6f 6e 65  rio / Italy zone
1090: 20 31 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 2b 70 72   1</td>..<td>+pr
10a0: 6f 6a 3d 74 6d 65 72 63 20 2b 6c 61 74 5f 30 3d  oj=tmerc +lat_0=
10b0: 30 20 2b 6c 6f 6e 5f 30 3d 39 20 2b 6b 3d 30 2e  0 +lon_0=9 +k=0.
10c0: 39 39 39 36 20 2b 78 5f 30 3d 31 35 30 30 30 30  9996 +x_0=150000
10d0: 30 20 2b 79 5f 30 3d 30 20 2b 65 6c 6c 70 73 3d  0 +y_0=0 +ellps=
10e0: 69 6e 74 6c 20 2b 74 6f 77 67 73 38 34 3d 2d 31  intl +towgs84=-1
10f0: 30 34 2e 31 2c 2d 34 39 2e 31 2c 2d 39 2e 39 2c  04.1,-49.1,-9.9,
1100: 30 2e 39 37 31 2c 2d 32 2e 39 31 37 2c 30 2e 37  0.971,-2.917,0.7
1110: 31 34 2c 2d 31 31 2e 36 38 20 2b 75 6e 69 74 73  14,-11.68 +units
1120: 3d 6d 20 2b 6e 6f 5f 64 65 66 73 3c 2f 74 64 3e  =m +no_defs</td>
1130: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 61  </tr>..<tr><td a
1140: 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e 34 33 32  lign="right">432
1150: 36 3c 2f 74 64 3e 3c 74 64 3e 57 47 53 20 38 34  6</td><td>WGS 84
1160: 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 2b 70 72 6f 6a  </td>..<td>+proj
1170: 3d 6c 6f 6e 67 6c 61 74 20 2b 64 61 74 75 6d 3d  =longlat +datum=
1180: 57 47 53 38 34 20 2b 6e 6f 5f 64 65 66 73 3c 2f  WGS84 +no_defs</
1190: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74  td></tr>..<tr><t
11a0: 64 20 61 6c 69 67 6e 3d 22 72 69 67 68 74 22 3e  d align="right">
11b0: 33 32 36 33 32 3c 2f 74 64 3e 3c 74 64 3e 57 47  32632</td><td>WG
11c0: 53 20 38 34 20 2f 20 55 54 4d 20 7a 6f 6e 65 20  S 84 / UTM zone 
11d0: 33 32 4e 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 2b 70  32N</td>..<td>+p
11e0: 72 6f 6a 3d 75 74 6d 20 2b 7a 6f 6e 65 3d 33 32  roj=utm +zone=32
11f0: 20 2b 64 61 74 75 6d 3d 57 47 53 38 34 20 2b 75   +datum=WGS84 +u
1200: 6e 69 74 73 3d 6d 20 2b 6e 6f 5f 64 65 66 73 3c  nits=m +no_defs<
1210: 2f 74 64 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a  /td>..</table>..
1220: 3c 62 72 3e 0d 0a 4e 65 77 20 76 65 72 73 69 6f  <br>..New versio
1230: 6e 73 20 6f 66 20 50 52 4f 4a 20 28 73 74 61 72  ns of PROJ (star
1240: 74 69 6e 67 20 73 69 6e 63 65 20 3c 62 3e 50 52  ting since <b>PR
1250: 4f 4a 2e 36 3c 2f 62 3e 29 20 73 74 69 6c 6c 20  OJ.6</b>) still 
1260: 63 6f 6e 74 69 6e 75 65 20 74 6f 20 73 75 70 70  continue to supp
1270: 6f 72 74 20 74 68 65 20 6f 6c 64 20 3c 62 3e 70  ort the old <b>p
1280: 72 6f 6a 2d 73 74 72 69 6e 67 73 3c 2f 62 3e 2c  roj-strings</b>,
1290: 20 62 75 74 20 74 68 65 20 70 72 65 66 65 72 72   but the preferr
12a0: 65 64 20 6e 6f 74 61 74 69 6f 6e 20 66 6f 72 20  ed notation for 
12b0: 64 65 66 69 6e 69 6e 67 20 61 6e 79 20 43 52 53  defining any CRS
12c0: 20 69 73 20 6e 6f 77 20 63 6f 6e 66 6f 72 6d 61   is now conforma
12d0: 6e 74 20 74 6f 20 74 68 65 20 3c 62 3e 49 53 4f  nt to the <b>ISO
12e0: 2d 31 39 31 31 31 3a 32 30 31 39 3c 2f 62 3e 20  -19111:2019</b> 
12f0: 69 6e 74 65 72 6e 61 74 69 6f 6e 61 6c 20 73 74  international st
1300: 61 6e 64 61 72 64 3c 62 72 3e 0d 0a 28 3c 69 3e  andard<br>..(<i>
1310: 4f 47 43 20 41 62 73 74 72 61 63 74 20 53 70 65  OGC Abstract Spe
1320: 63 69 66 69 63 61 74 69 6f 6e 20 54 6f 70 69 63  cification Topic
1330: 20 32 3a 20 e2 80 9c 52 65 66 65 72 65 6e 63 69   2: ...Referenci
1340: 6e 67 20 42 79 20 43 6f 6f 72 64 69 6e 61 74 65  ng By Coordinate
1350: 73 e2 80 9d 3c 2f 69 3e 29 2e 3c 62 72 3e 0d 0a  s...</i>).<br>..
1360: 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 74 61  The following ta
1370: 62 6c 65 20 65 78 65 6d 70 6c 69 66 69 65 73 20  ble exemplifies 
1380: 74 68 65 20 73 61 6d 65 20 43 52 53 65 73 20 61  the same CRSes a
1390: 73 20 61 62 6f 76 65 20 69 6e 20 74 68 65 20 49  s above in the I
13a0: 53 4f 20 57 4b 54 20 6e 6f 74 61 74 69 6f 6e 3a  SO WKT notation:
13b0: 0d 0a 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 74 61 62  ..<br><br>..<tab
13c0: 6c 65 20 63 65 6c 6c 73 70 61 63 69 6e 67 3d 22  le cellspacing="
13d0: 38 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22  8" cellpadding="
13e0: 38 22 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66  8" bgcolor="#d0f
13f0: 66 64 30 22 20 62 6f 72 64 65 72 3d 22 31 22 3e  fd0" border="1">
1400: 0d 0a 3c 74 72 3e 3c 74 68 3e 53 52 49 44 3c 2f  ..<tr><th>SRID</
1410: 74 68 3e 3c 74 64 3e 33 30 30 33 3c 2f 74 64 3e  th><td>3003</td>
1420: 3c 74 64 3e 34 33 32 36 3c 2f 74 64 3e 3c 74 64  <td>4326</td><td
1430: 3e 33 32 36 33 32 3c 2f 74 64 3e 3c 2f 74 72 3e  >32632</td></tr>
1440: 0d 0a 3c 74 72 3e 3c 74 68 3e 43 52 53 20 4e 61  ..<tr><th>CRS Na
1450: 6d 65 3c 2f 74 68 3e 3c 74 64 3e 4d 6f 6e 74 65  me</th><td>Monte
1460: 20 4d 61 72 69 6f 20 2f 20 49 74 61 6c 79 20 7a   Mario / Italy z
1470: 6f 6e 65 20 31 3c 2f 74 64 3e 3c 2f 74 64 3e 3c  one 1</td></td><
1480: 74 64 3e 57 47 53 20 38 34 3c 2f 74 64 3e 3c 74  td>WGS 84</td><t
1490: 64 3e 57 47 53 20 38 34 20 2f 20 55 54 4d 20 7a  d>WGS 84 / UTM z
14a0: 6f 6e 65 20 33 32 4e 3c 2f 74 64 3e 3c 2f 74 72  one 32N</td></tr
14b0: 3e 0d 0a 3c 74 72 3e 3c 74 68 3e 49 53 4f 2d 32  >..<tr><th>ISO-2
14c0: 30 31 38 20 57 4b 54 3c 2f 74 68 3e 0d 0a 3c 74  018 WKT</th>..<t
14d0: 64 20 76 61 6c 69 67 6e 3d 22 74 6f 70 22 3e 3c  d valign="top"><
14e0: 76 65 72 62 61 74 69 6d 3e 0d 0a 50 52 4f 4a 43  verbatim>..PROJC
14f0: 52 53 5b 22 4d 6f 6e 74 65 20 4d 61 72 69 6f 20  RS["Monte Mario 
1500: 2f 20 49 74 61 6c 79 20 7a 6f 6e 65 20 31 22 2c  / Italy zone 1",
1510: 0d 0a 20 20 20 20 42 41 53 45 47 45 4f 44 43 52  ..    BASEGEODCR
1520: 53 5b 22 4d 6f 6e 74 65 20 4d 61 72 69 6f 22 2c  S["Monte Mario",
1530: 0d 0a 20 20 20 20 20 20 20 20 44 41 54 55 4d 5b  ..        DATUM[
1540: 22 4d 6f 6e 74 65 20 4d 61 72 69 6f 22 2c 3c 62  "Monte Mario",<b
1550: 72 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20  r>..            
1560: 45 4c 4c 49 50 53 4f 49 44 5b 22 49 6e 74 65 72  ELLIPSOID["Inter
1570: 6e 61 74 69 6f 6e 61 6c 20 31 39 32 34 22 2c 36  national 1924",6
1580: 33 37 38 33 38 38 2c 32 39 37 2c 0d 0a 20 20 20  378388,297,..   
1590: 20 20 20 20 20 20 20 20 20 20 20 20 20 4c 45 4e               LEN
15a0: 47 54 48 55 4e 49 54 5b 22 6d 65 74 72 65 22 2c  GTHUNIT["metre",
15b0: 31 5d 5d 5d 2c 0d 0a 20 20 20 20 20 20 20 20 50  1]]],..        P
15c0: 52 49 4d 45 4d 5b 22 47 72 65 65 6e 77 69 63 68  RIMEM["Greenwich
15d0: 22 2c 30 2c 0d 0a 20 20 20 20 20 20 20 20 20 20  ",0,..          
15e0: 20 20 41 4e 47 4c 45 55 4e 49 54 5b 22 64 65 67    ANGLEUNIT["deg
15f0: 72 65 65 22 2c 30 2e 30 31 37 34 35 33 32 39 32  ree",0.017453292
1600: 35 31 39 39 34 33 33 5d 5d 5d 2c 0d 0a 20 20 20  5199433]]],..   
1610: 20 43 4f 4e 56 45 52 53 49 4f 4e 5b 22 49 74 61   CONVERSION["Ita
1620: 6c 79 20 7a 6f 6e 65 20 31 22 2c 0d 0a 20 20 20  ly zone 1",..   
1630: 20 20 20 20 20 4d 45 54 48 4f 44 5b 22 54 72 61       METHOD["Tra
1640: 6e 73 76 65 72 73 65 20 4d 65 72 63 61 74 6f 72  nsverse Mercator
1650: 22 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20  ",..            
1660: 49 44 5b 22 45 50 53 47 22 2c 39 38 30 37 5d 5d  ID["EPSG",9807]]
1670: 2c 0d 0a 20 20 20 20 20 20 20 20 50 41 52 41 4d  ,..        PARAM
1680: 45 54 45 52 5b 22 4c 61 74 69 74 75 64 65 20 6f  ETER["Latitude o
1690: 66 20 6e 61 74 75 72 61 6c 20 6f 72 69 67 69 6e  f natural origin
16a0: 22 2c 30 2c 0d 0a 20 20 20 20 20 20 20 20 20 20  ",0,..          
16b0: 20 20 41 4e 47 4c 45 55 4e 49 54 5b 22 64 65 67    ANGLEUNIT["deg
16c0: 72 65 65 22 2c 30 2e 30 31 37 34 35 33 32 39 32  ree",0.017453292
16d0: 35 31 39 39 34 33 33 5d 2c 0d 0a 20 20 20 20 20  5199433],..     
16e0: 20 20 20 20 20 20 20 49 44 5b 22 45 50 53 47 22         ID["EPSG"
16f0: 2c 38 38 30 31 5d 5d 2c 0d 0a 20 20 20 20 20 20  ,8801]],..      
1700: 20 20 50 41 52 41 4d 45 54 45 52 5b 22 4c 6f 6e    PARAMETER["Lon
1710: 67 69 74 75 64 65 20 6f 66 20 6e 61 74 75 72 61  gitude of natura
1720: 6c 20 6f 72 69 67 69 6e 22 2c 39 2c 0d 0a 20 20  l origin",9,..  
1730: 20 20 20 20 20 20 20 20 20 20 41 4e 47 4c 45 55            ANGLEU
1740: 4e 49 54 5b 22 64 65 67 72 65 65 22 2c 30 2e 30  NIT["degree",0.0
1750: 31 37 34 35 33 32 39 32 35 31 39 39 34 33 33 5d  174532925199433]
1760: 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 49  ,..            I
1770: 44 5b 22 45 50 53 47 22 2c 38 38 30 32 5d 5d 2c  D["EPSG",8802]],
1780: 0d 0a 20 20 20 20 20 20 20 20 50 41 52 41 4d 45  ..        PARAME
1790: 54 45 52 5b 22 53 63 61 6c 65 20 66 61 63 74 6f  TER["Scale facto
17a0: 72 20 61 74 20 6e 61 74 75 72 61 6c 20 6f 72 69  r at natural ori
17b0: 67 69 6e 22 2c 30 2e 39 39 39 36 2c 0d 0a 20 20  gin",0.9996,..  
17c0: 20 20 20 20 20 20 20 20 20 20 53 43 41 4c 45 55            SCALEU
17d0: 4e 49 54 5b 22 75 6e 69 74 79 22 2c 31 5d 2c 0d  NIT["unity",1],.
17e0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 44 5b  .            ID[
17f0: 22 45 50 53 47 22 2c 38 38 30 35 5d 5d 2c 0d 0a  "EPSG",8805]],..
1800: 20 20 20 20 20 20 20 20 50 41 52 41 4d 45 54 45          PARAMETE
1810: 52 5b 22 46 61 6c 73 65 20 65 61 73 74 69 6e 67  R["False easting
1820: 22 2c 31 35 30 30 30 30 30 2c 0d 0a 20 20 20 20  ",1500000,..    
1830: 20 20 20 20 20 20 20 20 4c 45 4e 47 54 48 55 4e          LENGTHUN
1840: 49 54 5b 22 6d 65 74 72 65 22 2c 31 5d 2c 0d 0a  IT["metre",1],..
1850: 20 20 20 20 20 20 20 20 20 20 20 20 49 44 5b 22              ID["
1860: 45 50 53 47 22 2c 38 38 30 36 5d 5d 2c 0d 0a 20  EPSG",8806]],.. 
1870: 20 20 20 20 20 20 20 50 41 52 41 4d 45 54 45 52         PARAMETER
1880: 5b 22 46 61 6c 73 65 20 6e 6f 72 74 68 69 6e 67  ["False northing
1890: 22 2c 30 2c 0d 0a 20 20 20 20 20 20 20 20 20 20  ",0,..          
18a0: 20 20 4c 45 4e 47 54 48 55 4e 49 54 5b 22 6d 65    LENGTHUNIT["me
18b0: 74 72 65 22 2c 31 5d 2c 0d 0a 20 20 20 20 20 20  tre",1],..      
18c0: 20 20 20 20 20 20 49 44 5b 22 45 50 53 47 22 2c        ID["EPSG",
18d0: 38 38 30 37 5d 5d 5d 2c 0d 0a 20 20 20 20 43 53  8807]]],..    CS
18e0: 5b 43 61 72 74 65 73 69 61 6e 2c 32 5d 2c 0d 0a  [Cartesian,2],..
18f0: 20 20 20 20 20 20 20 20 41 58 49 53 5b 22 65 61          AXIS["ea
1900: 73 74 69 6e 67 20 28 58 29 22 2c 65 61 73 74 2c  sting (X)",east,
1910: 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4f 52  ..            OR
1920: 44 45 52 5b 31 5d 2c 0d 0a 20 20 20 20 20 20 20  DER[1],..       
1930: 20 20 20 20 20 4c 45 4e 47 54 48 55 4e 49 54 5b       LENGTHUNIT[
1940: 22 6d 65 74 72 65 22 2c 31 5d 5d 2c 0d 0a 20 20  "metre",1]],..  
1950: 20 20 20 20 20 20 41 58 49 53 5b 22 6e 6f 72 74        AXIS["nort
1960: 68 69 6e 67 20 28 59 29 22 2c 6e 6f 72 74 68 2c  hing (Y)",north,
1970: 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 4f 52  ..            OR
1980: 44 45 52 5b 32 5d 2c 3c 62 72 3e 0d 0a 20 20 20  DER[2],<br>..   
1990: 20 20 20 20 20 20 20 20 20 4c 45 4e 47 54 48 55           LENGTHU
19a0: 4e 49 54 5b 22 6d 65 74 72 65 22 2c 31 5d 5d 2c  NIT["metre",1]],
19b0: 0d 0a 20 20 20 20 41 52 45 41 5b 22 49 74 61 6c  ..    AREA["Ital
19c0: 79 20 2d 20 77 65 73 74 20 6f 66 20 31 32 c2 b0  y - west of 12..
19d0: 45 22 5d 2c 0d 0a 20 20 20 20 42 42 4f 58 5b 33  E"],..    BBOX[3
19e0: 36 2e 35 33 2c 35 2e 39 34 2c 34 37 2e 30 34 2c  6.53,5.94,47.04,
19f0: 31 32 5d 2c 0d 0a 20 20 20 20 49 44 5b 22 45 50  12],..    ID["EP
1a00: 53 47 22 2c 33 30 30 33 5d 5d 0d 0a 3c 2f 76 65  SG",3003]]..</ve
1a10: 72 62 61 74 69 6d 3e 3c 2f 74 64 3e 0d 0a 3c 74  rbatim></td>..<t
1a20: 64 20 76 61 6c 69 67 6e 3d 22 74 6f 70 22 3e 3c  d valign="top"><
1a30: 76 65 72 62 61 74 69 6d 3e 0d 0a 47 45 4f 44 43  verbatim>..GEODC
1a40: 52 53 5b 22 57 47 53 20 38 34 22 2c 0d 0a 20 20  RS["WGS 84",..  
1a50: 20 20 44 41 54 55 4d 5b 22 57 6f 72 6c 64 20 47    DATUM["World G
1a60: 65 6f 64 65 74 69 63 20 53 79 73 74 65 6d 20 31  eodetic System 1
1a70: 39 38 34 22 2c 0d 0a 20 20 20 20 20 20 20 20 45  984",..        E
1a80: 4c 4c 49 50 53 4f 49 44 5b 22 57 47 53 20 38 34  LLIPSOID["WGS 84
1a90: 22 2c 36 33 37 38 31 33 37 2c 32 39 38 2e 32 35  ",6378137,298.25
1aa0: 37 32 32 33 35 36 33 2c 0d 0a 20 20 20 20 20 20  7223563,..      
1ab0: 20 20 20 20 20 20 4c 45 4e 47 54 48 55 4e 49 54        LENGTHUNIT
1ac0: 5b 22 6d 65 74 72 65 22 2c 31 5d 5d 5d 2c 0d 0a  ["metre",1]]],..
1ad0: 20 20 20 20 50 52 49 4d 45 4d 5b 22 47 72 65 65      PRIMEM["Gree
1ae0: 6e 77 69 63 68 22 2c 30 2c 0d 0a 20 20 20 20 20  nwich",0,..     
1af0: 20 20 20 41 4e 47 4c 45 55 4e 49 54 5b 22 64 65     ANGLEUNIT["de
1b00: 67 72 65 65 22 2c 30 2e 30 31 37 34 35 33 32 39  gree",0.01745329
1b10: 32 35 31 39 39 34 33 33 5d 5d 2c 0d 0a 20 20 20  25199433]],..   
1b20: 20 43 53 5b 65 6c 6c 69 70 73 6f 69 64 61 6c 2c   CS[ellipsoidal,
1b30: 32 5d 2c 0d 0a 20 20 20 20 20 20 20 20 41 58 49  2],..        AXI
1b40: 53 5b 22 67 65 6f 64 65 74 69 63 20 6c 61 74 69  S["geodetic lati
1b50: 74 75 64 65 20 28 4c 61 74 29 22 2c 6e 6f 72 74  tude (Lat)",nort
1b60: 68 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20  h,..            
1b70: 4f 52 44 45 52 5b 31 5d 2c 0d 0a 20 20 20 20 20  ORDER[1],..     
1b80: 20 20 20 20 20 20 20 41 4e 47 4c 45 55 4e 49 54         ANGLEUNIT
1b90: 5b 22 64 65 67 72 65 65 22 2c 30 2e 30 31 37 34  ["degree",0.0174
1ba0: 35 33 32 39 32 35 31 39 39 34 33 33 5d 5d 2c 0d  532925199433]],.
1bb0: 0a 20 20 20 20 20 20 20 20 41 58 49 53 5b 22 67  .        AXIS["g
1bc0: 65 6f 64 65 74 69 63 20 6c 6f 6e 67 69 74 75 64  eodetic longitud
1bd0: 65 20 28 4c 6f 6e 29 22 2c 65 61 73 74 2c 0d 0a  e (Lon)",east,..
1be0: 20 20 20 20 20 20 20 20 20 20 20 20 4f 52 44 45              ORDE
1bf0: 52 5b 32 5d 2c 0d 0a 20 20 20 20 20 20 20 20 20  R[2],..         
1c00: 20 20 20 41 4e 47 4c 45 55 4e 49 54 5b 22 64 65     ANGLEUNIT["de
1c10: 67 72 65 65 22 2c 30 2e 30 31 37 34 35 33 32 39  gree",0.01745329
1c20: 32 35 31 39 39 34 33 33 5d 5d 2c 0d 0a 20 20 20  25199433]],..   
1c30: 20 41 52 45 41 5b 22 57 6f 72 6c 64 22 5d 2c 0d   AREA["World"],.
1c40: 0a 20 20 20 20 42 42 4f 58 5b 2d 39 30 2c 2d 31  .    BBOX[-90,-1
1c50: 38 30 2c 39 30 2c 31 38 30 5d 2c 0d 0a 20 20 20  80,90,180],..   
1c60: 20 49 44 5b 22 45 50 53 47 22 2c 34 33 32 36 5d   ID["EPSG",4326]
1c70: 5d 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f  ]..</verbatim></
1c80: 74 64 3e 0d 0a 3c 74 64 20 76 61 6c 69 67 6e 3d  td>..<td valign=
1c90: 22 74 6f 70 22 3e 3c 76 65 72 62 61 74 69 6d 3e  "top"><verbatim>
1ca0: 0d 0a 50 52 4f 4a 43 52 53 5b 22 57 47 53 20 38  ..PROJCRS["WGS 8
1cb0: 34 20 2f 20 55 54 4d 20 7a 6f 6e 65 20 33 32 4e  4 / UTM zone 32N
1cc0: 22 2c 0d 0a 20 20 20 20 42 41 53 45 47 45 4f 44  ",..    BASEGEOD
1cd0: 43 52 53 5b 22 57 47 53 20 38 34 22 2c 0d 0a 20  CRS["WGS 84",.. 
1ce0: 20 20 20 20 20 20 20 44 41 54 55 4d 5b 22 57 6f         DATUM["Wo
1cf0: 72 6c 64 20 47 65 6f 64 65 74 69 63 20 53 79 73  rld Geodetic Sys
1d00: 74 65 6d 20 31 39 38 34 22 2c 0d 0a 20 20 20 20  tem 1984",..    
1d10: 20 20 20 20 20 20 20 20 45 4c 4c 49 50 53 4f 49          ELLIPSOI
1d20: 44 5b 22 57 47 53 20 38 34 22 2c 36 33 37 38 31  D["WGS 84",63781
1d30: 33 37 2c 32 39 38 2e 32 35 37 32 32 33 35 36 33  37,298.257223563
1d40: 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20  ,..             
1d50: 20 20 20 4c 45 4e 47 54 48 55 4e 49 54 5b 22 6d     LENGTHUNIT["m
1d60: 65 74 72 65 22 2c 31 5d 5d 5d 2c 0d 0a 20 20 20  etre",1]]],..   
1d70: 20 20 20 20 20 50 52 49 4d 45 4d 5b 22 47 72 65       PRIMEM["Gre
1d80: 65 6e 77 69 63 68 22 2c 30 2c 0d 0a 20 20 20 20  enwich",0,..    
1d90: 20 20 20 20 20 20 20 20 41 4e 47 4c 45 55 4e 49          ANGLEUNI
1da0: 54 5b 22 64 65 67 72 65 65 22 2c 30 2e 30 31 37  T["degree",0.017
1db0: 34 35 33 32 39 32 35 31 39 39 34 33 33 5d 5d 5d  4532925199433]]]
1dc0: 2c 0d 0a 20 20 20 20 43 4f 4e 56 45 52 53 49 4f  ,..    CONVERSIO
1dd0: 4e 5b 22 55 54 4d 20 7a 6f 6e 65 20 33 32 4e 22  N["UTM zone 32N"
1de0: 2c 0d 0a 20 20 20 20 20 20 20 20 4d 45 54 48 4f  ,..        METHO
1df0: 44 5b 22 54 72 61 6e 73 76 65 72 73 65 20 4d 65  D["Transverse Me
1e00: 72 63 61 74 6f 72 22 2c 0d 0a 20 20 20 20 20 20  rcator",..      
1e10: 20 20 20 20 20 20 49 44 5b 22 45 50 53 47 22 2c        ID["EPSG",
1e20: 39 38 30 37 5d 5d 2c 0d 0a 20 20 20 20 20 20 20  9807]],..       
1e30: 20 50 41 52 41 4d 45 54 45 52 5b 22 4c 61 74 69   PARAMETER["Lati
1e40: 74 75 64 65 20 6f 66 20 6e 61 74 75 72 61 6c 20  tude of natural 
1e50: 6f 72 69 67 69 6e 22 2c 30 2c 0d 0a 20 20 20 20  origin",0,..    
1e60: 20 20 20 20 20 20 20 20 41 4e 47 4c 45 55 4e 49          ANGLEUNI
1e70: 54 5b 22 64 65 67 72 65 65 22 2c 30 2e 30 31 37  T["degree",0.017
1e80: 34 35 33 32 39 32 35 31 39 39 34 33 33 5d 2c 0d  4532925199433],.
1e90: 0a 20 20 20 20 20 20 20 20 20 20 20 20 49 44 5b  .            ID[
1ea0: 22 45 50 53 47 22 2c 38 38 30 31 5d 5d 2c 0d 0a  "EPSG",8801]],..
1eb0: 20 20 20 20 20 20 20 20 50 41 52 41 4d 45 54 45          PARAMETE
1ec0: 52 5b 22 4c 6f 6e 67 69 74 75 64 65 20 6f 66 20  R["Longitude of 
1ed0: 6e 61 74 75 72 61 6c 20 6f 72 69 67 69 6e 22 2c  natural origin",
1ee0: 39 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20  9,..            
1ef0: 41 4e 47 4c 45 55 4e 49 54 5b 22 64 65 67 72 65  ANGLEUNIT["degre
1f00: 65 22 2c 30 2e 30 31 37 34 35 33 32 39 32 35 31  e",0.01745329251
1f10: 39 39 34 33 33 5d 2c 0d 0a 20 20 20 20 20 20 20  99433],..       
1f20: 20 20 20 20 20 49 44 5b 22 45 50 53 47 22 2c 38       ID["EPSG",8
1f30: 38 30 32 5d 5d 2c 0d 0a 20 20 20 20 20 20 20 20  802]],..        
1f40: 50 41 52 41 4d 45 54 45 52 5b 22 53 63 61 6c 65  PARAMETER["Scale
1f50: 20 66 61 63 74 6f 72 20 61 74 20 6e 61 74 75 72   factor at natur
1f60: 61 6c 20 6f 72 69 67 69 6e 22 2c 30 2e 39 39 39  al origin",0.999
1f70: 36 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20  6,..            
1f80: 53 43 41 4c 45 55 4e 49 54 5b 22 75 6e 69 74 79  SCALEUNIT["unity
1f90: 22 2c 31 5d 2c 0d 0a 20 20 20 20 20 20 20 20 20  ",1],..         
1fa0: 20 20 20 49 44 5b 22 45 50 53 47 22 2c 38 38 30     ID["EPSG",880
1fb0: 35 5d 5d 2c 0d 0a 20 20 20 20 20 20 20 20 50 41  5]],..        PA
1fc0: 52 41 4d 45 54 45 52 5b 22 46 61 6c 73 65 20 65  RAMETER["False e
1fd0: 61 73 74 69 6e 67 22 2c 35 30 30 30 30 30 2c 0d  asting",500000,.
1fe0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 4c 45 4e  .            LEN
1ff0: 47 54 48 55 4e 49 54 5b 22 6d 65 74 72 65 22 2c  GTHUNIT["metre",
2000: 31 5d 2c 0d 0a 20 20 20 20 20 20 20 20 20 20 20  1],..           
2010: 20 49 44 5b 22 45 50 53 47 22 2c 38 38 30 36 5d   ID["EPSG",8806]
2020: 5d 2c 0d 0a 20 20 20 20 20 20 20 20 50 41 52 41  ],..        PARA
2030: 4d 45 54 45 52 5b 22 46 61 6c 73 65 20 6e 6f 72  METER["False nor
2040: 74 68 69 6e 67 22 2c 30 2c 0d 0a 20 20 20 20 20  thing",0,..     
2050: 20 20 20 20 20 20 20 4c 45 4e 47 54 48 55 4e 49         LENGTHUNI
2060: 54 5b 22 6d 65 74 72 65 22 2c 31 5d 2c 0d 0a 20  T["metre",1],.. 
2070: 20 20 20 20 20 20 20 20 20 20 20 49 44 5b 22 45             ID["E
2080: 50 53 47 22 2c 38 38 30 37 5d 5d 5d 2c 0d 0a 20  PSG",8807]]],.. 
2090: 20 20 20 43 53 5b 43 61 72 74 65 73 69 61 6e 2c     CS[Cartesian,
20a0: 32 5d 2c 0d 0a 20 20 20 20 20 20 20 20 41 58 49  2],..        AXI
20b0: 53 5b 22 28 45 29 22 2c 65 61 73 74 2c 0d 0a 20  S["(E)",east,.. 
20c0: 20 20 20 20 20 20 20 20 20 20 20 4f 52 44 45 52             ORDER
20d0: 5b 31 5d 2c 0d 0a 20 20 20 20 20 20 20 20 20 20  [1],..          
20e0: 20 20 4c 45 4e 47 54 48 55 4e 49 54 5b 22 6d 65    LENGTHUNIT["me
20f0: 74 72 65 22 2c 31 5d 5d 2c 0d 0a 20 20 20 20 20  tre",1]],..     
2100: 20 20 20 41 58 49 53 5b 22 28 4e 29 22 2c 6e 6f     AXIS["(N)",no
2110: 72 74 68 2c 0d 0a 20 20 20 20 20 20 20 20 20 20  rth,..          
2120: 20 20 4f 52 44 45 52 5b 32 5d 2c 0d 0a 20 20 20    ORDER[2],..   
2130: 20 20 20 20 20 20 20 20 20 4c 45 4e 47 54 48 55           LENGTHU
2140: 4e 49 54 5b 22 6d 65 74 72 65 22 2c 31 5d 5d 2c  NIT["metre",1]],
2150: 0d 0a 20 20 20 20 41 52 45 41 5b 22 57 6f 72 6c  ..    AREA["Worl
2160: 64 20 2d 20 4e 20 68 65 6d 69 73 70 68 65 72 65  d - N hemisphere
2170: 20 2d 20 36 c2 b0 45 20 74 6f 20 31 32 c2 b0 45   - 6..E to 12..E
2180: 20 2d 20 62 79 20 63 6f 75 6e 74 72 79 22 5d 2c   - by country"],
2190: 0d 0a 20 20 20 20 42 42 4f 58 5b 30 2c 36 2c 38  ..    BBOX[0,6,8
21a0: 34 2c 31 32 5d 2c 0d 0a 20 20 20 20 49 44 5b 22  4,12],..    ID["
21b0: 45 50 53 47 22 2c 33 32 36 33 32 5d 5d 0d 0a 3c  EPSG",32632]]..<
21c0: 2f 76 65 72 62 61 74 69 6d 3e 3c 2f 74 64 3e 0d  /verbatim></td>.
21d0: 0a 3c 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e  .</tr>..</table>
21e0: 0d 0a 3c 62 72 3e 0d 0a 41 73 20 79 6f 75 20 63  ..<br>..As you c
21f0: 61 6e 20 65 61 73 69 6c 79 20 6e 6f 74 69 63 65  an easily notice
2200: 2c 20 74 68 65 20 74 77 6f 20 6e 6f 74 61 74 69  , the two notati
2210: 6f 6e 73 20 61 72 65 20 70 72 6f 66 6f 75 6e 64  ons are profound
2220: 6c 79 20 64 69 66 66 65 72 65 6e 74 2e 0d 0a 54  ly different...T
2230: 68 65 20 6f 6c 64 20 3c 62 3e 70 72 6f 6a 2d 73  he old <b>proj-s
2240: 74 72 69 6e 67 3c 2f 62 3e 20 6e 6f 74 61 74 69  tring</b> notati
2250: 6f 6e 20 69 73 20 65 78 74 72 65 6d 65 6c 79 20  on is extremely 
2260: 63 6f 6e 63 69 73 65 20 61 6e 64 20 72 6f 75 67  concise and roug
2270: 68 2c 20 77 68 69 6c 73 74 20 74 68 65 20 6e 65  h, whilst the ne
2280: 77 20 3c 62 3e 49 53 4f 2d 57 4b 54 3c 2f 62 3e  w <b>ISO-WKT</b>
2290: 20 69 73 20 76 65 72 62 6f 73 65 20 62 75 74 20   is verbose but 
22a0: 65 78 68 61 75 73 74 69 76 65 2c 20 64 65 74 61  exhaustive, deta
22b0: 69 6c 65 64 20 61 6e 64 20 70 72 65 63 69 73 65  iled and precise
22c0: 2e 3c 62 72 3e 0d 0a 54 68 65 72 65 20 69 73 20  .<br>..There is 
22d0: 6e 6f 20 70 6f 73 73 69 62 6c 65 20 6d 61 74 63  no possible matc
22e0: 68 3a 20 49 53 4f 2d 4b 57 54 20 69 73 20 63 6c  h: ISO-KWT is cl
22f0: 65 61 72 6c 79 20 73 75 70 65 72 69 6f 72 20 61  early superior a
2300: 6e 64 20 6d 6f 72 65 20 73 6f 70 68 69 73 74 69  nd more sophisti
2310: 63 61 74 65 64 20 75 6e 64 65 72 20 61 6e 79 20  cated under any 
2320: 70 6f 73 73 69 62 6c 65 20 61 73 70 65 63 74 2e  possible aspect.
2330: 3c 62 72 3e 0d 0a 4e 6f 74 20 61 74 20 61 6c 6c  <br>..Not at all
2340: 20 73 75 72 70 72 69 73 69 6e 67 6c 79 2c 20 63   surprisingly, c
2350: 6f 6f 72 64 69 6e 61 74 65 20 74 72 61 6e 73 66  oordinate transf
2360: 6f 72 6d 61 74 69 6f 6e 73 20 62 61 73 65 64 20  ormations based 
2370: 6f 6e 20 49 53 4f 2d 57 4b 54 20 64 65 66 69 6e  on ISO-WKT defin
2380: 69 74 69 6f 6e 73 20 28 69 6e 73 74 65 61 64 20  itions (instead 
2390: 6f 66 20 70 72 6f 6a 2d 73 74 72 69 6e 67 73 29  of proj-strings)
23a0: 20 61 72 65 20 75 73 75 61 6c 6c 79 20 65 78 70   are usually exp
23b0: 65 63 74 65 64 20 74 6f 20 62 65 20 6d 6f 72 65  ected to be more
23c0: 20 61 63 63 75 72 61 74 65 2e 3c 62 72 3e 3c 62   accurate.<br><b
23d0: 72 3e 0d 0a 41 6e 64 20 74 68 61 74 27 73 20 6e  r>..And that's n
23e0: 6f 74 20 61 6c 6c 3b 20 74 68 65 20 6f 6c 64 20  ot all; the old 
23f0: 3c 62 3e 70 72 6f 6a 2d 73 74 72 69 6e 67 73 3c  <b>proj-strings<
2400: 2f 62 3e 20 77 65 72 65 6e 27 74 20 66 6f 72 6d  /b> weren't form
2410: 61 6c 6c 79 20 64 65 66 69 6e 65 64 20 62 79 20  ally defined by 
2420: 61 6e 79 20 73 74 61 6e 64 61 72 64 2c 20 61 6e  any standard, an
2430: 64 20 6f 6e 6c 79 20 50 52 4f 4a 2c 20 47 44 41  d only PROJ, GDA
2440: 4c 20 61 6e 64 20 66 65 77 20 6f 74 68 65 72 20  L and few other 
2450: 46 4c 4f 53 53 20 2f 20 47 46 4f 53 53 20 69 6d  FLOSS / GFOSS im
2460: 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 73 20 63 61  plementations ca
2470: 6e 20 75 6e 64 65 72 73 74 61 6e 64 20 74 68 65  n understand the
2480: 6d 2e 3c 62 72 3e 0d 0a 41 74 20 74 68 65 20 6f  m.<br>..At the o
2490: 70 70 6f 73 69 74 65 2c 20 74 68 65 20 6e 65 77  pposite, the new
24a0: 20 3c 62 3e 49 53 4f 2d 57 4b 54 3c 2f 62 3e 20   <b>ISO-WKT</b> 
24b0: 69 73 20 66 6f 72 6d 61 6c 6c 79 20 64 65 66 69  is formally defi
24c0: 6e 65 64 20 62 79 20 61 6e 20 69 6e 74 65 72 6e  ned by an intern
24d0: 61 74 69 6f 6e 61 6c 20 73 74 61 6e 64 61 72 64  ational standard
24e0: 2c 20 61 6e 64 20 6d 61 6e 79 20 66 72 65 65 20  , and many free 
24f0: 61 6e 64 20 70 72 6f 70 72 69 65 74 61 72 79 20  and proprietary 
2500: 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 73 20  implementations 
2510: 63 61 6e 20 75 6e 64 65 72 73 74 61 6e 64 20 69  can understand i
2520: 74 2e 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 74 61 62  t.<br><br>..<tab
2530: 6c 65 20 63 65 6c 6c 73 70 61 63 69 6e 67 3d 22  le cellspacing="
2540: 38 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22  8" cellpadding="
2550: 31 36 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66  16" bgcolor="#ff
2560: 66 66 63 39 22 3e 0d 0a 3c 74 72 3e 3c 74 64 3e  ffc9">..<tr><td>
2570: 0d 0a 3c 62 3e 3c 75 3e 49 6d 70 6f 72 74 61 6e  ..<b><u>Importan
2580: 74 20 6e 6f 74 69 63 65 3c 2f 75 3e 3c 2f 62 3e  t notice</u></b>
2590: 3a 20 74 68 65 72 65 20 61 72 65 20 73 65 76 65  : there are seve
25a0: 72 61 6c 20 64 69 61 6c 65 63 74 73 20 69 6e 20  ral dialects in 
25b0: 74 68 65 20 57 4b 54 20 6e 6f 74 61 74 69 6f 6e  the WKT notation
25c0: 20 64 65 73 63 72 69 62 69 6e 67 20 43 52 53 65   describing CRSe
25d0: 73 2e 3c 62 72 3e 0d 0a 41 6c 6c 20 74 68 65 6d  s.<br>..All them
25e0: 20 73 68 61 72 65 20 74 68 65 20 73 61 6d 65 20   share the same 
25f0: 63 6f 72 65 20 61 6e 64 20 6d 61 69 6e 6c 79 20  core and mainly 
2600: 64 69 66 66 65 72 20 69 6e 20 66 65 77 20 6d 69  differ in few mi
2610: 6e 6f 72 20 64 65 74 61 69 6c 73 2e 3c 62 72 3e  nor details.<br>
2620: 0d 0a 50 52 4f 4a 2e 36 20 63 61 6e 20 75 6e 64  ..PROJ.6 can und
2630: 65 72 73 74 61 6e 64 20 74 68 65 20 66 6f 6c 6c  erstand the foll
2640: 6f 77 69 6e 67 20 64 69 61 6c 65 63 74 73 3a 0d  owing dialects:.
2650: 0a 3c 6f 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 45 53  .<ol>..<li><b>ES
2660: 52 49 20 57 4b 54 3c 2f 62 3e 3a 20 61 20 64 69  RI WKT</b>: a di
2670: 61 6c 65 63 74 20 77 69 64 65 6c 79 20 61 64 6f  alect widely ado
2680: 70 74 65 64 20 62 79 20 45 53 52 49 20 70 72 6f  pted by ESRI pro
2690: 70 72 69 65 74 61 72 79 20 73 6f 66 74 77 61 72  prietary softwar
26a0: 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e  e.</li>..<li><b>
26b0: 47 44 41 4c 20 57 4b 54 31 3c 2f 62 3e 3a 20 61  GDAL WKT1</b>: a
26c0: 20 64 69 61 6c 65 63 74 20 68 69 73 74 6f 72 69   dialect histori
26d0: 63 61 6c 6c 79 20 73 75 70 70 6f 72 74 65 64 20  cally supported 
26e0: 62 79 20 74 68 65 20 6f 70 65 6e 20 73 6f 75 72  by the open sour
26f0: 63 65 20 47 44 41 4c 20 6c 69 62 72 61 72 79 2e  ce GDAL library.
2700: 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 57 4b  </li>..<li><b>WK
2710: 54 32 3a 32 30 31 35 3c 2f 62 3e 3a 20 61 73 20  T2:2015</b>: as 
2720: 64 65 66 69 6e 65 64 20 62 79 20 3c 62 3e 49 53  defined by <b>IS
2730: 4f 20 31 39 31 36 32 3a 32 30 31 35 3c 2f 62 3e  O 19162:2015</b>
2740: 20 73 74 61 6e 64 61 72 64 20 73 70 65 63 69 66   standard specif
2750: 69 63 61 74 69 6f 6e 73 2e 3c 2f 6c 69 3e 0d 0a  ications.</li>..
2760: 3c 6c 69 3e 3c 62 3e 57 4b 54 32 3a 32 30 31 38  <li><b>WKT2:2018
2770: 3c 2f 62 3e 3a 20 61 73 20 64 65 66 69 6e 65 64  </b>: as defined
2780: 20 62 79 20 3c 62 3e 49 53 4f 20 31 39 31 36 32   by <b>ISO 19162
2790: 3a 32 30 31 38 3c 2f 62 3e 20 73 74 61 6e 64 61  :2018</b> standa
27a0: 72 64 20 73 70 65 63 69 66 69 63 61 74 69 6f 6e  rd specification
27b0: 73 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 6f 6c 3e 0d 0a  s.</li>..</ol>..
27c0: 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 2f 74 61  </td></tr>..</ta
27d0: 62 6c 65 3e 3c 62 72 3e 0d 0a 3c 68 33 3e 54 72  ble><br>..<h3>Tr
27e0: 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 20 70 69 70  ansformation pip
27f0: 65 6c 69 6e 65 73 3c 2f 68 33 3e 0d 0a 54 68 65  elines</h3>..The
2800: 72 65 20 69 73 20 61 20 73 65 63 6f 6e 64 20 61  re is a second a
2810: 73 74 6f 6e 69 73 68 69 6e 67 20 69 6d 70 72 6f  stonishing impro
2820: 76 65 6d 65 6e 74 20 73 75 70 70 6f 72 74 65 64  vement supported
2830: 20 62 79 20 50 52 4f 4a 2e 36 2c 20 74 68 61 74   by PROJ.6, that
2840: 20 61 72 65 20 3c 62 3e 74 72 61 6e 73 66 6f 72   are <b>transfor
2850: 6d 61 74 69 6f 6e 20 70 69 70 65 6c 69 6e 65 73  mation pipelines
2860: 3c 2f 62 3e 2e 3c 62 72 3e 0d 0a 57 68 65 6e 20  </b>.<br>..When 
2870: 75 73 69 6e 67 20 61 20 3c 62 3e 70 69 70 65 6c  using a <b>pipel
2880: 69 6e 65 3c 2f 62 3e 20 79 6f 75 20 63 61 6e 20  ine</b> you can 
2890: 66 72 65 65 6c 79 20 64 65 66 69 6e 65 20 61 6e  freely define an
28a0: 79 20 63 6f 6d 70 6c 65 78 20 67 65 6f 64 65 74  y complex geodet
28b0: 69 63 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f  ic transformatio
28c0: 6e 20 62 79 20 63 68 61 69 6e 69 6e 67 20 74 6f  n by chaining to
28d0: 67 65 74 68 65 72 20 6d 61 6e 79 20 65 6c 65 6d  gether many elem
28e0: 65 6e 74 61 72 79 20 73 74 65 70 73 20 73 75 63  entary steps suc
28f0: 68 20 61 73 20 63 6f 6e 76 65 72 73 69 6f 6e 2c  h as conversion,
2900: 20 74 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 2c   transformation,
2910: 20 70 72 6f 6a 65 63 74 69 6f 6e 2c 20 61 78 69   projection, axi
2920: 73 20 73 77 61 70 20 61 6e 64 20 73 6f 20 6f 6e  s swap and so on
2930: 2e 3c 62 72 3e 0d 0a 41 20 70 69 70 65 6c 69 6e  .<br>..A pipelin
2940: 65 20 69 73 20 63 6f 6e 63 65 70 74 75 61 6c 6c  e is conceptuall
2950: 79 20 73 69 6d 69 6c 61 72 20 74 6f 20 61 20 55  y similar to a U
2960: 4e 49 58 20 73 68 65 6c 6c 20 73 63 72 69 70 74  NIX shell script
2970: 2c 20 77 69 74 68 20 61 20 64 61 74 61 66 6c 6f  , with a dataflo
2980: 77 20 72 65 67 75 6c 61 72 6c 79 20 70 72 6f 63  w regularly proc
2990: 65 64 69 6e 67 20 66 6f 72 77 61 72 64 20 66 72  eding forward fr
29a0: 6f 6d 20 73 74 65 70 20 74 6f 20 73 74 65 70 20  om step to step 
29b0: 75 6e 74 69 6c 20 70 72 6f 64 75 63 69 6e 67 20  until producing 
29c0: 74 68 65 20 66 69 6e 61 6c 20 72 65 73 75 6c 74  the final result
29d0: 2e 3c 62 72 3e 0d 0a 54 68 65 20 66 6f 6c 6c 6f  .<br>..The follo
29e0: 77 69 6e 67 20 69 73 20 61 20 70 72 61 63 74 69  wing is a practi
29f0: 61 6c 20 65 78 61 6d 70 6c 65 20 6f 66 20 61 20  al example of a 
2a00: 70 69 70 65 6c 69 6e 65 20 63 6f 72 72 65 73 70  pipeline corresp
2a10: 6f 6e 64 69 6e 67 20 74 6f 20 61 20 74 72 61 6e  onding to a tran
2a20: 73 66 6f 72 6d 61 74 69 6f 6e 20 66 72 6f 6d 20  sformation from 
2a30: 3c 62 3e 4e 41 44 32 37 3c 2f 62 3e 20 74 6f 20  <b>NAD27</b> to 
2a40: 3c 62 3e 4e 41 44 38 33 3c 2f 62 3e 2c 0d 0a 3c  <b>NAD83</b>,..<
2a50: 76 65 72 62 61 74 69 6d 3e 0d 0a 2b 70 72 6f 6a  verbatim>..+proj
2a60: 3d 70 69 70 65 6c 69 6e 65 20 0d 0a 2b 73 74 65  =pipeline ..+ste
2a70: 70 20 2b 70 72 6f 6a 3d 61 78 69 73 73 77 61 70  p +proj=axisswap
2a80: 20 2b 6f 72 64 65 72 3d 32 2c 31 20 0d 0a 2b 73   +order=2,1 ..+s
2a90: 74 65 70 20 2b 70 72 6f 6a 3d 75 6e 69 74 63 6f  tep +proj=unitco
2aa0: 6e 76 65 72 74 20 2b 78 79 5f 69 6e 3d 64 65 67  nvert +xy_in=deg
2ab0: 20 2b 78 79 5f 6f 75 74 3d 72 61 64 20 0d 0a 2b   +xy_out=rad ..+
2ac0: 73 74 65 70 20 2b 70 72 6f 6a 3d 68 67 72 69 64  step +proj=hgrid
2ad0: 73 68 69 66 74 20 2b 67 72 69 64 73 3d 63 6f 6e  shift +grids=con
2ae0: 75 73 20 0d 0a 2b 73 74 65 70 20 2b 70 72 6f 6a  us ..+step +proj
2af0: 3d 75 6e 69 74 63 6f 6e 76 65 72 74 20 2b 78 79  =unitconvert +xy
2b00: 5f 69 6e 3d 72 61 64 20 2b 78 79 5f 6f 75 74 3d  _in=rad +xy_out=
2b10: 64 65 67 20 0d 0a 2b 73 74 65 70 20 2b 70 72 6f  deg ..+step +pro
2b20: 6a 3d 61 78 69 73 73 77 61 70 20 2b 6f 72 64 65  j=axisswap +orde
2b30: 72 3d 32 2c 31 0d 0a 3c 2f 76 65 72 62 61 74 69  r=2,1..</verbati
2b40: 6d 3e 0d 0a 3c 68 33 3e 54 68 65 20 70 72 69 76  m>..<h3>The priv
2b50: 61 74 65 20 53 51 4c 69 74 65 20 64 61 74 61 62  ate SQLite datab
2b60: 61 73 65 20 73 75 70 70 6f 72 74 69 6e 67 20 50  ase supporting P
2b70: 52 4f 4a 2e 36 3c 2f 68 33 3e 0d 0a 53 74 61 72  ROJ.6</h3>..Star
2b80: 74 69 6e 67 20 73 69 6e 63 65 20 3c 62 3e 50 52  ting since <b>PR
2b90: 4f 4a 2e 36 3c 2f 62 3e 20 74 68 65 20 50 52 4f  OJ.6</b> the PRO
2ba0: 4a 20 6c 69 62 72 61 72 79 20 72 65 71 75 69 72  J library requir
2bb0: 65 73 20 61 6e 20 65 78 74 65 72 6e 61 6c 20 53  es an external S
2bc0: 51 4c 69 74 65 20 64 61 74 61 62 61 73 65 20 63  QLite database c
2bd0: 6f 6e 74 61 69 6e 69 6e 67 20 61 6c 6c 20 64 65  ontaining all de
2be0: 66 69 6e 69 74 69 6f 6e 73 20 61 62 6f 75 74 20  finitions about 
2bf0: 73 75 70 70 6f 72 74 65 64 20 43 52 53 65 73 2c  supported CRSes,
2c00: 20 45 6c 6c 69 70 73 6f 69 64 73 2c 20 50 72 69   Ellipsoids, Pri
2c10: 6d 65 20 4d 65 72 69 64 69 61 6e 73 2c 20 55 6e  me Meridians, Un
2c20: 69 74 20 6f 66 20 4d 65 61 73 75 72 65 2c 20 54  it of Measure, T
2c30: 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 73 20 61  ransformations a
2c40: 6e 64 20 73 6f 20 6f 6e 2e 3c 62 72 3e 0d 0a 4d  nd so on.<br>..M
2c50: 61 6e 79 20 6f 66 20 74 68 65 20 6e 65 77 20 61  any of the new a
2c60: 64 76 61 6e 63 65 64 20 50 52 4f 4a 27 73 20 41  dvanced PROJ's A
2c70: 50 49 20 77 69 6c 6c 20 66 61 69 6c 20 69 66 20  PI will fail if 
2c80: 73 75 63 68 20 64 61 74 61 62 61 73 65 20 69 73  such database is
2c90: 20 6e 6f 74 20 61 76 61 69 6c 61 62 6c 65 2e 0d   not available..
2ca0: 0a 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 74 61 62 6c  .<br><br>..<tabl
2cb0: 65 20 63 65 6c 6c 73 70 61 63 69 6e 67 3d 22 38  e cellspacing="8
2cc0: 22 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 38  " cellpadding="8
2cd0: 22 20 62 67 63 6f 6c 6f 72 3d 22 23 66 66 66 66  " bgcolor="#ffff
2ce0: 63 39 22 3e 0d 0a 3c 74 72 3e 3c 74 68 3e 0d 0a  c9">..<tr><th>..
2cf0: 49 6e 20 6f 72 64 65 72 20 74 6f 20 6c 65 61 72  In order to lear
2d00: 6e 20 6d 6f 72 65 20 61 62 6f 75 74 20 74 68 65  n more about the
2d10: 20 6d 61 6e 79 20 69 6e 74 65 72 65 73 74 69 6e   many interestin
2d20: 67 20 63 6f 6f 6c 20 6e 65 77 20 66 65 61 74 75  g cool new featu
2d30: 72 65 73 20 73 75 70 70 6f 72 74 65 64 20 62 79  res supported by
2d40: 20 50 52 4f 4a 2e 36 20 70 6c 65 61 73 65 20 63   PROJ.6 please c
2d50: 6f 6e 73 75 6c 74 20 74 68 65 20 3c 61 20 68 72  onsult the <a hr
2d60: 65 66 3d 22 68 74 74 70 73 3a 2f 2f 70 72 6f 6a  ef="https://proj
2d70: 34 2e 6f 72 67 2f 22 3e 6f 72 69 67 69 6e 61 6c  4.org/">original
2d80: 20 64 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 3c 2f   documentation</
2d90: 61 3e 0d 0a 3c 2f 74 68 3e 3c 2f 74 72 3e 0d 0a  a>..</th></tr>..
2da0: 3c 2f 74 61 62 6c 65 3e 3c 62 72 3e 0d 0a 3c 68  </table><br>..<h
2db0: 72 3e 0d 0a 3c 68 31 3e 53 70 61 74 69 61 4c 69  r>..<h1>SpatiaLi
2dc0: 74 65 2d 35 2e 30 2e 30 20 73 75 70 70 6f 72 74  te-5.0.0 support
2dd0: 69 6e 67 20 50 52 4f 4a 2e 36 3c 2f 68 31 3e 0d  ing PROJ.6</h1>.
2de0: 0a 3c 68 33 3e 45 78 69 73 74 69 6e 67 20 53 51  .<h3>Existing SQ
2df0: 4c 20 66 75 6e 63 74 69 6f 6e 73 20 61 66 66 65  L functions affe
2e00: 63 74 65 64 20 62 79 20 50 52 4f 4a 2e 36 3c 2f  cted by PROJ.6</
2e10: 68 33 3e 0d 0a 3c 68 33 3e 4e 65 77 20 61 75 78  h3>..<h3>New aux
2e20: 69 6c 69 61 72 79 20 53 51 4c 20 66 75 6e 63 74  iliary SQL funct
2e30: 69 6f 6e 73 20 73 70 65 63 69 66 69 63 61 6c 6c  ions specificall
2e40: 79 20 73 75 70 70 6f 72 74 69 6e 67 20 50 52 4f  y supporting PRO
2e50: 4a 2e 36 3c 2f 68 33 3e 0d 0a 3c 74 61 62 6c 65  J.6</h3>..<table
2e60: 20 63 65 6c 6c 73 70 61 63 69 6e 67 3d 22 38 22   cellspacing="8"
2e70: 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 38 22   cellpadding="8"
2e80: 20 62 67 63 6f 6c 6f 72 3d 22 23 64 30 66 66 64   bgcolor="#d0ffd
2e90: 30 22 20 62 6f 72 64 65 72 3d 22 31 22 3e 0d 0a  0" border="1">..
2ea0: 3c 74 72 3e 3c 74 68 3e 53 51 4c 20 46 75 6e 63  <tr><th>SQL Func
2eb0: 74 69 6f 6e 3c 2f 74 68 3e 3c 74 68 3e 53 75 70  tion</th><th>Sup
2ec0: 70 6f 72 74 65 64 20 61 72 67 75 6d 65 6e 74 73  ported arguments
2ed0: 3c 2f 74 68 3e 3c 74 68 3e 44 65 73 63 72 69 70  </th><th>Descrip
2ee0: 74 69 6f 6e 3c 2f 74 68 3e 3c 2f 74 72 3e 0d 0a  tion</th></tr>..
2ef0: 3c 74 72 3e 3c 74 64 3e 3c 62 3e 50 52 4f 4a 5f  <tr><td><b>PROJ_
2f00: 47 65 74 4c 61 73 74 45 72 72 6f 72 4d 73 67 3c  GetLastErrorMsg<
2f10: 2f 62 3e 28 20 3c 69 3e 76 6f 69 64 3c 2f 69 3e  /b>( <i>void</i>
2f20: 20 29 20 3a 20 3c 69 3e 53 74 72 69 6e 67 3c 2f   ) : <i>String</
2f30: 69 3e 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 4e 6f 6e  i></td>..<td>Non
2f40: 65 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 57 69 6c 6c  e</td>..<td>Will
2f50: 20 72 65 74 75 72 6e 20 74 68 65 20 6d 6f 73 74   return the most
2f60: 20 72 65 63 65 6e 74 20 65 72 72 6f 72 20 6d 65   recent error me
2f70: 73 73 61 67 65 20 72 65 74 75 72 6e 65 64 20 62  ssage returned b
2f80: 79 20 50 52 4f 4a 20 28 69 66 20 61 6e 79 29 2e  y PROJ (if any).
2f90: 3c 62 72 3e 0d 0a 3c 62 3e 4e 55 4c 4c 3c 2f 62  <br>..<b>NULL</b
2fa0: 3e 20 77 69 6c 6c 20 62 65 20 72 65 74 75 72 6e  > will be return
2fb0: 65 64 20 69 66 20 74 68 65 72 65 20 69 73 20 6e  ed if there is n
2fc0: 6f 20 63 75 72 65 6e 74 6c 79 20 70 65 6e 64 69  o curently pendi
2fd0: 6e 67 20 50 52 4f 4a 20 65 72 72 6f 72 2e 3c 2f  ng PROJ error.</
2fe0: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74  td></tr>..<tr><t
2ff0: 64 3e 3c 62 3e 50 52 4f 4a 5f 47 65 74 44 61 74  d><b>PROJ_GetDat
3000: 61 62 61 73 65 50 61 74 68 3c 2f 62 3e 28 20 3c  abasePath</b>( <
3010: 69 3e 76 6f 69 64 3c 2f 69 3e 20 3a 20 3c 69 3e  i>void</i> : <i>
3020: 53 74 72 69 6e 67 3c 2f 69 3e 29 3c 2f 74 64 3e  String</i>)</td>
3030: 0d 0a 3c 74 64 3e 4e 6f 6e 65 3c 2f 74 64 3e 0d  ..<td>None</td>.
3040: 0a 3c 74 64 3e 57 69 6c 6c 20 72 65 74 75 72 6e  .<td>Will return
3050: 20 74 68 65 20 63 75 72 72 65 6e 74 6c 79 20 73   the currently s
3060: 65 74 20 70 61 74 68 6e 61 6d 65 20 6c 65 61 64  et pathname lead
3070: 69 6e 67 20 74 6f 20 74 68 65 20 70 72 69 76 61  ing to the priva
3080: 74 65 20 50 52 4f 4a 27 73 20 53 51 4c 69 74 65  te PROJ's SQLite
3090: 20 64 61 74 61 62 61 73 65 2e 3c 62 72 3e 0d 0a   database.<br>..
30a0: 3c 62 3e 4e 55 4c 4c 3c 2f 62 3e 20 77 69 6c 6c  <b>NULL</b> will
30b0: 20 62 65 20 72 65 74 75 72 6e 65 64 20 69 66 20   be returned if 
30c0: 74 68 65 72 65 20 69 73 20 6e 6f 20 70 72 69 76  there is no priv
30d0: 61 74 65 20 50 52 4f 4a 27 73 20 53 51 4c 69 74  ate PROJ's SQLit
30e0: 65 20 64 61 74 61 62 61 73 65 20 63 75 72 72 65  e database curre
30f0: 6e 74 6c 79 20 63 6f 6e 6e 65 63 74 65 64 2e 3c  ntly connected.<
3100: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c  /td></tr>..<tr><
3110: 74 64 3e 3c 62 3e 50 52 4f 4a 5f 53 65 74 44 61  td><b>PROJ_SetDa
3120: 74 61 62 61 73 65 50 61 74 68 3c 2f 62 3e 20 28  tabasePath</b> (
3130: 20 6e 65 77 5f 70 61 74 68 20 3c 69 3e 53 74 72   new_path <i>Str
3140: 69 6e 67 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 53  ing</i> ) : <i>S
3150: 74 72 69 6e 67 3c 2f 69 3e 3c 2f 74 64 3e 0d 0a  tring</i></td>..
3160: 3c 74 64 3e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e  <td>..<ul>..<li>
3170: 3c 62 3e 6e 65 77 5f 70 61 74 68 3c 2f 62 3e 3a  <b>new_path</b>:
3180: 20 61 20 72 65 6c 61 74 69 76 65 20 6f 72 20 61   a relative or a
3190: 62 73 6f 6c 75 74 65 20 70 61 74 68 6e 61 6d 65  bsolute pathname
31a0: 20 6c 65 61 64 69 6e 67 20 74 6f 20 61 20 76 61   leading to a va
31b0: 6c 69 64 20 50 52 4f 4a 27 73 20 53 51 4c 69 74  lid PROJ's SQLit
31c0: 65 20 64 61 74 61 62 61 73 65 2e 3c 2f 6c 69 3e  e database.</li>
31d0: 0d 0a 3c 2f 75 6c 3e 3c 2f 74 64 3e 0d 0a 3c 74  ..</ul></td>..<t
31e0: 64 3e 57 69 6c 6c 20 63 68 61 6e 67 65 20 74 68  d>Will change th
31f0: 65 20 63 75 72 72 65 6e 74 6c 79 20 73 65 74 20  e currently set 
3200: 70 61 74 68 6e 61 6d 65 20 6c 65 61 64 69 6e 67  pathname leading
3210: 20 74 6f 20 74 68 65 20 70 72 69 76 61 74 65 20   to the private 
3220: 50 52 4f 4a 27 73 20 53 51 4c 69 74 65 20 64 61  PROJ's SQLite da
3230: 74 61 62 61 73 65 2e 3c 62 72 3e 0d 0a 3c 62 3e  tabase.<br>..<b>
3240: 4e 55 4c 4c 3c 2f 62 3e 20 77 69 6c 6c 20 62 65  NULL</b> will be
3250: 20 72 65 74 75 72 6e 65 64 20 69 66 20 74 68 65   returned if the
3260: 20 70 61 73 73 65 64 20 70 61 74 68 20 69 73 20   passed path is 
3270: 69 6e 76 61 6c 69 64 2c 20 6f 74 68 65 72 77 69  invalid, otherwi
3280: 73 65 20 74 68 65 20 70 61 74 68 20 6f 66 20 74  se the path of t
3290: 68 65 20 63 75 72 72 65 6e 74 6c 79 20 73 65 74  he currently set
32a0: 20 70 72 69 76 61 74 65 20 50 52 4f 4a 27 73 20   private PROJ's 
32b0: 53 51 4c 69 74 65 20 64 61 74 61 62 61 73 65 20  SQLite database 
32c0: 77 69 6c 6c 20 62 65 20 72 65 74 75 72 6e 65 64  will be returned
32d0: 2e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72  .</td></tr>..<tr
32e0: 3e 3c 74 64 3e 3c 62 3e 50 52 4f 4a 5f 41 73 57  ><td><b>PROJ_AsW
32f0: 4b 54 3c 2f 62 3e 20 28 20 61 75 74 68 5f 6e 61  KT</b> ( auth_na
3300: 6d 65 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e  me <i>String</i>
3310: 20 2c 20 61 75 74 68 5f 73 72 69 64 20 3c 69 3e   , auth_srid <i>
3320: 49 6e 74 65 67 65 72 3c 2f 69 3e 20 29 20 3a 20  Integer</i> ) : 
3330: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 3c 68 72  <i>String</i><hr
3340: 3e 0d 0a 3c 62 3e 50 52 4f 4a 5f 41 73 57 4b 54  >..<b>PROJ_AsWKT
3350: 3c 2f 62 3e 20 28 20 61 75 74 68 5f 6e 61 6d 65  </b> ( auth_name
3360: 20 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c   <i>String</i> ,
3370: 20 61 75 74 68 5f 73 72 69 64 20 3c 69 3e 49 6e   auth_srid <i>In
3380: 74 65 67 65 72 3c 2f 69 3e 20 2c 20 77 6b 74 5f  teger</i> , wkt_
3390: 73 74 79 6c 65 20 3c 69 3e 53 74 72 69 6e 67 3c  style <i>String<
33a0: 2f 69 3e 20 29 20 3a 20 3c 69 3e 53 74 72 69 6e  /i> ) : <i>Strin
33b0: 67 3c 2f 69 3e 3c 68 72 3e 0d 0a 3c 62 3e 50 52  g</i><hr>..<b>PR
33c0: 4f 4a 5f 41 73 57 4b 54 3c 2f 62 3e 20 28 20 61  OJ_AsWKT</b> ( a
33d0: 75 74 68 5f 6e 61 6d 65 20 3c 69 3e 53 74 72 69  uth_name <i>Stri
33e0: 6e 67 3c 2f 69 3e 20 2c 20 61 75 74 68 5f 73 72  ng</i> , auth_sr
33f0: 69 64 20 3c 69 3e 49 6e 74 65 67 65 72 3c 2f 69  id <i>Integer</i
3400: 3e 20 2c 20 77 6b 74 5f 73 74 79 6c 65 20 3c 69  > , wkt_style <i
3410: 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20 69 6e  >String</i> , in
3420: 64 65 6e 74 65 64 20 3c 69 3e 42 6f 6f 6c 65 61  dented <i>Boolea
3430: 6e 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 53 74 72  n</i> ) : <i>Str
3440: 69 6e 67 3c 2f 69 3e 3c 68 72 3e 0d 0a 3c 62 3e  ing</i><hr>..<b>
3450: 50 52 4f 4a 5f 41 73 57 4b 54 3c 2f 62 3e 20 28  PROJ_AsWKT</b> (
3460: 20 61 75 74 68 5f 6e 61 6d 65 20 3c 69 3e 53 74   auth_name <i>St
3470: 72 69 6e 67 3c 2f 69 3e 20 2c 20 61 75 74 68 5f  ring</i> , auth_
3480: 73 72 69 64 20 3c 69 3e 49 6e 74 65 67 65 72 3c  srid <i>Integer<
3490: 2f 69 3e 20 2c 20 77 6b 74 5f 73 74 79 6c 65 20  /i> , wkt_style 
34a0: 3c 69 3e 53 74 72 69 6e 67 3c 2f 69 3e 20 2c 20  <i>String</i> , 
34b0: 69 6e 64 65 6e 74 65 64 20 3c 69 3e 42 6f 6f 6c  indented <i>Bool
34c0: 65 61 6e 3c 2f 69 3e 20 2c 20 69 6e 64 65 6e 74  ean</i> , indent
34d0: 61 74 69 6f 6e 20 3c 69 3e 49 6e 74 65 67 65 72  ation <i>Integer
34e0: 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 53 74 72 69  </i> ) : <i>Stri
34f0: 6e 67 3c 2f 69 3e 3c 2f 74 64 3e 0d 0a 3c 74 64  ng</i></td>..<td
3500: 3e 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 61 75  ><ul>..<li><b>au
3510: 74 68 5f 6e 61 6d 65 3c 2f 62 3e 20 61 6e 64 20  th_name</b> and 
3520: 3c 62 3e 61 75 74 68 5f 73 72 69 64 3c 2f 62 3e  <b>auth_srid</b>
3530: 20 69 64 65 6e 74 69 66 79 20 74 68 65 20 69 6e   identify the in
3540: 74 65 6e 64 65 64 20 43 52 53 2e 3c 62 72 3e 0d  tended CRS.<br>.
3550: 0a 3c 62 3e 61 75 74 68 5f 6e 61 6d 65 3c 2f 62  .<b>auth_name</b
3560: 3e 20 63 61 6e 20 62 65 20 3c 62 3e 4e 55 4c 4c  > can be <b>NULL
3570: 3c 2f 62 3e 2c 20 61 6e 64 20 69 6e 20 74 68 69  </b>, and in thi
3580: 73 20 63 61 73 65 20 3c 62 3e 45 50 53 47 3c 2f  s case <b>EPSG</
3590: 62 3e 20 77 69 6c 6c 20 62 65 20 61 73 73 75 6d  b> will be assum
35a0: 65 64 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 74 68  ed.</li>..<li>th
35b0: 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d  e optional argum
35c0: 65 6e 74 20 3c 62 3e 73 74 79 6c 65 3c 2f 62 3e  ent <b>style</b>
35d0: 20 64 65 74 65 72 6d 69 6e 65 73 20 77 68 69 63   determines whic
35e0: 68 20 73 70 65 63 69 66 69 63 20 57 4b 54 20 66  h specific WKT f
35f0: 6f 72 6d 61 74 20 73 68 6f 75 6c 64 20 62 65 20  ormat should be 
3600: 61 64 6f 70 74 65 64 2c 20 61 6e 64 20 6d 75 73  adopted, and mus
3610: 74 20 62 65 20 6f 6e 65 20 62 65 74 77 65 65 6e  t be one between
3620: 20 3c 62 3e 47 44 41 4c 3c 2f 62 3e 2c 20 3c 62   <b>GDAL</b>, <b
3630: 3e 45 53 52 49 3c 2f 62 3e 2c 20 3c 62 3e 49 53  >ESRI</b>, <b>IS
3640: 4f 2d 32 30 31 35 3c 2f 62 3e 20 6f 72 20 3c 62  O-2015</b> or <b
3650: 3e 49 53 4f 2d 32 30 31 38 3c 2f 62 3e 20 28 74  >ISO-2018</b> (t
3660: 68 69 73 20 6c 61 74 74 65 72 20 62 65 69 6e 67  his latter being
3670: 20 74 68 65 20 64 65 66 61 75 6c 74 20 73 65 74   the default set
3680: 74 69 6e 67 29 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69  ting).</li>..<li
3690: 3e 74 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72  >the optional ar
36a0: 67 75 6d 65 6e 74 20 3c 62 3e 69 6e 64 65 6e 74  gument <b>indent
36b0: 65 64 3c 2f 62 3e 20 69 66 20 73 65 74 20 74 6f  ed</b> if set to
36c0: 20 3c 62 3e 54 52 55 45 3c 2f 62 3e 20 77 69 6c   <b>TRUE</b> wil
36d0: 6c 20 6e 69 63 65 6c 79 20 66 6f 72 6d 61 74 20  l nicely format 
36e0: 61 20 6d 75 6c 74 69 6c 69 6e 65 20 57 4b 54 20  a multiline WKT 
36f0: 65 78 70 72 65 73 73 69 6f 6e 2c 20 6f 74 68 65  expression, othe
3700: 72 77 69 73 65 20 61 20 73 69 6e 67 6c 65 20 6d  rwise a single m
3710: 6f 6e 6f 6c 69 74 68 69 63 20 6c 69 6e 65 20 6c  onolithic line l
3720: 61 63 6b 69 6e 67 20 61 6e 79 20 77 68 69 74 65  acking any white
3730: 2d 73 70 61 63 65 20 6f 72 20 6e 65 77 2d 6c 69  -space or new-li
3740: 6e 65 20 77 69 6c 6c 20 62 65 20 70 72 69 6e 74  ne will be print
3750: 65 64 20 28 74 68 65 20 64 65 66 61 75 6c 74 20  ed (the default 
3760: 69 73 20 3c 62 3e 54 52 55 45 3c 2f 62 3e 29 2e  is <b>TRUE</b>).
3770: 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 74 68 65 20 6f  </li>..<li>the o
3780: 70 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74  ptional argument
3790: 20 3c 62 3e 69 6e 64 65 6e 74 61 74 69 6f 6e 3c   <b>indentation<
37a0: 2f 62 3e 20 64 65 74 65 72 6d 69 6e 65 73 20 68  /b> determines h
37b0: 6f 77 20 6d 61 6e 79 20 77 68 69 74 65 2d 73 70  ow many white-sp
37c0: 61 63 65 73 20 61 72 65 20 74 6f 20 62 65 20 75  aces are to be u
37d0: 73 65 64 20 66 6f 72 20 69 6e 64 65 6e 74 69 6e  sed for indentin
37e0: 67 20 28 6f 6e 6c 79 20 6d 65 61 6e 69 6e 67 66  g (only meaningf
37f0: 75 6c 20 69 66 20 3c 62 3e 3c 69 3e 69 6e 64 65  ul if <b><i>inde
3800: 6e 74 65 64 3d 54 52 55 45 3c 2f 69 3e 3c 2f 62  nted=TRUE</i></b
3810: 3e 3b 20 74 68 65 20 64 65 66 61 75 6c 74 20 76  >; the default v
3820: 61 6c 75 65 73 20 69 73 20 3c 62 3e 34 3c 2f 62  alues is <b>4</b
3830: 3e 29 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 3c  >).</li>..</ul><
3840: 2f 74 64 3e 0d 0a 3c 74 64 3e 57 69 6c 6c 20 72  /td>..<td>Will r
3850: 65 74 75 72 6e 20 74 68 65 20 57 4b 54 20 65 78  eturn the WKT ex
3860: 70 72 65 73 73 69 6f 6e 20 63 6f 72 72 65 73 70  pression corresp
3870: 6f 6e 64 69 6e 67 20 74 6f 20 61 20 67 69 76 65  onding to a give
3880: 6e 20 43 52 53 3b 20 74 68 65 20 64 65 66 69 6e  n CRS; the defin
3890: 69 74 69 6f 6e 73 20 77 69 6c 6c 20 62 65 20 74  itions will be t
38a0: 61 6b 65 6e 20 64 69 72 65 63 74 6c 79 20 66 72  aken directly fr
38b0: 6f 6d 20 74 68 65 20 70 72 69 76 61 74 65 20 50  om the private P
38c0: 52 4f 4a 27 73 20 6f 77 6e 20 64 61 74 61 62 61  ROJ's own databa
38d0: 73 65 2e 3c 62 72 3e 0d 0a 3c 62 3e 4e 55 4c 4c  se.<br>..<b>NULL
38e0: 3c 2f 62 3e 20 77 69 6c 6c 20 62 65 20 72 65 74  </b> will be ret
38f0: 75 72 6e 65 64 20 6f 6e 20 66 61 69 6c 75 72 65  urned on failure
3900: 20 6f 72 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61   or on invalid a
3910: 72 67 75 6d 65 6e 74 73 2e 3c 2f 74 64 3e 3c 2f  rguments.</td></
3920: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 3c 62 3e  tr>..<tr><td><b>
3930: 50 52 4f 4a 5f 47 75 65 73 73 53 72 69 64 46 72  PROJ_GuessSridFr
3940: 6f 6d 57 4b 54 3c 2f 62 3e 20 28 20 77 6b 74 5f  omWKT</b> ( wkt_
3950: 65 78 70 72 20 3c 69 3e 53 74 72 69 6e 67 3c 2f  expr <i>String</
3960: 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74 65 67 65  i> ) : <i>Intege
3970: 72 3c 2f 69 3e 3c 2f 74 64 3e 0d 0a 3c 74 64 3e  r</i></td>..<td>
3980: 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 77 6b 74  <ul>..<li><b>wkt
3990: 5f 65 78 70 72 3c 2f 62 3e 3a 20 74 68 65 20 57  _expr</b>: the W
39a0: 4b 54 20 65 78 70 72 65 73 73 69 6f 6e 20 74 6f  KT expression to
39b0: 20 62 65 20 65 76 61 6c 75 61 74 65 64 2e 3c 2f   be evaluated.</
39c0: 6c 69 3e 0d 0a 3c 2f 75 6c 3e 3c 2f 74 64 3e 0d  li>..</ul></td>.
39d0: 0a 3c 74 64 3e 0d 0a 57 69 6c 6c 20 70 6f 73 73  .<td>..Will poss
39e0: 69 62 6c 79 20 72 65 74 75 72 6e 20 74 68 65 20  ibly return the 
39f0: 3c 62 3e 53 52 49 44 20 76 61 6c 75 65 3c 2f 62  <b>SRID value</b
3a00: 3e 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20  > corresponding 
3a10: 74 6f 20 61 20 67 69 76 65 6e 20 57 4b 54 20 65  to a given WKT e
3a20: 78 70 72 65 73 73 69 6f 6e 20 64 65 66 69 6e 69  xpression defini
3a30: 6e 67 20 61 20 43 52 53 2e 3c 62 72 3e 0d 0a 3c  ng a CRS.<br>..<
3a40: 62 3e 2d 31 3c 2f 62 3e 20 77 69 6c 6c 20 62 65  b>-1</b> will be
3a50: 20 72 65 74 75 72 6e 65 64 20 69 66 20 6e 6f 20   returned if no 
3a60: 43 52 53 20 73 75 70 70 6f 72 74 65 64 20 62 79  CRS supported by
3a70: 20 50 52 4f 4a 2e 36 20 6d 61 74 63 68 65 73 20   PROJ.6 matches 
3a80: 74 68 65 20 57 4b 54 20 65 78 70 72 65 73 73 69  the WKT expressi
3a90: 6f 6e 2e 3c 62 72 3e 0d 0a 3c 62 3e 4e 55 4c 4c  on.<br>..<b>NULL
3aa0: 3c 2f 62 3e 20 77 69 6c 6c 20 62 65 20 72 65 74  </b> will be ret
3ab0: 75 72 6e 65 64 20 6f 6e 20 69 6e 76 61 6c 69 64  urned on invalid
3ac0: 20 61 72 67 75 6d 65 6e 74 2e 0d 0a 3c 2f 74 64   argument...</td
3ad0: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e  ></tr>..<tr><td>
3ae0: 3c 62 3e 50 52 4f 4a 5f 47 75 65 73 73 53 72 69  <b>PROJ_GuessSri
3af0: 64 46 72 6f 6d 53 48 50 3c 2f 62 3e 20 28 20 66  dFromSHP</b> ( f
3b00: 69 6c 65 6e 61 6d 65 20 3c 69 3e 53 74 72 69 6e  ilename <i>Strin
3b10: 67 3c 2f 69 3e 20 29 20 3a 20 3c 69 3e 49 6e 74  g</i> ) : <i>Int
3b20: 65 67 65 72 3c 2f 69 3e 3c 2f 74 64 3e 0d 0a 3c  eger</i></td>..<
3b30: 74 64 3e 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e  td><ul>..<li><b>
3b40: 66 69 6c 65 6e 61 6d 65 3c 2f 62 3e 3a 20 74 68  filename</b>: th
3b50: 65 20 61 62 73 6f 6c 75 74 65 20 6f 72 20 72 65  e absolute or re
3b60: 6c 61 74 69 76 65 20 70 61 74 68 20 6c 65 61 64  lative path lead
3b70: 69 6e 67 20 74 6f 20 73 6f 6d 65 20 53 68 61 70  ing to some Shap
3b80: 65 66 69 6c 65 2e 3c 62 72 3e 0d 0a 4e 6f 74 65  efile.<br>..Note
3b90: 3a 20 65 78 61 63 74 6c 65 79 20 61 73 20 72 65  : exactley as re
3ba0: 71 75 69 72 65 64 20 62 79 20 3c 62 3e 3c 69 3e  quired by <b><i>
3bb0: 49 6d 70 6f 72 74 53 48 50 3c 2f 69 3e 3c 2f 62  ImportSHP</i></b
3bc0: 3e 28 29 20 3c 62 3e 3c 69 3e 66 69 6c 65 6e 61  >() <b><i>filena
3bd0: 6d 65 3c 2f 69 3e 3c 2f 62 3e 20 6d 75 73 74 20  me</i></b> must 
3be0: 6f 6d 69 74 20 61 6e 79 20 3c 62 3e 2e 73 68 70  omit any <b>.shp
3bf0: 3c 2f 62 3e 2c 20 3c 62 3e 2e 73 68 78 3c 2f 62  </b>, <b>.shx</b
3c00: 3e 2c 20 3c 62 3e 2e 64 62 66 3c 2f 62 3e 20 6f  >, <b>.dbf</b> o
3c10: 72 20 3c 62 3e 2e 70 72 6a 3c 2f 62 3e 20 73 75  r <b>.prj</b> su
3c20: 66 66 69 78 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c  ffix.</li>..</ul
3c30: 3e 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 0d 0a 57 69  ></td>..<td>..Wi
3c40: 6c 6c 20 70 6f 73 73 69 62 6c 79 20 72 65 74 75  ll possibly retu
3c50: 72 6e 20 74 68 65 20 3c 62 3e 53 52 49 44 20 76  rn the <b>SRID v
3c60: 61 6c 75 65 3c 2f 62 3e 20 63 6f 72 72 65 73 70  alue</b> corresp
3c70: 6f 6e 64 69 6e 67 20 74 6f 20 74 68 65 20 43 52  onding to the CR
3c80: 53 20 64 65 66 69 6e 65 64 20 62 79 20 74 68 65  S defined by the
3c90: 20 2e 50 52 4a 20 6d 65 6d 62 65 72 20 6f 66 20   .PRJ member of 
3ca0: 74 68 65 20 53 68 61 70 65 66 69 6c 65 2e 3c 62  the Shapefile.<b
3cb0: 72 3e 0d 0a 3c 62 3e 2d 31 3c 2f 62 3e 20 77 69  r>..<b>-1</b> wi
3cc0: 6c 6c 20 62 65 20 72 65 74 75 72 6e 65 64 20 69  ll be returned i
3cd0: 66 20 6e 6f 20 43 52 53 20 73 75 70 70 6f 72 74  f no CRS support
3ce0: 65 64 20 62 79 20 50 52 4f 4a 2e 36 20 6d 61 74  ed by PROJ.6 mat
3cf0: 63 68 65 73 20 50 52 4a 20 6d 65 6d 62 65 72 20  ches PRJ member 
3d00: 6f 66 20 74 68 65 20 53 68 61 70 65 66 69 6c 65  of the Shapefile
3d10: 2e 3c 62 72 3e 0d 0a 3c 62 3e 4e 55 4c 4c 3c 2f  .<br>..<b>NULL</
3d20: 62 3e 20 77 69 6c 6c 20 62 65 20 72 65 74 75 72  b> will be retur
3d30: 6e 65 64 20 6f 6e 20 69 6e 76 61 6c 69 64 20 61  ned on invalid a
3d40: 72 67 75 6d 65 6e 74 2e 3c 68 72 3e 0d 0a 3c 75  rgument.<hr>..<u
3d50: 3e 50 6c 65 61 73 65 20 6e 6f 74 65 20 77 65 6c  >Please note wel
3d60: 6c 3c 2f 75 3e 3a 20 74 68 69 73 20 53 51 4c 20  l</u>: this SQL 
3d70: 66 75 6e 63 74 69 6f 6e 20 6f 70 65 6e 64 20 74  function opend t
3d80: 68 65 20 64 6f 6f 72 20 74 6f 20 6d 61 6e 79 20  he door to many 
3d90: 70 6f 74 65 6e 74 69 61 6c 20 73 65 63 75 72 69  potential securi
3da0: 74 79 20 69 73 73 75 65 73 2c 20 61 6e 64 20 74  ty issues, and t
3db0: 68 75 73 20 69 73 20 61 6c 77 61 79 73 20 3c 69  hus is always <i
3dc0: 3e 64 69 73 61 62 6c 65 64 20 62 79 20 64 65 66  >disabled by def
3dd0: 61 75 6c 74 3c 2f 69 3e 2e 3c 62 72 3e 0d 0a 45  ault</i>.<br>..E
3de0: 78 70 6c 69 63 69 74 6c 79 20 73 65 74 74 69 6e  xplicitly settin
3df0: 67 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e  g the environmen
3e00: 74 20 76 61 72 69 61 62 6c 65 20 3c 62 3e 53 50  t variable <b>SP
3e10: 41 54 49 41 4c 49 54 45 5f 53 45 43 55 52 49 54  ATIALITE_SECURIT
3e20: 59 3d 72 65 6c 61 78 65 64 3c 2f 62 3e 20 69 73  Y=relaxed</b> is
3e30: 20 61 62 73 6f 6c 75 74 65 6c 79 20 72 65 71 75   absolutely requ
3e40: 69 72 65 64 20 69 6e 20 6f 72 64 65 72 20 74 6f  ired in order to
3e50: 20 65 6e 61 62 6c 65 20 74 68 69 73 20 66 75 6e   enable this fun
3e60: 63 74 69 6f 6e 2e 0d 0a 3c 2f 74 64 3e 3c 2f 74  ction...</td></t
3e70: 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 3c 62 72 3e  r>..</table><br>
3e80: 0d 0a 3c 74 61 62 6c 65 20 63 65 6c 6c 73 70 61  ..<table cellspa
3e90: 63 69 6e 67 3d 22 38 22 20 63 65 6c 6c 70 61 64  cing="8" cellpad
3ea0: 64 69 6e 67 3d 22 31 36 22 20 62 67 63 6f 6c 6f  ding="16" bgcolo
3eb0: 72 3d 22 23 66 66 66 66 63 39 22 3e 0d 0a 3c 74  r="#ffffc9">..<t
3ec0: 72 3e 3c 74 64 3e 0d 0a 3c 62 3e 3c 75 3e 4e 6f  r><td>..<b><u>No
3ed0: 74 65 3c 2f 75 3e 3c 2f 62 3e 3a 20 61 6c 6c 20  te</u></b>: all 
3ee0: 74 68 65 20 61 62 6f 76 65 20 53 51 4c 20 46 75  the above SQL Fu
3ef0: 6e 63 74 69 6f 6e 73 20 77 69 6c 6c 20 62 65 20  nctions will be 
3f00: 61 76 61 69 6c 61 62 6c 65 20 6f 6e 6c 79 20 77  available only w
3f10: 68 65 6e 20 53 70 61 74 69 61 6c 69 74 65 2d 35  hen Spatialite-5
3f20: 2e 30 2e 30 20 68 61 73 20 62 65 65 6e 20 62 75  .0.0 has been bu
3f30: 69 6c 74 20 61 67 61 69 6e 73 74 20 3c 62 3e 50  ilt against <b>P
3f40: 52 4f 4a 2e 36 3c 2f 62 3e 20 28 6f 72 20 61 6e  ROJ.6</b> (or an
3f50: 79 20 73 75 62 73 65 71 75 65 6e 74 20 76 65 72  y subsequent ver
3f60: 73 69 6f 6e 29 2e 3c 62 72 3e 0d 0a 49 66 20 53  sion).<br>..If S
3f70: 70 61 74 69 61 4c 69 74 65 2d 35 2e 30 2e 30 20  patiaLite-5.0.0 
3f80: 68 61 73 20 62 65 65 6e 20 62 75 69 6c 74 20 69  has been built i
3f90: 6e 73 74 65 61 64 20 61 67 61 69 6e 73 74 20 61  nstead against a
3fa0: 6e 79 20 70 72 65 76 69 6f 73 75 73 20 76 65 72  ny previosus ver
3fb0: 73 69 6f 6e 20 28 61 73 20 65 2e 67 2e 20 3c 62  sion (as e.g. <b
3fc0: 3e 50 52 4f 4a 2e 34 3c 2f 62 3e 29 20 61 6e 79  >PROJ.4</b>) any
3fd0: 20 61 74 74 65 6d 70 74 20 74 6f 20 63 61 6c 6c   attempt to call
3fe0: 20 6f 6e 65 20 6f 66 20 74 68 65 73 65 20 53 51   one of these SQ
3ff0: 4c 20 46 75 6e 63 74 69 6f 6e 73 20 77 69 6c 6c  L Functions will
4000: 20 73 69 6d 70 6c 79 20 72 65 74 75 72 6e 20 61   simply return a
4010: 20 3c 62 3e 3c 69 3e 3c 75 3e 6e 6f 20 73 75 63   <b><i><u>no suc
4020: 68 20 66 75 6e 63 74 69 6f 6e 3c 2f 75 3e 3c 2f  h function</u></
4030: 69 3e 3c 2f 62 3e 20 53 51 4c 20 65 72 72 6f 72  i></b> SQL error
4040: 2e 0d 0a 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c  ...</td></tr>..<
4050: 2f 74 61 62 6c 65 3e 3c 62 72 3e 0d 0a 3c 62 3e  /table><br>..<b>
4060: 50 72 61 63 74 69 63 61 6c 20 65 78 61 6d 70 6c  Practical exampl
4070: 65 73 3a 3c 2f 62 3e 0d 0a 3c 76 65 72 62 61 74  es:</b>..<verbat
4080: 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 50 52 4f 4a  im>..SELECT PROJ
4090: 5f 47 65 74 44 61 74 61 62 61 73 65 50 61 74 68  _GetDatabasePath
40a0: 28 29 3b 20 20 2d 2d 20 72 65 74 72 69 65 76 69  ();  -- retrievi
40b0: 6e 67 20 74 68 65 20 63 75 72 72 65 6e 74 6c 79  ng the currently
40c0: 20 73 65 74 20 50 52 4f 4a 27 73 20 6f 77 6e 20   set PROJ's own 
40d0: 64 61 74 61 62 61 73 65 0d 0a 2d 2d 2d 2d 2d 2d  database..------
40e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
40f0: 2d 2d 2d 2d 2d 2d 2d 2d 0d 0a 2f 75 73 72 2f 6c  --------../usr/l
4100: 6f 63 61 6c 2f 73 68 61 72 65 2f 70 72 6f 6a 2f  ocal/share/proj/
4110: 70 72 6f 6a 2e 64 62 0d 0a 0d 0a 53 45 4c 45 43  proj.db....SELEC
4120: 54 20 50 52 4f 4a 5f 53 65 74 44 61 74 61 62 61  T PROJ_SetDataba
4130: 73 65 50 61 74 68 28 27 2f 68 6f 6d 65 2f 73 61  sePath('/home/sa
4140: 6e 64 72 6f 2f 6e 6f 74 5f 65 78 69 73 74 69 6e  ndro/not_existin
4150: 67 5f 70 72 6f 6a 2e 64 62 27 29 3b 20 2d 2d 20  g_proj.db'); -- 
4160: 6e 6f 6e 20 65 78 69 73 74 69 6e 67 20 64 61 74  non existing dat
4170: 61 62 61 73 65 0d 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d  abase..---------
4180: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
4190: 2d 2d 2d 2d 2d 0d 0a 4e 55 4c 4c 0d 0a 0d 0a 53  -----..NULL....S
41a0: 45 4c 45 43 54 20 50 52 4f 4a 5f 47 65 74 4c 61  ELECT PROJ_GetLa
41b0: 73 74 45 72 72 6f 72 4d 73 67 28 29 3b 20 2d 2d  stErrorMsg(); --
41c0: 20 72 65 74 72 69 65 76 69 6e 67 20 74 68 65 20   retrieving the 
41d0: 66 61 69 6c 75 72 65 20 63 61 75 73 65 0d 0a 2d  failure cause..-
41e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
41f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 0a 70  -------------..p
4200: 72 6f 6a 5f 63 6f 6e 74 65 78 74 5f 73 65 74 5f  roj_context_set_
4210: 64 61 74 61 62 61 73 65 5f 70 61 74 68 3a 20 4f  database_path: O
4220: 70 65 6e 20 6f 66 20 2f 68 6f 6d 65 2f 73 61 6e  pen of /home/san
4230: 64 72 6f 2f 6e 6f 74 5f 65 78 69 73 74 69 6e 67  dro/not_existing
4240: 5f 70 72 6f 6a 2e 64 62 20 66 61 69 6c 65 64 0d  _proj.db failed.
4250: 0a 0d 0a 53 45 4c 45 43 54 20 50 52 4f 4a 5f 53  ...SELECT PROJ_S
4260: 65 74 44 61 74 61 62 61 73 65 50 61 74 68 28 27  etDatabasePath('
4270: 2f 68 6f 6d 65 2f 73 61 6e 64 72 6f 2f 76 61 6c  /home/sandro/val
4280: 69 64 5f 70 72 6f 6a 2e 64 62 27 29 3b 20 2d 2d  id_proj.db'); --
4290: 20 76 61 6c 69 64 20 64 61 74 61 62 61 73 65 0d   valid database.
42a0: 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .---------------
42b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d  ---------------.
42c0: 0a 2f 68 6f 6d 65 2f 73 61 6e 64 72 6f 2f 76 61  ./home/sandro/va
42d0: 6c 69 64 5f 70 72 6f 6a 2e 64 62 0d 0a 0d 0a 53  lid_proj.db....S
42e0: 45 4c 45 43 54 20 50 52 4f 4a 5f 41 73 57 4b 54  ELECT PROJ_AsWKT
42f0: 28 27 45 50 53 47 27 2c 20 34 33 32 36 29 3b 20  ('EPSG', 4326); 
4300: 2d 2d 20 64 65 66 61 75 6c 74 20 73 65 74 74 69  -- default setti
4310: 6e 67 73 3a 20 49 53 4f 2d 32 30 31 38 20 73 74  ngs: ISO-2018 st
4320: 79 6c 65 2c 20 69 6e 64 65 6e 74 65 64 20 77 69  yle, indented wi
4330: 74 68 20 69 6e 64 65 6e 74 61 74 69 6f 6e 20 34  th indentation 4
4340: 0d 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ..--------------
4350: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
4360: 0d 0a 47 45 4f 44 43 52 53 5b 22 57 47 53 20 38  ..GEODCRS["WGS 8
4370: 34 22 2c 0d 0a 20 20 20 20 44 41 54 55 4d 5b 22  4",..    DATUM["
4380: 57 6f 72 6c 64 20 47 65 6f 64 65 74 69 63 20 53  World Geodetic S
4390: 79 73 74 65 6d 20 31 39 38 34 22 2c 0d 0a 20 20  ystem 1984",..  
43a0: 20 20 20 20 20 20 45 4c 4c 49 50 53 4f 49 44 5b        ELLIPSOID[
43b0: 22 57 47 53 20 38 34 22 2c 36 33 37 38 31 33 37  "WGS 84",6378137
43c0: 2c 32 39 38 2e 32 35 37 32 32 33 35 36 33 2c 0d  ,298.257223563,.
43d0: 0a 20 20 20 20 20 20 20 20 20 20 20 20 4c 45 4e  .            LEN
43e0: 47 54 48 55 4e 49 54 5b 22 6d 65 74 72 65 22 2c  GTHUNIT["metre",
43f0: 31 5d 5d 5d 2c 0d 0a 20 20 20 20 50 52 49 4d 45  1]]],..    PRIME
4400: 4d 5b 22 47 72 65 65 6e 77 69 63 68 22 2c 30 2c  M["Greenwich",0,
4410: 0d 0a 20 20 20 20 20 20 20 20 41 4e 47 4c 45 55  ..        ANGLEU
4420: 4e 49 54 5b 22 64 65 67 72 65 65 22 2c 30 2e 30  NIT["degree",0.0
4430: 31 37 34 35 33 32 39 32 35 31 39 39 34 33 33 5d  174532925199433]
4440: 5d 2c 0d 0a 20 20 20 20 43 53 5b 65 6c 6c 69 70  ],..    CS[ellip
4450: 73 6f 69 64 61 6c 2c 32 5d 2c 0d 0a 20 20 20 20  soidal,2],..    
4460: 20 20 20 20 41 58 49 53 5b 22 67 65 6f 64 65 74      AXIS["geodet
4470: 69 63 20 6c 61 74 69 74 75 64 65 20 28 4c 61 74  ic latitude (Lat
4480: 29 22 2c 6e 6f 72 74 68 2c 0d 0a 20 20 20 20 20  )",north,..     
4490: 20 20 20 20 20 20 20 4f 52 44 45 52 5b 31 5d 2c         ORDER[1],
44a0: 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 41 4e  ..            AN
44b0: 47 4c 45 55 4e 49 54 5b 22 64 65 67 72 65 65 22  GLEUNIT["degree"
44c0: 2c 30 2e 30 31 37 34 35 33 32 39 32 35 31 39 39  ,0.0174532925199
44d0: 34 33 33 5d 5d 2c 0d 0a 20 20 20 20 20 20 20 20  433]],..        
44e0: 41 58 49 53 5b 22 67 65 6f 64 65 74 69 63 20 6c  AXIS["geodetic l
44f0: 6f 6e 67 69 74 75 64 65 20 28 4c 6f 6e 29 22 2c  ongitude (Lon)",
4500: 65 61 73 74 2c 0d 0a 20 20 20 20 20 20 20 20 20  east,..         
4510: 20 20 20 4f 52 44 45 52 5b 32 5d 2c 0d 0a 20 20     ORDER[2],..  
4520: 20 20 20 20 20 20 20 20 20 20 41 4e 47 4c 45 55            ANGLEU
4530: 4e 49 54 5b 22 64 65 67 72 65 65 22 2c 30 2e 30  NIT["degree",0.0
4540: 31 37 34 35 33 32 39 32 35 31 39 39 34 33 33 5d  174532925199433]
4550: 5d 2c 0d 0a 20 20 20 20 41 52 45 41 5b 22 57 6f  ],..    AREA["Wo
4560: 72 6c 64 22 5d 2c 0d 0a 20 20 20 20 42 42 4f 58  rld"],..    BBOX
4570: 5b 2d 39 30 2c 2d 31 38 30 2c 39 30 2c 31 38 30  [-90,-180,90,180
4580: 5d 2c 0d 0a 20 20 20 20 49 44 5b 22 45 50 53 47  ],..    ID["EPSG
4590: 22 2c 34 33 32 36 5d 5d 0d 0a 0d 0a 53 45 4c 45  ",4326]]....SELE
45a0: 43 54 20 50 52 4f 4a 5f 41 73 57 4b 54 28 27 45  CT PROJ_AsWKT('E
45b0: 50 53 47 27 2c 20 34 33 32 36 2c 20 27 45 53 52  PSG', 4326, 'ESR
45c0: 49 27 2c 20 30 2c 20 30 29 3b 20 2d 2d 20 45 53  I', 0, 0); -- ES
45d0: 52 49 20 73 74 79 6c 65 2c 20 6d 6f 6e 6f 6c 69  RI style, monoli
45e0: 74 68 69 63 20 6c 69 6e 65 0d 0a 2d 2d 2d 2d 2d  thic line..-----
45f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
4600: 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 0a 47 45 4f 47 43  ---------..GEOGC
4610: 53 5b 22 47 43 53 5f 57 47 53 5f 31 39 38 34 22  S["GCS_WGS_1984"
4620: 2c 44 41 54 55 4d 5b 22 44 5f 57 47 53 5f 31 39  ,DATUM["D_WGS_19
4630: 38 34 22 2c 53 50 48 45 52 4f 49 44 5b 22 57 47  84",SPHEROID["WG
4640: 53 5f 31 39 38 34 22 2c 36 33 37 38 31 33 37 2e  S_1984",6378137.
4650: 30 2c 32 39 38 2e 32 35 37 32 32 33 35 36 33 5d  0,298.257223563]
4660: 5d 2c 50 52 49 4d 45 4d 5b 22 47 72 65 65 6e 77  ],PRIMEM["Greenw
4670: 69 63 68 22 2c 30 2e 30 5d 2c 55 4e 49 54 5b 22  ich",0.0],UNIT["
4680: 44 65 67 72 65 65 22 2c 30 2e 30 31 37 34 35 33  Degree",0.017453
4690: 32 39 32 35 31 39 39 34 33 33 5d 5d 0d 0a 0d 0a  2925199433]]....
46a0: 53 45 4c 45 43 54 20 50 52 4f 4a 5f 47 75 65 73  SELECT PROJ_Gues
46b0: 73 53 72 69 64 46 72 6f 6d 57 4b 54 28 27 47 45  sSridFromWKT('GE
46c0: 4f 47 43 53 5b 22 47 43 53 5f 4d 6f 6e 74 65 5f  OGCS["GCS_Monte_
46d0: 4d 61 72 69 6f 5f 52 6f 6d 65 22 2c 44 41 54 55  Mario_Rome",DATU
46e0: 4d 5b 22 44 5f 4d 6f 6e 74 65 5f 4d 61 72 69 6f  M["D_Monte_Mario
46f0: 22 2c 53 50 48 45 52 4f 49 44 5b 22 49 6e 74 65  ",SPHEROID["Inte
4700: 72 6e 61 74 69 6f 6e 61 6c 5f 31 39 32 34 22 2c  rnational_1924",
4710: 36 33 37 38 33 38 38 2e 30 2c 32 39 37 2e 30 5d  6378388.0,297.0]
4720: 5d 2c 50 52 49 4d 45 4d 5b 22 52 6f 6d 65 22 2c  ],PRIMEM["Rome",
4730: 31 32 2e 34 35 32 33 33 33 33 33 33 33 33 33 33  12.4523333333333
4740: 5d 2c 55 4e 49 54 5b 22 44 65 67 72 65 65 22 2c  ],UNIT["Degree",
4750: 30 2e 30 31 37 34 35 33 32 39 32 35 31 39 39 34  0.01745329251994
4760: 33 33 5d 5d 27 29 3b 20 0d 0a 2d 2d 2d 2d 2d 2d  33]]'); ..------
4770: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
4780: 2d 2d 2d 2d 2d 2d 2d 2d 0d 0a 34 38 30 36 0d 0a  --------..4806..
4790: 0d 0a 53 45 4c 45 43 54 20 50 52 4f 4a 5f 47 75  ..SELECT PROJ_Gu
47a0: 65 73 73 53 72 69 64 46 72 6f 6d 53 48 50 28 27  essSridFromSHP('
47b0: 2f 68 6f 6d 65 2f 73 61 6e 64 72 6f 2f 74 75 73  /home/sandro/tus
47c0: 63 61 6e 79 5f 73 68 70 2f 70 72 6f 76 32 30 31  cany_shp/prov201
47d0: 31 27 29 3b 0d 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  1');..----------
47e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
47f0: 2d 2d 2d 2d 0d 0a 33 30 30 33 0d 0a 3c 2f 76 65  ----..3003..</ve
4800: 72 62 61 74 69 6d 3e 0d 0a 3c 62 72 3e 0d 0a 3c  rbatim>..<br>..<
4810: 68 72 3e 3c 62 72 3e 0d 0a 3c 74 61 62 6c 65 20  hr><br>..<table 
4820: 63 65 6c 6c 73 70 61 63 69 6e 67 3d 22 38 22 20  cellspacing="8" 
4830: 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 38 22 20  cellpadding="8" 
4840: 62 67 63 6f 6c 6f 72 3d 22 23 66 66 65 30 63 39  bgcolor="#ffe0c9
4850: 22 20 77 69 64 74 68 3d 22 31 30 30 25 22 3e 0d  " width="100%">.
4860: 0a 3c 74 72 3e 3c 74 68 3e 0d 0a 3c 68 31 3e 49  .<tr><th>..<h1>I
4870: 6d 70 6f 72 74 61 6e 74 20 6e 6f 74 69 63 65 20  mportant notice 
4880: 66 6f 72 20 57 69 6e 64 6f 77 73 20 75 73 65 72  for Windows user
4890: 73 3c 2f 68 31 3e 0d 0a 3c 2f 74 68 3e 3c 2f 74  s</h1>..</th></t
48a0: 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a 3c 62  r>..<tr><td>..<b
48b0: 3e 50 52 4f 4a 2e 36 3c 2f 62 3e 20 63 72 69 74  >PROJ.6</b> crit
48c0: 69 63 61 6c 6c 79 20 64 65 70 65 6e 64 73 20 6f  ically depends o
48d0: 6e 20 69 74 73 20 6f 77 6e 20 70 72 69 76 61 74  n its own privat
48e0: 65 20 53 51 4c 69 74 65 20 64 61 74 61 62 61 73  e SQLite databas
48f0: 65 20 28 3c 62 3e 70 72 6f 6a 2e 64 62 3c 2f 62  e (<b>proj.db</b
4900: 3e 29 20 63 6f 6e 74 61 69 6e 69 6e 67 20 61 6c  >) containing al
4910: 6c 20 72 65 6c 65 76 61 6e 74 20 64 65 66 69 6e  l relevant defin
4920: 69 74 69 6f 6e 73 20 61 62 6f 75 74 20 45 6c 6c  itions about Ell
4930: 69 70 73 6f 69 64 73 2c 20 50 72 69 6d 65 20 4d  ipsoids, Prime M
4940: 65 72 69 64 69 61 6e 73 2c 20 43 52 53 73 2c 20  eridians, CRSs, 
4950: 54 72 61 6e 73 66 6f 72 6d 61 74 69 6f 6e 73 20  Transformations 
4960: 61 6e 64 20 61 6c 69 6b 65 2e 3c 62 72 3e 0d 0a  and alike.<br>..
4970: 49 66 20 50 52 4f 4a 2e 36 20 69 73 20 75 6e 61  If PROJ.6 is una
4980: 62 6c 65 20 74 6f 20 63 6f 72 72 65 63 74 6c 79  ble to correctly
4990: 20 65 73 74 61 62 6c 69 73 68 20 61 20 63 6f 6e   establish a con
49a0: 6e 65 63 74 69 6f 6e 20 74 6f 20 74 68 69 73 20  nection to this 
49b0: 64 61 74 61 62 61 73 65 20 69 74 20 77 69 6c 6c  database it will
49c0: 20 62 65 20 73 65 76 65 72 65 6c 79 20 6c 69 6d   be severely lim
49d0: 69 74 65 64 20 61 6e 64 20 77 69 6c 6c 20 6e 6f  ited and will no
49e0: 74 20 62 65 20 61 62 6c 65 20 74 6f 20 63 6f 72  t be able to cor
49f0: 72 65 63 74 6c 79 20 62 65 68 61 76 65 20 61 73  rectly behave as
4a00: 20 65 78 70 65 63 74 65 64 2e 3c 62 72 3e 3c 62   expected.<br><b
4a10: 72 3e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62  r>..<ul>..<li><b
4a20: 3e 3c 75 3e 3c 69 3e 53 68 6f 72 74 20 63 6f 6e  ><u><i>Short con
4a30: 63 6c 75 73 69 6f 6e 3c 2f 69 3e 3c 2f 75 3e 3c  clusion</i></u><
4a40: 2f 62 3e 3a 20 69 6e 73 74 61 6c 6c 69 6e 67 20  /b>: installing 
4a50: 74 68 65 20 73 6f 66 74 77 61 72 65 20 61 6c 6f  the software alo
4a60: 6e 65 20 69 73 20 6e 6f 74 20 65 6e 6f 75 67 68  ne is not enough
4a70: 2e 3c 62 72 3e 0d 0a 54 68 65 20 50 52 4f 4a 2e  .<br>..The PROJ.
4a80: 36 20 70 72 69 76 61 74 65 20 64 61 74 61 62 61  6 private databa
4a90: 73 65 20 3c 62 3e 70 72 6f 6a 2e 64 62 3c 2f 62  se <b>proj.db</b
4aa0: 3e 20 6d 75 73 74 20 62 65 20 70 72 6f 70 65 72  > must be proper
4ab0: 6c 79 20 69 6e 73 74 61 6c 6c 65 64 20 61 73 20  ly installed as 
4ac0: 77 65 6c 6c 2c 20 69 6e 20 6f 72 64 65 72 20 74  well, in order t
4ad0: 6f 20 65 6e 73 75 72 65 20 74 68 61 74 20 61 6e  o ensure that an
4ae0: 79 74 68 69 6e 67 20 72 75 6e 73 20 73 6d 6f 6f  ything runs smoo
4af0: 74 68 6c 79 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c  thly.</li>..</ul
4b00: 3e 3c 62 72 3e 0d 0a 54 68 69 73 20 69 73 6e 27  ><br>..This isn'
4b10: 74 20 75 73 75 61 6c 6c 79 20 61 20 62 69 67 20  t usually a big 
4b20: 69 73 73 75 65 20 6f 6e 20 4c 69 6e 75 78 20 61  issue on Linux a
4b30: 6e 64 20 55 6e 69 78 2d 6c 69 6b 65 20 70 6c 61  nd Unix-like pla
4b40: 74 66 6f 72 6d 73 2c 20 77 68 65 72 65 20 61 20  tforms, where a 
4b50: 72 61 74 69 6f 6e 61 6c 20 61 6e 64 20 76 65 72  rational and ver
4b60: 79 20 63 6c 65 61 72 20 66 69 6c 65 73 79 73 74  y clear filesyst
4b70: 65 6d 20 6c 61 79 6f 75 74 20 65 78 69 73 74 73  em layout exists
4b80: 2e 3c 62 72 3e 0d 0a 4f 6e 20 74 68 65 73 65 20  .<br>..On these 
4b90: 6f 70 65 72 61 74 69 6e 67 20 73 79 73 74 65 6d  operating system
4ba0: 73 20 74 68 65 20 70 61 63 6b 61 67 65 20 6d 61  s the package ma
4bb0: 6e 61 67 65 72 20 28 6f 72 20 3c 62 3e 6d 61 6b  nager (or <b>mak
4bc0: 65 20 69 6e 73 74 61 6c 6c 3c 2f 62 3e 29 20 77  e install</b>) w
4bd0: 69 6c 6c 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c  ill automaticall
4be0: 79 20 74 61 6b 65 20 63 61 72 65 20 74 6f 20 69  y take care to i
4bf0: 6e 73 74 61 6c 6c 20 3c 62 3e 70 72 6f 6a 2e 64  nstall <b>proj.d
4c00: 62 3c 2f 62 3e 20 6f 6e 20 74 68 65 20 6d 6f 73  b</b> on the mos
4c10: 74 20 61 70 70 72 6f 70 72 69 61 74 65 20 64 69  t appropriate di
4c20: 72 65 63 74 6f 72 79 20 28 75 73 75 61 6c 6c 79  rectory (usually
4c30: 20 61 73 20 3c 62 3e 2f 75 73 72 2f 73 68 61 72   as <b>/usr/shar
4c40: 65 2f 70 72 6f 6a 2f 70 72 6f 6a 2e 64 62 3c 2f  e/proj/proj.db</
4c50: 62 3e 20 6f 72 20 61 73 20 3c 62 3e 2f 75 73 72  b> or as <b>/usr
4c60: 2f 6c 6f 63 61 6c 2f 73 68 61 72 65 2f 70 72 6f  /local/share/pro
4c70: 6a 2f 70 72 6f 6a 2e 64 62 3c 2f 62 3e 29 20 61  j/proj.db</b>) a
4c80: 6e 64 20 74 68 61 74 27 73 20 61 6c 6c 2e 3c 62  nd that's all.<b
4c90: 72 3e 3c 62 72 3e 0d 0a 54 68 69 6e 67 73 20 61  r><br>..Things a
4ca0: 72 65 20 75 6e 68 61 70 70 69 6c 79 20 61 20 6c  re unhappily a l
4cb0: 69 74 74 6c 65 20 62 69 74 20 6d 6f 72 65 20 64  ittle bit more d
4cc0: 69 66 66 69 63 75 6c 74 73 20 6f 6e 20 57 69 6e  ifficults on Win
4cd0: 64 6f 77 73 20 70 6c 61 74 66 6f 72 6d 73 2e 0d  dows platforms..
4ce0: 0a 54 68 65 20 75 73 65 72 20 69 74 73 65 6c 66  .The user itself
4cf0: 20 69 73 20 72 65 73 70 6f 6e 73 69 62 6c 65 20   is responsible 
4d00: 66 6f 72 20 70 72 6f 70 65 72 6c 79 20 69 6e 73  for properly ins
4d10: 74 61 6c 6c 69 6e 67 20 3c 62 3e 70 72 6f 6a 2e  talling <b>proj.
4d20: 64 62 3c 2f 62 3e 0d 0a 53 6f 20 69 74 20 62 65  db</b>..So it be
4d30: 63 6f 6d 65 73 20 63 72 69 74 69 63 61 6c 20 75  comes critical u
4d40: 6e 64 65 72 73 74 61 6e 64 69 6e 67 20 74 68 65  nderstanding the
4d50: 20 62 61 73 69 63 20 72 75 6c 65 73 20 61 64 6f   basic rules ado
4d60: 70 74 65 64 20 62 79 20 3c 62 3e 6c 69 62 73 70  pted by <b>libsp
4d70: 61 74 69 61 6c 69 74 65 3c 2f 62 3e 20 69 6e 20  atialite</b> in 
4d80: 6f 72 64 65 72 20 74 6f 20 70 72 6f 70 65 72 6c  order to properl
4d90: 79 20 6c 6f 63 61 74 65 20 3c 62 3e 70 72 6f 6a  y locate <b>proj
4da0: 2e 64 62 3c 2f 62 3e 20 6f 6e 20 57 69 6e 64 6f  .db</b> on Windo
4db0: 77 73 2e 0d 0a 3c 2f 74 64 3e 3c 2f 74 72 3e 0d  ws...</td></tr>.
4dc0: 0a 3c 74 72 3e 3c 74 68 3e 0d 0a 3c 68 32 3e 57  .<tr><th>..<h2>W
4dd0: 68 65 72 65 20 70 72 6f 6a 2e 64 62 20 69 73 20  here proj.db is 
4de0: 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 66  expected to be f
4df0: 6f 75 6e 64 20 6f 6e 20 57 69 6e 64 6f 77 73 3c  ound on Windows<
4e00: 2f 68 32 3e 0d 0a 3c 2f 74 64 3e 3c 2f 74 72 3e  /h2>..</td></tr>
4e10: 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a 3c 6f 6c 3e  ..<tr><td>..<ol>
4e20: 0d 0a 3c 6c 69 3e 74 68 65 20 66 69 72 73 74 20  ..<li>the first 
4e30: 70 6c 61 63 65 20 77 68 65 72 65 20 3c 62 3e 70  place where <b>p
4e40: 72 6f 6a 2e 64 62 3c 2f 62 3e 20 77 69 6c 6c 20  roj.db</b> will 
4e50: 62 65 20 73 65 61 72 63 68 65 64 20 69 73 20 74  be searched is t
4e60: 68 65 20 73 61 6d 65 20 66 6f 6c 64 65 72 20 66  he same folder f
4e70: 6f 72 6d 20 77 68 65 72 65 20 74 68 65 20 3c 62  orm where the <b
4e80: 3e 45 58 45 3c 2f 62 3e 20 62 69 6e 61 72 79 20  >EXE</b> binary 
4e90: 77 61 73 20 69 6e 69 74 69 61 6c 6c 79 20 6c 6f  was initially lo
4ea0: 61 64 65 64 2e 3c 62 72 3e 0d 0a 3c 69 3e 3c 75  aded.<br>..<i><u
4eb0: 3e 45 78 61 6d 70 6c 65 3c 2f 69 3e 3c 2f 75 3e  >Example</i></u>
4ec0: 3a 20 61 73 73 75 6d 69 6e 67 20 74 68 61 74 20  : assuming that 
4ed0: 79 6f 75 20 61 72 65 20 63 75 72 72 65 6e 74 6c  you are currentl
4ee0: 79 20 65 78 65 63 75 74 69 6e 67 20 3c 62 3e 43  y executing <b>C
4ef0: 3a 5c 6d 79 70 72 6f 67 73 5c 73 70 61 74 69 61  :\myprogs\spatia
4f00: 6c 69 74 65 5c 62 69 6e 5c 73 70 61 74 69 61 6c  lite\bin\spatial
4f10: 69 74 65 2e 65 78 65 3c 2f 62 3e 0d 0a 3c 75 6c  ite.exe</b>..<ul
4f20: 3e 0d 0a 3c 6c 69 3e 74 68 65 6e 20 61 6e 20 61  >..<li>then an a
4f30: 74 74 65 6d 70 74 20 77 69 6c 6c 20 62 65 20 6d  ttempt will be m
4f40: 61 64 65 20 74 6f 20 63 6f 6e 6e 65 63 74 20 3c  ade to connect <
4f50: 62 3e 43 3a 5c 6d 79 70 72 6f 67 73 5c 73 70 61  b>C:\myprogs\spa
4f60: 74 69 61 6c 69 74 65 5c 62 69 6e 5c 70 72 6f 6a  tialite\bin\proj
4f70: 2e 64 62 3c 2f 62 3e 3c 2f 6c 69 3e 0d 0a 3c 2f  .db</b></li>..</
4f80: 75 6c 3e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 61 20  ul></li>..<li>a 
4f90: 73 65 63 6f 6e 64 20 61 74 74 65 6d 70 74 20 77  second attempt w
4fa0: 69 6c 6c 20 62 65 20 6d 61 64 65 20 6f 6e 20 62  ill be made on b
4fb0: 65 68 61 6c 66 20 6f 66 20 74 68 65 20 3c 62 3e  ehalf of the <b>
4fc0: 50 75 62 6c 69 63 3c 2f 62 3e 20 66 6f 6c 64 65  Public</b> folde
4fd0: 72 2e 3c 62 72 3e 0d 0a 3c 69 3e 3c 75 3e 45 78  r.<br>..<i><u>Ex
4fe0: 61 6d 70 6c 65 3c 2f 75 3e 3c 2f 69 3e 3a 20 61  ample</u></i>: a
4ff0: 6e 20 61 74 74 65 6d 70 74 20 77 69 6c 6c 20 62  n attempt will b
5000: 65 20 6d 61 64 65 20 74 6f 20 63 6f 6e 6e 65 63  e made to connec
5010: 74 20 3c 62 3e 43 3a 5c 55 73 65 72 73 5c 50 75  t <b>C:\Users\Pu
5020: 62 6c 69 63 5c 73 70 61 74 69 61 6c 69 74 65 5c  blic\spatialite\
5030: 70 72 6f 6a 5c 70 72 6f 6a 2e 64 62 3c 2f 62 3e  proj\proj.db</b>
5040: 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 61 20 74 68 69  </li>..<li>a thi
5050: 72 64 20 28 61 6e 64 20 6c 61 73 74 29 20 61 74  rd (and last) at
5060: 74 65 6d 70 74 20 77 69 6c 6c 20 62 65 20 6d 61  tempt will be ma
5070: 64 65 20 6f 6e 20 62 65 68 61 6c 66 20 6f 66 20  de on behalf of 
5080: 74 68 65 20 3c 62 3e 55 73 65 72 3c 2f 62 3e 20  the <b>User</b> 
5090: 66 6f 6c 64 65 72 2e 3c 62 72 3e 0d 0a 3c 69 3e  folder.<br>..<i>
50a0: 3c 75 3e 45 78 61 6d 70 6c 65 3c 2f 69 3e 3c 2f  <u>Example</i></
50b0: 75 3e 3a 20 61 6e 20 61 74 74 65 6d 70 74 20 77  u>: an attempt w
50c0: 69 6c 6c 20 62 65 20 6d 61 64 65 20 74 6f 20 63  ill be made to c
50d0: 6f 6e 6e 65 63 74 20 3c 62 3e 43 3a 5c 55 73 65  onnect <b>C:\Use
50e0: 72 73 5c 73 61 6e 64 72 6f 5c 73 70 61 74 69 61  rs\sandro\spatia
50f0: 6c 69 74 65 5c 70 72 6f 6a 5c 70 72 6f 6a 2e 64  lite\proj\proj.d
5100: 62 3c 2f 62 3e 3c 2f 6c 69 3e 0d 0a 3c 2f 6f 6c  b</b></li>..</ol
5110: 3e 0d 0a 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c  >..</td></tr>..<
5120: 74 72 3e 3c 74 68 3e 0d 0a 3c 68 32 3e 55 73 69  tr><th>..<h2>Usi
5130: 6e 67 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65  ng the environme
5140: 6e 74 20 76 61 72 69 61 62 6c 65 20 53 50 41 54  nt variable SPAT
5150: 49 41 4c 49 54 45 5f 50 52 4f 4a 5f 44 42 5f 50  IALITE_PROJ_DB_P
5160: 41 54 48 3c 2f 68 32 3e 0d 0a 3c 2f 74 68 3e 3c  ATH</h2>..</th><
5170: 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a  /tr>..<tr><td>..
5180: 49 66 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65  If the environme
5190: 6e 74 20 76 61 72 69 61 62 6c 65 20 3c 62 3e 53  nt variable <b>S
51a0: 50 41 54 49 41 4c 49 54 45 5f 50 52 4f 4a 5f 44  PATIALITE_PROJ_D
51b0: 42 5f 50 41 54 48 3c 2f 62 3e 20 69 73 20 73 65  B_PATH</b> is se
51c0: 74 2c 20 74 68 65 6e 20 3c 62 3e 6c 69 62 73 70  t, then <b>libsp
51d0: 61 74 69 61 6c 69 74 65 3c 2f 62 3e 20 77 69 6c  atialite</b> wil
51e0: 6c 20 73 69 6d 70 6c 79 20 61 74 74 65 6d 70 74  l simply attempt
51f0: 20 74 6f 20 63 6f 6e 6e 65 63 74 20 74 68 65 20   to connect the 
5200: 64 61 74 61 62 61 73 65 20 70 6f 69 6e 74 65 64  database pointed
5210: 20 62 79 20 74 68 69 73 20 76 61 72 69 61 62 6c   by this variabl
5220: 65 2e 3c 62 72 3e 0d 0a 53 75 63 68 20 61 20 63  e.<br>..Such a c
5230: 61 70 61 62 69 6c 69 74 79 20 69 73 20 73 75 70  apability is sup
5240: 70 6f 72 74 65 64 20 6e 6f 74 20 6f 6e 6c 79 20  ported not only 
5250: 6f 6e 20 57 69 6e 64 6f 77 73 20 62 75 74 20 61  on Windows but a
5260: 6c 73 6f 20 6f 6e 20 4c 69 6e 75 78 20 28 61 6e  lso on Linux (an
5270: 64 20 6f 6e 20 61 6e 79 20 6f 74 68 65 72 20 70  d on any other p
5280: 6c 61 74 66 6f 72 6d 29 2e 3c 62 72 3e 3c 62 72  latform).<br><br
5290: 3e 0d 0a 3c 69 3e 3c 75 3e 4c 69 6e 75 78 20 65  >..<i><u>Linux e
52a0: 78 61 6d 70 6c 65 3c 2f 75 3e 3c 2f 69 3e 3a 0d  xample</u></i>:.
52b0: 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 65 78  .<ul>..<li><b>ex
52c0: 70 6f 72 74 20 22 53 50 41 54 49 41 4c 49 54 45  port "SPATIALITE
52d0: 5f 50 52 4f 4a 5f 44 42 5f 50 41 54 48 3d 2f 68  _PROJ_DB_PATH=/h
52e0: 6f 6d 65 2f 73 61 6e 64 72 6f 2f 61 75 78 2f 70  ome/sandro/aux/p
52f0: 72 6f 6a 2e 64 62 22 3c 62 72 3e 0d 0a 65 63 68  roj.db"<br>..ech
5300: 6f 20 24 53 50 41 54 49 41 4c 49 54 45 5f 50 52  o $SPATIALITE_PR
5310: 4f 4a 5f 44 42 5f 50 41 54 48 3c 62 72 3e 0d 0a  OJ_DB_PATH<br>..
5320: 73 70 61 74 69 61 6c 69 74 65 3c 62 3e 3c 2f 6c  spatialite<b></l
5330: 69 3e 0d 0a 3c 2f 75 6c 3e 3c 62 72 3e 3c 62 72  i>..</ul><br><br
5340: 3e 0d 0a 3c 69 3e 3c 75 3e 57 69 6e 64 6f 77 73  >..<i><u>Windows
5350: 20 65 78 61 6d 70 6c 65 3c 2f 75 3e 3c 2f 69 3e   example</u></i>
5360: 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e  :..<ul>..<li><b>
5370: 65 78 70 6f 72 74 20 22 53 50 41 54 49 41 4c 49  export "SPATIALI
5380: 54 45 5f 50 52 4f 4a 5f 44 42 5f 50 41 54 48 3d  TE_PROJ_DB_PATH=
5390: 2f 68 6f 6d 65 2f 73 61 6e 64 72 6f 2f 61 75 78  /home/sandro/aux
53a0: 2f 70 72 6f 6a 2e 64 62 22 3c 62 72 3e 0d 0a 65  /proj.db"<br>..e
53b0: 63 68 6f 20 25 53 50 41 54 49 41 4c 49 54 45 5f  cho %SPATIALITE_
53c0: 50 52 4f 4a 5f 44 42 5f 50 41 54 48 25 3c 62 72  PROJ_DB_PATH%<br
53d0: 3e 0d 0a 73 70 61 74 69 61 6c 69 74 65 5f 67 75  >..spatialite_gu
53e0: 69 3c 62 3e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e  i<b></li>..</ul>
53f0: 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 2f 74 68 3e 3c  <br><br>..</th><
5400: 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 3c 62  /tr>..</table><b
5410: 72 3e 0d 0a 3c 68 72 3e 3c 62 72 3e 0d 0a 3c 61  r>..<hr><br>..<a
5420: 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 77   href="https://w
5430: 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 66  ww.gaia-gis.it/f
5440: 6f 73 73 69 6c 2f 6c 69 62 73 70 61 74 69 61 6c  ossil/libspatial
5450: 69 74 65 2f 77 69 6b 69 3f 6e 61 6d 65 3d 34 2e  ite/wiki?name=4.
5460: 33 2e 30 2d 64 6f 63 22 3e 62 61 63 6b 3c 2f 61  3.0-doc">back</a
5470: 3e 0a 5a 20 33 38 35 33 39 38 34 62 61 32 61 64  >.Z 3853984ba2ad
5480: 33 38 62 38 63 33 65 34 62 39 31 38 31 35 32 37  38b8c3e4b9181527
5490: 63 38 31 34 0a                                   c814.