Polygon Class

Definition

Polygon geometry class in the Azure DocumentDB database service.

A polygon is represented by the set of "polygon rings". Each ring is closed line string. First ring defines external ring. All subsequent rings define "holes" in the external ring.

Rings must be specified using Left Hand Rule: traversing the ring in the order of its points, should result in internal area of the polygon being to the left side.

public sealed class Polygon : Microsoft.Azure.Documents.Spatial.Geometry, IEquatable<Microsoft.Azure.Documents.Spatial.Polygon>
Inheritance
Implements

Inherited Members

Microsoft.Azure.Documents.Spatial.Geometry

Constructors

Polygon(IList<LinearRing>)

Initializes a new instance of the Polygon class in the Azure DocumentDB database service.

Polygon(IList<Position>)

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

Polygon(IList<LinearRing>, GeometryParams)

Initializes a new instance of the Polygon class in the Azure DocumentDB database service.

Properties

Rings

Gets the polygon rings in the Azure DocumentDB database service.

Methods

Equals(Polygon)

Determines if this Polygon is equal to the other in the Azure DocumentDB database service.

Equals(Object)

Determines whether the specified Polygon is equal to the current Polygon in the Azure DocumentDB database service.

GetHashCode()

Serves as a hash function for the Polygon type in the Azure DocumentDB database service.

Extension Methods

Distance(Geometry, Geometry)
Intersects(Geometry, Geometry)
IsValid(Geometry)
IsValidDetailed(Geometry)
Within(Geometry, Geometry)
IsDefined(Object)
IsNull(Object)
IsPrimitive(Object)