[Tilecache] Mapserver example
James McManus
jmpmcmanus at yahoo.com
Tue Jan 22 13:54:33 EST 2008
In doc/README.txt there are two URL Visit examples. I'm able to get the second URL to work:
http://www.piedmontgeographic.com/cgi-bin/tilecache/tilecache.py/1.0.0/basemap/0/0/0.png
but when I try the first URL I get:
http://www.piedmontgeographic.com/cgi-bin/tilecache/tilecache.py?LAYERS=basemap&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-79.55334892, 35.50717788, -78.22326740, 36.26503708&WIDTH=256&HIGHT=256
An error occurred: can't find resolution index for 0.005196. Available resolutions are:
[0.00274658203125, 0.001373291015625, 0.0006866455078125, 0.00034332275390625, 0.000171661376953125, 8.58306884765625e-05, 4.291534423828125e-05, 2.1457672119140625e-05, 1.0728836059570312e-05, 5.3644180297851562e-06]
I am using the MapServer example, in doc/EXAMPLE.txt, in my tilecache.cfg. That example does not include "resolutions", so why am I getting this message? Could it be WMS setting? In my mapfile I have the projection defined as:
PROJECTION
"init=epsg:4326"
END
in tilecache.cfg I have it defined as srs=EPSG:4326. Is this correct? In each Layer I have basemap defined as:
METADATA
"wms_title" "basemap"
"wms_srs" "epsg:4326"
END
Is this correct. When I installed mapserver I specified --with-wmsclient, and also updated my python mapscript. I have a 64 bit machine, so my mapscripts are in /usr/lib64/python2.5/site-packages/. Do you know if this would cause a conflict?
Jim
I have provided further background information below.
Below is my info in tilecache.cfg:
[basemap]
type=MapServerLayer
layers=basemap
mapfile=/var/www/html/mapdata/rdubsmll.map
extension=png
bbox=-79.55334892, 35.50717788, -78.22326740, 36.26503708
debug=on
I can run the same mapfile through openlayers (without tilecache), with out setting maxResolution or resolutions, and it will show my data at a global resolution. I have also tried setting resolution in tilecache.cfg, but I get the same error message. I even have used the resolutions from the error output, which in openlayers produce expected results. I'm running mod_python, so when I make changes to my tilecache.cfg, I restart my server. I have tried numerous variations and I always get the same result.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20080122/dff92ebc/attachment.html
More information about the Tilecache
mailing list