Polygon Constructors

Definition

Overloads

Polygon(IList<LinearRing>)

Initializes a new instance of the Polygon class in the Azure Cosmos DB service.

Polygon(IList<Position>)

Initializes a new instance of the Polygon class, from external ring (the polygon contains no holes) in the Azure Cosmos DB service.

Polygon(IList<LinearRing>, GeometryParams)

Initializes a new instance of the Polygon class in the Azure Cosmos DB service.

Polygon(IList<LinearRing>)

Initializes a new instance of the Polygon class in the Azure Cosmos DB service.

public Polygon (System.Collections.Generic.IList<Microsoft.Azure.Documents.Spatial.LinearRing> rings);
new Microsoft.Azure.Documents.Spatial.Polygon : System.Collections.Generic.IList<Microsoft.Azure.Documents.Spatial.LinearRing> -> Microsoft.Azure.Documents.Spatial.Polygon
Public Sub New (rings As IList(Of LinearRing))

Parameters

rings
System.Collections.Generic.IList<LinearRing>

Polygon rings.

First ring is external ring. Following rings define 'holes' in the polygon.

Applies to

Polygon(IList<Position>)

Initializes a new instance of the Polygon class, from external ring (the polygon contains no holes) in the Azure Cosmos DB service.

public Polygon (System.Collections.Generic.IList<Microsoft.Azure.Documents.Spatial.Position> externalRingPositions);
new Microsoft.Azure.Documents.Spatial.Polygon : System.Collections.Generic.IList<Microsoft.Azure.Documents.Spatial.Position> -> Microsoft.Azure.Documents.Spatial.Polygon
Public Sub New (externalRingPositions As IList(Of Position))

Parameters

externalRingPositions
System.Collections.Generic.IList<Position>

External polygon ring coordinates.

Applies to

Polygon(IList<LinearRing>, GeometryParams)

Initializes a new instance of the Polygon class in the Azure Cosmos DB service.

public Polygon (System.Collections.Generic.IList<Microsoft.Azure.Documents.Spatial.LinearRing> rings, Microsoft.Azure.Documents.Spatial.GeometryParams geometryParams);
new Microsoft.Azure.Documents.Spatial.Polygon : System.Collections.Generic.IList<Microsoft.Azure.Documents.Spatial.LinearRing> * Microsoft.Azure.Documents.Spatial.GeometryParams -> Microsoft.Azure.Documents.Spatial.Polygon

Parameters

rings
System.Collections.Generic.IList<LinearRing>

Polygon rings.

geometryParams
GeometryParams

Additional geometry parameters.

Applies to