We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e21cea commit 458e858Copy full SHA for 458e858
articles/cosmos-db/sql-query-geospatial-index.md
@@ -49,7 +49,12 @@ Here is an example for modifying the geospatial data type to `geometry` by setti
49
}
50
};
51
spatialPath.SpatialTypes.Add(SpatialType.Point);
52
+ spatialPath.SpatialTypes.Add(SpatialType.LineString);
53
+ spatialPath.SpatialTypes.Add(SpatialType.Polygon);
54
+ spatialPath.SpatialTypes.Add(SpatialType.MultiPolygon);
55
+
56
containerResponse.Resource.IndexingPolicy.SpatialIndexes.Add(spatialPath);
57
58
// Update container with changes
59
await client.GetContainer("db", "spatial").ReplaceContainerAsync(containerResponse.Resource);
60
```
0 commit comments