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

Added in Geospatial support in a similar fashion to GeoDjango #198

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

tristeng
Copy link

Supports all types of GeoJSON fields and querying using the $geoWithin, $geoIntersects, and $near operators. Allows the developer to use the handy Django operator syntax: e.g.:
SomeModel.objects.filter(location__near=Point((0, 0)))

Requires GDAL to be installed and a recent-ish version of MongoDB (> 2.6). I've only added support for the newer 2dsphere-index supported operators.

See the tests.gis module for examples of querying

@tristeng
Copy link
Author

Hmmm...only tested this with the nonrel-1.6 branch of Django. I'll get it working for 1.5 first.

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

Successfully merging this pull request may close these issues.

1 participant