Class: Edge

jsts.geomgraph.Edge

new Edge(pts, label)

Parameters:
Name Type Description
pts Array.<Coordinate>
label Label
Source:

Extends

Members

depthDelta

// the change in area depth from the R to L side of this edge
Source:

(protected) label :Label

Type:
  • Label
Overrides:
Source:

Methods

(static) updateIM()

Updates an IM from the label for an edge. Handles edges from both L and A geometries.
Source:

addIntersection(li, segmentIndex, geomIndex, intIndex)

Add an EdgeIntersection for intersection intIndex. An intersection that falls exactly on a vertex of the edge is normalized to use the higher of the two possible segmentIndexes
Parameters:
Name Type Description
li LineIntersector
segmentIndex int
geomIndex int
intIndex int
Source:

addIntersections(li, segmentIndex, geomIndex)

Adds EdgeIntersections for one or both intersections found for a segment of an edge to the edge intersection list.
Parameters:
Name Type Description
li LineIntersector
segmentIndex int
geomIndex int
Source:

computeIM()

Update the IM with the contribution for this component. A component only contributes if it has a labelling for both parent geometries
Overrides:
Source:

getCoordinate(i) → {Coordinate}

Parameters:
Name Type Description
i int
Overrides:
Source:
Returns:
Type
Coordinate

getCoordinates() → {Array.<Coordinate>}

Source:
Returns:
Type
Array.<Coordinate>

getDepthDelta()

The depthDelta is the change in depth as an edge is crossed from R to L
Source:
Returns:
the change in depth as the edge is crossed from R to L.

getMaximumSegmentIndex() → {int}

Source:
Returns:
Type
int

getNumPoints() → {int}

Source:
Returns:
Type
int

isClosed() → {boolean}

Source:
Returns:
Type
boolean

isCollapsed()

An Edge is collapsed if it is an Area edge and it consists of two segments which are equal and opposite (eg a zero-width V).
Source:

isCovered() → {boolean}

Inherited From:
Source:
Returns:
Type
boolean

isCoveredSet() → {boolean}

Inherited From:
Source:
Returns:
Type
boolean

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.

isPointwiseEqual()

Source:
Returns:
true if the coordinate sequences of the Edges are identical.

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:

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: