Show / Hide Table of Contents

    Class MultiPolygon

    A MultiPolygon is a MultiSurface whose elements are Polygons.

    Inheritance
    System.Object
    Geometry
    MultiPolygon
    Implements
    System.IEquatable<Geometry>
    IGeometryCollection
    IGeometry
    System.Collections.Generic.IEnumerable<Geometry>
    System.Collections.IEnumerable
    Inherited Members
    Geometry.Envelope
    Geometry.AsText()
    Geometry.AsBinary()
    Geometry.ToString()
    Geometry.GeomFromText(String)
    Geometry.GeomFromWKB(Byte[])
    Geometry.GetHashCode()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Mapsui.Geometries
    Assembly: Mapsui.Geometries.dll
    Syntax
    public class MultiPolygon : Geometry, IEquatable<Geometry>, IGeometryCollection, IGeometry, IEnumerable<Geometry>, IEnumerable

    Constructors

    | Improve this Doc View Source

    MultiPolygon()

    Instantiates a MultiPolygon

    Declaration
    public MultiPolygon()

    Properties

    | Improve this Doc View Source

    Area

    Returns summed area of the Polygons in the MultiPolygon collection

    Declaration
    public double Area { get; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    BoundingBox

    Returns the bounding box of the object

    Declaration
    public override BoundingBox BoundingBox { get; }
    Property Value
    Type Description
    BoundingBox

    bounding box

    Overrides
    Geometry.BoundingBox
    | Improve this Doc View Source

    Item[Int32]

    Returns an indexed geometry in the collection

    Declaration
    public Polygon this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index

    Geometry index

    Property Value
    Type Description
    Polygon

    Geometry at index

    | Improve this Doc View Source

    NumGeometries

    Returns the number of geometries in the collection.

    Declaration
    public int NumGeometries { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Polygons

    Collection of polygons in the multipolygon

    Declaration
    public IList<Polygon> Polygons { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IList<Polygon>

    Methods

    | Improve this Doc View Source

    Clone()

    Return a copy of this geometry

    Declaration
    public MultiPolygon Clone()
    Returns
    Type Description
    MultiPolygon

    Copy of Geometry

    | Improve this Doc View Source

    Contains(Point)

    Declaration
    public override bool Contains(Point point)
    Parameters
    Type Name Description
    Point point
    Returns
    Type Description
    System.Boolean
    Overrides
    Geometry.Contains(Point)
    | 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
    public override double Distance(Point point)
    Parameters
    Type Name Description
    Point point

    Geometry to calculate distance to

    Returns
    Type Description
    System.Double

    Shortest distance between any two points in the two geometries

    Overrides
    Geometry.Distance(Point)
    | Improve this Doc View Source

    Equals(Geometry)

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

    Geometry(Int32)

    Returns an indexed geometry in the collection

    Declaration
    public Geometry Geometry(int n)
    Parameters
    Type Name Description
    System.Int32 n

    Geometry index

    Returns
    Type Description
    Geometry

    Geometry at index N

    | Improve this Doc View Source

    GetBoundingBox()

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

    GetEnumerator()

    Gets an enumerator for enumerating the geometries in the GeometryCollection

    Declaration
    public IEnumerator<Geometry> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<Geometry>
    | Improve this Doc View Source

    IsEmpty()

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

    Declaration
    public override bool IsEmpty()
    Returns
    Type Description
    System.Boolean

    Returns 'true' if this Geometry is the empty geometry

    Overrides
    Geometry.IsEmpty()

    Explicit Interface Implementations

    | Improve this Doc View Source

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    Implements

    System.IEquatable<T>
    IGeometryCollection
    IGeometry
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable

    Extension Methods

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