-
Type:
Improvement
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: 1.7.2
-
Component/s: Geo
-
None
-
Environment:software platform
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
I would like to request support for three dimensional (3d) geo spacial indexing. This can have many useful application, I'm sure you can imagine. Normally to specify geo you would do something like:
h.axis :
{ x : 50 , y : 30 }}
Which you could then index. You could then do the same again
v.axis :
{ x : 50 , z : 30 }}
and
db.collection.ensureIndex(
{ loc : "2d" })
and index that as well. then you would just use the 'z' from the second location for the z-axis. You would for the most part need to do this in your application code to get the needed results for 3d. But if 3d were added we could simply
axis : { loc :
{ x : 50 , y : 30 , z : 10}}
and run
db.collection.ensureIndex(
{ loc : "3d" })
For one, this could be extremely useful for game based apps but could easily be used for any kind of location based app.