#12410: add support for St_Line_Locate_Point to geodjango postgis backend
---------------------------------------------+------------------------------
Reporter: IanWard | Owner: jbronn
Status: assigned | Milestone: 1.3
Component: GIS | Version: SVN
Resolution: | Keywords:
St_Line_Locate_Point
Stage: Design decision needed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Comment (by wardi):
This might be a better API for LineLocatePoint (and possibly other GIS
QuerySet methods)
{{{
from django.contrib.gis.db import LineLocatePoint
#...
points_of_interest = points_of_interest.annotate(
line_locate_point=LineLocatePoint('my_point_field', along_path))
points_of_interest = points_of_interest.order_by('line_locate_point')
}}}
The current GIS methods behave like annotate, so why not use a similar
interface?
--
Ticket URL: <http://code.djangoproject.com/ticket/12410#comment:3>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.