[Tilecache] Help with installing tilecache on IIS
Linda_Rawson
linda.rawson at gmail.com
Mon Oct 15 04:30:28 EDT 2007
I just wanted to update this post. I have repeated the installation of
tilecache on IIS multiple times. Here are the steps that I took.
1. Download and install Python
2. * Follow "Using Python Scripts with IIS" to setup Python CGI for IIS.
http://support.microsoft.com/kb/276494
3. Not only add .py to the ISAPI extensions but also .cgi. I added the
following:
C:\Python25\python.exe -u "%s" "%s"
Limit to GET,HEAD,POST
4. Add the EXACT same line to the web extensions and click allow. Be
really careful if you decide to edit metabase.xml. I fried mine and had to
rebuild it. Make a backup before you do anything with this file. You can
enter the right values without editing the file.
5. Change the base=C:\Inetpub\wwwroot\demo\tmp tag in the .cfg file.
Linda Rawson
Linda_Rawson wrote:
>
> 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
>>
>
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
>
--
View this message in context: http://www.nabble.com/Help-with-installing-tilecache-on-IIS-tf4406860.html#a13208646
Sent from the TileCache mailing list archive at Nabble.com.
More information about the Tilecache
mailing list