[Tilecache] resolution

James McManus jmpmcmanus at yahoo.com
Mon Jan 21 22:36:23 EST 2008


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
>    file.
> 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
>> URL? 
>>     
>
> No. 
>
>   
>> 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.
>
> Regards,
>   
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:

[basemap]
type=MapServerLayer
layers=basemap
mapfile=/var/www/html/mapdata/rdubsmll.map
extension=png
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
extent_type=loose
levels=10
srs=EPSG:4326
debug=on

I got the resolutions by converting scale values, I got from a mapserver 
app, that used the same mapfile, using 
OpenLayers.Util.getResolutionFromScale.

Jim



More information about the Tilecache mailing list