Class RouterDbStreamTarget
A stream target to load a routing database.
Inheritance
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class RouterDbStreamTarget : OsmStreamTarget
Constructors
RouterDbStreamTarget(RouterDb, Vehicle[], Boolean, Int32, IEnumerable<ITwoPassProcessor>, Boolean, Single)
Creates a new router db stream target.
Declaration
public RouterDbStreamTarget(RouterDb db, Vehicle[] vehicles, bool allCore = false, int minimumStages = 1, IEnumerable<ITwoPassProcessor> processors = null, bool processRestrictions = false, float simplifyEpsilonInMeter = 0.1F)
Parameters
|
RouterDb
db
|
|
Vehicle[]
vehicles
|
|
System.Boolean
allCore
|
|
System.Int32
minimumStages
|
|
IEnumerable<ITwoPassProcessor>
processors
|
|
System.Boolean
processRestrictions
|
|
System.Single
simplifyEpsilonInMeter
|
RouterDbStreamTarget(RouterDb, VehicleCache, Boolean, Int32, IEnumerable<ITwoPassProcessor>, Boolean, Single)
Creates a new router db stream target.
Declaration
public RouterDbStreamTarget(RouterDb db, VehicleCache vehicleCache, bool allCore = false, int minimumStages = 1, IEnumerable<ITwoPassProcessor> processors = null, bool processRestrictions = false, float simplifyEpsilonInMeter = 0.1F)
Parameters
|
RouterDb
db
|
|
VehicleCache
vehicleCache
|
|
System.Boolean
allCore
|
|
System.Int32
minimumStages
|
|
IEnumerable<ITwoPassProcessor>
processors
|
|
System.Boolean
processRestrictions
|
|
System.Single
simplifyEpsilonInMeter
|
Properties
KeepNodeIds
Gets or sets a flag to keep node id's.
Declaration
public bool KeepNodeIds { get; set; }
Property Value
|
System.Boolean
|
Remarks
This is a way to build 'stable' identifiers for each vertex.
KeepWayIds
Gets or sets a flag to keep way id's and the index of the first node of the edge in the original way.
Declaration
public bool KeepWayIds { get; set; }
Property Value
|
System.Boolean
|
Remarks
This is a way to build 'stable' identifiers for each segment.
NodeIndex
Processors
Gets or sets extra two-pass processors.
Declaration
public List<ITwoPassProcessor> Processors { get; set; }
Property Value
|
List<ITwoPassProcessor>
|
VehicleCache
Gets the vehicle cache.
Declaration
public VehicleCache VehicleCache { get; }
Property Value
|
VehicleCache
|
Methods
AddCoreEdge(UInt32, UInt32, EdgeData, List<Coordinate>, Int64, UInt16)
Adds a new edge.
Declaration
public void AddCoreEdge(uint vertex1, uint vertex2, EdgeData data, List<Coordinate> shape, long wayId, ushort nodeIdx)
Parameters
|
System.UInt32
vertex1
|
|
System.UInt32
vertex2
|
|
EdgeData
data
|
|
List<Coordinate>
shape
|
|
System.Int64
wayId
|
|
System.UInt16
nodeIdx
|
AddNode(Node)
Adds a node.
Declaration
public override void AddNode(Node node)
Parameters
|
Node
node
|
AddRelation(Relation)
Adds a relation.
Declaration
public override void AddRelation(Relation relation)
Parameters
|
Relation
relation
|
AddWay(Way)
Adds a way.
Declaration
public override void AddWay(Way way)
Parameters
|
Way
way
|
Initialize()
Initializes this target.
Declaration
public override void Initialize()
OnBeforePull()
Called right before pull and right after initialization.
Declaration
public override bool OnBeforePull()
Returns
|
System.Boolean
|
RegisterSource(OsmStreamSource)
Registers the source.
Declaration
public override void RegisterSource(OsmStreamSource source)
Parameters
|
OsmStreamSource
source
|
RegisterSource(OsmStreamSource, Boolean)
Registers the source.
Declaration
public virtual void RegisterSource(OsmStreamSource source, bool filterNonRoutingTags)
Parameters
|
OsmStreamSource
source
|
|
System.Boolean
filterNonRoutingTags
|