Table of Contents

Class BoundingBoxSpec

Namespace
Microsoft.Azure.Documents
Assembly
Microsoft.Azure.DocumentDB.Core.dll

Represents bounding box for geometry spatial path in the Azure Cosmos DB service

public sealed class BoundingBoxSpec : JsonSerializable
Inheritance
BoundingBoxSpec
Inherited Members
Extension Methods

Examples

{ "id": "DocumentCollection Id", "indexingPolicy":{ "spatialIndexes": [{
"path":"/'region'/?", "types":["Polygon"], "boundingBox": { "xmin":0, "ymin":0, "xmax":10, "ymax":10 } }] }, "geospatialConfig": { "type": "Geometry" } }

Constructors

BoundingBoxSpec()

public BoundingBoxSpec()

Properties

Xmax

Gets the x-coordinate of the upper-right corner of the bounding box.

public double Xmax { get; set; }

Property Value

double

Xmin

Gets the x-coordinate of the lower-left corner of the bounding box.

public double Xmin { get; set; }

Property Value

double

Ymax

Gets the y-coordinate of the upper-right corner of the bounding box.

public double Ymax { get; set; }

Property Value

double

Ymin

Gets the y-coordinate of the lower-left corner of the bounding box.

public double Ymin { get; set; }

Property Value

double

Methods

Clone()

public object Clone()

Returns

object