Class GeospatialConfig
Represents geospatial configuration for a collection in the Azure Cosmos DB service
public sealed class GeospatialConfig : JsonSerializable, ICloneable
- Inheritance
-
GeospatialConfig
- Implements
- Inherited Members
- Extension Methods
Examples
{ "id": "CollectionId", "indexingPolicy":..., "geospatialConfig": { "type": "Geography" } }
Constructors
GeospatialConfig()
Initializes a new instance of the GeospatialConfig class for the Azure Cosmos DB service.
public GeospatialConfig()
Remarks
Geospatial type is set to Geography by default.
GeospatialConfig(GeospatialType)
public GeospatialConfig(GeospatialType geospatialType)
Parameters
geospatialType
GeospatialType
Properties
GeospatialType
Gets or sets the geospatial type (geography or geometry) in the Azure Cosmos DB service.
public GeospatialType GeospatialType { get; set; }
Property Value
- GeospatialType
One of the values of the GeospatialType enumeration.
Methods
Clone()
public object Clone()