jmpmcmanus at yahoo.com
Tue Jan 22 00:18:38 EST 2008
I would like to add that I did not start out using resolutions and extent_type in my URL, but by the time I sent the email I was in the "throwing everything and the kitchen sink mode". This problem has me stumped and extremely frustrated. I use the same resolutions in OpenLayers, without tilecache, and it works. I can also run seed.py and it works. But I am having problems accessing it using WMS. I understand the tilecache actually uses the EPSG code, so I put that information in both tilecache.cfg and my mapfile.
I also have played around with mod_python, having it on and off, but no difference. I currently have it off because I do not like to restart my server everytime I change the tilecache.cfg. However, I can execute python scripts from the cgi directory.
It is clear that I am missing something here, but have gone over the stuff in the docs directory and the mailing list numerous times and have not had success finding he missing link.
I removed the resolutions and extent_type from the URL and change size
to the default of 256. I also stop and restarted my server. I am still
getting the same messge. Here is my basemap conf:
bbox=-79.55334892, 35.50717788, -78.22326740, 36.26503708
I got the resolutions by converting scale values, I got from a mapserver
app, that used the same mapfile, using
James McManus wrote:
> Christopher Schmidt wrote:
>> On Mon, Jan 21, 2008 at 06:45:24PM -0800, James McManus wrote:
>>> I am trying to execute the following URL:
>>> http://www.piedmontgeographic.com/cgi-bin/tilecache/tilecache.py?LAYERS=basemap&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&EXTENT_TYPE=loose&BBOX=-79.55334892, 35.50717788, -78.22326740, 36.26503708&RESOLUTIONS=0.002213114009982047,0.001106557404326176,0.0005532787162146718,0.0002766397670557272,0.00013832010135122262,0.0000691605672361935,0.000034580698835992964,0.000017290349417996482,0.000008645270269927052,0.000004322795340797067&WIDTH=602&HIGHT=593
>>> I get the following output:
>> You're doing it wrong.
>> 1. You don't set resolutions in the URL, you set them in the config
>> 2. Your image size is 602,593: this seems unlikely to be the tilesize
>> you've picked in your TileCache config.
>> 3. extent_type=loose also goes in the config, not in your URL.
>>> It does not seem to be using the resolutions I set in the URL. Is the
>>> away I can override the standard resolutions and use the ones in my
>>> My tilecache.cfg has the same bbox and resolutions as my URL.
>> No, it doesn't. If you think it does, something is wrong. Paste your
>> config for the 'basemap' section to the list, if you want someone to
>> look at it. If you're using mod_python, and you changed your config,
>> restart Apache.
> Tilecache mailing list
> Tilecache at openlayers.org
More information about the Tilecache