Class RelateOp
Implements the SFS relate()
generalized spatial predicate on two Geometrys.
The class supports specifying a custom IBoundaryNodeRule
to be used during the relate computation.
Inherited Members
Namespace: NetTopologySuite.Operation.Relate
Assembly: NetTopologySuite.dll
Syntax
public class RelateOp : GeometryGraphOperation
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
| Improve this Doc View SourceRelateOp(Geometry, Geometry)
Creates a new Relate operation, using the default (OGC SFS) Boundary Node Rule.
Declaration
public RelateOp(Geometry g0, Geometry g1)
Parameters
Type | Name | Description |
---|---|---|
Geometry | g0 | a Geometry to relate |
Geometry | g1 | another Geometry to relate |
RelateOp(Geometry, Geometry, IBoundaryNodeRule)
Creates a new Relate operation, using the default (OGC SFS) Boundary Node Rule.
Declaration
public RelateOp(Geometry g0, Geometry g1, IBoundaryNodeRule boundaryNodeRule)
Parameters
Type | Name | Description |
---|---|---|
Geometry | g0 | a Geometry to relate |
Geometry | g1 | another Geometry to relate |
IBoundaryNodeRule | boundaryNodeRule | The Boundary Node Rule to use |
Properties
| Improve this Doc View SourceIntersectionMatrix
Gets the IntersectionMatrix for the spatial relationship between the input geometries.
Declaration
public IntersectionMatrix IntersectionMatrix { get; }
Property Value
Type | Description |
---|---|
IntersectionMatrix |
Methods
| Improve this Doc View SourceRelate(Geometry, Geometry)
Computes the IntersectionMatrix for the spatial relationship between two Geometrys, using the default (OGC SFS) Boundary Node Rule
Declaration
public static IntersectionMatrix Relate(Geometry a, Geometry b)
Parameters
Type | Name | Description |
---|---|---|
Geometry | a | A geometry to test |
Geometry | b | A geometry to test |
Returns
Type | Description |
---|---|
IntersectionMatrix | The |
Relate(Geometry, Geometry, IBoundaryNodeRule)
Computes the IntersectionMatrix for the spatial relationship between two Geometrys, using the specified Boundary Node Rule
Declaration
public static IntersectionMatrix Relate(Geometry a, Geometry b, IBoundaryNodeRule boundaryNodeRule)
Parameters
Type | Name | Description |
---|---|---|
Geometry | a | A geometry to test |
Geometry | b | A geometry to test |
IBoundaryNodeRule | boundaryNodeRule | The Boundary Node Rule to use |
Returns
Type | Description |
---|---|
IntersectionMatrix | The |