Table of Contents

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 NodeFactory

A factory to create Nodes

Properties

Values

public IList<Node> Values { get; }

Property Value

IList<Node>

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 EdgeEnd

An EdgeEnd

AddNode(Coordinate)

This method expects that a node has a coordinate value.

public Node AddNode(Coordinate coord)

Parameters

coord Coordinate

A Coordinate

Returns

Node

The Node for the provided Coordinate 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 Node

The Node to add

Returns

Node

Either n or a Node with merged Labels

Find(Coordinate)

Searches for a Node at coord position.

public Node Find(Coordinate coord)

Parameters

coord Coordinate

A Coordinate

Returns

Node

The node if found; null otherwise.

GetBoundaryNodes(int)

public IList<Node> GetBoundaryNodes(int geomIndex)

Parameters

geomIndex int

Returns

IList<Node>

GetEnumerator()

public IEnumerator<Node> GetEnumerator()

Returns

IEnumerator<Node>

Write(StreamWriter)

public void Write(StreamWriter outstream)

Parameters

outstream StreamWriter