Class OsmStreamTarget
Any target of osm data (Nodes, Ways and Relations).
Inheritance
System.Object
OsmStreamTarget
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public abstract class OsmStreamTarget : IOsmStreamTarget
Constructors
OsmStreamTarget()
Creates a new target.
Declaration
protected OsmStreamTarget()
Properties
Meta
Gets the meta-data.
Declaration
public TagsCollectionBase Meta { get; }
Property Value
TagsCollectionBase
|
Source
Returns the registered reader.
Declaration
protected OsmStreamSource Source { get; }
Property Value
OsmStreamSource
|
Methods
AddNode(Node)
AddRelation(Relation)
Adds a relation to the target.
Declaration
public abstract void AddRelation(Relation relation)
Parameters
Relation
relation
|
AddWay(Way)
Close()
Closes the current target.
Declaration
public virtual void Close()
DoPull()
Does the pull operation until source is exhausted.
Declaration
protected void DoPull()
DoPull(Boolean, Boolean, Boolean)
Does the pull operation until source is exhausted.
Declaration
protected void DoPull(bool ignoreNodes, bool ignoreWays, bool ignoreRelations)
Parameters
System.Boolean
ignoreNodes
|
System.Boolean
ignoreWays
|
System.Boolean
ignoreRelations
|
Flush()
Flushes the current target.
Declaration
public virtual void Flush()
GetAllMeta()
Gets all meta-data from all sources and filters that provide this target of data.
Declaration
public TagsCollection GetAllMeta()
Returns
TagsCollection
|
Initialize()
Initializes the target.
Declaration
public abstract void Initialize()
OnAfterPull()
Called right after pull and right before flush.
Declaration
public virtual void OnAfterPull()
OnBeforePull()
Called right before pull and right after initialization.
Declaration
public virtual bool OnBeforePull()
Returns
System.Boolean
|
Pull()
Pulls the changes from the source to this target.
Declaration
public void Pull()
PullNext()
Pulls the next object and returns true if there was one.
Declaration
public bool PullNext()
Returns
System.Boolean
|
RegisterSource(OsmStreamSource)
Registers a reader on this writer.
Declaration
public virtual void RegisterSource(OsmStreamSource source)
Parameters
OsmStreamSource
source
|