Search Results for

    Show / Hide Table of Contents

    Class IndexedPointInAreaLocator

    Determines the Location of Coordinates relative to an areal geometry, using indexing for efficiency. This algorithm is suitable for use in cases where many points will be tested against a given area.

    The Location is computed precisely, th that points located on the geometry boundary or segments will return Boundary.

    IPolygonal and LinearRing geometries are supported.

    The index is lazy-loaded, which allows creating instances even if they are not used.

    Thread-safe and immutable.
    Inheritance
    object
    IndexedPointInAreaLocator
    Implements
    IPointOnGeometryLocator
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Algorithm.Locate
    Assembly: NetTopologySuite.dll
    Syntax
    public class IndexedPointInAreaLocator : IPointOnGeometryLocator

    Constructors

    | Edit this page View Source

    IndexedPointInAreaLocator(Geometry)

    Creates a new locator for a given Geometry. Geometries containing IPolygonals and LinearRing geometries are supported

    Declaration
    public IndexedPointInAreaLocator(Geometry g)
    Parameters
    Type Name Description
    Geometry g

    The Geometry to locate in

    Methods

    | Edit this page View Source

    Locate(Coordinate)

    Determines the Location of a point in an areal Geometry.

    Declaration
    public Location Locate(Coordinate p)
    Parameters
    Type Name Description
    Coordinate p

    The point to test

    Returns
    Type Description
    Location

    The location of the point in the geometry

    Implements

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