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

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

public Polygon (System.Collections.Generic.IList<Azure.Cosmos.Spatial.LinearRing> rings);
new Azure.Cosmos.Spatial.Polygon : System.Collections.Generic.IList<Azure.Cosmos.Spatial.LinearRing> -> 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>)

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<Azure.Cosmos.Spatial.Position> externalRingPositions);
new Azure.Cosmos.Spatial.Polygon : System.Collections.Generic.IList<Azure.Cosmos.Spatial.Position> -> 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)

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

public Polygon (System.Collections.Generic.IList<Azure.Cosmos.Spatial.LinearRing> rings, Azure.Cosmos.Spatial.GeometryParams geometryParams);
new Azure.Cosmos.Spatial.Polygon : System.Collections.Generic.IList<Azure.Cosmos.Spatial.LinearRing> * Azure.Cosmos.Spatial.GeometryParams -> 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