[MapProxy] New MapProxy 0.9.0rc1 release

Andreas Trawoeger atrawog at gmail.com
Thu Oct 14 20:11:39 EDT 2010


Hi Oliver!

2010/10/14 Oliver Tonnhofer <olt at omniscale.de>:
>
> On 14.10.2010, at 16:25, Andreas Trawoeger wrote:
>> Installed RC1 and it did work without any problems.
>
> Great to hear that. I found a small bug, that broke the seed tool:
> http://bitbucket.org/olt/mapproxy/changeset/c96f2418cd40
>

I think I found a regression in RC1. The following mapproxy.yaml file
does work fine in 0.9.0b2, but it doesn't work since 0.9.0rc1:

services:
    #  demo: # Only supported since 0.9.0rc1
    # needs no arguments
  tms:
    # needs no arguments
  kml:
    # needs no arguments
  wms:
    srs: ['EPSG:900913']
    image_formats: ['image/png']
    md:
      # metadata used in capabilities documents
      title: MapProxy Geoimage.at Proxy
      access_constraints:
        This service can only be used for Mapproxy testing.
        Geoimage.at access constrains prohibit cascading & bulk download.
        So be careful not to violate their terms of use.
        More info can be found at http://geoimage.at/geoimage/geodatendienste

layers:
  - osm:
      title: Omniscale OSM WMS - osm.omniscale.net
      sources: [osm_cache]

  - geoimage_sat_30m:
      title: Geoimage.at 30m Satellitenbild
      sources: [geoimage_sat_30m_cache]

caches:
  osm_cache:
    grids: [EPSG_900913]
    sources: [osm_wms]

  geoimage_sat_30m_cache:
    grids: [EPSG_900913_Austria]
    sources: [geoimage_sat_30m_wms]

sources:
  osm_wms:
    type: wms
    req:
      url: http://osm.omniscale.net/proxy/service?
      layers: osm
      transparent: true

  geoimage_sat_30m_wms:
    type: wms
    supported_srs: ['EPSG:31287']
    req:
      url: http://wms.geoimage.at/dop-1mfree/?
      layers: Satellitenbild_30m
      transparent: true

grids:
  EPSG_900913:
    srs: 'EPSG:900913'
    res_factor: sqrt2

  EPSG_900913_Austria:
    srs: 'EPSG:900913'
    res_factor: sqrt2
    bbox: [9.36, 46.33, 17.28, 49.09]
    bbox_srs: EPSG:4326

globals:
  image:
    resampling_method: bicubic


In rc1 and the current mapproxy repository version I end up with a
broken geoimage layer as soon as I try to  zoom onto Austria:

127.0.0.1 - - [15/Oct/2010:01:54:47 +0200] "GET
/service?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=517528.819446,5525816.696253,2956864.828981,6755765.427497&SRS=EPSG:900913&WIDTH=1305&HEIGHT=658&LAYERS=osm&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=true
HTTP/1.1" 200 276710 "-" "Mozilla/5.0"
2010-10-15 01:54:52,004 - INFO - 5973:mapproxy.client.http.http:_log -
wms.geoimage.at - - [15/Oct/2010:01:54:52 ] "GET
/dop-1mfree/?styles=&format=image%2Fpng&height=265&bbox=94576.626131,270029.775089,704085.782366,584246.330672&transparent=True&layers=Satellitenbild_30m&service=WMS&width=514&request=GetMap&srs=EPSG%3A31287&version=1.1.1
HTTP/1.1" 200 179627 "-" ""
Traceback (most recent call last):
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/wsgiapp.py",
line 142, in __call__
    resp = self.handlers[handler_name].handle(req)
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/service/base.py",
line 31, in handle
    return handler(parsed_req)
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/service/wms.py",
line 72, in map
    merger.add(layer.render(map_request))
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/image/__init__.py",
line 46, in add
    for l in layer:
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/service/wms.py",
line 190, in render
    yield self._render_layer(layer, query, request)
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/service/wms.py",
line 194, in _render_layer
    return layer.get_map(query)
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/layer.py",
line 193, in get_map
    query.tiled_only)
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/layer.py",
line 225, in _tiled_image
    tile_sources = [tile.source for tile in
self.tile_manager.load_tile_coords(affected_tile_coords)]
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/cache/tile.py",
line 87, in load_tile_coords
    created_tiles = self._create_tiles(uncached_tiles)
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/cache/tile.py",
line 138, in _create_tiles
    created_tiles = self._create_meta_tiles(meta_tiles)
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/cache/tile.py",
line 190, in _create_meta_tiles
    created_tiles.extend(self._create_meta_tile(meta_tile))
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/cache/tile.py",
line 199, in _create_meta_tile
    meta_tile_image = self._query_sources(query)
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/cache/tile.py",
line 176, in _query_sources
    return self.sources[0].get_map(query)
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/source/wms.py",
line 39, in get_map
    return self.client.get_map(query)
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/client/wms.py",
line 46, in get_map
    return self._get_transformed(query, format)
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/client/wms.py",
line 69, in _get_transformed
    transparent=self.request_template.params.transparent)
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/request/base.py",
line 258, in __getattr__
    return self[name]
  File "/home/code/mapproxyt/lib/python2.6/site-packages/mapproxy/request/base.py",
line 264, in __getitem__
    return self.delimiter.join(self.params.get_all(key))
TypeError: sequence item 0: expected string, bool found


cu andreas


More information about the MapProxy mailing list