[MapProxy] Problems with UMN Mapserver 6.0
Stefan Schantz
SSchantz at BfS.de
Wed May 18 11:21:12 EDT 2011
Hi,
My Mapproxy installation (MapProxy Version 1.0.1) works fine with the
UMN 5.6.6. But if I change my UMN version to 6.0, I get an error
(IndexError: string index out of range, see paster.log).
The same request in a browser (see client.log) works. So it seems, that
the Mapserver 6.0 works fine.
Any idea?
Thanks!
Best regards
Stefan Schantz
client.log
"GET
/cgi-bin/mapserv_60?styles=&map=%2Fdata%2Fmapserver%2Fmap%2Fde_vector.map&format=image%2Fpng&he
ight=1184&bbox=4375783.02058,3194235.21746,4408486.70921,3226938.90609&layers=world_color_relief,color_relief,hillshade,bundeslaender,landkre
ise,siedlung,autobahn,bundesstrassen,landstrassen,gewaesser,odl_station&service=WMS&width=1184&request=GetMap&srs=EPSG%3A3035&version=1.1.1
H
TTP/1.1" 200 - "-" ""
paster.log:
Traceback (most recent call last):
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/wsgiapp.py",
line 146, in __call__
resp = self.handlers[handler_name].handle(req)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/service/base.py",
line 31, in handle
return handler(parsed_req)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/service/wms.py",
line 113, in map
renderer.render(merger)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/service/wms.py",
line 359, in render
layer_merger)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/util/async.py",
line 205, in _single_call
result = func(*args)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/service/wms.py",
line 399, in _render_layer
layer_img = layer.get_map(self.query)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/layer.py",
line 211, in get_map
return layer.get_map(query)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/layer.py",
line 269, in get_map
tiled_image = self._tiled_image(query)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/layer.py",
line 303, in _tiled_image
tile_collection =
self.tile_manager.load_tile_coords(affected_tile_coords)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/cache/tile.py",
line 88, in load_tile_coords
created_tiles = creator.create_tiles(uncached_tiles)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/cache/tile.py",
line 175, in create_tiles
created_tiles = self._create_meta_tiles(meta_tiles)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/cache/tile.py",
line 238, in _create_meta_tiles
return self._create_threaded(self._create_meta_tile, meta_tiles)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/cache/tile.py",
line 191, in _create_threaded
for new_tiles in async_pool.imap(create_func, tiles):
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/util/async.py",
line 54, in _result_iter
for result in results:
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/util/async.py",
line 192, in map_each
for value in self._get_results(next_result, results, raise_exceptions):
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/util/async.py",
line 237, in _get_results
for i, value in self._fetch_results(raise_exceptions):
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/util/async.py",
line 144, in run
result = func(*args)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/cache/tile.py",
line 254, in _create_meta_tile
tile_size)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/cache/tile.py",
line 390, in split_meta_tiles
data = splitter.get_tile(crop_coord, tile_size)
File
"/opt/vpython/mapproxy/lib/python2.6/site-packages/mapproxy/image/tile.py",
line 116, in get_tile
crop = self.meta_img.crop((minx, miny, maxx, maxy))
File "/usr/lib64/python2.6/site-packages/PIL/Image.py", line 763, in crop
self.load()
File "/usr/lib64/python2.6/site-packages/PIL/ImageFile.py", line 198,
in load
s = read(self.decodermaxblock)
File "/usr/lib64/python2.6/site-packages/PIL/PngImagePlugin.py", line
391, in load_read
cid, pos, len = self.png.read()
File "/usr/lib64/python2.6/site-packages/PIL/PngImagePlugin.py", line
96, in read
len = i32(s)
File "/usr/lib64/python2.6/site-packages/PIL/PngImagePlugin.py", line
44, in i32
return ord(c[3]) + (ord(c[2])<<8) + (ord(c[1])<<16) + (ord(c[0])<<24)
IndexError: string index out of range
More information about the MapProxy
mailing list