[Tilecache] Tilecache error

R. Ortner reinhard.ortner at edu.fh-kaernten.ac.at
Tue Jan 15 09:14:09 EST 2008


sorry, wrong index.html excerpt! thats the correct one:

function init(){
            map = new OpenLayers.Map( $('map'), {'maxResolution': 360/512});
            layer = new OpenLayers.Layer.WMS( "Gemeinden",
                    "tilecache/tilecache.cgi?", {layers: 'Gemeinden',
format: 'image/png' } );

but this part should not important yet because I called the wms directly via
a getMap as u see below




R. Ortner wrote:
> 
> 
> I´ve changed the tilecache.cfg to: 
> [Gemeinden]
> type=MapServer
> layers=Gemeinden
> mapfile=/usr/share/ka-map-1.0-20070205/htdocs/geoland_test.map
> 
> The Index.html to:
> function init(){
>             map = new OpenLayers.Map( $('map'), {'maxResolution':
> 360/512});
>             layer = new OpenLayers.Layer.WMS( "VMap0",
>                     "tilecache.cgi?", {layers: 'basic', format:
> 'image/png' } );
>             map.addLayer(layer);
> 
> So that I use my own service to test tilecache.
> 
> 
> 
> and the error message in the browser when calling:
> http://172.21.18.45/tilecache/tilecache.cgi?LAYERS=Gemeinden&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-180,-90,0,90&WIDTH=256&HEIGHT=256
> 
> 
> An error occurred: No module named mapscript
>   File "/var/www/tilecache/TileCache/Service.py", line 264, in cgiHandler
>     format, image = service.dispatchRequest( params, path_info,
> req_method, host )
>   File "/var/www/tilecache/TileCache/Service.py", line 182, in
> dispatchRequest
>     return self.renderTile(tile, params.has_key('FORCE'))
>   File "/var/www/tilecache/TileCache/Service.py", line 119, in renderTile
>     data = layer.render(tile)
>   File "/var/www/tilecache/TileCache/Layer.py", line 258, in render
>     return self.renderTile(tile)
>   File "/var/www/tilecache/TileCache/Layers/MapServer.py", line 42, in
> renderTile
>     wms = self.get_map(tile)
>   File "/var/www/tilecache/TileCache/Layers/MapServer.py", line 14, in
> get_map
>     import mapscript
> 
> 
> 
> (I use Slackware Linux, and there are no other security measures I know
> of)
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Tilecache-error-tp14837854p14840011.html
Sent from the TileCache mailing list archive at Nabble.com.




More information about the Tilecache mailing list