|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.operation.GeometryGraphOperation
com.vividsolutions.jts.operation.relate.RelateOp
public class RelateOp
Implements the SFS relate() generalized spatial predicate on two Geometry
s.
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.isIntersects()
is insensitive
to the choice of BoundaryNodeRule,
whereas IntersectionMatrix.isTouches(int, int)
is affected by the rule chosen.
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.
Field Summary |
---|
Fields inherited from class com.vividsolutions.jts.operation.GeometryGraphOperation |
---|
arg, li, resultPrecisionModel |
Constructor Summary | |
---|---|
RelateOp(Geometry g0,
Geometry g1)
Creates a new Relate operation, using the default (OGC SFS) Boundary Node Rule. |
|
RelateOp(Geometry g0,
Geometry g1,
BoundaryNodeRule boundaryNodeRule)
Creates a new Relate operation with a specified Boundary Node Rule. |
Method Summary | |
---|---|
IntersectionMatrix |
getIntersectionMatrix()
Gets the IntersectionMatrix for the spatial relationship between the input geometries. |
static IntersectionMatrix |
relate(Geometry a,
Geometry b)
Computes the IntersectionMatrix for the spatial relationship
between two Geometry s, using the default (OGC SFS) Boundary Node Rule |
static IntersectionMatrix |
relate(Geometry a,
Geometry b,
BoundaryNodeRule boundaryNodeRule)
Computes the IntersectionMatrix for the spatial relationship
between two Geometry s using a specified Boundary Node Rule. |
Methods inherited from class com.vividsolutions.jts.operation.GeometryGraphOperation |
---|
getArgGeometry, setComputationPrecision |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RelateOp(Geometry g0, Geometry g1)
g0
- a Geometry to relateg1
- another Geometry to relatepublic RelateOp(Geometry g0, Geometry g1, BoundaryNodeRule boundaryNodeRule)
g0
- a Geometry to relateg1
- another Geometry to relateboundaryNodeRule
- the Boundary Node Rule to useMethod Detail |
---|
public static IntersectionMatrix relate(Geometry a, Geometry b)
IntersectionMatrix
for the spatial relationship
between two Geometry
s, using the default (OGC SFS) Boundary Node Rule
a
- a Geometry to testb
- a Geometry to test
public static IntersectionMatrix relate(Geometry a, Geometry b, BoundaryNodeRule boundaryNodeRule)
IntersectionMatrix
for the spatial relationship
between two Geometry
s using a specified Boundary Node Rule.
a
- a Geometry to testb
- a Geometry to testboundaryNodeRule
- the Boundary Node Rule to use
public IntersectionMatrix getIntersectionMatrix()
|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |