-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Geometry Client V3 changes #1097
Conversation
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/IndexingPolicyTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
//------------------------------------------------------------ | ||
namespace Microsoft.Azure.Cosmos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should all these files be in?
namespace Microsoft.Azure.Cosmos.Spatial
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, those files are serialization related files. those had a separate folder even in V2( SharedFiles\Spatial). However this PR changes the container properties(i.e. collection content), so should remain in this namespace. Its the same even in V2, these files are directly under sharedFiles.
Pull Request Template
Description
Enabling support for spatial geometry in client
• Enabling support for creating geometry collections, and adding indexes for the same in V3. Same changes for V2 is checked in: http://codeflow/extensions/launcher.html?server=https:%2f%2fmsdata.visualstudio.com%2f&projectId=ba574a88-a171-48e0-8fcb-5fef6d23739c&reviewId=357789&projectshortname=msdata
• Geometry collection content will look like:
{
"id":"Coll1",
"indexingPolicy":{
"spatialIndexes":[
{
"path":"...",
"types":[
"Point"
],
"boundingBox":
{
"xmin":xmin,
"ymin":ymin,
"xmax":xmax,
"ymax":ymax
}
}
]
},
"geospatialConfig": {"type": "Geometry"}
}
• Added tests for creating geometry spatial index in indexingPolicy test suite
Type of change
Assignee
Please add yourself as the assignee
Projects
Please add relevant projects so this issue can be properly tracked.