Skip to content

Commit dc2f504

Browse files
committed
Fix spatial lookup links
1 parent 51569fc commit dc2f504

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

docs/ref/contrib/gis.rst

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,26 @@ Each model field stores data as :doc:`GeoJSON objects
1818
All fields have a :doc:`2dsphere index
1919
<manual:core/indexes/index-types/geospatial/2dsphere>` created on them.
2020

21-
The following :doc:`GIS QuerySet APIs <django:ref/contrib/gis/geoquerysets>` are supported:
22-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.contains`
23-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.intersects`
24-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.disjoint`
25-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.within`
26-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.distance_gt`
27-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.distance_gte`
28-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.distance_lt`
29-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.distance_lte`
30-
- :meth:`~django.contrib.gis.db.models.query.GeoQuerySet.dwithin`
21+
The following :ref:`spatial lookups <django:spatial-lookups>` are supported:
22+
23+
- :lookup:`contains <gis-contains>`
24+
- :lookup:`disjoint`
25+
- :lookup:`distance_gt`
26+
- :lookup:`distance_gte`
27+
- :lookup:`distance_lt`
28+
- :lookup:`distance_lte`
29+
- :lookup:`dwithin`
30+
- :lookup:`intersects`
31+
- :lookup:`within`
3132

3233
You can also use any of the :ref:`geospatial query operators
3334
<manual:geospatial-query-operators>` or the :ref:`geospatial aggregation
3435
pipeline stage <geospatial-aggregation>` in :meth:`.raw_aggregate` queries.
3536

37+
.. versionadded:: 6.0.1
38+
39+
Support for spatial lookups was added.
40+
3641
Configuration
3742
=============
3843

@@ -50,5 +55,5 @@ Limitations
5055
(:attr:`BaseSpatialField.srid
5156
<django.contrib.gis.db.models.BaseSpatialField.srid>`)
5257
besides `4326 (WGS84) <https://spatialreference.org/ref/epsg/4326/>`_.
53-
- QuerySet APIs do not support subqueries or expressions.
58+
- Spatial lookups don't support subqueries or expressions.
5459
- :class:`~django.contrib.gis.db.models.RasterField` isn't supported.

0 commit comments

Comments
 (0)