Opened 15 years ago
Closed 12 years ago
#11999 closed New feature (wontfix)
Support for Google Maps encoded geometries
Reported by: | Robert Coup | Owned by: | Robert Coup |
---|---|---|---|
Component: | GIS | Version: | |
Severity: | Normal | Keywords: | gmaps |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When displaying polygons and polylines with GMaps, performance can be massively improved by using encoded geometries. It would be great for GeoDjango to support this:
- a module to encode geometries and return a dictionary, so people can JSON-encode and send to the client, embed in templates, etc.
- use encoded geometries in GoogleGeoAdmin
Resources:
- http://code.google.com/apis/maps/documentation/polylinealgorithm.html -- official docs
- http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/ -- detailed discussion, examples, links to implementations in various languages
- http://wyattbaldwin.com/2007/04/19/google-maps-encoded-polylines/ -- Python implementation. GPLv3 licensed, and code isn't tidy.
Change History (7)
comment:1 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 15 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:4 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:7 by , 12 years ago
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
This ticket has a large scope, the problems it describes are covered by an external library, and I don't see a good reason to merge it in Django.
Note:
See TracTickets
for help on using tickets.
I've built a Python port of Mark McClure's Javascript encoder. There's also a matching C extension which has the same signature (think
cStringIO
vsStringIO
). Other upsides: clean, pythonic, BSD licensed, unit tests. :)Will be on Google Code somewhere in the next few days, or part of the gmaps-utility-library project.