========= GeoDjango ========= Django MongoDB Backend supports :doc:`GeoDjango`. Each model field stores data as :doc:`GeoJSON objects `. * :class:`~django.contrib.gis.db.models.PointField` * :class:`~django.contrib.gis.db.models.LineStringField` * :class:`~django.contrib.gis.db.models.PolygonField` * :class:`~django.contrib.gis.db.models.MultiPointField` * :class:`~django.contrib.gis.db.models.MultiLineStringField` * :class:`~django.contrib.gis.db.models.MultiPolygonField` * :class:`~django.contrib.gis.db.models.GeometryCollectionField` All fields have a :doc:`2dsphere index ` created on them. You can use any of the :ref:`geospatial query operators ` or the :ref:`geospatial aggregation pipeline stage ` in :meth:`.raw_aggregate` queries. Configuration ============= #. Install the necessary :doc:`Geospatial libraries ` (GEOS and GDAL). #. Add :mod:`django.contrib.gis` to :setting:`INSTALLED_APPS` in your settings. This is so that the ``gis`` templates can be located -- if not done, then features such as the geographic admin or KML sitemaps will not function properly. Limitations =========== - MongoDB doesn't support any spatial reference system identifiers (:attr:`BaseSpatialField.srid `) besides `4326 (WGS84) `_. - None of the :doc:`GIS QuerySet APIs ` (lookups, aggregates, and database functions) are supported. - :class:`~django.contrib.gis.db.models.RasterField` isn't supported.