Hex Artifact Content
Not logged in

Artifact a5e6a00faf5d7da0d585cd33c0c7ee62899e7468:

Wiki page [OSM tools] by sandro 2012-05-02 18:19:11.
0000: 44 20 32 30 31 32 2d 30 35 2d 30 32 54 31 38 3a  D 2012-05-02T18:
0010: 31 39 3a 31 31 2e 31 35 39 0a 4c 20 4f 53 4d 5c  19:11.159.L OSM\
0020: 73 74 6f 6f 6c 73 0a 50 20 32 64 38 62 33 62 35  stools.P 2d8b3b5
0030: 62 34 37 32 64 39 61 63 63 61 33 38 38 30 63 37  b472d9acca3880c7
0040: 36 32 63 39 62 31 65 63 66 32 30 32 38 36 37 35  62c9b1ecf2028675
0050: 64 0a 55 20 73 61 6e 64 72 6f 0a 57 20 37 31 36  d.U sandro.W 716
0060: 32 0a 3c 68 33 3e 46 65 77 20 62 61 73 69 63 20  2.<h3>Few basic 
0070: 6e 6f 74 69 63 65 73 20 79 6f 75 20 6d 75 73 74  notices you must
0080: 20 61 62 73 6f 6c 75 74 65 6c 79 20 6b 6e 6f 77   absolutely know
0090: 20 61 62 6f 75 74 20 4f 53 4d 20 64 61 74 61 73   about OSM datas
00a0: 65 74 73 3c 2f 68 33 3e 0d 0a 3c 61 20 68 72 65  ets</h3>..<a hre
00b0: 66 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e 6f 70  f="http://www.op
00c0: 65 6e 73 74 72 65 65 74 6d 61 70 2e 6f 72 67 2f  enstreetmap.org/
00d0: 22 3e 4f 70 65 6e 20 53 74 72 65 65 74 20 4d 61  ">Open Street Ma
00e0: 70 3c 2f 61 3e 20 28 3c 62 3e 4f 53 4d 3c 2f 62  p</a> (<b>OSM</b
00f0: 3e 29 20 69 73 20 61 20 63 6f 6d 6d 75 6e 69 74  >) is a communit
0100: 79 2d 64 72 69 76 65 6e 20 70 72 6f 6a 65 63 74  y-driven project
0110: 20 61 69 6d 65 64 20 74 6f 20 70 72 6f 64 75 63   aimed to produc
0120: 65 20 61 20 68 69 67 68 2d 71 75 61 6c 69 74 79  e a high-quality
0130: 20 64 65 74 61 69 6c 65 64 20 6d 61 70 20 6f 66   detailed map of
0140: 20 74 68 65 20 77 6f 72 6c 64 2e 3c 62 72 3e 0d   the world.<br>.
0150: 0a 4f 53 4d 20 64 61 74 61 73 65 74 73 20 61 72  .OSM datasets ar
0160: 65 20 66 72 65 65 6c 79 20 61 76 61 69 6c 61 62  e freely availab
0170: 6c 65 20 75 6e 64 65 72 20 74 68 65 20 3c 61 20  le under the <a 
0180: 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 77 69 6b  href="http://wik
0190: 69 2e 6f 70 65 6e 73 74 72 65 65 74 6d 61 70 2e  i.openstreetmap.
01a0: 6f 72 67 2f 77 69 6b 69 2f 4f 70 65 6e 53 74 72  org/wiki/OpenStr
01b0: 65 65 74 4d 61 70 5f 4c 69 63 65 6e 73 65 22 3e  eetMap_License">
01c0: 43 43 2d 42 59 2d 53 41 3c 2f 61 3e 20 6c 69 63  CC-BY-SA</a> lic
01d0: 65 6e 73 65 20 74 65 72 6d 73 3a 20 74 77 6f 20  ense terms: two 
01e0: 70 6f 70 75 6c 61 72 20 64 6f 77 6e 6c 6f 61 64  popular download
01f0: 20 73 69 74 65 73 20 61 72 65 20 3c 61 20 68 72   sites are <a hr
0200: 65 66 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e 67  ef="http://www.g
0210: 65 6f 66 61 62 72 69 6b 2e 64 65 2f 64 61 74 61  eofabrik.de/data
0220: 2f 64 6f 77 6e 6c 6f 61 64 2e 68 74 6d 6c 22 3e  /download.html">
0230: 47 65 6f 66 61 62 72 69 6b 3c 2f 61 3e 20 61 6e  Geofabrik</a> an
0240: 64 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70 3a  d <a href="http:
0250: 2f 2f 64 6f 77 6e 6c 6f 61 64 73 2e 63 6c 6f 75  //downloads.clou
0260: 64 6d 61 64 65 2e 63 6f 6d 2f 22 3e 43 6c 6f 75  dmade.com/">Clou
0270: 64 4d 61 64 65 3c 2f 61 3e 3c 62 72 3e 3c 62 72  dMade</a><br><br
0280: 3e 0d 0a 4f 53 4d 20 61 64 6f 70 74 73 20 61 20  >..OSM adopts a 
0290: 3c 69 3e 71 75 61 73 69 2d 74 6f 70 6f 6c 6f 67  <i>quasi-topolog
02a0: 69 63 61 6c 3c 2f 69 3e 20 64 61 74 61 20 6d 6f  ical</i> data mo
02b0: 64 65 6c 3a 20 6d 61 70 20 6f 62 6a 65 63 74 20  del: map object 
02c0: 61 72 65 20 72 65 70 72 65 73 65 6e 74 65 64 20  are represented 
02d0: 61 63 63 6f 72 64 69 6e 67 6c 79 20 74 6f 20 74  accordingly to t
02e0: 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 6f 62 6a  he following obj
02f0: 65 63 74 20 68 69 65 72 61 72 63 68 79 3a 3c 75  ect hierarchy:<u
0300: 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 4e 6f 64 65 3c  l>..<li><b>Node<
0310: 2f 62 3e 3a 20 61 6e 20 4f 53 4d 2d 4e 6f 64 65  /b>: an OSM-Node
0320: 20 73 69 6d 70 6c 79 20 63 6f 72 72 65 73 70 6f   simply correspo
0330: 6e 64 73 20 74 6f 20 61 20 50 4f 49 4e 54 20 47  nds to a POINT G
0340: 65 6f 6d 65 74 72 79 3b 20 74 68 65 20 67 65 6f  eometry; the geo
0350: 67 72 61 70 68 69 63 20 63 6f 6f 72 64 69 6e 61  graphic coordina
0360: 74 65 73 20 61 72 65 20 61 6c 77 61 79 73 20 65  tes are always e
0370: 78 70 72 65 73 73 65 64 20 61 73 20 4c 6f 6e 67  xpressed as Long
0380: 69 74 75 64 65 20 61 6e 64 20 4c 61 74 69 74 75  itude and Latitu
0390: 64 65 20 28 74 68 75 73 20 63 6f 72 72 65 73 70  de (thus corresp
03a0: 6f 6e 64 69 6e 67 20 74 6f 20 53 52 49 44 20 34  onding to SRID 4
03b0: 33 32 36 29 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e  326).</li>..<li>
03c0: 3c 62 3e 57 61 79 3c 2f 62 3e 3a 20 61 6e 20 4f  <b>Way</b>: an O
03d0: 53 4d 2d 57 61 79 20 63 6f 72 72 65 73 70 6f 6e  SM-Way correspon
03e0: 64 73 20 74 6f 20 61 20 4c 49 4e 45 53 54 52 49  ds to a LINESTRI
03f0: 4e 47 20 47 65 6f 6d 65 74 72 79 3a 20 61 6c 6c  NG Geometry: all
0400: 20 70 6f 69 6e 74 73 20 72 65 70 72 65 73 65 6e   points represen
0410: 74 69 6e 67 20 74 68 65 20 6c 69 6e 65 20 61 72  ting the line ar
0420: 65 20 72 65 70 72 65 73 65 6e 74 65 64 20 62 79  e represented by
0430: 20 69 6e 64 69 72 65 63 74 6c 79 20 72 65 66 65   indirectly refe
0440: 72 65 6e 63 65 64 20 4e 6f 64 65 73 2e 3c 2f 6c  renced Nodes.</l
0450: 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 52 65 6c 61 74  i>..<li><b>Relat
0460: 69 6f 6e 3c 2f 62 3e 3a 20 61 6e 20 4f 53 4d 2d  ion</b>: an OSM-
0470: 52 65 6c 61 74 69 6f 6e 20 69 73 20 61 20 63 6f  Relation is a co
0480: 6d 70 6c 65 78 20 6f 62 6a 65 63 74 2e 0d 0a 49  mplex object...I
0490: 74 20 63 61 6e 20 63 6f 72 72 65 73 70 6f 6e 64  t can correspond
04a0: 20 74 6f 20 61 20 50 4f 4c 59 47 4f 4e 2c 20 74   to a POLYGON, t
04b0: 6f 20 61 20 4d 55 4c 54 49 4c 49 4e 45 53 54 52  o a MULTILINESTR
04c0: 49 4e 47 2c 20 6f 72 20 65 76 65 6e 20 74 6f 20  ING, or even to 
04d0: 61 20 20 47 45 4f 4d 45 54 52 59 43 4f 4c 4c 45  a  GEOMETRYCOLLE
04e0: 43 54 49 4f 4e 2e 3c 62 72 3e 0d 0a 41 6e 20 4f  CTION.<br>..An O
04f0: 53 4d 2d 52 65 6c 61 74 69 6f 6e 20 6f 62 6a 65  SM-Relation obje
0500: 63 74 20 63 61 6e 20 69 6e 64 69 72 65 63 74 6c  ct can indirectl
0510: 79 20 72 65 66 65 72 65 6e 63 65 20 61 6e 79 20  y reference any 
0520: 6f 74 68 65 72 20 6b 69 6e 64 20 6f 66 20 4f 53  other kind of OS
0530: 4d 20 6f 62 6a 65 63 74 73 3a 20 4e 6f 64 65 73  M objects: Nodes
0540: 2c 20 57 61 79 73 20 6f 72 20 6f 74 68 65 72 20  , Ways or other 
0550: 52 65 6c 61 74 69 6f 6e 73 2e 3c 2f 6c 69 3e 0d  Relations.</li>.
0560: 0a 3c 2f 75 6c 3e 3c 62 72 3e 0d 0a 41 6c 6c 20  .</ul><br>..All 
0570: 4f 53 4d 20 6d 61 70 20 6f 62 6a 65 63 74 73 20  OSM map objects 
0580: 63 61 6e 20 62 65 20 65 76 65 6e 74 75 61 6c 6c  can be eventuall
0590: 79 20 71 75 61 6c 69 66 69 65 64 20 62 79 20 61  y qualified by a
05a0: 20 72 69 63 68 20 73 65 74 20 6f 66 20 64 61 74   rich set of dat
05b0: 61 20 61 74 74 72 69 62 75 74 65 73 3a 3c 75 6c  a attributes:<ul
05c0: 3e 0d 0a 3c 6c 69 3e 3c 62 3e 69 64 3c 2f 62 3e  >..<li><b>id</b>
05d0: 3a 20 61 20 6e 75 6d 62 65 72 20 75 6e 69 71 75  : a number uniqu
05e0: 65 6c 79 20 69 64 65 6e 74 69 66 79 69 6e 67 20  ely identifying 
05f0: 65 61 63 68 20 4f 53 4d 20 6d 61 70 20 6f 62 6a  each OSM map obj
0600: 65 63 74 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c  ect.</li>..<li><
0610: 62 3e 76 65 72 73 69 6f 6e 3c 2f 62 3e 3a 20 61  b>version</b>: a
0620: 20 70 72 6f 67 72 65 73 73 69 76 65 20 6e 75 6d   progressive num
0630: 62 65 72 20 69 64 65 6e 74 69 66 79 69 6e 67 20  ber identifying 
0640: 73 75 62 73 65 71 75 65 6e 74 20 76 65 72 73 69  subsequent versi
0650: 6f 6e 73 20 6f 66 20 74 68 65 20 73 61 6d 65 20  ons of the same 
0660: 6f 62 6a 65 63 74 2e 3c 2f 6c 69 3e 0d 0a 3c 6c  object.</li>..<l
0670: 69 3e 3c 62 3e 63 68 61 6e 67 65 73 65 74 3c 2f  i><b>changeset</
0680: 62 3e 3a 20 61 20 70 72 6f 67 72 65 73 73 69 76  b>: a progressiv
0690: 65 20 6e 75 6d 62 65 72 20 69 64 65 6e 74 69 66  e number identif
06a0: 79 69 6e 67 20 61 20 3c 69 3e 63 68 61 6e 67 65  ying a <i>change
06b0: 73 65 74 3c 2f 69 3e 2c 20 69 2e 65 2e 20 61 20  set</i>, i.e. a 
06c0: 62 61 74 63 68 20 69 6e 73 65 72 74 2f 75 70 64  batch insert/upd
06d0: 61 74 65 20 70 65 72 66 6f 72 6d 65 64 20 62 79  ate performed by
06e0: 20 73 61 6d 65 20 75 73 65 72 2e 3c 2f 6c 69 3e   same user.</li>
06f0: 0d 0a 3c 6c 69 3e 3c 62 3e 75 73 65 72 3c 2f 62  ..<li><b>user</b
0700: 3e 3a 20 6e 69 63 6b 6e 61 6d 65 20 6f 66 20 74  >: nickname of t
0710: 68 65 20 75 73 65 72 20 28 61 6b 61 20 3c 69 3e  he user (aka <i>
0720: 6d 61 70 70 65 72 3c 2f 69 3e 20 69 6e 20 4f 53  mapper</i> in OS
0730: 4d 20 70 61 72 6c 61 6e 63 65 29 20 63 6f 6d 6d  M parlance) comm
0740: 69 74 74 69 6e 67 20 74 68 65 20 63 68 61 6e 67  itting the chang
0750: 65 73 65 74 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e  eset.</li>..<li>
0760: 3c 62 3e 75 69 64 3c 2f 62 3e 3a 20 61 20 6e 75  <b>uid</b>: a nu
0770: 6d 62 65 72 20 75 6e 69 71 75 65 6c 79 20 69 64  mber uniquely id
0780: 65 6e 74 69 66 79 69 6e 67 20 74 68 65 20 75 73  entifying the us
0790: 65 72 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62  er.</li>..<li><b
07a0: 3e 74 69 6d 65 73 74 65 6d 70 3c 2f 62 3e 3a 20  >timestemp</b>: 
07b0: 63 6f 6d 6d 69 74 20 64 61 74 65 2d 74 69 6d 65  commit date-time
07c0: 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 41 6e 79 20 66  </li>..<li>Any f
07d0: 75 72 74 68 65 72 20 61 72 62 69 74 72 61 72 79  urther arbitrary
07e0: 20 64 61 74 61 20 61 74 74 72 69 62 75 74 65 20   data attribute 
07f0: 63 6f 75 6c 64 20 62 65 20 66 72 65 65 6c 79 20  could be freely 
0800: 73 70 65 63 69 66 69 65 64 20 75 73 69 6e 67 20  specified using 
0810: 61 20 3c 62 3e 74 61 67 20 6c 69 73 74 3c 2f 62  a <b>tag list</b
0820: 3e 2c 20 69 2e 65 2e 20 69 6e 63 6c 75 64 69 6e  >, i.e. includin
0830: 67 20 61 20 3c 69 3e 3c 75 3e 64 69 63 74 69 6f  g a <i><u>dictio
0840: 6e 61 72 79 3c 2f 75 3e 3c 2f 69 3e 20 62 61 73  nary</u></i> bas
0850: 65 64 20 6f 6e 20 3c 69 3e 3c 75 3e 6b 65 79 3a  ed on <i><u>key:
0860: 76 61 6c 75 65 3c 2f 75 3e 3c 2f 69 3e 20 70 61  value</u></i> pa
0870: 69 72 73 2e 3c 62 72 3e 0d 0a 41 20 73 74 61 6e  irs.<br>..A stan
0880: 64 61 72 64 20 3c 61 20 68 72 65 66 3d 22 68 74  dard <a href="ht
0890: 74 70 3a 2f 2f 77 69 6b 69 2e 6f 70 65 6e 73 74  tp://wiki.openst
08a0: 72 65 65 74 6d 61 70 2e 6f 72 67 2f 77 69 6b 69  reetmap.org/wiki
08b0: 2f 4d 61 70 5f 46 65 61 74 75 72 65 73 22 3e 74  /Map_Features">t
08c0: 61 67 20 73 70 65 63 69 66 69 63 61 74 69 6f 6e  ag specification
08d0: 3c 2f 61 3e 20 65 78 69 73 74 73 2c 20 62 75 74  </a> exists, but
08e0: 20 61 6e 79 77 61 79 20 74 68 69 73 20 6f 6e 65   anyway this one
08f0: 20 69 73 20 62 79 20 64 65 66 69 6e 69 74 69 6f   is by definitio
0900: 6e 20 61 20 76 61 72 69 61 62 6c 65 20 6c 69 73  n a variable lis
0910: 74 3a 20 65 61 63 68 20 73 69 6e 67 6c 65 20 6d  t: each single m
0920: 61 70 70 65 72 20 63 61 6e 20 66 72 65 65 6c 79  apper can freely
0930: 20 61 64 64 20 66 75 72 74 68 65 72 20 74 61 67   add further tag
0940: 73 20 61 63 63 6f 72 64 69 6e 67 6c 79 20 74 6f  s accordingly to
0950: 20 68 69 73 2f 68 65 72 20 70 65 72 73 6f 6e 61   his/her persona
0960: 6c 20 74 61 73 74 65 2e 3c 2f 6c 69 3e 0d 0a 3c  l taste.</li>..<
0970: 2f 75 6c 3e 3c 62 72 3e 0d 0a 55 73 75 61 6c 6c  /ul><br>..Usuall
0980: 79 20 4f 53 4d 20 64 61 74 61 73 65 74 73 20 61  y OSM datasets a
0990: 72 65 20 72 65 6c 65 61 73 65 64 20 61 73 20 58  re released as X
09a0: 4d 4c 20 66 69 6c 65 3a 20 73 6f 20 74 68 65 20  ML file: so the 
09b0: 66 6f 6c 6c 6f 77 69 6e 67 20 58 4d 4c 20 73 6e  following XML sn
09c0: 69 70 70 65 74 20 77 69 6c 6c 20 70 72 6f 62 61  ippet will proba
09d0: 62 6c 79 20 68 65 6c 70 20 79 6f 75 20 74 6f 20  bly help you to 
09e0: 62 65 74 74 65 72 20 75 6e 64 65 72 73 74 61 6e  better understan
09f0: 64 20 74 68 65 20 67 65 6e 65 72 61 6c 20 4f 53  d the general OS
0a00: 4d 20 64 61 74 61 20 6d 6f 64 65 6c 3a 0d 0a 3c  M data model:..<
0a10: 74 61 62 6c 65 20 62 6f 72 64 65 72 3d 22 31 22  table border="1"
0a20: 3e 3c 74 72 3e 3c 74 64 3e 3c 70 72 65 3e 0d 0a  ><tr><td><pre>..
0a30: 26 6c 74 3b 6e 6f 64 65 20 69 64 3d 22 31 30 30  &lt;node id="100
0a40: 31 22 20 6c 61 74 3d 22 36 2e 36 22 20 6c 6f 6e  1" lat="6.6" lon
0a50: 3d 22 37 2e 37 22 20 76 65 72 73 69 6f 6e 3d 22  ="7.7" version="
0a60: 31 22 20 63 68 61 6e 67 65 73 65 74 3d 22 32 22  1" changeset="2"
0a70: 20 75 73 65 72 3d 22 65 74 61 22 20 75 69 64 3d   user="eta" uid=
0a80: 22 36 22 20 74 69 6d 65 73 74 61 6d 70 3d 22 32  "6" timestamp="2
0a90: 30 30 35 2d 30 32 2d 32 38 54 31 37 3a 34 35 3a  005-02-28T17:45:
0aa0: 31 35 5a 22 26 67 74 3b 0d 0a 20 20 20 20 26 6c  15Z"&gt;..    &l
0ab0: 74 3b 74 61 67 20 6b 65 79 3d 22 63 72 65 61 74  t;tag key="creat
0ac0: 65 64 5f 62 79 22 20 76 61 6c 75 65 3d 22 4a 4f  ed_by" value="JO
0ad0: 53 4d 22 20 2f 26 67 74 3b 0d 0a 20 20 20 20 26  SM" /&gt;..    &
0ae0: 6c 74 3b 74 61 67 20 6b 65 79 3d 22 74 6f 75 72  lt;tag key="tour
0af0: 69 73 6d 22 20 76 61 6c 75 65 3d 22 63 61 6d 70  ism" value="camp
0b00: 5f 73 69 74 65 22 20 2f 26 67 74 3b 0d 0a 26 6c  _site" /&gt;..&l
0b10: 74 3b 2f 6e 6f 64 65 26 67 74 3b 0d 0a 26 6c 74  t;/node&gt;..&lt
0b20: 3b 77 61 79 20 69 64 3d 22 35 30 30 30 22 20 76  ;way id="5000" v
0b30: 65 72 73 69 6f 6e 3d 22 31 22 20 63 68 61 6e 67  ersion="1" chang
0b40: 65 73 65 74 3d 22 32 22 20 75 73 65 72 3d 22 65  eset="2" user="e
0b50: 74 61 22 20 75 69 64 3d 22 36 22 20 74 69 6d 65  ta" uid="6" time
0b60: 73 74 61 6d 70 3d 22 32 30 30 35 2d 30 32 2d 32  stamp="2005-02-2
0b70: 38 54 31 37 3a 34 35 3a 31 35 5a 22 26 67 74 3b  8T17:45:15Z"&gt;
0b80: 0d 0a 20 20 20 20 26 6c 74 3b 6e 64 20 72 65 66  ..    &lt;nd ref
0b90: 3d 22 31 30 30 31 22 20 2f 26 67 74 3b 0d 0a 20  ="1001" /&gt;.. 
0ba0: 20 20 20 26 6c 74 3b 6e 64 20 72 65 66 3d 22 31     &lt;nd ref="1
0bb0: 30 30 32 22 20 2f 26 67 74 3b 0d 0a 20 20 20 20  002" /&gt;..    
0bc0: 26 6c 74 3b 6e 64 20 72 65 66 3d 22 31 30 30 33  &lt;nd ref="1003
0bd0: 22 20 2f 26 67 74 3b 0d 0a 20 20 20 20 26 6c 74  " /&gt;..    &lt
0be0: 3b 74 61 67 20 6b 65 79 3d 22 63 72 65 61 74 65  ;tag key="create
0bf0: 64 5f 62 79 22 20 76 61 6c 75 65 3d 22 4a 4f 53  d_by" value="JOS
0c00: 4d 22 20 2f 26 67 74 3b 0d 0a 20 20 20 20 26 6c  M" /&gt;..    &l
0c10: 74 3b 74 61 67 20 6b 65 79 3d 22 74 6f 75 72 69  t;tag key="touri
0c20: 73 6d 22 20 76 61 6c 75 65 3d 22 63 61 6d 70 5f  sm" value="camp_
0c30: 73 69 74 65 22 20 2f 26 67 74 3b 0d 0a 26 6c 74  site" /&gt;..&lt
0c40: 3b 2f 77 61 79 3e 0d 0a 26 6c 74 3b 72 65 6c 61  ;/way>..&lt;rela
0c50: 74 69 6f 6e 20 69 64 3d 22 39 30 30 30 22 20 76  tion id="9000" v
0c60: 65 72 73 69 6f 6e 3d 22 31 22 20 63 68 61 6e 67  ersion="1" chang
0c70: 65 73 65 74 3d 22 32 22 20 75 73 65 72 3d 22 65  eset="2" user="e
0c80: 74 61 22 20 75 69 64 3d 22 36 22 20 74 69 6d 65  ta" uid="6" time
0c90: 73 74 61 6d 70 3d 22 32 30 30 35 2d 30 32 2d 32  stamp="2005-02-2
0ca0: 38 54 31 37 3a 34 35 3a 31 35 5a 22 26 67 74 3b  8T17:45:15Z"&gt;
0cb0: 0d 0a 20 20 20 20 26 6c 74 3b 6d 65 6d 62 65 72  ..    &lt;member
0cc0: 20 74 79 70 65 3d 22 77 61 79 22 20 72 65 66 3d   type="way" ref=
0cd0: 22 35 30 30 30 22 20 72 6f 6c 65 3d 22 6f 75 74  "5000" role="out
0ce0: 65 72 22 20 2f 26 67 74 3b 0d 0a 20 20 20 20 26  er" /&gt;..    &
0cf0: 6c 74 3b 6d 65 6d 62 65 72 20 74 79 70 65 3d 22  lt;member type="
0d00: 77 61 79 22 20 72 65 66 3d 22 35 30 30 31 22 20  way" ref="5001" 
0d10: 72 6f 6c 65 3d 22 69 6e 6e 65 72 22 20 2f 26 67  role="inner" /&g
0d20: 74 3b 0d 0a 20 20 20 20 26 6c 74 3b 74 61 67 20  t;..    &lt;tag 
0d30: 6b 65 79 3d 22 63 72 65 61 74 65 64 5f 62 79 22  key="created_by"
0d40: 20 76 61 6c 75 65 3d 22 4a 4f 53 4d 22 20 2f 26   value="JOSM" /&
0d50: 67 74 3b 0d 0a 20 20 20 20 26 6c 74 3b 74 61 67  gt;..    &lt;tag
0d60: 20 6b 65 79 3d 22 74 6f 75 72 69 73 6d 22 20 76   key="tourism" v
0d70: 61 6c 75 65 3d 22 63 61 6d 70 5f 73 69 74 65 22  alue="camp_site"
0d80: 20 2f 26 67 74 3b 0d 0a 26 6c 74 3b 2f 72 65 6c   /&gt;..&lt;/rel
0d90: 61 74 69 6f 6e 26 67 74 3b 0d 0a 3c 2f 70 72 65  ation&gt;..</pre
0da0: 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 3c 2f 74 61 62  ></td></tr></tab
0db0: 6c 65 3e 3c 62 72 3e 0d 0a 55 73 75 61 6c 6c 79  le><br>..Usually
0dc0: 20 4f 53 4d 20 64 61 74 61 73 65 74 73 20 63 61   OSM datasets ca
0dd0: 6e 20 62 65 20 64 6f 77 6e 6c 6f 61 64 65 64 20  n be downloaded 
0de0: 69 6e 20 74 77 6f 20 64 69 66 66 65 72 65 6e 74  in two different
0df0: 20 66 6f 72 6d 61 74 73 3a 3c 75 6c 3e 0d 0a 3c   formats:<ul>..<
0e00: 6c 69 3e 4f 53 4d 20 66 69 6c 65 73 20 69 64 65  li>OSM files ide
0e10: 6e 74 69 66 69 65 64 20 62 79 20 74 68 65 20 3c  ntified by the <
0e20: 62 3e 3c 69 3e 2e 6f 73 6d 3c 2f 69 3e 3c 2f 62  b><i>.osm</i></b
0e30: 3e 20 73 75 66 66 69 78 20 61 72 65 20 58 4d 4c  > suffix are XML
0e40: 20 66 69 6c 65 73 3a 20 74 68 65 79 20 61 72 65   files: they are
0e50: 20 6f 66 74 65 6e 20 73 68 69 70 70 65 64 20 61   often shipped a
0e60: 73 20 68 69 67 68 6c 79 20 63 6f 6d 70 72 65 73  s highly compres
0e70: 73 65 64 20 66 69 6c 65 73 2c 20 61 6e 64 20 69  sed files, and i
0e80: 6e 20 74 68 69 73 20 63 61 73 65 20 74 68 65 79  n this case they
0e90: 20 61 72 65 20 69 64 65 6e 74 69 66 69 65 64 20   are identified 
0ea0: 62 79 20 74 68 65 20 3c 69 3e 3c 62 3e 2e 6f 73  by the <i><b>.os
0eb0: 6d 2e 62 7a 32 3c 2f 62 3e 3c 2f 69 3e 20 73 75  m.bz2</b></i> su
0ec0: 66 66 69 78 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e  ffix.</li>..<li>
0ed0: 54 68 65 20 61 6c 74 65 72 6e 61 74 69 76 65 20  The alternative 
0ee0: 4f 53 4d 2d 70 72 6f 74 6f 62 75 66 20 66 6f 72  OSM-protobuf for
0ef0: 6d 61 74 20 69 73 20 69 64 65 6e 74 69 66 69 65  mat is identifie
0f00: 64 20 62 79 20 74 68 65 20 3c 62 3e 3c 69 3e 2e  d by the <b><i>.
0f10: 70 62 66 3c 2f 69 3e 3c 2f 62 3e 20 6f 72 20 3c  pbf</i></b> or <
0f20: 62 3e 3c 69 3e 2e 6f 73 6d 2e 70 62 66 3c 2f 69  b><i>.osm.pbf</i
0f30: 3e 3c 2f 62 3e 20 73 75 66 66 69 78 2e 3c 62 72  ></b> suffix.<br
0f40: 3e 0d 0a 54 68 69 73 20 66 6f 72 6d 61 74 20 69  >..This format i
0f50: 73 20 6d 75 63 68 20 6d 6f 72 65 20 63 6f 6d 70  s much more comp
0f60: 61 63 74 20 74 68 61 6e 20 58 4d 4c 20 28 73 6d  act than XML (sm
0f70: 61 6c 6c 65 72 20 73 69 7a 65 29 2c 20 61 6e 64  aller size), and
0f80: 20 6e 6f 20 70 72 65 6c 69 6d 69 6e 61 72 79 20   no preliminary 
0f90: 64 65 63 6f 6d 70 72 65 73 73 69 6f 6e 20 69 73  decompression is
0fa0: 20 72 65 71 75 69 72 65 64 2e 3c 2f 6c 69 3e 0d   required.</li>.
0fb0: 0a 3c 6c 69 3e 41 6c 6c 20 53 70 61 74 69 61 4c  .<li>All SpatiaL
0fc0: 69 74 65 20 74 6f 6f 6c 73 20 73 75 70 70 6f 72  ite tools suppor
0fd0: 74 69 6e 67 20 4f 53 4d 20 63 61 6e 20 69 6e 64  ting OSM can ind
0fe0: 69 66 66 65 72 65 6e 63 74 6c 79 20 70 61 72 73  ifferenctly pars
0ff0: 65 20 62 6f 74 68 20 66 6f 72 6d 61 74 73 20 69  e both formats i
1000: 6e 64 69 66 66 65 72 65 6e 63 74 6c 79 20 28 74  ndifferenctly (t
1010: 68 61 6e 6b 73 20 74 6f 20 3c 62 3e 3c 69 3e 72  hanks to <b><i>r
1020: 65 61 64 6f 73 6d 3c 2f 69 3e 3c 2f 62 3e 20 73  eadosm</i></b> s
1030: 75 70 70 6f 72 74 29 2e 3c 2f 6c 69 3e 0d 0a 3c  upport).</li>..<
1040: 2f 75 6c 3e 0d 0a 3c 68 33 3e 73 70 61 74 69 61  /ul>..<h3>spatia
1050: 6c 69 74 65 5f 6f 73 6d 5f 6d 61 70 3c 2f 68 33  lite_osm_map</h3
1060: 3e 0d 0a 54 68 69 73 20 74 6f 6f 6c 20 69 73 20  >..This tool is 
1070: 69 6e 74 65 6e 64 65 64 20 74 6f 20 70 61 72 73  intended to pars
1080: 65 20 61 20 77 68 6f 6c 65 20 4f 53 4d 20 64 61  e a whole OSM da
1090: 74 61 73 65 74 2c 20 74 68 75 73 20 63 72 65 61  taset, thus crea
10a0: 74 69 6e 67 20 74 68 65 20 63 6f 72 72 65 73 70  ting the corresp
10b0: 6f 6e 64 69 6e 67 20 53 70 61 74 69 61 4c 69 74  onding SpatiaLit
10c0: 65 27 73 20 44 42 2d 66 69 6c 65 2e 3c 62 72 3e  e's DB-file.<br>
10d0: 0d 0a 47 65 6f 6d 65 74 72 69 65 73 20 61 72 65  ..Geometries are
10e0: 20 72 65 61 73 73 65 6d 62 6c 65 64 20 69 6e 20   reassembled in 
10f0: 74 68 65 20 63 61 6e 6f 6e 69 63 61 6c 20 66 6f  the canonical fo
1100: 72 6d 20 6f 66 20 50 4f 49 4e 54 73 2c 20 4c 49  rm of POINTs, LI
1110: 4e 45 53 54 52 49 4e 47 73 20 61 6e 64 20 50 4f  NESTRINGs and PO
1120: 4c 59 47 4f 4e 73 2e 3c 62 72 3e 0d 0a 4d 61 70  LYGONs.<br>..Map
1130: 73 20 6f 62 6a 65 63 74 73 20 61 72 65 20 74 68  s objects are th
1140: 65 6e 20 61 67 67 72 65 67 61 74 65 64 20 62 79  en aggregated by
1150: 20 64 69 73 74 69 6e 63 74 20 6f 6d 6f 67 65 6e   distinct omogen
1160: 65 6f 75 73 20 3c 75 3e 3c 69 3e 6c 61 79 65 72  eous <u><i>layer
1170: 73 3c 2f 69 3e 3c 2f 75 3e 20 28 61 6b 61 20 3c  s</i></u> (aka <
1180: 75 3e 3c 69 3e 74 61 62 6c 65 73 3c 2f 69 3e 3c  u><i>tables</i><
1190: 2f 75 3e 20 69 6e 20 44 42 4d 53 20 70 61 72 6c  /u> in DBMS parl
11a0: 61 6e 63 65 29 20 61 63 63 6f 72 64 69 6e 67 6c  ance) accordingl
11b0: 79 20 74 6f 20 64 65 63 6c 61 72 65 64 20 3c 62  y to declared <b
11c0: 3e 3c 69 3e 74 61 67 73 3c 2f 69 3e 3c 2f 62 3e  ><i>tags</i></b>
11d0: 2e 3c 62 72 3e 0d 0a 54 68 65 20 69 6e 74 65 6e  .<br>..The inten
11e0: 64 65 64 20 67 6f 61 6c 20 6f 66 20 74 68 69 73  ded goal of this
11f0: 20 74 6f 6f 6c 20 69 73 20 74 68 65 20 6f 6e 65   tool is the one
1200: 20 74 6f 20 70 72 6f 64 75 63 65 20 61 20 44 42   to produce a DB
1210: 2d 66 69 6c 65 20 73 75 69 74 65 64 20 74 6f 20  -file suited to 
1220: 62 65 20 69 6d 6d 65 64 69 61 74 65 6c 79 20 75  be immediately u
1230: 73 65 64 20 77 69 74 68 20 73 6f 6d 65 20 61 70  sed with some ap
1240: 70 72 6f 70 72 69 61 74 65 20 47 49 53 20 61 70  propriate GIS ap
1250: 70 6c 69 63 61 74 69 6f 6e 20 28 65 2e 67 2e 20  plication (e.g. 
1260: 3c 62 3e 51 47 49 53 3c 2f 62 3e 29 2e 3c 62 72  <b>QGIS</b>).<br
1270: 3e 0d 0a 57 61 6e 74 20 74 6f 20 6c 65 61 72 6e  >..Want to learn
1280: 20 6d 6f 72 65 20 3f 20 72 65 61 64 20 61 20 70   more ? read a p
1290: 72 61 63 74 69 63 61 6c 20 3c 61 20 68 72 65 66  ractical <a href
12a0: 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61  ="https://www.ga
12b0: 69 61 2d 67 69 73 2e 69 74 2f 66 6f 73 73 69 6c  ia-gis.it/fossil
12c0: 2f 73 70 61 74 69 61 6c 69 74 65 2d 74 6f 6f 6c  /spatialite-tool
12d0: 73 2f 77 69 6b 69 3f 6e 61 6d 65 3d 73 70 61 74  s/wiki?name=spat
12e0: 69 61 6c 69 74 65 5f 6f 73 6d 5f 6d 61 70 22 3e  ialite_osm_map">
12f0: 65 78 61 6d 70 6c 65 3c 2f 61 3e 0d 0a 3c 68 33  example</a>..<h3
1300: 3e 73 70 61 74 69 61 6c 69 74 65 5f 6f 73 6d 5f  >spatialite_osm_
1310: 72 61 77 3c 2f 68 33 3e 0d 0a 41 6c 73 6f 20 74  raw</h3>..Also t
1320: 68 69 73 20 74 6f 6f 6c 20 69 73 20 69 6e 74 65  his tool is inte
1330: 6e 64 65 64 20 74 6f 20 70 61 72 73 65 20 61 20  nded to parse a 
1340: 77 68 6f 6c 65 20 4f 53 4d 20 64 61 74 61 73 65  whole OSM datase
1350: 74 2c 20 74 68 75 73 20 63 72 65 61 74 69 6e 67  t, thus creating
1360: 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69   the correspondi
1370: 6e 67 20 53 70 61 74 69 61 4c 69 74 65 27 73 20  ng SpatiaLite's 
1380: 44 42 2d 66 69 6c 65 3b 20 62 75 74 20 69 6e 20  DB-file; but in 
1390: 74 68 69 73 20 63 61 73 65 20 74 68 65 20 67 65  this case the ge
13a0: 6e 65 72 61 74 65 64 20 44 42 2d 66 69 6c 65 20  nerated DB-file 
13b0: 77 69 6c 6c 20 61 64 6f 70 74 20 61 20 63 6f 6d  will adopt a com
13c0: 70 6c 65 74 65 6c 79 20 64 69 66 66 65 72 65 6e  pletely differen
13d0: 74 20 64 61 74 61 20 6c 61 79 6f 75 74 20 74 68  t data layout th
13e0: 61 6e 20 69 6e 20 74 68 65 20 70 72 65 76 69 6f  an in the previo
13f0: 75 73 20 73 63 65 6e 61 72 69 6f 2e 3c 62 72 3e  us scenario.<br>
1400: 0d 0a 49 6e 20 74 68 69 73 20 63 61 73 65 20 77  ..In this case w
1410: 69 6c 6c 20 62 65 20 61 64 6f 70 74 65 64 20 61  ill be adopted a
1420: 20 64 61 74 61 20 6c 61 79 6f 75 74 20 63 6c 6f   data layout clo
1430: 73 65 6c 79 20 6d 61 70 70 69 6e 67 20 4f 53 4d  sely mapping OSM
1440: 20 6f 62 6a 65 63 74 73 2c 20 74 68 65 69 72 20   objects, their 
1450: 64 61 74 61 20 61 74 74 72 69 62 75 74 65 73 20  data attributes 
1460: 61 6e 64 20 74 68 65 69 72 20 6d 75 74 75 61 6c  and their mutual
1470: 20 72 65 6c 61 74 69 6f 6e 73 68 69 70 73 3b 20   relationships; 
1480: 66 75 6c 6c 79 20 70 72 65 73 65 72 76 69 6e 67  fully preserving
1490: 20 74 68 65 20 6f 72 69 67 69 6e 61 6c 20 4f 53   the original OS
14a0: 4d 20 64 61 74 61 20 6d 6f 64 65 6c 2c 20 61 6e  M data model, an
14b0: 64 20 63 61 72 65 66 75 6c 6c 79 20 61 76 6f 69  d carefully avoi
14c0: 64 69 6e 67 20 74 6f 20 69 6e 74 72 6f 64 75 63  ding to introduc
14d0: 65 20 61 6e 79 20 75 6e 70 6c 65 61 73 61 6e 74  e any unpleasant
14e0: 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 73 75 70   information sup
14f0: 70 72 65 73 73 69 6f 6e 2e 3c 62 72 3e 0d 0a 54  pression.<br>..T
1500: 68 65 20 69 6e 74 65 6e 64 65 64 20 67 6f 61 6c  he intended goal
1510: 20 6f 66 20 74 68 69 73 20 74 6f 6f 6c 20 69 73   of this tool is
1520: 20 6e 6f 74 20 61 74 20 61 6c 6c 20 74 6f 20 70   not at all to p
1530: 72 6f 64 75 63 65 20 61 20 44 42 2d 66 69 6c 65  roduce a DB-file
1540: 20 75 73 61 62 6c 65 20 62 79 20 47 49 53 20 61   usable by GIS a
1550: 70 70 6c 69 63 61 74 69 6f 6e 73 3a 20 69 74 27  pplications: it'
1560: 73 20 69 6e 73 74 65 61 64 20 74 68 65 20 6f 6e  s instead the on
1570: 65 20 74 6f 20 67 65 74 20 61 20 44 42 2d 66 69  e to get a DB-fi
1580: 6c 65 20 79 6f 75 20 63 61 6e 20 75 73 65 20 69  le you can use i
1590: 6e 20 6f 72 64 65 72 20 74 6f 20 67 61 74 68 65  n order to gathe
15a0: 72 20 73 74 61 74 69 73 74 69 63 61 6c 20 69 6e  r statistical in
15b0: 66 6f 73 2c 20 74 6f 20 73 75 70 70 6f 72 74 20  fos, to support 
15c0: 73 6f 6d 65 20 70 6f 73 74 2d 70 72 6f 63 65 73  some post-proces
15d0: 73 69 6e 67 20 74 61 73 6b 20 61 6e 64 20 73 6f  sing task and so
15e0: 20 6f 6e 2e 3c 62 72 3e 0d 0a 57 61 6e 74 20 74   on.<br>..Want t
15f0: 6f 20 6c 65 61 72 6e 20 6d 6f 72 65 20 3f 20 72  o learn more ? r
1600: 65 61 64 20 61 20 70 72 61 63 74 69 63 61 6c 20  ead a practical 
1610: 3c 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f  <a href="https:/
1620: 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74  /www.gaia-gis.it
1630: 2f 66 6f 73 73 69 6c 2f 73 70 61 74 69 61 6c 69  /fossil/spatiali
1640: 74 65 2d 74 6f 6f 6c 73 2f 77 69 6b 69 3f 6e 61  te-tools/wiki?na
1650: 6d 65 3d 73 70 61 74 69 61 6c 69 74 65 5f 6f 73  me=spatialite_os
1660: 6d 5f 72 61 77 22 3e 65 78 61 6d 70 6c 65 3c 2f  m_raw">example</
1670: 61 3e 0d 0a 3c 68 33 3e 73 70 61 74 69 61 6c 69  a>..<h3>spatiali
1680: 74 65 5f 6f 73 6d 5f 66 69 6c 74 65 72 3c 2f 68  te_osm_filter</h
1690: 33 3e 0d 0a 54 68 69 73 20 74 6f 6f 6c 20 77 6f  3>..This tool wo
16a0: 72 6b 73 20 74 68 65 20 6f 70 70 6f 73 69 74 65  rks the opposite
16b0: 20 77 61 79 3a 20 61 20 44 42 2d 66 69 6c 65 20   way: a DB-file 
16c0: 28 6f 6e 65 20 70 72 65 76 69 6f 75 73 6c 79 20  (one previously 
16d0: 63 72 65 61 74 65 64 20 62 79 20 3c 62 3e 3c 69  created by <b><i
16e0: 3e 73 70 61 74 69 61 6c 69 74 65 5f 6f 73 6d 5f  >spatialite_osm_
16f0: 72 61 77 3c 2f 69 3e 3c 2f 62 3e 29 20 77 69 6c  raw</i></b>) wil
1700: 6c 20 62 65 20 70 72 6f 63 65 73 73 65 64 20 73  l be processed s
1710: 6f 20 74 6f 20 63 72 65 61 74 65 20 61 6e 20 4f  o to create an O
1720: 53 4d 2d 58 4d 4c 20 66 69 6c 65 2e 3c 62 72 3e  SM-XML file.<br>
1730: 0d 0a 41 20 3c 69 3e 3c 75 3e 6d 61 73 6b 3c 2f  ..A <i><u>mask</
1740: 75 3e 3c 2f 69 3e 20 28 69 2e 65 2e 20 61 6e 20  u></i> (i.e. an 
1750: 61 72 62 69 74 72 61 72 79 20 70 6f 6c 79 67 6f  arbitrary polygo
1760: 6e 61 6c 20 73 68 61 70 65 29 20 77 69 6c 6c 20  nal shape) will 
1770: 62 65 20 75 73 65 64 20 69 6e 20 6f 72 64 65 72  be used in order
1780: 20 74 6f 20 3c 69 3e 3c 75 3e 73 70 61 74 69 61   to <i><u>spatia
1790: 6c 6c 79 20 66 69 6c 74 65 72 3c 2f 75 3e 3c 2f  lly filter</u></
17a0: 69 3e 20 74 68 65 20 6d 61 70 20 6f 62 6a 65 63  i> the map objec
17b0: 74 73 20 74 6f 20 62 65 20 69 6e 73 65 72 74 65  ts to be inserte
17c0: 64 20 69 6e 74 6f 20 74 68 65 20 6f 75 74 70 75  d into the outpu
17d0: 74 20 66 69 6c 65 2e 20 41 6e 79 20 6d 61 70 20  t file. Any map 
17e0: 6f 62 6a 65 63 74 20 66 75 6c 6c 79 20 6f 72 20  object fully or 
17f0: 70 61 72 74 69 61 6c 6c 79 20 6f 76 65 72 6c 61  partially overla
1800: 70 70 69 6e 67 20 74 68 65 20 67 69 76 65 6e 20  pping the given 
1810: 6d 61 73 6b 20 77 69 6c 6c 20 62 65 20 65 78 70  mask will be exp
1820: 6f 72 74 65 64 3b 20 61 6e 79 20 6f 74 68 65 72  orted; any other
1830: 20 6f 62 6a 65 63 74 20 77 69 6c 6c 20 62 65 20   object will be 
1840: 73 69 6c 65 6e 74 6c 79 20 69 67 6e 6f 72 65 64  silently ignored
1850: 2e 3c 62 72 3e 0d 0a 54 68 65 20 69 6e 74 65 6e  .<br>..The inten
1860: 64 65 64 20 67 6f 61 6c 20 6f 66 20 74 68 69 73  ded goal of this
1870: 20 74 6f 6f 6c 20 69 73 20 74 68 65 20 6f 6e 65   tool is the one
1880: 20 74 6f 20 70 72 6f 64 75 63 65 20 73 65 6c 65   to produce sele
1890: 63 74 65 64 20 64 61 74 61 73 65 74 73 2c 20 74  cted datasets, t
18a0: 6f 20 62 65 20 66 75 72 74 68 65 72 20 70 72 6f  o be further pro
18b0: 63 65 73 73 65 64 2e 3c 62 72 3e 0d 0a 57 61 6e  cessed.<br>..Wan
18c0: 74 20 74 6f 20 6c 65 61 72 6e 20 6d 6f 72 65 20  t to learn more 
18d0: 3f 20 72 65 61 64 20 61 20 70 72 61 63 74 69 63  ? read a practic
18e0: 61 6c 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70  al <a href="http
18f0: 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73  s://www.gaia-gis
1900: 2e 69 74 2f 66 6f 73 73 69 6c 2f 73 70 61 74 69  .it/fossil/spati
1910: 61 6c 69 74 65 2d 74 6f 6f 6c 73 2f 77 69 6b 69  alite-tools/wiki
1920: 3f 6e 61 6d 65 3d 73 70 61 74 69 61 6c 69 74 65  ?name=spatialite
1930: 5f 6f 73 6d 5f 66 69 6c 74 65 72 22 3e 65 78 61  _osm_filter">exa
1940: 6d 70 6c 65 3c 2f 61 3e 0d 0a 3c 68 33 3e 73 70  mple</a>..<h3>sp
1950: 61 74 69 61 6c 69 74 65 5f 6f 73 6d 5f 6e 65 74  atialite_osm_net
1960: 3c 2f 68 33 3e 0d 0a 59 65 74 20 61 67 61 69 6e  </h3>..Yet again
1970: 20 74 68 69 73 20 74 6f 6f 6c 20 77 69 6c 6c 20   this tool will 
1980: 70 61 72 73 65 20 61 20 77 68 6f 6c 65 20 4f 53  parse a whole OS
1990: 4d 20 64 61 74 61 73 65 74 2c 20 74 68 75 73 20  M dataset, thus 
19a0: 63 72 65 61 74 69 6e 67 20 61 20 63 6f 72 72 65  creating a corre
19b0: 73 70 6f 6e 64 69 6e 67 20 53 70 61 74 69 61 4c  sponding SpatiaL
19c0: 69 74 65 27 73 20 44 42 2d 66 69 6c 65 2e 3c 62  ite's DB-file.<b
19d0: 72 3e 0d 0a 49 6e 20 74 68 69 73 20 73 70 65 63  r>..In this spec
19e0: 69 66 69 63 20 63 61 73 65 20 61 6e 79 20 70 6f  ific case any po
19f0: 73 73 69 62 6c 65 20 65 66 66 6f 72 74 20 77 69  ssible effort wi
1a00: 6c 6c 20 62 65 20 64 6f 6e 65 20 69 6e 20 6f 72  ll be done in or
1a10: 64 65 72 20 74 6f 20 65 78 74 72 61 63 74 20 66  der to extract f
1a20: 72 6f 6d 20 74 68 65 20 4f 53 4d 20 64 61 74 61  rom the OSM data
1a30: 73 65 74 20 61 20 76 61 6c 69 64 20 52 6f 61 64  set a valid Road
1a40: 20 28 6f 72 20 52 61 69 6c 77 61 79 29 20 4e 65   (or Railway) Ne
1a50: 74 77 6f 72 6b 20 72 65 70 72 65 73 65 6e 74 65  twork represente
1a60: 64 20 62 79 20 4e 6f 64 65 73 20 61 6e 64 20 41  d by Nodes and A
1a70: 72 63 73 2e 3c 62 72 3e 0d 0a 54 68 65 20 69 6e  rcs.<br>..The in
1a80: 74 65 6e 64 65 64 20 67 6f 61 6c 20 6f 66 20 74  tended goal of t
1a90: 68 69 73 20 74 6f 6f 6c 20 69 73 20 74 68 65 20  his tool is the 
1aa0: 6f 6e 65 20 74 6f 20 70 72 6f 64 75 63 65 20 61  one to produce a
1ab0: 20 76 61 6c 69 64 20 3c 69 3e 3c 75 3e 67 72 61   valid <i><u>gra
1ac0: 70 68 3c 2f 75 3e 3c 2f 69 3e 20 74 6f 20 62 65  ph</u></i> to be
1ad0: 20 75 73 65 64 20 69 6e 20 61 20 6c 61 74 65 72   used in a later
1ae0: 20 73 74 65 70 20 69 6e 20 6f 72 64 65 72 20 74   step in order t
1af0: 6f 20 73 75 70 70 6f 72 74 20 74 68 65 20 53 70  o support the Sp
1b00: 61 74 69 61 4c 69 74 65 27 73 20 6f 77 6e 20 52  atiaLite's own R
1b10: 6f 75 74 69 6e 67 20 6d 6f 64 75 6c 65 20 28 3c  outing module (<
1b20: 69 3e 3c 62 3e 56 69 72 74 75 61 6c 4e 65 74 77  i><b>VirtualNetw
1b30: 6f 72 6b 3c 2f 62 3e 3c 2f 69 3e 29 2e 3c 62 72  ork</b></i>).<br
1b40: 3e 0d 0a 57 61 6e 74 20 74 6f 20 6c 65 61 72 6e  >..Want to learn
1b50: 20 6d 6f 72 65 20 3f 20 72 65 61 64 20 61 20 70   more ? read a p
1b60: 72 61 63 74 69 63 61 6c 20 3c 61 20 68 72 65 66  ractical <a href
1b70: 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61  ="https://www.ga
1b80: 69 61 2d 67 69 73 2e 69 74 2f 66 6f 73 73 69 6c  ia-gis.it/fossil
1b90: 2f 73 70 61 74 69 61 6c 69 74 65 2d 74 6f 6f 6c  /spatialite-tool
1ba0: 73 2f 77 69 6b 69 3f 6e 61 6d 65 3d 73 70 61 74  s/wiki?name=spat
1bb0: 69 61 6c 69 74 65 5f 6f 73 6d 5f 6e 65 74 22 3e  ialite_osm_net">
1bc0: 65 78 61 6d 70 6c 65 3c 2f 61 3e 2c 20 61 6e 64  example</a>, and
1bd0: 20 67 65 74 20 6d 6f 72 65 20 64 65 74 61 69 6c   get more detail
1be0: 65 64 20 69 6e 66 6f 73 20 61 62 6f 75 74 20 3c  ed infos about <
1bf0: 61 20 68 72 65 66 22 68 74 74 70 73 3a 2f 2f 77  a href"https://w
1c00: 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 66  ww.gaia-gis.it/f
1c10: 6f 73 73 69 6c 2f 73 70 61 74 69 61 6c 69 74 65  ossil/spatialite
1c20: 2d 74 6f 6f 6c 73 2f 77 69 6b 69 3f 6e 61 6d 65  -tools/wiki?name
1c30: 3d 67 72 61 70 68 73 2d 69 6e 74 72 6f 22 3e 4f  =graphs-intro">O
1c40: 53 4d 20 4e 65 74 77 6f 72 6b 73 20 61 6e 64 20  SM Networks and 
1c50: 67 72 61 70 68 73 3c 2f 61 3e 0d 0a 0a 5a 20 30  graphs</a>...Z 0
1c60: 66 32 38 32 31 38 31 66 37 32 63 30 62 30 35 39  f282181f72c0b059
1c70: 36 32 35 39 36 66 34 34 31 65 61 37 62 38 65 0a  62596f441ea7b8e.