[OpenLayers-Users] How to use best use python script with Open Layers?

VictoriaH bhudspeth at edac.unm.edu
Wed Jul 30 13:48:42 PDT 2014


Thank you for the responses thus far. They have been very helpful in allowing
me to set up a web page with a request to a python script. Everything is
mostly working, however, I am having a little trouble with return the
GeoJson that is created by my Python script...

I have tried returning the json as content:text/plain, and OpenLayers throws
an error indicating that the Json is not valid, even though it validates in
a json parser. I would really like to return the Json as a file directly
from the python script. I am having trouble indicating how I do this from
the script itself (once the json is created), but I would also like to have
OpenLayers display some kind of a popup where a user can simply download the
Json file without necessarily viewing it. If anyone has code for something
like this, I would very much appreciate it...

Thanks, VickH



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-use-best-use-python-script-with-Open-Layers-tp5154011p5154278.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list