[Tilecache] Setting Content-type header in S3

Christopher Schmidt crschmidt at metacarta.com
Mon Nov 3 15:00:10 EST 2008


On Mon, Nov 03, 2008 at 11:09:18AM -0700, Bruce Rindahl wrote:
> I am storing tile in S3 but I need to set the content-type (image/png) 
> for access outside of TileCache.  I see the S3.py library has this 
> available but I can't seem to set this value in tilecache.cfg.  
> Otherwise a direct call to the S3 file gives a mime type 
> binary/octet-stream.

Tilecache's S3 cache was never well-thought out in this regard (nor are
the tiles stored in a sane file naming schema). You'll need to add this
functionality to the S3 datasource if you ant it.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list