#22830: GeoDjango dwithin errors when using django.contrib.gis.measure.D
--------------------------+--------------------------------------
Reporter: django@… | Owner: nobody
Type: Bug | Status: closed
Component: GIS | Version: 1.6
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------+--------------------------------------
Comment (by django@…):
Replying to [comment:3 claudep]:
> Would something like that be clear enough for you?
>
> {{{
> diff --git a/docs/ref/contrib/gis/geoquerysets.txt
b/docs/ref/contrib/gis/geoquerysets.txt
> index 957a049..dd2dfe8 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::
> }}}
Yes, that would be excellent!
--
Ticket URL: <https://code.djangoproject.com/ticket/22830#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/079.892464622825df18b20c8d49eb575f68%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.