Пример #1
0
 public Area(OSMway way, string type)
 {
     this.nodeList = way.GetNodeList();
     this.id       = way.GetID();
     this.color    = way.GetColor();
     this.type     = type;
 }
Пример #2
0
 public Trail(OSMway way)
 {
     this.nodeList  = way.GetNodeList();
     this.id        = way.GetID();
     this.color     = way.GetColor();
     this.trailName = way.getName();
 }
Пример #3
0
    private static void FillInWayNodeLatLon(OSMway way, Dictionary <long, OSMNode> wayNodes)
    {
        OSMNode value;

        foreach (OSMNode node in way.GetNodeList())
        {
            if (wayNodes.TryGetValue(node.id, out value))
            {
                node.lat = value.lat;
                node.lon = value.lon;
            }
        }
    }
Пример #4
0
 public River(OSMway way)
 {
     this.nodeList = way.GetNodeList();
     this.id       = way.GetID();
 }