Geometry Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.ObjectGeometry
- 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
If a geometry is not valid, it will not be indexed. Also during query time invalid geometries are equivalent to |
IsValidDetailed(Geometry) |
Determines if the
If a geometry is not valid, it will not be indexed. Also during query time invalid geometries are equivalent to |
Within(Geometry, Geometry) |
Determines if |