This commit is contained in:
parent
72be3152d7
commit
ad7f3c0b7b
|
@ -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
|
<ref/models/expressions>`). To pass a band index to the lookup, use a 3-tuple
|
||||||
where the second entry is the band index.
|
where the second entry is the band index.
|
||||||
|
|
||||||
With PostGIS, on every distance lookup but :lookup:`dwithin`, an optional
|
On every distance lookup except :lookup:`dwithin`, an optional element,
|
||||||
element, ``'spheroid'``, may be included to tell GeoDjango to use the more
|
``'spheroid'``, may be included to use the more accurate spheroid distance
|
||||||
accurate spheroid distance calculation functions on fields with a geodetic
|
calculation functions on fields with a geodetic coordinate system.
|
||||||
coordinate system (e.g., ``ST_Distance_Spheroid`` would be used instead of
|
|
||||||
``ST_Distance_Sphere``). The simpler ``ST_Distance`` function is used with
|
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
|
projected coordinate systems. Rasters are converted to geometries for spheroid
|
||||||
based lookups.
|
based lookups.
|
||||||
|
|
||||||
|
@ -608,6 +609,10 @@ based lookups.
|
||||||
|
|
||||||
The ability to pass an expression as the distance value was added.
|
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
|
.. fieldlookup:: distance_gt
|
||||||
|
|
||||||
``distance_gt``
|
``distance_gt``
|
||||||
|
|
Loading…
Reference in New Issue