Share via


GeoPolygon Constructors

Definition

Overloads

GeoPolygon(IEnumerable<GeoLinearRing>)

Initializes new instance of GeoPolygon.

GeoPolygon(IEnumerable<GeoPosition>)

Initializes new instance of GeoPolygon.

GeoPolygon(IEnumerable<GeoLinearRing>, GeoBoundingBox, IReadOnlyDictionary<String,Object>)

Initializes new instance of GeoPolygon.

GeoPolygon(IEnumerable<GeoLinearRing>)

Source:
GeoPolygon.cs

Initializes new instance of GeoPolygon.

public GeoPolygon (System.Collections.Generic.IEnumerable<Azure.Core.GeoJson.GeoLinearRing> rings);
new Azure.Core.GeoJson.GeoPolygon : seq<Azure.Core.GeoJson.GeoLinearRing> -> Azure.Core.GeoJson.GeoPolygon
Public Sub New (rings As IEnumerable(Of GeoLinearRing))

Parameters

rings
IEnumerable<GeoLinearRing>

The collection of rings that make up the polygon, first ring is the outer ring others are inner rings.

Applies to

GeoPolygon(IEnumerable<GeoPosition>)

Source:
GeoPolygon.cs

Initializes new instance of GeoPolygon.

public GeoPolygon (System.Collections.Generic.IEnumerable<Azure.Core.GeoJson.GeoPosition> positions);
new Azure.Core.GeoJson.GeoPolygon : seq<Azure.Core.GeoJson.GeoPosition> -> Azure.Core.GeoJson.GeoPolygon
Public Sub New (positions As IEnumerable(Of GeoPosition))

Parameters

positions
IEnumerable<GeoPosition>

The positions that make up the outer ring of the polygon.

Applies to

GeoPolygon(IEnumerable<GeoLinearRing>, GeoBoundingBox, IReadOnlyDictionary<String,Object>)

Source:
GeoPolygon.cs

Initializes new instance of GeoPolygon.

public GeoPolygon (System.Collections.Generic.IEnumerable<Azure.Core.GeoJson.GeoLinearRing> rings, Azure.Core.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary<string,object?> customProperties);
new Azure.Core.GeoJson.GeoPolygon : seq<Azure.Core.GeoJson.GeoLinearRing> * Azure.Core.GeoJson.GeoBoundingBox * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Azure.Core.GeoJson.GeoPolygon
Public Sub New (rings As IEnumerable(Of GeoLinearRing), boundingBox As GeoBoundingBox, customProperties As IReadOnlyDictionary(Of String, Object))

Parameters

rings
IEnumerable<GeoLinearRing>

The collection of rings that make up the polygon, first ring is the outer ring others are inner rings.

boundingBox
GeoBoundingBox

The GeoBoundingBox to use.

customProperties
IReadOnlyDictionary<String,Object>

The set of custom properties associated with the GeoObject.

Applies to