Class: Node

jsts.geomgraph.Node

new Node(coord, edges)

Parameters:
Name Type Description
coord jsts.geom.Coordinate
edges jsts.geom.EdgeEndStar
Source:

Extends

Members

coord

only non-null if this node is precise
Source:

(protected) label :Label

Type:
  • Label
Overrides:
Source:

Methods

add()

Add the edge to the list of edges at this node
Source:

(protected) computeIM(im)

compute the contribution to an IM for this component
Parameters:
Name Type Description
im IntersectionMatrix
Inherited From:
Source:

getCoordinate() → {Coordinate}

Overrides:
Source:
Returns:
a coordinate in this component (or null, if there are none).
Type
Coordinate

isCovered() → {boolean}

Inherited From:
Source:
Returns:
Type
boolean

isCoveredSet() → {boolean}

Inherited From:
Source:
Returns:
Type
boolean

isIncidentEdgeInResult()

Tests whether any incident edge is flagged as being in the result. This test can be used to determine if the node is in the result, since if any incident edge is in the result, the node must be in the result as well.
Source:
Returns:
true if any indicident edge in the in the result.

isInResult() → {boolean}

Inherited From:
Source:
Returns:
Type
boolean

isIsolated()

An isolated component is one that does not intersect or touch any other component. This is the case if the label has valid locations for only a single Geometry.
Overrides:
Source:
Returns:
true if this component is isolated.

isVisited() → {boolean}

Inherited From:
Source:
Returns:
Type
boolean

setCovered(isCovered)

Parameters:
Name Type Description
isCovered boolean
Inherited From:
Source:

setInResult(isInResult)

Parameters:
Name Type Description
isInResult boolean
Inherited From:
Source:

setLabelBoundary()

Updates the label of a node to BOUNDARY, obeying the mod-2 boundaryDetermination rule.
Source:

setVisited(isVisited)

Parameters:
Name Type Description
isVisited boolean
Inherited From:
Source:

updateIM(im)

Update the IM with the contribution for this component. A component only contributes if it has a labelling for both parent geometries
Parameters:
Name Type Description
im IntersectionMatrix
Inherited From:
Source: