azure-cosmosdb

Cosmos db unexpected validation failures from GeoJSON obtained from UK Environment Agency

我们两清 提交于 2020-04-17 21:15:53
问题 UPDATE 2020-03-04 Using MySql Server 8.0.19 I am able to successfully validate this GeoJSON using SELECT ST_IsValid(ST_GeomFromGeoJSON(geojson)) FROM test; The data type for geojson column is json . ORIGINAL QUESTION I'm new to the geospatial game, and it appears very much non-trivial! The headlines suggest Cosmos db supports GeoJSON out of the box with the exception that ST_WITHIN() doesn't support holes. Not a problem. So I loaded up all the of the available "polygons" from https:/

Cosmos db unexpected validation failures from GeoJSON obtained from UK Environment Agency

别等时光非礼了梦想. 提交于 2020-04-17 21:14:49
问题 UPDATE 2020-03-04 Using MySql Server 8.0.19 I am able to successfully validate this GeoJSON using SELECT ST_IsValid(ST_GeomFromGeoJSON(geojson)) FROM test; The data type for geojson column is json . ORIGINAL QUESTION I'm new to the geospatial game, and it appears very much non-trivial! The headlines suggest Cosmos db supports GeoJSON out of the box with the exception that ST_WITHIN() doesn't support holes. Not a problem. So I loaded up all the of the available "polygons" from https:/

Cosmos db unexpected validation failures from GeoJSON obtained from UK Environment Agency

混江龙づ霸主 提交于 2020-04-17 21:14:27
问题 UPDATE 2020-03-04 Using MySql Server 8.0.19 I am able to successfully validate this GeoJSON using SELECT ST_IsValid(ST_GeomFromGeoJSON(geojson)) FROM test; The data type for geojson column is json . ORIGINAL QUESTION I'm new to the geospatial game, and it appears very much non-trivial! The headlines suggest Cosmos db supports GeoJSON out of the box with the exception that ST_WITHIN() doesn't support holes. Not a problem. So I loaded up all the of the available "polygons" from https:/

Cosmos db unexpected validation failures from GeoJSON obtained from UK Environment Agency

做~自己de王妃 提交于 2020-04-17 21:14:16
问题 UPDATE 2020-03-04 Using MySql Server 8.0.19 I am able to successfully validate this GeoJSON using SELECT ST_IsValid(ST_GeomFromGeoJSON(geojson)) FROM test; The data type for geojson column is json . ORIGINAL QUESTION I'm new to the geospatial game, and it appears very much non-trivial! The headlines suggest Cosmos db supports GeoJSON out of the box with the exception that ST_WITHIN() doesn't support holes. Not a problem. So I loaded up all the of the available "polygons" from https:/

Unauthorized status while accessing Cosmos Db Collection Documents in power shell

心已入冬 提交于 2020-04-17 20:50:32
问题 I am trying to access azure cosmos db account collection documents and also each document in collection. I had referred below link and changed all necessary cosmos db values like databaseid,container,itemid master key etc., Link: https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos.Samples/Usage/PowerShellRestApi/PowerShellScripts/ReadItem.ps1 But i am getting below error while running in Powershell. Error: StatusCode: 401 Exception Message: The remote server

Cosmos DB Stored procedure did not execute without PartitionKey

社会主义新天地 提交于 2020-04-16 05:21:30
问题 I have a collection which has PartitionKey.i have a made a stored procedure which accepts query as a parameter. in this stored procedure, I'm fetching some documents to update but while fetching it shows an error saying provide PartitionKey when I use the method public Task<StoredProcedureResponse<TValue>> ExecuteStoredProcedureAsync<TValue>(Uri storedProcedureUri, [Dynamic(new[] { false, true })] params dynamic[] procedureParams); while using the other method public Task

Cosmos DB Stored procedure did not execute without PartitionKey

久未见 提交于 2020-04-16 05:21:01
问题 I have a collection which has PartitionKey.i have a made a stored procedure which accepts query as a parameter. in this stored procedure, I'm fetching some documents to update but while fetching it shows an error saying provide PartitionKey when I use the method public Task<StoredProcedureResponse<TValue>> ExecuteStoredProcedureAsync<TValue>(Uri storedProcedureUri, [Dynamic(new[] { false, true })] params dynamic[] procedureParams); while using the other method public Task

Geolocation search with Gremlin

最后都变了- 提交于 2020-04-14 07:07:06
问题 Is it possible to do a location search in Gremlin? I can't see how it can be done in the documentation. I specifically want to do the location search in Cosmos Gremlin. 回答1: Geo location currently is something that is provided by the back end graph system. For example JanusGraph has a GeoSpatial API that can be used with Gremlin. Of course if you store lat/lon coordinates in your graph you can pretty easily write a Gremlin query to use those to look for things based on coordinates. I have a

CosmosDB creation - API option (SQL vs Graph)

拟墨画扇 提交于 2020-04-10 03:27:08
问题 I'm interested in using the Azure CosmosDB for it's Graph capability. Looking through the docs i saw that it sores graph vertices and edges as JSON documents (with an agreed schema) and so it can be accessed as a plain old DocumentDB. Taking this into consideration what is the meaning of the API selection you need to make when creating a new instance (link)? eg : what am i losing if i create the DB as SQL (DocumentDB) and manipulating data via the graph part of the client (eg

How to search JSON in depth in Azure Cosmos DB?

£可爱£侵袭症+ 提交于 2020-03-18 08:39:14
问题 I have JSON files like below stored in Cosmos DB. I want to search text in activities/message. { "id": "575858a7-f814-41fd-ae5a-6f38ba2da957", "name": "Test Name", "activities": [ { "message": "activity 1.1 message", "messageType": "type1" }, { "message": "activity 1.2 message", "messageType": "type2" } ] } I find out that I can use search like below. SELECT * FROM c WHERE CONTAINS(c.activities[0].message, "activity") But, this can only search the first record in the array of activities. How