Lines Matching refs:nodes
37 protected $nodes = [];
75 $nodes = [];
89 $nodes[$id] = [
95 if (empty($nodes)) {
107 if (isset($nodes[$ref])) {
108 $nodes[$ref]['assigned'] = true;
122 'nodes' => $wayNodes,
157 if ($memberType === 'node' && isset($nodes[$ref])) {
158 $nodes[$ref]['assigned'] = true;
159 $relationPoints[] = $nodes[$ref]['point'];
163 $relationWays[$ref] = $ways[$ref]['nodes'];
168 $relationPolygons = $this->processMultipolygon($relationWays, $nodes);
171 $relationLines = $this->processRoutes($relationWays, $nodes);
199 foreach ($way['nodes'] as $wayNode) {
200 $linePoints[] = $nodes[$wayNode]['point'];
216 foreach ($nodes as $node) {
226 protected function processRoutes(&$relationWays, &$nodes)
267 $linePoints[] = $nodes[$lineNode]['point'];
275 protected function processMultipolygon(&$relationWays, &$nodes)
322 $ringPoints[] = $nodes[$ringNode]['point'];
421 foreach ($this->nodes as $latlon => $node) {
475 if (!isset($this->nodes[$nodePosition])) {
476 $this->nodes[$nodePosition] = ['id' => --$this->idCounter, "used" => $isWayPoint];
480 $this->nodes[$nodePosition]['used'] = true;
482 return $this->nodes[$nodePosition]['id'];
491 $nodes = [];
493 $nodes[] = $this->processPoint($point, true);
495 $this->ways[--$this->idCounter] = $nodes;