Class NodeMap

java.lang.Object
org.locationtech.jts.geomgraph.NodeMap

public class NodeMap extends Object
A map of nodes, indexed by the coordinate of the node
Version:
1.7
  • Field Details

  • Constructor Details

  • Method Details

    • addNode

      public Node addNode(Coordinate coord)
      This method expects that a node has a coordinate value.
    • addNode

      public Node addNode(Node n)
    • add

      public void add(EdgeEnd e)
      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.
    • find

      public Node find(Coordinate coord)
      Returns:
      the node if found; null otherwise
    • iterator

      public Iterator iterator()
    • values

      public Collection values()
    • getBoundaryNodes

      public Collection getBoundaryNodes(int geomIndex)
    • print

      public void print(PrintStream out)