<PackageReference Include="Azure.Core" Version="1.49.0" />

GeoPolygon

public sealed class GeoPolygon : GeoObject
Represents a polygon consisting of outer ring and optional inner rings.

Returns a view over the coordinates array that forms this geometry.

public GeoLinearRing OuterRing { get; }

Returns the outer ring of the polygon.

Gets a set of rings that form the polygon.

public GeoPolygon(IEnumerable<GeoPosition> positions)

Initializes new instance of GeoPolygon.

Initializes new instance of GeoPolygon.

public GeoPolygon(IEnumerable<GeoLinearRing> rings, GeoBoundingBox boundingBox, IReadOnlyDictionary<string, object> customProperties)

Initializes new instance of GeoPolygon.