Example #1
0
 /// <summary>
 /// Returns the relations for the given object.
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public IList<Relation> GetRelationsFor(OsmBase obj)
 {
     if (_relations_per_member.ContainsKey(obj.Id))
     {
         return this.GetRelations(_relations_per_member[obj.Id]);
     }
     return null;
 }
Example #2
0
 /// <summary>
 /// Adds an osm object.
 /// </summary>
 /// <param name="obj"></param>
 private void AddOsmBase(OsmBase obj)
 {
     switch (obj.Type)
     {
         case OsmType.Node:
             this.AddNode(obj as Node);
             break;
         case OsmType.Relation:
             this.AddRelation(obj as Relation);
             break;
         case OsmType.Way:
             this.AddWay(obj as Way);
             break;
     }
 }
Example #3
0
 /// <summary>
 /// Returns all relations that have the given object as a member.
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public IList<Relation> GetRelationsFor(OsmBase obj)
 {
     throw new NotImplementedException();
 }