An open API service indexing awesome lists of open source software.

https://github.com/simon04/whoots.js

A WMS to TMS proxy
https://github.com/simon04/whoots.js

Last synced: about 1 year ago
JSON representation

A WMS to TMS proxy

Awesome Lists containing this project

README

          

WhooTS.js
=========

WhooTS.js is a WMS to TMS proxy, i.e., it rewrites TMS requests into WMS requests, and so enables the usage of WMS servers in applications that only support TMS.

Based on [WhooTS](https://github.com/timwaters/whoots) written in Ruby.

Install & run
-------

```
npm install
node app
```

Usage
-----
* `http://localhost:3000/tms/{z}/{x}/{y}/{layer}/{wms}`
* optional GET parameters with default values (directly used for WMS request):
* * `format=image/png`
* * `version=1.1.1`
* * `srs=EPGS:900913` (e.g., `srs=EPGS:3857`, see notes below)
* * `layers=`
* * `map=`
* * `styles=`

Notes & limitations
-------------------
* Redirects only and does not reproject. Thus, make sure that the WMS server supports `EPSG:900913` (or aliases, then use `?srs={srs}`)
* No caching

License
-------
GNU Public License