Browse files

Bumped to 1.31.0 with support for layer redirects and new classes in …

…TileStache.Goodies
  • Loading branch information...
1 parent 2c6a3a2 commit f989e9530a6baedc4ff85dfeb75646f28977bfc3 @migurski migurski committed Apr 7, 2012
Showing with 21 additions and 1 deletion.
  1. +12 −0 API.html
  2. +2 −0 CHANGELOG
  3. +6 −0 TileStache/Core.py
  4. +1 −1 VERSION
View
12 API.html
@@ -702,6 +702,7 @@
"bounds": { … },
"allowed origin": …,
"maximum cache age": …,
+ "redirects": …,
"jpeg options": …,
"png options": …
}
@@ -805,6 +806,17 @@
cache such as Squid, Cloudfront, or Akamai.
</dd>
+ <dt>redirects</dt>
+ <dd>
+ An optional dictionary of per-extension HTTP redirects, treated as
+ lowercase. Useful in cases where your tile provider can support many
+ formats but you want to enforce limits to save on cache usage. If a request
+ is made for a tile with an extension in the dictionary keys, a response can
+ be generated that redirects the client to the same tile with another
+ extension. For example, use the setting <samp>{"jpg": "png"}</samp>
+ to force all requests for JPEG tiles to be redirected to PNG tiles.
+ </dd>
+
<dt>jpeg options</dt>
<dd>
An optional dictionary of JPEG creation options, passed through
View
2 CHANGELOG
@@ -1,3 +1,5 @@
+2012-04-07: 1.31.0
+- Added support for per-extension redirects in Layer configuration.
- Added new TileStache.Goodies.Provider.UtfGridComposite provider.
- Added new TileStache.Goodies.Cache.GoogleCloud cache.
- Added support for buffers around features in TileStache.Goodies.Provider.MapnikGrid.
View
6 TileStache/Core.py
@@ -58,6 +58,12 @@
of downstream caches. Causes TileStache responses to include Cache-Control
and Expires HTTP response headers. Useful when TileStache is itself hosted
behind an HTTP cache such as Squid, Cloudfront, or Akamai.
+- "redirects" is an optional dictionary of per-extension HTTP redirects,
+ treated as lowercase. Useful in cases where your tile provider can support
+ many formats but you want to enforce limits to save on cache usage.
+ If a request is made for a tile with an extension in the dictionary keys,
+ a response can be generated that redirects the client to the same tile
+ with another extension.
- "jpeg options" is an optional dictionary of JPEG creation options, passed
through to PIL: http://www.pythonware.com/library/pil/handbook/format-jpeg.htm.
- "png options" is an optional dictionary of PNG creation options, passed
View
2 VERSION
@@ -1 +1 @@
-1.30.0
+1.31.0

0 comments on commit f989e95

Please sign in to comment.