[OpenLayers-Users] Resolutions problems
Tyler Durden
tylersticky at gmail.com
Thu Jul 26 09:23:30 EDT 2007
Ok,
I've switched to WMS and maxResolution matches, but now only shows 2
tiles with this error:
An error occurred: couldn't calculate tile index for layer all from
([0.0, -90.0, 180.0, 90.0])
File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line
452, in wsgiHandler
format, image = service.dispatchRequest( fields, path_info,
req_method, host )
File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line
395, in dispatchRequest
tile = WMS(self).parse(params, path_info, host)
File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line
120, in parse
return self.getMap(param)
File "/usr/lib/python2.4/site-packages/TileCache/Service.py", line
127, in getMap
raise Exception(
My configuration:
tilecache.cfg
==========
[all]
type=MapnikLayer
mapfile=osm.xml
bbox=-12.62878,36.27686,-2.79602,43.07739
maxResolution=0.703125
levels=10
extension=png
srs=EPSG:4326
debug=on
OpenLayers
==========
var options = {maxResolution : 0.703125,
numZoomLevels : 10,
maxExtend : new OpenLayers.Bounds(-12.62878,
36.27686, -2.79602, 43.07739),
projection : "EPSG:4326",
controls : controls };
map = new OpenLayers.Map('map', options);
layer_all = new OpenLayers.Layer.WMS("all",
"http://192.168.1.160:8080/", {'layers':'all'})
map.addLayer(layer_all);
More information about the Users
mailing list