Table of Contents

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

g0 Geometry

a Geometry to relate

g1 Geometry

another Geometry to relate

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 Geometry

a Geometry to relate

g1 Geometry

another Geometry to relate

boundaryNodeRule IBoundaryNodeRule

The Boundary Node Rule to use

Properties

IntersectionMatrix

Gets the IntersectionMatrix for the spatial relationship between the input geometries.

public IntersectionMatrix IntersectionMatrix { get; }

Property Value

IntersectionMatrix

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

a Geometry

A geometry to test

b Geometry

A geometry to test

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 Geometry

A geometry to test

b Geometry

A geometry to test

boundaryNodeRule IBoundaryNodeRule

The Boundary Node Rule to use

Returns

IntersectionMatrix

The IntersectionMatrix for the spatial relationship between the geometries