Skip to content

Commit 458e858

Browse files
committed
update geometry docs final changes
1 parent 3e21cea commit 458e858

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ Here is an example for modifying the geospatial data type to `geometry` by setti
4949
}
5050
};
5151
spatialPath.SpatialTypes.Add(SpatialType.Point);
52+
spatialPath.SpatialTypes.Add(SpatialType.LineString);
53+
spatialPath.SpatialTypes.Add(SpatialType.Polygon);
54+
spatialPath.SpatialTypes.Add(SpatialType.MultiPolygon);
55+
5256
containerResponse.Resource.IndexingPolicy.SpatialIndexes.Add(spatialPath);
57+
5358
// Update container with changes
5459
await client.GetContainer("db", "spatial").ReplaceContainerAsync(containerResponse.Resource);
5560
```

0 commit comments

Comments
 (0)