Whoots is the tiny public wms to tms proxy
Its a simple WMS to Google/OSM Scheme TMS proxy. You can use WMS servers in applications which only use those pesky “Slippy Tiles”
You need :
- Ruby!
- Rack (gem install rack)
- Gives OSM/Google Tiles, not true TMS (maybe later)
http://example.com/tms/z/x/y/{layer}/http://path.to.wms.server
- 1
http://example.com/tms/!/!/!/2013/http://warper.geothings.net/maps/wms/2013
* - 2a. From: http://hypercube.telascience.org/cgi-bin/mapserv?map=/home/ortelius/haiti/haiti.map&request=getMap&service=wms&version=1.1.1&format=image/jpeg&srs=epsg:4326&exceptions=application/vnd.ogc.se_inimage&layers=HAITI&
* - 2b To:
http://example.com/tms/!/!/!/HAITI/http://hypercube.telascience.org/cgi-bin/mapserv?map=/home/ortelius/haiti/haiti.map
* - 2c Outputs: http://hypercube.telascience.org/cgi-bin/mapserv?bbox=-8051417.93739076,2107827.49199202,-8051265.06333419,2107980.36604859&format=image/png&service=WMS&version=1.1.1&request=GetMap&srs=EPSG:900913&width=256&height=256&layers=HAITI&map=/home/ortelius/haiti/haiti.map&styles=
- Gives OSM/Google Tiles only, so make sure the WMS server support EPSG:3857
- Doesn’t do any caching.
- See public/index.html for more examples and help!