Created
May 15, 2011 08:47
-
-
Save sakti/972979 to your computer and use it in GitHub Desktop.
my tilecache cfg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for MC TileCache | |
# TileCache can load Layers or Caches from anywhere in sys.path. If you | |
# prefer to load from somewhere which is *not* on sys.path, you can use | |
# the path configuration paramter to set a comma-seperated list of | |
# filesystem paths which you want prepended to sys.path. | |
#[tilecache_options] | |
#path=/home/you | |
# Some TileCache options are controlled by metadata. One example is the | |
# crossdomain_sites option, which allows you to add sites which are then | |
# included in a crossdomain.xml file served from the root of the TileCache | |
#[metadata] | |
#crossdomain_sites=openstreetmap.org,openaerialmap.org | |
# [cache] section examples: (mandatory!) | |
# | |
# Disk: | |
# [cache] | |
# type=Disk (works out of the box) | |
# base=<full path to cache directory> | |
# | |
# Memcached: | |
# [cache] | |
# type=Memcached (you'll need memcache.py and memcached running!) | |
# servers=192.168.1.1:11211 | |
# | |
# Amazon S3: | |
# [cache] | |
# type=AWSS3 | |
# access_key=your_access_key | |
# secret_access_key=your_secret_access_key | |
[cache] | |
type=Disk | |
base=/wms/cache | |
# [layername] -- all other sections are named layers | |
# | |
# type={MapServerLayer,WMSLayer} | |
# *** if you want to use MapServerLayer, you *must* have Python mapscript | |
# installed and available *** | |
# | |
# mapfile=<full path to map file> | |
# url=<full URL of WMS> | |
# layers=<layer>[,<layer2>,<layer3>,...] | |
# *** optional iff layername if what | |
# your data source calls the layer ** | |
# extension={png,jpeg,gif} *** defaults to "png" *** | |
# size=256,256 *** defaults to 256x256 *** | |
# bbox=-180.0,-90.0,180.0,90.0 *** defaults to world in lon/lat *** | |
# srs=EPSG:4326 *** defaults to EPSG:4326 *** | |
# levels=20 *** defaults to 20 zoom levels *** | |
# resolutions=0.1,0.05,0.025,... *** defaults to global profile *** | |
# metaTile=true *** metatiling off by default | |
# requires python-imaging *** | |
# metaSize=5,5 *** size of metatile in tiles | |
# defaults to 5 x 5 *** | |
# metaBuffer=10 *** size of metatile buffer in px *** | |
# mime_type=image/png *** by default, the mime type is image/extension *** | |
# *** but you may want to set extension=png8 for *** | |
# *** GeoServer WMS, and this lets you set the *** | |
# *** mime_type seperately. *** | |
# The following is a demonstration of a layer which would be generated | |
# according to the 'Google projection'. This uses the standard values for | |
# a spherical mercator projection for maxextent, maxresolution, units | |
# and srs. | |
# [google-tiles] | |
# type=WMS | |
# url=http://localhost/cgi-bin/mapserv?map=/mapdata/world.map | |
# layers=world | |
# spherical_mercator=true | |
# Standard MapServer layer configuration. | |
# [vmap0] | |
# type=MapServer | |
# layers=vmap0 | |
# mapfile=/var/www/vmap0.map | |
# Rendering OpenStreetMap data with Mapnik; should use metaTiling to | |
# avoid labels across tile boundaries | |
# [osm] | |
# type=Mapnik | |
# mapfile=/home/user/osm-mapnik/osm.xml | |
# spherical_mercator=true | |
# tms_type=google | |
# metatile=yes | |
[__all__] | |
type=WMSLayer | |
url=http://localhost/fcgi-bin/wms | |
extension=png | |
layers=__all__ | |
resolutions=0.703125, 0.3515625, 0.17578125, 0.087890625, 0.0439453125, 0.02197265625, 0.010986328125, 0.0054931640625, 0.00274658203125, 0.001373291015625, 0.0006866455078125, 0.00034332275390625, 0.000171661376953125, 8.58306884765625e-05, 4.291534423828125e-05, 2.1457672119140625e-05, 1.0728836059570312e-05, 5.3644180297851562e-06, 2.6822090148925781e-06, 1.3411045074462891e-06, 0.000001 | |
extent_type=loose | |
metaTile=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment