Пример #1
0
 /// <summary>
 /// Deletes the relation with the given id.
 /// </summary>
 public static void DeleteRelation(this ISnapshotDb db, long id)
 {
     db.Delete(new OsmGeoKey()
     {
         Id   = id,
         Type = OsmGeoType.Relation
     });
 }
Пример #2
0
 /// <summary>
 /// Deletes the way with the given id.
 /// </summary>
 public static void DeleteWay(this ISnapshotDb db, long id)
 {
     db.Delete(new OsmGeoKey()
     {
         Id   = id,
         Type = OsmGeoType.Way
     });
 }
Пример #3
0
 /// <summary>
 /// Deletes the relation with the given id.
 /// </summary>
 public static void DeleteRelation(this ISnapshotDb db, long id)
 {
     db.Delete(new OsmGeoKey(OsmGeoType.Relation, id));
 }
Пример #4
0
 /// <summary>
 /// Deletes the way with the given id.
 /// </summary>
 public static void DeleteWay(this ISnapshotDb db, long id)
 {
     db.Delete(new OsmGeoKey(OsmGeoType.Way, id));
 }
Пример #5
0
 /// <summary>
 /// Deletes the node with the given id.
 /// </summary>
 public static void DeleteNode(this ISnapshotDb db, long id)
 {
     db.Delete(new OsmGeoKey(OsmGeoType.Node, id));
 }
Пример #6
0
 /// <summary>
 /// Deletes the object for the given key.
 /// </summary>
 public static void Delete(this ISnapshotDb db, OsmGeoKey key)
 {
     db.Delete(new OsmGeoKey[] { key });
 }