Class MultiPolygon
- Namespace
- NetTopologySuite.Geometries
- Assembly
- NetTopologySuite.dll
Basic implementation of MultiPolygon
.
public class MultiPolygon : GeometryCollection, IComparable, IComparable<Geometry>, IEnumerable<Geometry>, IEnumerable, IPolygonal
- Inheritance
-
MultiPolygon
- Implements
- Inherited Members
Constructors
MultiPolygon(Polygon[])
Constructs a MultiPolygon
.
public MultiPolygon(Polygon[] polygons)
Parameters
polygons
Polygon[]The
Polygon
s for thisMultiPolygon
, ornull
or an empty array to create the empty point. Elements may be emptyPolygon
s, but notnull
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.
MultiPolygon(Polygon[], GeometryFactory)
Constructs a MultiPolygon
.
public MultiPolygon(Polygon[] polygons, GeometryFactory factory)
Parameters
polygons
Polygon[]The
Polygon
s for thisMultiPolygon
, ornull
or an empty array to create the empty point. Elements may be emptyPolygon
s, but notnull
s. The polygons must conform to the assertions specified in the http://www.opengis.org/techno/specs.htm OpenGIS Simple Features Specification for SQL.factory
GeometryFactory
Fields
Empty
Represents an empty MultiPolygon
.
public static readonly MultiPolygon Empty
Field Value
Properties
Boundary
public override Geometry Boundary { get; }
Property Value
BoundaryDimension
public override Dimension BoundaryDimension { get; }
Property Value
Dimension
public override Dimension Dimension { get; }
Property Value
GeometryType
Returns the name of this object's interface.
public override string GeometryType { get; }
Property Value
- string
"MultiPolygon"
OgcGeometryType
public override OgcGeometryType OgcGeometryType { get; }
Property Value
SortIndex
Gets a value to sort the geometry
protected override Geometry.SortIndexValue SortIndex { get; }
Property Value
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
CopyInternal()
protected override Geometry CopyInternal()
Returns
EqualsExact(Geometry, double)
public override bool EqualsExact(Geometry other, double tolerance)
Parameters
Returns
Reverse()
Creates a MultiPolygon with every component reversed.
[Obsolete("Call Geometry.Reverse()")]
public override Geometry Reverse()
Returns
- Geometry
An MultiPolygon in the reverse order
Remarks
The order of the components in the collection are not reversed.
ReverseInternal()
protected override Geometry ReverseInternal()