Class: NodeMap

jsts.geomgraph.NodeMap

new NodeMap()

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

Members

nodeMap :javascript.util.HashMap

NOTE: Seems like the index isn't functionally important, so in JSTS a JS object replaces TreeMap. Sorting is done when needed.
Type:
  • javascript.util.HashMap
Source:

Methods

add(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.
Parameters:
Name Type Description
e jsts.geomgraph.EdgeEnd
Source:

addNode(arg) → {jsts.geomgraph.Node}

This method expects that a node has a coordinate value. In JSTS this replaces multiple overloaded methods from JTS.
Parameters:
Name Type Description
arg jsts.geom.Coordinate/jsts.geomgraph.Node
Source:
Returns:
Type
jsts.geomgraph.Node

find(coord) → {jsts.geomgraph.Node}

Parameters:
Name Type Description
coord jsts.geom.Coordinate
Source:
Returns:
the node if found; null otherwise.
Type
jsts.geomgraph.Node

getBoundaryNodes(geomIndex) → {Array.<Node>}

Parameters:
Name Type Description
geomIndex number
Source:
Returns:
Type
Array.<Node>

iterator() → {javascript.util.Collection}

Source:
Returns:
Type
javascript.util.Collection

values() → {javascript.util.Collection}

Source:
Returns:
Type
javascript.util.Collection