Showing posts with label metatile. Show all posts
Showing posts with label metatile. Show all posts

Tuesday, November 06, 2012

tilecache: metatile - no module named image

if you get "No module named Image..."

you need the python imaging library

wget http://effbot.org/downloads/Imaging-1.1.6.tar.gz
python setup.py install

now gets "cannot read interlaced PNG files"

add this in your map file:
OUTPUTFORMAT
      NAME "png"
      MIMETYPE "image/png"
      DRIVER "GD/PNG"
      EXTENSION "png"
      TRANSPARENT FALSE
      FORMATOPTION "INTERLACE=OFF"
END


my tilecache.cfg contains this:
[base]
type=WMS
url=http://x.x.x.x/cgi-bin/mapserv?map=/../my.map
metaTile=true
metaSize=1,1
extent_type=loose
extension=png

Friday, July 20, 2012

tilecache: no module named image

got

An error occurred: No module named Image
  File "/usr/local/apache2/htdocs/tilecache/TileCache/Service.py", line 323, in cgiHandler
    format, image = service.dispatchRequest( params, path_info, req_method, host )
  File "/usr/local/apache2/htdocs/tilecache/TileCache/Service.py", line 208, in dispatchRequest
    return self.renderTile(tile, params.has_key('FORCE'))
  File "/usr/local/apache2/htdocs/tilecache/TileCache/Service.py", line 138, in renderTile
    data = layer.render(tile, force=force)
  File "/usr/local/apache2/htdocs/tilecache/TileCache/Layer.py", line 435, in render
    image = self.renderMetaTile(metatile, tile)
  File "/usr/local/apache2/htdocs/tilecache/TileCache/Layer.py", line 393, in renderMetaTile
    import StringIO, Image

?

try removing metaTile from your tilecache.cfg

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...