[Tilecache] Help with installing tilecache on IIS

Linda Rawson linda.rawson at gmail.com
Sat Sep 8 18:28:12 EDT 2007


 Here ya go

# Configuration for MC TileCache

# [cache] section (mandatory!)

# type=DiskCache (works out of the box)

# base=<full path to cache directory>

# *or*

# type=MemoryCache (you'll need memcache.py and memcached running!)

# servers=192.168.1.1:11211

[cache]

type=DiskCache

base=C:\Inetpub\wwwroot\demo\tmp

# [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> *** only applies to MapServerLayer ***

# url=<full URL of WMS> *** only applies to WMSLayer ***

# 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 ***

#[vmap0]

#type=MapServerLayer

#layers=vmap0

#mapfile=/var/www/vmap0.map

[basic]

type=WMSLayer

url=http://labs.metacarta.com/wms/vmap0

extension=png

Linda
On 9/8/07, Christopher Schmidt <crschmidt at metacarta.com> wrote:
>
> On Sat, Sep 08, 2007 at 04:01:03PM -0600, Linda Rawson wrote:
> > I don't have firefox.  My customer wants only IE but I could download it
> I
> > guess.
>
> Yeah, Firefox would only be useful for debugging -- once you get it
> working it won't matter at all.
>
> > Someone else suggested that I change it to tilecache.py and then try and
> run
> > it.
> >
> > I got a little farther.
> >
> > Traceback (most recent call last):
> >   File "C:\Inetpub\wwwroot\demo\tilecache-1.8.1\tilecache.py", line 4,
> in
> > <module>
> >     svc = Service.load("C:\Inetpub\wwwroot\demo\tilecache-
> > 1.8.1\tilecache.cfg")
> >   File "C:\Inetpub\wwwroot\demo\tilecache-1.8.1\TileCache\Service.py",
> line
> > 346, in _load
> >     cache = cls.loadFromSection(config, "cache", Cache)
> >   File "C:\Inetpub\wwwroot\demo\tilecache-1.8.1\TileCache\Service.py",
> line
> > 326, in _loadFromSection
> >     type  = config.get(section, "type")
> >   File "C:\Python25\lib\ConfigParser.py", line 511, in get
> >     raise NoSectionError(section)
> > NoSectionError: No section: 'cache'
> >
> > Do these errors look familiar to you?  I have a 'cache' section but it
> > cannot find it.
>
> Weird. Can you send a copy of your tilecache.cfg to the list? (Leaving
> just the basic layer in is fine -- the important part is to see if it
> somehow got mangled.) It's possible that line endings could be a factor
> here: I haven't ever used Python on Windows, so I'm not sure.
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20070908/a9eb0ea0/attachment.html


More information about the Tilecache mailing list