Class: RelateOp

jsts.operation.relate.RelateOp

new RelateOp(g0, g1, boundaryNodeRule)

Implements the SFS relate() operation on two Geometrys. This class supports specifying a custom BoundaryNodeRule to be used during the relate computation.

Note: custom Boundary Node Rules do not (currently) affect the results of other Geometry methods (such as Geometry#getBoundary. The results of these methods may not be consistent with the relationship computed by a custom Boundary Node Rule. Creates a new Relate operation with a specified Boundary Node Rule.

Parameters:
Name Type Description
g0 a Geometry to relate.
g1 another Geometry to relate.
boundaryNodeRule the Boundary Node Rule to use.
Source:

Extends

Members

(protected) arg :Array.<GeometryGraph>

The operation args into an array so they can be accessed by index
Type:
  • Array.<GeometryGraph>
Inherited From:
Source:

(protected) li :LineIntersector

Type:
  • LineIntersector
Inherited From:
Source:

(protected) resultPrecisionModel :PrecisionModel

Type:
  • PrecisionModel
Inherited From:
Source:

Methods

(static) relate(a, b, boundaryNodeRule)

Computes the IntersectionMatrix for the spatial relationship between two Geometrys using a specified Boundary Node Rule.
Parameters:
Name Type Description
a a Geometry to test.
b a Geometry to test.
boundaryNodeRule the Boundary Node Rule to use.
Source:
Returns:
the IntersectonMatrix for the spatial relationship between the input geometries.

getArgGeometry(i) → {Geometry}

Parameters:
Name Type Description
i int
Inherited From:
Source:
Returns:
Type
Geometry

getIntersectionMatrix()

Gets the IntersectionMatrix for the spatial relationship between the input geometries.
Source:
Returns:
the IntersectonMatrix for the spatial relationship between the input geometries.

(protected) setComputationPrecision(pm)

Parameters:
Name Type Description
pm PrecisionModel
Inherited From:
Source: