Search Results for

    Show / Hide Table of Contents

    Class MultiPolygon

    Basic implementation of MultiPolygon.

    Inheritance
    object
    Geometry
    GeometryCollection
    MultiPolygon
    Implements
    IComparable
    IComparable<Geometry>
    IReadOnlyList<Geometry>
    IReadOnlyCollection<Geometry>
    IEnumerable<Geometry>
    IEnumerable
    IPolygonal
    Inherited Members
    GeometryCollection.Coordinate
    GeometryCollection.Coordinates
    GeometryCollection.GetOrdinates(Ordinate)
    GeometryCollection.IsEmpty
    GeometryCollection.NumGeometries
    GeometryCollection.GetGeometryN(int)
    GeometryCollection.Geometries
    GeometryCollection.NumPoints
    GeometryCollection.Area
    GeometryCollection.Length
    GeometryCollection.Apply(ICoordinateFilter)
    GeometryCollection.Apply(ICoordinateSequenceFilter)
    GeometryCollection.Apply(IEntireCoordinateSequenceFilter)
    GeometryCollection.Apply(IGeometryFilter)
    GeometryCollection.Apply(IGeometryComponentFilter)
    GeometryCollection.Normalize()
    GeometryCollection.ComputeEnvelopeInternal()
    GeometryCollection.CompareToSameClass(object)
    GeometryCollection.CompareToSameClass(object, IComparer<CoordinateSequence>)
    GeometryCollection.IsHomogeneous
    GeometryCollection.GetEnumerator()
    GeometryCollection.this[int]
    GeometryCollection.Count
    Geometry.TypeNamePoint
    Geometry.TypeNameMultiPoint
    Geometry.TypeNameLineString
    Geometry.TypeNameLinearRing
    Geometry.TypeNameMultiLineString
    Geometry.TypeNamePolygon
    Geometry.TypeNameMultiPolygon
    Geometry.TypeNameGeometryCollection
    Geometry.Factory
    Geometry.UserData
    Geometry.SRID
    Geometry.HasNonEmptyElements(Geometry[])
    Geometry.HasNullElements(object[])
    Geometry.HasNullElements<T>(IEnumerable<T>)
    Geometry.PrecisionModel
    Geometry.IsSimple
    Geometry.IsValid
    Geometry.Distance(Geometry)
    Geometry.IsWithinDistance(Geometry, double)
    Geometry.Centroid
    Geometry.InteriorPoint
    Geometry.PointOnSurface
    Geometry.Envelope
    Geometry.EnvelopeInternal
    Geometry.GeometryChanged()
    Geometry.GeometryChangedAction()
    Geometry.Disjoint(Geometry)
    Geometry.Touches(Geometry)
    Geometry.Intersects(Geometry)
    Geometry.Crosses(Geometry)
    Geometry.Within(Geometry)
    Geometry.Contains(Geometry)
    Geometry.Overlaps(Geometry)
    Geometry.Covers(Geometry)
    Geometry.CoveredBy(Geometry)
    Geometry.Relate(Geometry, string)
    Geometry.Relate(Geometry)
    Geometry.Equals(Geometry)
    Geometry.EqualsTopologically(Geometry)
    Geometry.Equals(object)
    Geometry.GetHashCode()
    Geometry.ToString()
    Geometry.ToText()
    Geometry.AsText()
    Geometry.ToBinary()
    Geometry.AsBinary()
    Geometry.ToGMLFeature()
    Geometry.Buffer(double)
    Geometry.Buffer(double, EndCapStyle)
    Geometry.Buffer(double, int)
    Geometry.Buffer(double, int, EndCapStyle)
    Geometry.Buffer(double, BufferParameters)
    Geometry.ConvexHull()
    Geometry.Intersection(Geometry)
    Geometry.Union(Geometry)
    Geometry.Difference(Geometry)
    Geometry.SymmetricDifference(Geometry)
    Geometry.Union()
    Geometry.EqualsExact(Geometry)
    Geometry.EqualsNormalized(Geometry)
    Geometry.Copy()
    Geometry.Normalized()
    Geometry.CompareTo(object)
    Geometry.CompareTo(Geometry)
    Geometry.CompareTo(object, IComparer<CoordinateSequence>)
    Geometry.IsEquivalentClass(Geometry)
    Geometry.CheckNotGeometryCollection(Geometry)
    Geometry.IsGeometryCollection
    Geometry.Compare(List<Geometry>, List<Geometry>)
    Geometry.Equal(Coordinate, Coordinate, double)
    Geometry.IsRectangle
    Geometry.DefaultFactory
    Geometry.CreateArray(int, double)
    Geometry.CreateArray(CoordinateSequence, Ordinate)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: NetTopologySuite.Geometries
    Assembly: NetTopologySuite.dll
    Syntax
    [Serializable]
    public class MultiPolygon : GeometryCollection, IComparable, IComparable<Geometry>, IReadOnlyList<Geometry>, IReadOnlyCollection<Geometry>, IEnumerable<Geometry>, IEnumerable, IPolygonal

    Constructors

    | Edit this page View Source

    MultiPolygon(Polygon[])

    Constructs a MultiPolygon.

    Declaration
    public MultiPolygon(Polygon[] polygons)
    Parameters
    Type Name Description
    Polygon[] polygons

    The Polygons for this MultiPolygon , or null or an empty array to create the empty point. Elements may be empty Polygons, but not null s. The polygons must conform to the assertions specified in the http://www.opengis.org/techno/specs.htm OpenGIS Simple Features Specification for SQL.

    Remarks

    For create this Geometry is used a standard GeometryFactory with PrecisionModel == Floating.

    | Edit this page View Source

    MultiPolygon(Polygon[], GeometryFactory)

    Constructs a MultiPolygon.

    Declaration
    public MultiPolygon(Polygon[] polygons, GeometryFactory factory)
    Parameters
    Type Name Description
    Polygon[] polygons

    The Polygons for this MultiPolygon , or null or an empty array to create the empty point. Elements may be empty Polygons, but not null s. The polygons must conform to the assertions specified in the http://www.opengis.org/techno/specs.htm OpenGIS Simple Features Specification for SQL.

    GeometryFactory factory

    Fields

    | Edit this page View Source

    Empty

    Represents an empty MultiPolygon.

    Declaration
    public static readonly MultiPolygon Empty
    Field Value
    Type Description
    MultiPolygon

    Properties

    | Edit this page View Source

    Boundary

    Declaration
    public override Geometry Boundary { get; }
    Property Value
    Type Description
    Geometry
    Overrides
    GeometryCollection.Boundary
    | Edit this page View Source

    BoundaryDimension

    Declaration
    public override Dimension BoundaryDimension { get; }
    Property Value
    Type Description
    Dimension
    Overrides
    GeometryCollection.BoundaryDimension
    | Edit this page View Source

    Dimension

    Declaration
    public override Dimension Dimension { get; }
    Property Value
    Type Description
    Dimension
    Overrides
    GeometryCollection.Dimension
    | Edit this page View Source

    GeometryType

    Returns the name of this object's interface.

    Declaration
    public override string GeometryType { get; }
    Property Value
    Type Description
    string

    "MultiPolygon"

    Overrides
    GeometryCollection.GeometryType
    | Edit this page View Source

    OgcGeometryType

    Gets the OGC geometry type

    Declaration
    public override OgcGeometryType OgcGeometryType { get; }
    Property Value
    Type Description
    OgcGeometryType
    Overrides
    GeometryCollection.OgcGeometryType
    | Edit this page View Source

    SortIndex

    Gets a value to sort the geometry

    Declaration
    protected override Geometry.SortIndexValue SortIndex { get; }
    Property Value
    Type Description
    Geometry.SortIndexValue
    Overrides
    GeometryCollection.SortIndex
    Remarks

    NOTE:
    For JTS v1.17 this property's getter has been renamed to getTypeCode(). In order not to break binary compatibility we did not follow.

    Methods

    | Edit this page View Source

    CopyInternal()

    An internal method to copy subclass-specific geometry data.

    Declaration
    protected override Geometry CopyInternal()
    Returns
    Type Description
    Geometry

    A copy of the target geometry object.

    Overrides
    GeometryCollection.CopyInternal()
    | Edit this page View Source

    EqualsExact(Geometry, double)

    Declaration
    public override bool EqualsExact(Geometry other, double tolerance)
    Parameters
    Type Name Description
    Geometry other
    double tolerance
    Returns
    Type Description
    bool
    Overrides
    GeometryCollection.EqualsExact(Geometry, double)
    | Edit this page View Source

    HasDimension(Dimension)

    Tests whether an atomic geometry or any element of a collection has the specified dimension.
    In particular, this can be used with mixed-dimension GeometryCollections to test if they contain an element of the specified dimension.

    Declaration
    public override bool HasDimension(Dimension dim)
    Parameters
    Type Name Description
    Dimension dim

    The dimension to test

    Returns
    Type Description
    bool

    true if the geometry has or contains an element with the dimension

    Overrides
    GeometryCollection.HasDimension(Dimension)
    See Also
    Dimension
    | Edit this page View Source

    Reverse()

    Creates a MultiPolygon with every component reversed.

    Declaration
    [Obsolete("Call Geometry.Reverse()")]
    public override Geometry Reverse()
    Returns
    Type Description
    Geometry

    An MultiPolygon in the reverse order

    Overrides
    GeometryCollection.Reverse()
    Remarks

    The order of the components in the collection are not reversed.

    | Edit this page View Source

    ReverseInternal()

    Declaration
    protected override Geometry ReverseInternal()
    Returns
    Type Description
    Geometry
    Overrides
    GeometryCollection.ReverseInternal()

    Implements

    IComparable
    IComparable<T>
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    IPolygonal

    Extension Methods

    PolygonalExtracter.GetPolygonals<TCollection>(Geometry)
    PolygonalExtracter.GetPolygonals<TCollection>(Geometry, TCollection)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX