Class NodeMap
A map of nodes, indexed by the coordinate of the node.
Inherited Members
Namespace: NetTopologySuite.GeometriesGraph
Assembly: NetTopologySuite.dll
Syntax
public class NodeMap
Constructors
| Improve this Doc View SourceNodeMap(NodeFactory)
Creates an instance of this class using the provided NodeFactory.
Declaration
public NodeMap(NodeFactory nodeFact)
Parameters
Type | Name | Description |
---|---|---|
NodeFactory | nodeFact | A factory to create |
Properties
| Improve this Doc View SourceValues
Declaration
public IList<Node> Values { get; }
Property Value
Type | Description |
---|---|
IList<Node> |
Methods
| Improve this Doc View SourceAdd(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.
Declaration
public void Add(EdgeEnd e)
Parameters
Type | Name | Description |
---|---|---|
EdgeEnd | e | An |
AddNode(Coordinate)
This method expects that a node has a coordinate value.
Declaration
public Node AddNode(Coordinate coord)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | coord | A |
Returns
Type | Description |
---|---|
Node | The |
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.
Declaration
public Node AddNode(Node n)
Parameters
Type | Name | Description |
---|---|---|
Node | n | The |
Returns
Type | Description |
---|---|
Node | Either |
Find(Coordinate)
Searches for a Node
at coord
position.
Declaration
public Node Find(Coordinate coord)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | coord | A |
Returns
Type | Description |
---|---|
Node | The node if found; |
GetBoundaryNodes(Int32)
Declaration
public IList<Node> GetBoundaryNodes(int geomIndex)
Parameters
Type | Name | Description |
---|---|---|
Int32 | geomIndex |
Returns
Type | Description |
---|---|
IList<Node> |
GetEnumerator()
Declaration
public IEnumerator<Node> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<Node> |
Write(StreamWriter)
Declaration
public void Write(StreamWriter outstream)
Parameters
Type | Name | Description |
---|---|---|
StreamWriter | outstream |