RelateOp class
Implements the SFS relate() generalized spatial predicate on two {@link Geometry}s.
The class supports specifying a custom {@link BoundaryNodeRule} to be used during the relate computation.
If named spatial predicates are used on the result {@link IntersectionMatrix} of the RelateOp, the result may or not be affected by the choice of BoundaryNodeRule, depending on the exact nature of the pattern. For instance, {@link IntersectionMatrix#isIntersects()} is insensitive to the choice of BoundaryNodeRule, whereas {@link IntersectionMatrix#isTouches(int, int)} is affected by the rule chosen.
Note: custom Boundary Node Rules do not (currently) affect the results of other {@link Geometry} methods (such as {@link Geometry#getBoundary}. The results of these methods may not be consistent with the relationship computed by a custom Boundary Node Rule.
@version 1.7
- Inheritance
-
- Object
- GeometryGraphOperation
- RelateOp
Constructors
- RelateOp(Geometry g0, Geometry g1)
- Creates a new Relate operation, using the default (OGC SFS) Boundary Node Rule.
- RelateOp.withRule(Geometry g0, Geometry g1, BoundaryNodeRule boundaryNodeRule)
- Creates a new Relate operation with a specified Boundary Node Rule.
Properties
-
arg
↔ List<
GeometryGraph> -
The operation args into an array so they can be accessed by index
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- li → LineIntersector
-
finalinherited
- relate ↔ RelateComputer
-
getter/setter pair
- resultPrecisionModel ↔ PrecisionModel?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getArgGeometry(
int i) → Geometry -
inherited
-
getIntersectionMatrix(
) → IntersectionMatrix - Gets the IntersectionMatrix for the spatial relationship between the input geometries.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setComputationPrecision(
PrecisionModel pm) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
relateStatic(
Geometry a, Geometry b) → IntersectionMatrix - Computes the {@link IntersectionMatrix} for the spatial relationship between two {@link Geometry}s, using the default (OGC SFS) Boundary Node Rule
-
relateStaticWithRule(
Geometry a, Geometry b, BoundaryNodeRule boundaryNodeRule) → IntersectionMatrix - Computes the {@link IntersectionMatrix} for the spatial relationship between two {@link Geometry}s using a specified Boundary Node Rule.