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
nodeFact
NodeFactoryA factory to create
Node
s
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
e
EdgeEndAn
EdgeEnd
AddNode(Coordinate)
This method expects that a node has a coordinate value.
public Node AddNode(Coordinate coord)
Parameters
coord
CoordinateA
Coordinate
Returns
- Node
The
Node
for the providedCoordinate
coord
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
n
NodeThe
Node
to add
Returns
- Node
Either
n
or aNode
with mergedLabel
s
Find(Coordinate)
Searches for a Node
at coord
position.
public Node Find(Coordinate coord)
Parameters
coord
CoordinateA
Coordinate
Returns
- Node
The node if found;
null
otherwise.
GetBoundaryNodes(int)
public IList<Node> GetBoundaryNodes(int geomIndex)
Parameters
geomIndex
int
Returns
GetEnumerator()
public IEnumerator<Node> GetEnumerator()
Returns
Write(StreamWriter)
public void Write(StreamWriter outstream)
Parameters
outstream
StreamWriter