Skip to content

Commit 3e21cea

Browse files
committed
address comments about geometry docs update
1 parent 48732b4 commit 3e21cea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/cosmos-db/sql-query-geospatial-index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you specify an indexing policy that includes spatial index for /* (all paths)
2323
2424
## Modifying geospatial data type
2525

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.
2727

2828
> [!NOTE]
2929
> 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
9494

9595
## Geometry data indexing examples
9696

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:
98100

99101
- **xmin**: the minimum indexed x coordinate
100102
- **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
105107

106108
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.
107109

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`:
109111

110112
```json
111113
{

0 commit comments

Comments
 (0)