Geometry Class

Definition

Base class for spatial geometry objects in the Azure Cosmos DB service.

[Newtonsoft.Json.JsonConverter(typeof(Microsoft.Azure.Documents.Spatial.Converters.GeometryJsonConverter))]
[Newtonsoft.Json.JsonObject(Newtonsoft.Json.MemberSerialization.OptIn)]
public abstract class Geometry
type Geometry = class
Public MustInherit Class Geometry
Inheritance
System.Object
Geometry
Derived
Attributes
Newtonsoft.Json.JsonConverterAttribute Newtonsoft.Json.JsonObjectAttribute

Constructors

Geometry(GeometryType, GeometryParams)

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

Properties

AdditionalProperties

Gets additional properties in the Azure Cosmos DB service.

BoundingBox

Gets bounding box for this geometry in the Azure Cosmos DB service.

Crs

Gets the Coordinate Reference System for this geometry in the Azure Cosmos DB service.

Type

Gets geometry type in the Azure Cosmos DB service.

Methods

Equals(Object)

Determines whether the specified Geometry is equal to the current Geometry in the Azure Cosmos DB service.

GetHashCode()

Serves as a hash function for the Geometry type in the Azure Cosmos DB service.

Extension Methods

Distance(Geometry, Geometry)

Distance in meters between two geometries in the Azure Cosmos DB service.

Intersects(Geometry, Geometry)

Checks if geometry1 intersects with geometry2.

IsValid(Geometry)

Determines if the geometry specified is valid and can be indexed or used in queries by Azure Cosmos DB service.

If a geometry is not valid, it will not be indexed. Also during query time invalid geometries are equivalent to undefined.

IsValidDetailed(Geometry)

Determines if the geometry specified is valid and can be indexed or used in queries by Azure Cosmos DB service.

If a geometry is not valid, it will not be indexed. Also during query time invalid geometries are equivalent to undefined.

Within(Geometry, Geometry)

Determines if innerGeometry is fully contained inside outerGeometry in the Azure Cosmos DB service.

Applies to