Share via


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

Source:
Polygon.cs

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

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

Parameters

rings
IList<LinearRing>

Polygon rings.

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

Applies to

Polygon(IList<Position>)

Source:
Polygon.cs

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.Cosmos.Spatial.Position> externalRingPositions);
new Microsoft.Azure.Cosmos.Spatial.Polygon : System.Collections.Generic.IList<Microsoft.Azure.Cosmos.Spatial.Position> -> Microsoft.Azure.Cosmos.Spatial.Polygon
Public Sub New (externalRingPositions As IList(Of Position))

Parameters

externalRingPositions
IList<Position>

External polygon ring coordinates.

Applies to

Polygon(IList<LinearRing>, GeometryParams)

Source:
Polygon.cs

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

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

Parameters

rings
IList<LinearRing>

Polygon rings.

geometryParams
GeometryParams

Additional geometry parameters.

Applies to