[Tilecache] IIS and tilecache url

Matt M mattm8305 at yahoo.com
Fri Feb 29 12:30:22 EST 2008

I got this working. Apparently IIS has a different idea of what path info is.

For the url:

IIS saw the path_info to be:

TileCache expected it to be:

To hack around this I added the following to TMS.py in TileCache/Services/TMS.py

path = path.replace("tilecache/tilecache.py", "")


----- Original Message ----
From: Matt M <mattm8305 at yahoo.com>
To: Christopher Schmidt <crschmidt at metacarta.com>
Cc: tilecache at openlayers.org
Sent: Friday, February 29, 2008 11:31:49 AM
Subject: Re: [Tilecache] IIS and tilecache url

 I  ran  the  following  to  get  the  tilecache  demo  to  to  work

adsutil  set  w3svc/AllowPathInfoForScriptMappings  True
adsutil  set  w3svc/1/AllowPathInfoForScriptMappings  Truehowever  it  doesn't  seem  to  get  the  TMS  request  to  work.

my  url  looks  like 


and  i  get  the  error:
An  error  occurred:  The  requested  layer  (tilecache)  does  not  exist.-Matt

-----  Original  Message  ----
From:  Christopher  Schmidt  <crschmidt at metacarta.com>
To:  Matt  M  <mattm8305 at yahoo.com>
Cc:  tilecache at openlayers.org
Sent:  Friday,  February  29,  2008  11:20:22  AM
Subject:  Re:  [Tilecache]  IIS  and  tilecache  url

On  Fri,  Feb  29,  2008  at  08:06:15AM  -0800,  Matt  M  wrote:
>  Hey  guys,
>  I  successfully  got  the  tilecache  demo  to  run  fine  in  IIS.
>  I  have  one  problem  however.  I  don't  want  to  use  the  bounding  box  params  for  my  tile  query  but  instead  something  like  this.
>  http:/localhost/tilecache.cgi/1.0.0/vmap0/0/0/0.png
>  Is  is  possible  to  do  this  with  IIS?  Could  I  do  something  similar  to  &X=0&Y=0&Z=0  in  the  querystring?   I  just  want  to  use  x  y  z  and  not  bbox.

When  using  Tilecache  with  TMS  style  requests,  you  will  need  to  change
your  IIS  configuration  to  allow  PATH_INFO  to  be  delivered  to  the  CGI
script.   http://support.microsoft.com/kb/q184320/  provides  information
on  this  topic.  If  you  do  not  do  this,  you  will  get  an  error  message

  "The  requested  layer  (tilecache.cgi)  does  not  exist."
"""  --  Readme.txt

Christopher  Schmidt

Be  a  better  friend,  newshound,  and 
know-it-all  with  Yahoo!  Mobile.   Try  it  now.   http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

Tilecache  mailing  list
Tilecache at openlayers.org

Never miss a thing.  Make Yahoo your home page. 

More information about the Tilecache mailing list