Show / Hide Table of Contents

    Interface IGeometry

    Defines basic interface for a Geometry

    Namespace: Mapsui.Geometries
    Assembly: Mapsui.Geometries.dll
    Syntax
    public interface IGeometry

    Properties

    | Improve this Doc View Source

    BoundingBox

    The minimum BoundingBox for this Geometry.

    Declaration
    BoundingBox BoundingBox { get; }
    Property Value
    Type Description
    BoundingBox BoundingBox for this Geometry
    | Improve this Doc View Source

    Envelope

    The minimum bounding box for this Geometry, returned as a Geometry. The polygon is defined by the corner points of the bounding box ((MINX, MINY), (MAXX, MINY), (MAXX, MAXY), (MINX, MAXY), (MINX, MINY)).

    Declaration
    Geometry Envelope { get; }
    Property Value
    Type Description
    Geometry

    Methods

    | Improve this Doc View Source

    AsBinary()

    Exports this Geometry to a specific well-known binary representation of Geometry.

    Declaration
    byte[] AsBinary()
    Returns
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    AsText()

    Exports this Geometry to a specific well-known text representation of Geometry.

    Declaration
    string AsText()
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    Clone()

    This method must be overridden using 'public new [derived_data_type] Clone()'

    Declaration
    Geometry Clone()
    Returns
    Type Description
    Geometry

    Copy of Geometry

    | Improve this Doc View Source

    Contains(Point)

    Declaration
    bool Contains(Point point)
    Parameters
    Type Name Description
    Point point
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Distance(Point)

    Returns the shortest distance between any two points in the two geometries as calculated in the spatial reference system of this Geometry.

    Declaration
    double Distance(Point point)
    Parameters
    Type Name Description
    Point point

    Point to calculate distance to

    Returns
    Type Description
    System.Double

    Shortest distance between any two points in the two geometries

    | Improve this Doc View Source

    Equals(Geometry)

    Returns 'true' if this Geometry is 'spatially equal' to another Geometry

    Declaration
    bool Equals(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetBoundingBox()

    Declaration
    [Obsolete("Use the BoundingBox field instead")]
    BoundingBox GetBoundingBox()
    Returns
    Type Description
    BoundingBox
    | Improve this Doc View Source

    IsEmpty()

    If true, then this Geometry represents the empty point set, Ø, for the coordinate space.

    Declaration
    bool IsEmpty()
    Returns
    Type Description
    System.Boolean

    Returns 'true' if this Geometry is the empty geometry

    | Improve this Doc View Source

    ToString()

    Returns a WellKnownText representation of the Geometry

    Declaration
    string ToString()
    Returns
    Type Description
    System.String

    Well-known text

    Extension Methods

    GeometryExtensions.Copy(IGeometry)
    GeometryIterator.AllVertices(IGeometry)
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX