UI Sandbox - Investigate alternatives for hosting UtfGrids
Bug #1089276 reported by
Ben Wyss
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
Medium
|
Ben Wyss |
Bug Description
Investigate alternatives for hosting UtfGrids
Changed in openquake: | |
status: | New → Confirmed |
Changed in openquake: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
I have created a Django-MBTiles and a Python-MBtiles server to host MBtiles. Both were easy to set up and seem to work well. The only issue is that they both only seem to server MBtiles in {z}/{x}/{y}.png format. This is suitable when one does not need to have JSON or JSONP interactivity with the tileset. benwyss. com/2012/ 12/11/setting- up-tilestream- on-mac- osx-ubuntu- 12-04/ )
I also installed TileStream (see documentation for Mac OSX and Ubuntu 12.04: http://
TileStream servers tiles sets in both {z}/{x}/{y}.png and JSON format.
TileStream also has a --host flag so TileStream will only responds to requests on hosts that it recognizes. We can pass a JSON config file with the --config option that will contain a lost of hosts that are allowed. In production it might make sense to have a tile server on say :8000 which responds only to localhost and then have Apache act as a front end.