Skip to content
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

$centerSphere doesn't seem to be supported #368

Open
adevore3 opened this issue Apr 29, 2019 · 0 comments
Open

$centerSphere doesn't seem to be supported #368

adevore3 opened this issue Apr 29, 2019 · 0 comments

Comments

@adevore3
Copy link

When using fongo I can verify that data is there if I use a MultiPolygon to simulate a sphere, by building a box, but when I run the centerSphere query I get no results. I increased the radius to make sure I wasn't barely missing the location either. Below are the 2 queries.

Returns results:
db.collection.find({ "loc" : { "$geoWithin" : { "$geometry" : { "type" : "MultiPolygon" , "coordinates" : [ [ [ [ -100.576294 , 62.081173] , [ -144.09404 , 62.081173] , [ -144.09404 , 33.134853] , [ -100.576294 , 33.134853] , [ -100.576294 , 62.081173]]]]}}}}).count();
3414

Doesn't return results:
db.collection.find({ "loc" : { "$geoWithin" : { "$centerSphere" : [ [ -122.33517 , 47.608013] , 0.2526042679057209]}}}).count();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant