[Tilecache] How about another try?

Gregor Mosheh gregor at hostgis.com
Wed Aug 22 08:34:40 EDT 2007


Hi, all. After my previous failures at getting TC to work properly, I've 
been asked to try again. It's not going so well, and I'm hoping you 
could help uncover my problem. I have a map that works well (albeit 
slowly) using Mapserver as a WMS server. But switch over to TC and it fails.

Here's the test URL from the readme file, showing the entire city properly:
http://69.59.158.13/tilecache/tilecache.cgi?LAYERS=basemap&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=80.186577,12.966434,80.308174,13.163116&WIDTH=256&HEIGHT=256

But, nothing else will work.

The map URL:
    http://69.59.158.13/map.php
    Yeah, nothing at all shows.
An example URL from my webserver's logfile:
http://69.59.158.13/tilecache/tilecache.cgi?LAYERS=basemap&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=79.585007%2C12.758228%2C79.804737%2C12.977958&WIDTH=286&HEIGHT=286

This is TC 1.9 RC3. Here's the tilecache.cfg file:
    http://69.59.158.13/tilecache/tilecache.cfg

These 2 URLs have JavaScript which is applicable here:
    http://69.59.158.13/js/settings.php
    http://69.59.158.13/js/init.js


The settings match between the OL app and the tilecache.cfg but perhaps 
I'm misunderstanding the math.

1. A max extent is set in settings.php (which is loaded as JavaScript)

2. The initializeMap() function calculates maxres as being the full 
extent's width or height (whichever is larger) divided by 256.

3. Thus, this bbox:
    80.186577, 12.966434, 80.308174, 13.163116
    Gives me this maxres:
    0.0007682890625000036

I know that there's some simple fact that I'm missing that will make 
this all make sense...

-- 
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
  only if you can restore." - AMANDA



More information about the Tilecache mailing list