Search Results for

    Show / Hide Table of Contents

    Class InteriorPoint

    Computes an interior point of a Geometry. An interior point is guaranteed to lie in the interior of the Geometry, if it possible to calculate such a point exactly. For collections the interior point is computed for the collection of non-empty elements of highest dimension. Otherwise, the point may lie on the boundary of the geometry.

    The interior point of an empty geometry is POINT EMPTY.

    Algorithm

    The point is chosen to be "close to the center" of the geometry. The location depends on the dimension of the input:
    • Dimension 2the interior point is constructed in the middle of the longest interior segment of a line bisecting the area.
    • Dimension 1the interior point is the interior or boundary vertex closest to the centroid.
    • Dimension 0the point is the point closest to the centroid.
    Centroid MaximumInscribedCircle LargestEmptyCircle
    Inheritance
    object
    InteriorPoint
    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 static class InteriorPoint

    Methods

    | Edit this page View Source

    GetInteriorCoord(Geometry)

    Computes a location of an interior point in a Geometry.

    Handles all geometry types.
    Declaration
    public static Coordinate GetInteriorCoord(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom

    A geometry in which to find an interior point

    Returns
    Type Description
    Coordinate

    the location of an interior point, or null if the input is empty

    Remarks

    This function is called GetInteriorPoint in JTS. It has been renamed to GetInteriorCoord to prevent a breaking change.

    | Edit this page View Source

    GetInteriorPoint(Geometry)

    Computes a location of an interior point in a Geometry.

    Handles all geometry types.
    Declaration
    [Obsolete("Use GetInteriorCoord")]
    public static Point GetInteriorPoint(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom

    A geometry in which to find an interior point

    Returns
    Type Description
    Point

    the location of an interior point, or POINT EMPTY if the input is empty

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