summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-06-14 20:52:37 +0200
committerClaude Paroz <claude@2xlibre.net>2014-06-14 20:54:48 +0200
commitec2f0417364050aed3e8c2aa1948915d08c39514 (patch)
tree0c7c6be552cd6bb27a77b5c1d0e2c84bdb79ae9c /docs
parent4b922b809413eb9e9d59be0c3b41d0cedefbeb29 (diff)
[1.7.x] Complemented dwithin docs about using geographic geometries
Refs #22830. Thanks django@gfairchild.com for the suggestion. Backport of c281831a5c from master.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/gis/geoquerysets.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/ref/contrib/gis/geoquerysets.txt b/docs/ref/contrib/gis/geoquerysets.txt
index 957a0497af..dd2dfe8efc 100644
--- a/docs/ref/contrib/gis/geoquerysets.txt
+++ b/docs/ref/contrib/gis/geoquerysets.txt
@@ -613,8 +613,11 @@ SpatiaLite ``Distance(poly, geom) <= 5``
dwithin
-------
-Returns models where the distance to the geometry field from the
-lookup geometry are within the given distance from one another.
+Returns models where the distance to the geometry field from the lookup
+geometry are within the given distance from one another. Note that you can only
+provide :class:`~django.contrib.gis.measure.Distance` objects if the targeted
+geometries are in a projected system. For geographic geometries, you should use
+units of the geometry field (e.g. degrees for ``WGS84``) .
Example::