#12410 closed New feature (fixed)
add support for St_Line_Locate_Point to geodjango postgis backend
Reported by: | IanWard | Owned by: | Sergey Fedoseev |
---|---|---|---|
Component: | GIS | Version: | dev |
Severity: | Normal | Keywords: | St_Line_Locate_Point |
Cc: | ckesselh | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Here's a patch that adds a line_locate_point method to the GeoQuerySet class, allowing a calculation of the closest point along a LineString to a point field. The value returned is a float between 0 and 1. This is useful for estimating addresses and ordering points given a LineString reference.
Attachments (1)
Change History (15)
by , 15 years ago
Attachment: | line_locate_point.patch added |
---|
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 15 years ago
milestone: | → 1.3 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:3 by , 15 years ago
comment:4 by , 14 years ago
milestone: | 1.3 → 1.4 |
---|
comment:5 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:6 by , 13 years ago
Easy pickings: | unset |
---|---|
UI/UX: | unset |
comment:7 by , 13 years ago
Cc: | added |
---|
comment:9 by , 12 years ago
Triage Stage: | Design decision needed → Accepted |
---|
comment:10 by , 10 years ago
Needs tests: | set |
---|
comment:11 by , 9 years ago
Owner: | changed from | to
---|
Note:
See TracTickets
for help on using tickets.
This might be a better API for LineLocatePoint (and possibly other GIS QuerySet methods)
The current GIS methods behave like annotate, so why not use a similar interface?