[Tilecache] How to rename tilecache.cfg and tilecache.cgi

Guillaume Sueur no-reply at neogeo-online.net
Tue Mar 31 07:56:41 EDT 2009


Hi,

Interesting hint, I didn't know about that !

Thanks !

Guillaume

Frédéric Junod a écrit :
> Hi,
> 
> tilecache searches for files named tilecache.cfg in the current directory, in
> the parent directory and in /etc (in that order). The current directory is
> relative to tilecache.cgi.
> 
> So no, you can't rename the config file.
> 
> But you can save some space by using the [DEFAULT] section: for example, if all
> you layers have the same src, bbox and extension, you can do something like:
> -------------
> [cache]
> type=Disk
> base=/path/to/cache/
> 
> [DEFAULT]
> srs=EPSG:21781
> bbox=1,2,3,4
> extension=jpeg
> 
> [a]
> type=...
> 
> [b]
> extension=png
> 
> [c]
> --------------
> 
> layers a, b and c src, bbox and extension will "inherit" from DEFAULT. Except
> for b extension.
> 
> Works for all the properties, this is a standard python feature, see:
> http://docs.python.org/library/configparser.html
> 
> fredj
> 
> Le Tue, 31 Mar 2009 13:02:24 +0200,
> "tschobber tschöbbi" <tschobber at gmx.at> a écrit :
> 
>> Hi tilecache users,
>>
>> is it possible to rename the tilecache.cfg and the tilecache.cgi and to put
>> it somewhere else than the /etc/ directory? Because I'd like to have a own
>> cfg file for each application/layer because with one single .cfg file I would
>> have more than 50 layers and that would be very confusing.
>>
>> I hope you can help me.
>>
>> Thanks + best regards!
> 
> 



More information about the Tilecache mailing list