Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    GeometryGraphOperation
    RelateOp
    Inherited Members
    GeometryGraphOperation.lineIntersector
    GeometryGraphOperation.resultPrecisionModel
    GeometryGraphOperation.arg
    GeometryGraphOperation.GetArgGeometry(int)
    GeometryGraphOperation.ComputationPrecision
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    | Edit this page View Source

    RelateOp(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

    | Edit this page View Source

    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

    | Edit this page View Source

    IntersectionMatrix

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

    Declaration
    public IntersectionMatrix IntersectionMatrix { get; }
    Property Value
    Type Description
    IntersectionMatrix

    Methods

    | Edit this page View Source

    Relate(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 IntersectionMatrix for the spatial relationship between the geometries

    | Edit this page View Source

    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 IntersectionMatrix for the spatial relationship between the geometries

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX