Class RelateOp
- Namespace
- NetTopologySuite.Operation.Relate
- Assembly
- NetTopologySuite.dll
Implements the SFS relate()
generalized spatial predicate on two Geometrys.
The class supports specifying a custom IBoundaryNodeRule
to be used during the relate computation.
public class RelateOp : GeometryGraphOperation
- Inheritance
-
RelateOp
- Inherited Members
Remarks
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, IsIntersects() is insensitive to the choice of BoundaryNodeRule, whereas IsTouches(Dimension, Dimension) is affected by the rule chosen.
Note: custom Boundary Node Rules do not (currently) affect the results of other Geometry methods (such as Boundary. The results of these methods may not be consistent with the relationship computed by a custom Boundary Node Rule.Constructors
RelateOp(Geometry, Geometry)
Creates a new Relate operation, using the default (OGC SFS) Boundary Node Rule.
public RelateOp(Geometry g0, Geometry g1)
Parameters
RelateOp(Geometry, Geometry, IBoundaryNodeRule)
Creates a new Relate operation, using the default (OGC SFS) Boundary Node Rule.
public RelateOp(Geometry g0, Geometry g1, IBoundaryNodeRule boundaryNodeRule)
Parameters
g0
Geometrya Geometry to relate
g1
Geometryanother Geometry to relate
boundaryNodeRule
IBoundaryNodeRuleThe Boundary Node Rule to use
Properties
IntersectionMatrix
Gets the IntersectionMatrix for the spatial relationship between the input geometries.
public IntersectionMatrix IntersectionMatrix { get; }
Property Value
Methods
Relate(Geometry, Geometry)
Computes the IntersectionMatrix for the spatial relationship between two Geometrys, using the default (OGC SFS) Boundary Node Rule
public static IntersectionMatrix Relate(Geometry a, Geometry b)
Parameters
Returns
- IntersectionMatrix
The
IntersectionMatrix
for the spatial relationship between the geometries
Relate(Geometry, Geometry, IBoundaryNodeRule)
Computes the IntersectionMatrix for the spatial relationship between two Geometrys, using the specified Boundary Node Rule
public static IntersectionMatrix Relate(Geometry a, Geometry b, IBoundaryNodeRule boundaryNodeRule)
Parameters
a
GeometryA geometry to test
b
GeometryA geometry to test
boundaryNodeRule
IBoundaryNodeRuleThe Boundary Node Rule to use
Returns
- IntersectionMatrix
The
IntersectionMatrix
for the spatial relationship between the geometries