Table of Contents

Namespace SpatialNET.Imp

Classes

ImpGeometryFactory

The geometry factory of the reference implementation. Stateless and therefore thread-safe; all coordinates are copied into new, immutable objects.

InMemoryGraph<TNodeId, TEdgeId, TSource>

A network held in memory (ADR 0049): for tests, small networks and the temporary network of one area that is checked on save. Filled by hand with SpatialNET.Imp.InMemoryGraph`3.Add(SpatialNET.Network.GraphNode{`0}) and SpatialNET.Imp.InMemoryGraph`3.Add(SpatialNET.Network.GraphEdge{`0,`1}), or by the network builder as its SpatialNET.Network.INetworkWriter`3 (ADR 0050). It keeps the source of each edge, if one is given, and may enumerate its nodes and edges.

ShardData<TNodeId, TEdgeId>

The content of one shard: its nodes and every edge that touches one of them (ADR 0049).

ShardedGraphBase<TNodeId, TEdgeId>

An SpatialNET.Network.IGraph`2 for a host that stores its network in shards, for example one per local network in a database (ADR 0049). It keeps a bounded number of whole shards in memory and drops the one used least recently. The host implements two methods: SpatialNET.Imp.ShardedGraphBase`2.FindShards(System.Collections.Generic.IReadOnlyCollection{`0}) (which shard holds these nodes, in one query) and SpatialNET.Imp.ShardedGraphBase`2.LoadShard(System.Int64) (all nodes of a shard and all edges that touch them).