public class RelateOp extends GeometryGraphOperation
Geometrys.
The class supports specifying a custom BoundaryNodeRule to be used during the relate computation. If named spatial predicates are used on the result 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, IntersectionMatrix is insensitive to the choice of BoundaryNodeRule, whereas IntersectionMatrix is affected by the rule chosen.
Note: custom Boundary Node Rules do not (currently) affect the results of other Geometry methods (such as Geometry. The results of these methods may not be consistent with the relationship computed by a custom Boundary Node Rule.
arg, li, resultPrecisionModel| Constructor and Description |
|---|
RelateOp(Geometry
Creates a new Relate operation, using the default (OGC SFS) Boundary Node Rule.
|
RelateOp(Geometry
Creates a new Relate operation with a specified Boundary Node Rule.
|
| Modifier and Type | Method and Description |
|---|---|
IntersectionMatrix |
getIntersectionMatrix()
Gets the IntersectionMatrix for the spatial relationship between the input geometries.
|
static IntersectionMatrix |
relate(Geometry
Computes the
IntersectionMatrix for the spatial relationship between two
Geometrys, using the default (OGC SFS) Boundary Node Rule
|
static IntersectionMatrix |
relate(Geometry
Computes the
IntersectionMatrix for the spatial relationship between two
Geometrys using a specified Boundary Node Rule.
|
getArgGeometry, setComputationPrecisionpublic RelateOp(Geometryg0, Geometry g1)
g0 - a Geometry to relate
g1 - another Geometry to relate
public RelateOp(Geometryg0, Geometry g1, BoundaryNodeRule boundaryNodeRule)
g0 - a Geometry to relate
g1 - another Geometry to relate
boundaryNodeRule - the Boundary Node Rule to use
public static IntersectionMatrixrelate(Geometry a, Geometry b)
IntersectionMatrix for the spatial relationship between two
Geometrys, using the default (OGC SFS) Boundary Node Rule
a - a Geometry to test
b - a Geometry to test
public static IntersectionMatrixrelate(Geometry a, Geometry b, BoundaryNodeRule boundaryNodeRule)
IntersectionMatrix for the spatial relationship between two
Geometrys using a specified Boundary Node Rule.
a - a Geometry to test
b - a Geometry to test
boundaryNodeRule - the Boundary Node Rule to use
public IntersectionMatrixgetIntersectionMatrix()