You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/sql-query-geospatial-index.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ If you specify an indexing policy that includes spatial index for /* (all paths)
23
23
24
24
## Modifying geospatial data type
25
25
26
-
In your container, the `geospatialConfig` specifies how the geospatial data will be indexed. You should specific one `geospatialConfig` per container: geography or geometry. If not specified, the `geospatialConfig` will default to the geography data type. You can modify the `geospatialConfig` at any time.
26
+
In your container, the `geospatialConfig` specifies how the geospatial data will be indexed. You should specify one `geospatialConfig` per container: geography or geometry. If not specified, the `geospatialConfig` will default to the geography data type. When you modify the `geospatialConfig`, all existing geospatial data in the container will be reindexed.
27
27
28
28
> [!NOTE]
29
29
> Azure Cosmos DB currently supports modifications to the geospatialConfig in the .NET sdk only in versions 3.6 and above. Support in > other sdk versions and the Azure Portal is planned.
@@ -94,7 +94,9 @@ You can also [modify indexing policy](how-to-manage-indexing-policy.md) using th
94
94
95
95
## Geometry data indexing examples
96
96
97
-
With the **geometry** data type, similar to the geography data type, you must specify relevant paths and types to index. In addition, you must also specify a `boundingBox` within the indexing policy to indicate the desired area to be indexed. The bounding box consists of the following properties:
97
+
With the **geometry** data type, similar to the geography data type, you must specify relevant paths and types to index. In addition, you must also specify a `boundingBox` within the indexing policy to indicate the desired area to be indexed for that specific path. Each geospatial path requires its own`boundingBox`.
98
+
99
+
The bounding box consists of the following properties:
98
100
99
101
-**xmin**: the minimum indexed x coordinate
100
102
-**ymin**: the minimum indexed y coordinate
@@ -105,7 +107,7 @@ A bounding box is required because geometric data occupies a plane that can be i
105
107
106
108
You should create a bounding box that contains all (or most) of your data. Only operations computed on the objects that are entirely inside the bounding box will be able to utilize the spatial index. You should not make the bounding box significantly larger than necessary because this will negatively impact query performance.
107
109
108
-
Here is an example indexing policy that indexes **geometry** data:
110
+
Here is an example indexing policy that indexes **geometry** data with **geospatialConfig** set to `geometry`:
0 commit comments