Class MultiPolygon
Basic implementation of MultiPolygon
.
Inherited Members
Namespace: NetTopologySuite.Geometries
Assembly: NetTopologySuite.dll
Syntax
[Serializable]
public class MultiPolygon : GeometryCollection, IComparable, IComparable<Geometry>, IEnumerable<Geometry>, IEnumerable, IPolygonal
Constructors
| Improve this Doc View SourceMultiPolygon(Polygon[])
Constructs a MultiPolygon
.
Declaration
public MultiPolygon(Polygon[] polygons)
Parameters
Type | Name | Description |
---|---|---|
Polygon[] | polygons | The |
Remarks
For create this Geometry is used a standard GeometryFactory
with PrecisionModel ==
Floating.
MultiPolygon(Polygon[], GeometryFactory)
Constructs a MultiPolygon
.
Declaration
public MultiPolygon(Polygon[] polygons, GeometryFactory factory)
Parameters
Type | Name | Description |
---|---|---|
Polygon[] | polygons | The |
GeometryFactory | factory |
Fields
| Improve this Doc View SourceEmpty
Represents an empty MultiPolygon
.
Declaration
public static readonly MultiPolygon Empty
Field Value
Type | Description |
---|---|
MultiPolygon |
Properties
| Improve this Doc View SourceBoundary
Declaration
public override Geometry Boundary { get; }
Property Value
Type | Description |
---|---|
Geometry |
Overrides
| Improve this Doc View SourceBoundaryDimension
Declaration
public override Dimension BoundaryDimension { get; }
Property Value
Type | Description |
---|---|
Dimension |
Overrides
| Improve this Doc View SourceDimension
Declaration
public override Dimension Dimension { get; }
Property Value
Type | Description |
---|---|
Dimension |
Overrides
| Improve this Doc View SourceGeometryType
Returns the name of this object's interface.
Declaration
public override string GeometryType { get; }
Property Value
Type | Description |
---|---|
String | "MultiPolygon" |
Overrides
| Improve this Doc View SourceOgcGeometryType
Declaration
public override OgcGeometryType OgcGeometryType { get; }
Property Value
Type | Description |
---|---|
OgcGeometryType |
Overrides
| Improve this Doc View SourceSortIndex
Gets a value to sort the geometry
Declaration
protected override Geometry.SortIndexValue SortIndex { get; }
Property Value
Type | Description |
---|---|
Geometry.SortIndexValue |
Overrides
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
| Improve this Doc View SourceCopyInternal()
Declaration
protected override Geometry CopyInternal()
Returns
Type | Description |
---|---|
Geometry |
Overrides
| Improve this Doc View SourceEqualsExact(Geometry, Double)
Declaration
public override bool EqualsExact(Geometry other, double tolerance)
Parameters
Type | Name | Description |
---|---|---|
Geometry | other | |
Double | tolerance |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceReverse()
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
Remarks
The order of the components in the collection are not reversed.
ReverseInternal()
Declaration
protected override Geometry ReverseInternal()
Returns
Type | Description |
---|---|
Geometry |