Table of Contents

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 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.

MultiPolygon(Polygon[], GeometryFactory)

Constructs a MultiPolygon.

public MultiPolygon(Polygon[] polygons, GeometryFactory factory)

Parameters

polygons Polygon[]

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.

factory GeometryFactory

Fields

Empty

Represents an empty MultiPolygon.

public static readonly MultiPolygon Empty

Field Value

MultiPolygon

Properties

Boundary

public override Geometry Boundary { get; }

Property Value

Geometry

BoundaryDimension

public override Dimension BoundaryDimension { get; }

Property Value

Dimension

Dimension

public override Dimension Dimension { get; }

Property Value

Dimension

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

OgcGeometryType

SortIndex

Gets a value to sort the geometry

protected override Geometry.SortIndexValue SortIndex { get; }

Property Value

Geometry.SortIndexValue

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

Geometry

EqualsExact(Geometry, double)

public override bool EqualsExact(Geometry other, double tolerance)

Parameters

other Geometry
tolerance double

Returns

bool

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()

Returns

Geometry