Class NodeMap
- Namespace
- NetTopologySuite.GeometriesGraph
- Assembly
- NetTopologySuite.dll
A map of nodes, indexed by the coordinate of the node.
public class NodeMap
- Inheritance
-
NodeMap
- Inherited Members
Constructors
NodeMap(NodeFactory)
Creates an instance of this class using the provided NodeFactory.
public NodeMap(NodeFactory nodeFact)
Parameters
nodeFactNodeFactoryA factory to create
Nodes
Properties
Values
public IList<Node> Values { get; }
Property Value
Methods
Add(EdgeEnd)
Adds a node for the start point of this EdgeEnd (if one does not already exist in this map). Adds the EdgeEnd to the (possibly new) node.
public void Add(EdgeEnd e)
Parameters
eEdgeEndAn
EdgeEnd
AddNode(Coordinate)
This method expects that a node has a coordinate value.
public Node AddNode(Coordinate coord)
Parameters
coordCoordinateA
Coordinate
Returns
- Node
The
Nodefor the providedCoordinatecoord
AddNode(Node)
Adds a Node to this NodeMap.
If a Node with the same Coordinate
is already present in this NodeMap,
their Labels are merged.
public Node AddNode(Node n)
Parameters
nNodeThe
Nodeto add
Returns
- Node
Either
nor aNodewith mergedLabels
Find(Coordinate)
Searches for a Node at coord position.
public Node Find(Coordinate coord)
Parameters
coordCoordinateA
Coordinate
Returns
- Node
The node if found;
nullotherwise.
GetBoundaryNodes(int)
public IList<Node> GetBoundaryNodes(int geomIndex)
Parameters
geomIndexint
Returns
GetEnumerator()
public IEnumerator<Node> GetEnumerator()
Returns
Write(StreamWriter)
public void Write(StreamWriter outstream)
Parameters
outstreamStreamWriter