Search Results for

    Show / Hide Table of Contents

    Class NodeMap

    A map of nodes, indexed by the coordinate of the node.

    Inheritance
    object
    NodeMap
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.GeometriesGraph
    Assembly: NetTopologySuite.dll
    Syntax
    public class NodeMap

    Constructors

    | Edit this page View Source

    NodeMap(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 Nodes

    Properties

    | Edit this page View Source

    Values

    Declaration
    public IList<Node> Values { get; }
    Property Value
    Type Description
    IList<Node>

    Methods

    | Edit this page View Source

    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.

    Declaration
    public void Add(EdgeEnd e)
    Parameters
    Type Name Description
    EdgeEnd e

    An EdgeEnd

    | Edit this page View Source

    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 Coordinate

    Returns
    Type Description
    Node

    The Node for the provided Coordinate coord

    | Edit this page View Source

    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 Node to add

    Returns
    Type Description
    Node

    Either n or a Node with merged Labels

    | Edit this page View Source

    Find(Coordinate)

    Searches for a Node at coord position.

    Declaration
    public Node Find(Coordinate coord)
    Parameters
    Type Name Description
    Coordinate coord

    A Coordinate

    Returns
    Type Description
    Node

    The node if found; null otherwise.

    | Edit this page View Source

    GetBoundaryNodes(int)

    Declaration
    public IList<Node> GetBoundaryNodes(int geomIndex)
    Parameters
    Type Name Description
    int geomIndex
    Returns
    Type Description
    IList<Node>
    | Edit this page View Source

    GetEnumerator()

    Declaration
    public IEnumerator<Node> GetEnumerator()
    Returns
    Type Description
    IEnumerator<Node>
    | Edit this page View Source

    Write(StreamWriter)

    Declaration
    public void Write(StreamWriter outstream)
    Parameters
    Type Name Description
    StreamWriter outstream
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX