
8.3. Networking 113
Logically, all links are embedded in the <way>s. Thus, the compiler
can traverse through all ways to extract links. The original OSM <way>s
will not be written back to the output. The input stream is then closed,
while the output stream is left open and waiting for the new <way>s, now
becoming <link>s:
parseOSM()
loadWay( element )
identifyWay( element, keyValPattern )
ways[feature].add( way )
Each network has its own distribution of nodes:
nodeDistribution[0]: <nodeID,times>
---------+-----
: :
-95=2
21293824=1
77=3
255076555=2
-147=2
: :
After parseOSM(), the input file has served its purpose, while the output
file was only filled with the original ...