Search Results for

    Show / Hide Table of Contents

    Class PointLocator

    Computes the topological relationship (Location) of a single point to a Geometry.

    Inheritance
    object
    PointLocator
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Algorithm
    Assembly: NetTopologySuite.dll
    Syntax
    public class PointLocator
    Remarks

    A IBoundaryNodeRule may be specified to control the evaluation of whether the point lies on the boundary or not The default rule is to use the SFS Boundary Determination Rule

    Notes:

    Instances of this class are not reentrant.

    Constructors

    | Edit this page View Source

    PointLocator()

    Initializes a new instance of the PointLocator class.

    The default boundary rule is EndpointBoundaryRule.
    Declaration
    public PointLocator()
    | Edit this page View Source

    PointLocator(IBoundaryNodeRule)

    Initializes a new instance of the PointLocator class using the provided boundaryRule.

    Declaration
    public PointLocator(IBoundaryNodeRule boundaryRule)
    Parameters
    Type Name Description
    IBoundaryNodeRule boundaryRule

    The boundary rule to use.

    Methods

    | Edit this page View Source

    Intersects(Coordinate, Geometry)

    Convenience method to test a point for intersection with a Geometry

    Declaration
    public bool Intersects(Coordinate p, Geometry geom)
    Parameters
    Type Name Description
    Coordinate p

    The coordinate to test.

    Geometry geom

    The Geometry to test.

    Returns
    Type Description
    bool

    true if the point is in the interior or boundary of the Geometry.

    | Edit this page View Source

    Locate(Coordinate, Geometry)

    Computes the topological relationship ({Location}) of a single point to a Geometry. It handles both single-element and multi-element Geometries. The algorithm for multi-part Geometries takes into account the boundaryDetermination rule.

    Declaration
    public Location Locate(Coordinate p, Geometry geom)
    Parameters
    Type Name Description
    Coordinate p
    Geometry geom
    Returns
    Type Description
    Location

    The Location of the point relative to the input Geometry.

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