Show / Hide Table of Contents

Interface IHistoryDbImpl

Abstract representation of a history db implementation.

Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public interface IHistoryDbImpl

Methods

Add(IEnumerable<OsmGeo>)

Adds an object.

Declaration
void Add(IEnumerable<OsmGeo> osmGeo)
Parameters
IEnumerable<OsmGeo> osmGeo

Remarks

The object gets inserted into the archive it is not visible.

AddChanges(Int64, OsmChange)

Adds changes for the given changeset.

Declaration
void AddChanges(long id, OsmChange changes)
Parameters
System.Int64 id

OsmChange changes

AddOrUpdate(Changeset)

Adds or updates a changeset.

Declaration
void AddOrUpdate(Changeset changeset)
Parameters
Changeset changeset

Archive(IEnumerable<OsmGeoKey>)

Archives all the objects with the given keys.

Declaration
void Archive(IEnumerable<OsmGeoKey> keys)
Parameters
IEnumerable<OsmGeoKey> keys

Clear()

Clears all data.

Declaration
void Clear()

Get()

Gets all non-archived objects.

Declaration
IEnumerable<OsmGeo> Get()
Returns
IEnumerable<OsmGeo>

Objects sorted by type (node, way, relation) and then id ascending.

Get(IEnumerable<OsmGeoKey>)

Gets all non-archived objects with the given keys.

Declaration
IEnumerable<OsmGeo> Get(IEnumerable<OsmGeoKey> keys)
Parameters
IEnumerable<OsmGeoKey> keys

Returns
IEnumerable<OsmGeo>

Objects sorted by type (node, way, relation) and then id ascending.

Get(IEnumerable<OsmGeoVersionKey>)

Gets all objects with the given keys.

Declaration
IEnumerable<OsmGeo> Get(IEnumerable<OsmGeoVersionKey> keys)
Parameters
IEnumerable<OsmGeoVersionKey> keys

Returns
IEnumerable<OsmGeo>

Objects sorted by type (node, way, relation) and then id and then version ascending.

Get(Double, Double, Double, Double)

Gets all non-archived objects within the given bounding box.

Declaration
IEnumerable<OsmGeo> Get(double minLatitude, double minLongitude, double maxLatitude, double maxLongitude)
Parameters
System.Double minLatitude

System.Double minLongitude

System.Double maxLatitude

System.Double maxLongitude

Returns
IEnumerable<OsmGeo>

  • All non-archived nodes within bounding box.
  • All non-archived ways with at least one node.
  • All non-archived nodes outside of the bounding box but member of a way with at least one node.
  • All non-archived relations with at least one member that is a node within the bounding box or a way with at least one node in the bounding box.
  • Sorted by type (node, way, relation) and then id ascending.

GetChanges(Int64)

Gets all then changes for the given changeset.

Declaration
OsmChange GetChanges(long id)
Parameters
System.Int64 id

Returns
OsmChange

GetChangeset(Int64)

Gets the changeset with the given id.

Declaration
Changeset GetChangeset(long id)
Parameters
System.Int64 id

Returns
Changeset

GetLastChangesetId()

Gets the last changeset id.

Declaration
long GetLastChangesetId()
Returns
System.Int64

GetLastId(OsmGeoType)

Gets the last id for the given type.

Declaration
long GetLastId(OsmGeoType type)
Parameters
OsmGeoType type

Returns
System.Int64

GetWithArchived()

Gets all objects.

Declaration
IEnumerable<OsmGeo> GetWithArchived()
Returns
IEnumerable<OsmGeo>

Objects sorted by type (node, way, relation) and then id and then version ascending.

GetWithArchived(IEnumerable<OsmGeoKey>)

Gets allobjects with the given keys.

Declaration
IEnumerable<OsmGeo> GetWithArchived(IEnumerable<OsmGeoKey> keys)
Parameters
IEnumerable<OsmGeoKey> keys

Returns
IEnumerable<OsmGeo>

Objects sorted by type (node, way, relation) and then id and then version ascending.

Back to top Built by Itinero, MIT licensed.