Opened 15 years ago

Closed 12 years ago

#11948 closed New feature (fixed)

Linear referencing for Django

Reported by: novalis Owned by: nobody
Component: GIS Version: dev
Severity: Normal Keywords:
Cc: novalis, ckarrie@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I created some patches to GEOS to do linear referencing. If you have a linestring (a bus route, say), and a point (a gps reading), and you want to find out where along the linestring the point is, you need linear referencing.

Here is a patch for Django which allows GeoDjango apps to use the new linear referencing code, when it is available. For now, you'll need SVN GEOS to test, but eventually version 3.2.0 of GEOS will be released and you'll be able to use the release version.

Attachments (3)

contrib-gis-linearref.patch (5.5 KB ) - added by novalis 15 years ago.
08_contrib-gis-linearref.patch (5.7 KB ) - added by anonymous 13 years ago.
refresh patch for 1.3
11948-3.diff (7.9 KB ) - added by Claude Paroz 12 years ago.
Docs included

Download all attachments as: .zip

Change History (13)

by novalis, 15 years ago

Attachment: contrib-gis-linearref.patch added

comment:1 by Thejaswi Puthraya, 15 years ago

Component: UncategorizedGIS

comment:2 by Russell Keith-Magee, 15 years ago

Triage Stage: UnreviewedDesign decision needed

comment:3 by emka, 14 years ago

What is missing to get this into GeoDjango? I would really like to have it in the default installation.

comment:4 by Julien Phalip, 14 years ago

Severity: Normal
Type: New feature

comment:5 by anonymous, 13 years ago

Easy pickings: unset
UI/UX: unset

I needed to use linearref feature from my application and so patched my django code. The patch targets an older version of django, so a little refresh was needed, but now it works nicely.

I attach the patch used for building a 1.3 for ubuntu maverick (http://ppa.launchpad.net/chris-lea/python-django/ubuntu)

by anonymous, 13 years ago

refresh patch for 1.3

comment:6 by Christian Karrié, 13 years ago

Cc: ckarrie@… added

comment:7 by Aymeric Augustin, 13 years ago

Needs documentation: set
Triage Stage: Design decision neededAccepted

This looks useful.

comment:8 by anonymous, 13 years ago

What's the status on this patch? Do I need to apply it myself for latest django?

by Claude Paroz, 12 years ago

Attachment: 11948-3.diff added

Docs included

comment:9 by Claude Paroz, 12 years ago

Needs documentation: unset

In this latest patch, I moved some things around and added the docs. Would appreciate a review (also for the wording of the docs).

The patch is also available as a pull request: https://github.com/django/django/pull/168

comment:10 by Claude Paroz <claude@…>, 12 years ago

Resolution: fixed
Status: newclosed

In 2f6e00a840176f95c836f25a41cc1a7d31941ba5:

Fixed #11948 -- Added interpolate and project linear referencing methods

Thanks novalis for the report and the initial patch, and Anssi
Kääriäinen and Justin Bronn for the review.

Note: See TracTickets for help on using tickets.
Back to Top