[MapProxy] 2 Problems with meta_size in 0.9

Oliver Tonnhofer olt at omniscale.de
Fri Oct 15 08:43:33 EDT 2010


On 15.10.2010, at 10:56, Holger Schiebold wrote:
> First Problem: I try to setup in 0.9rc1 meta_size to a value like [2, 2] in the cache section of mapproxy.yaml but that has not the expected affect in smaller requests to the original wms. It seems to me that everytime [4, 4] as the default value is used. So i have to set the tile_size to 192, 192 in my case because this special wms we try to cache is only able to deliver up to 1600x1200.

Thanks for pointing me to that issue. I was unsure where to put the the options for meta_size/meta_buffer and I put them to the grids section at first, but changed them later to the cache section. What I missed was to move the global options from grid to cache. I fixed that now and updated the snapshot at http://mapproxy.org/static/rel/MapProxy-0.9.0.dev-20101015.tar.gz

So you can now configure the meta_size/meta_buffer for each cache and also in the globals.cache section::


cache:
  mycache:
     meta_size: [4, 4]
     sources: [xxx]

globals:
  cache:
     # set new default
     meta_size: [6, 6]
     meta_buffer: 200

> Second : I can not seed with the original grid.py. I get following error :
>  File "/opt/janus/pyvenv/mapproxy_dbwk2/lib/python2.6/site-packages/mapproxy/grid.py", line 779, in _meta_size
>    return min(self.meta_size[0], grid_size[0]), min(self.meta_size[1], grid_size[1])
> TypeError: 'instancemethod' object is unsubscriptable


That's the issue I mentioned to Andreas. It is already fixed.

Regards,
Oliver

-- 
Oliver Tonnhofer <olt at omniscale.de>
Omniscale - Dominik Helle, Oliver Tonnhofer GbR
Nadorster Str. 60, 26123 Oldenburg
Tel: +49(0)441/9392774-2 (Fax: 9)



More information about the MapProxy mailing list