GIS Proxy
OpenLayers needs a Proxy for some functions (e.g. GeoRSS, WFS) due to Javascript cross-domain security:
Options to start from:
- Rewrite the OpenLayers example as a Web2Py controller function: http://trac.openlayers.org/browser/trunk/openlayers/examples/proxy.cgi
- Port the Django HTTP Proxy: http://pypi.python.org/pypi/django-http-proxy/
We should then make it's list of allowed hosts configurable via the Map Service Catalogue (done transparently in the background whenever needed).
Potentially this could be useful for other modules as well.
Status
Basic Proxy Done:
- http://groups.google.com/group/web2py/browse_thread/thread/cd03ff899a8ad5b5
- http://gist.github.com/284772
ToDo
- Control 'AllowedHosts' programmatically
- i.e. all layers defined which need this (WFS, MGRS, etc) should add their host to the allowedHosts list
- Add support for Caching layers
Last modified
14 years ago
Last modified on 06/08/10 07:09:15
Note:
See TracWiki
for help on using the wiki.