Azure / azure-cosmos-dotnet-v3

.NET SDK for Azure Cosmos DB for the core SQL API
MIT License
731 stars 489 forks source link

Add GeoJson Feature and FeatureCollection to Spatial #1854

Open jaybo opened 3 years ago

jaybo commented 3 years ago

Is your feature request related to a problem? Please describe. The most commonly used top level GeoJson container is a FeatureCollection which is just an array of type Feature. Both of these classes are currently missing from the Spatial namespace. Anyone trying to use these standard GeoJson types in Cosmos DB is currently hosed.

Describe the solution you'd like Add Feature and FeatureCollection to Spatial.

Describe alternatives you've considered Firebase. https://developers.google.com/maps/documentation/javascript/firebase . Giving up on MSFT.

Additional context Add any other context or screenshots about the feature request here.

j82w commented 3 years ago

@bchong95 any suggestions?

bchong95 commented 3 years ago

I will try and write an object model to support deserializing / serializing Feature and FeatureCollection. Any additional querying support will require LINQ and backend integration. But you should be able to insert your data, do basic object model manipulation, and query on the geometries nested inside of the features.

bchong95 commented 3 years ago

I have this PR out here, which should remedy the situation.

https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1866