summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-06 07:55:00 -0500
committerGitHub <noreply@github.com>2017-01-06 07:55:00 -0500
commitad7f3c0b7baad3d2b46bebc4809e90d4853bc3c6 (patch)
tree8b74bfe550c81dd6b3d8a43c9dcfbc2c20e09243 /docs/ref
parent72be3152d77cd87c90f70a0c365ae7752804a86c (diff)
Refs #24688, #27497 -- Corrected docs: distance's 'spheroid' option isn't PostGIS specific.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/gis/geoquerysets.txt15
1 files changed, 10 insertions, 5 deletions
diff --git a/docs/ref/contrib/gis/geoquerysets.txt b/docs/ref/contrib/gis/geoquerysets.txt
index cd8e8dabb1..99bc4afbe4 100644
--- a/docs/ref/contrib/gis/geoquerysets.txt
+++ b/docs/ref/contrib/gis/geoquerysets.txt
@@ -596,11 +596,12 @@ and a distance value (either a number in units of the field, a
<ref/models/expressions>`). To pass a band index to the lookup, use a 3-tuple
where the second entry is the band index.
-With PostGIS, on every distance lookup but :lookup:`dwithin`, an optional
-element, ``'spheroid'``, may be included to tell GeoDjango to use the more
-accurate spheroid distance calculation functions on fields with a geodetic
-coordinate system (e.g., ``ST_Distance_Spheroid`` would be used instead of
-``ST_Distance_Sphere``). The simpler ``ST_Distance`` function is used with
+On every distance lookup except :lookup:`dwithin`, an optional element,
+``'spheroid'``, may be included to use the more accurate spheroid distance
+calculation functions on fields with a geodetic coordinate system.
+
+On PostgreSQL, the ``'spheroid'`` option uses ``ST_Distance_Spheroid`` instead
+of ``ST_Distance_Sphere``. The simpler ``ST_Distance`` function is used with
projected coordinate systems. Rasters are converted to geometries for spheroid
based lookups.
@@ -608,6 +609,10 @@ based lookups.
The ability to pass an expression as the distance value was added.
+.. versionadded:: 1.11
+
+ Support for the ``'spheroid'`` option on SQLite was added.
+
.. fieldlookup:: distance_gt
``distance_gt``