Table of Contents

Class NetworkBuildOptions

Namespace
SpatialNET.Network.Building
Assembly
SpatialNET.Network.Building.dll

The options of a SpatialNET.Network.Building.NetworkBuilder`3 (ADR 0050).

public sealed record NetworkBuildOptions : IEquatable<NetworkBuildOptions>

Inheritance

Implements

Inherited Members

Properties

DefaultShard

The shard of a node outside every region; without it, the key of a square grid cell of SpatialNET.Network.Building.NetworkBuildOptions.FallbackShardCellSize.

public long? DefaultShard { get; init; }

Property Value

long?

FallbackShardCellSize

The size of the grid cells for nodes outside every region when there is no SpatialNET.Network.Building.NetworkBuildOptions.DefaultShard. 2,000 by default.

public double FallbackShardCellSize { get; init; }

Property Value

double

NodeAtCrossings

Every crossing of two lines without a common point becomes a helper node that splits both. Off by default, since in a utility network an overhead line over a cable does not connect; meant for street networks.

public bool NodeAtCrossings { get; init; }

Property Value

bool

ShardRegions

The polygons that assign shards; the first region in the list that covers a node and applies to it wins.

public IReadOnlyList<ShardRegion> ShardRegions { get; init; }

Property Value

IReadOnlyList<ShardRegion>

SplitAtLineEnds

A node of line ends within the tolerance of the inside of another line splits that line (a T junction). On by default.

public bool SplitAtLineEnds { get; init; }

Property Value

bool

SplitAtNodes

A real node within the tolerance of the inside of a line splits the line (a switch in the middle of a cable). On by default.

public bool SplitAtNodes { get; init; }

Property Value

bool

Tolerance

Line ends and points closer than this are joined into one node, and a point or a line end this close to the inside of a line splits it. In the units of the coordinates; required, finite and greater than 0. It is not the grid of the overlays: the builder rounds nothing and moves no vertex.

public required double Tolerance { get; init; }

Property Value

double

Weights

The weight definitions; needed when lines carry weights, so that values of kind SpatialNET.Network.WeightKind.Absolute can be split.

public IReadOnlyList<WeightDefinition> Weights { get; init; }

Property Value

IReadOnlyList<WeightDefinition>