I have a set of documents each of which contain a point in 3-space stored in a MongoDB collection. MongoDB currently has Geospatial Indexes only for 2-space. Is there a way of leveraging the Geospacial Index to do similar queries on 3-space data?
相关问题
- MongoDB can not create unique sparse index (duplic
- Spring Data MongoDB - lazy access to some fields
- Finding k smallest elements in a min heap - worst-
- binary search tree path list
- Golang mongodb aggregation
相关文章
- mongodb有没有什么办法禁止读取数据的时候进行缓存
- mongodb-aggregate聚合查询分组后如何获得多字段
- mongodb error: how do I make sure that your journa
- What are the problems associated to Best First Sea
- How to track MongoDB requests from a console appli
- Coin change DP solution to keep track of coins
- Algorithm for partially filling a polygonal mesh
- Robust polygon normal calculation
You could kludge it by compressing one of the dimensions, but you would lose half your precision.
Say if they were 64 bit keys and you wanted to store three 32 bit coordinates: [(x << 32) + y, z]
Heck, you can even interleave three and store it in one key:
xxx
yyy
zzz
xyzxyzyz