Search Results for

    Show / Hide Table of Contents

    Class MinimumAreaRectangle

    Computes the minimum-area rectangle enclosing a Geometry. Unlike the Envelope, the rectangle may not be axis-parallel.

    The first step in the algorithm is computing the convex hull of the Geometry. If the input Geometry is known to be convex, a hint can be supplied to avoid this computation.

    In degenerate cases the minimum enclosing geometry may be a LineString or a Point.

    The minimum - area enclosing rectangle does not necessarily have the minimum possible width. Use {@link MinimumDiameter} to compute this.
    Inheritance
    object
    MinimumAreaRectangle
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Algorithm
    Assembly: NetTopologySuite.dll
    Syntax
    public sealed class MinimumAreaRectangle

    Constructors

    | Edit this page View Source

    MinimumAreaRectangle(Geometry)

    Compute a minimum-area rectangle for a given {@link Geometry}.

    Declaration
    public MinimumAreaRectangle(Geometry inputGeom)
    Parameters
    Type Name Description
    Geometry inputGeom

    A Geometry

    | Edit this page View Source

    MinimumAreaRectangle(Geometry, bool)

    Compute a minimum rectangle for a Geometry, with a hint if the geometry is convex (e.g. a convex Polygon or LinearRing, or a two-point LineString, or a Point).

    Declaration
    public MinimumAreaRectangle(Geometry inputGeom, bool isConvex)
    Parameters
    Type Name Description
    Geometry inputGeom

    A Geometry

    bool isConvex

    A flag indicating if inputGeom is convex

    Methods

    | Edit this page View Source

    GetMinimumRectangle(Geometry)

    Gets the minimum-area rectangular {@link Polygon} which encloses the input geometry. If the convex hull of the input is degenerate (a line or point) a {@link LineString} or {@link Point} is returned.

    Declaration
    public static Geometry GetMinimumRectangle(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom

    A Geometry

    Returns
    Type Description
    Geometry

    The minimum rectangle enclosing the geometry

    See Also

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