[MapProxy] IO Error
Travis Kirstine
traviskirstine at gmail.com
Mon Apr 28 10:13:46 PDT 2014
I have mapproxy v1.5 set up using multiple TMS as source with each source
having a polygon shapefile as a coverage. I then use a cache to assemble
the source TMS together with storage disabled. I've noticed that when I
make a request for one of the caches outside of the defined boundary
MapProxy will generate an IO error:
Am I doing something wrong or is this related to the fix - "catch IOErrors
when PIL/Pillow can't identify image file"
Thanks
2014-04-28 13:00:43 [7465] [ERROR] Error handling request
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/gunicorn/workers/async.py", line
45, in handle
self.handle_request(listener, req, client, addr)
File "/usr/lib/python2.6/site-packages/gunicorn/workers/async.py", line
93, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/lib/python2.6/site-packages/mapproxy/wsgiapp.py", line 181, in
__call__
return resp(environ, start_response)
File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.6/site-packages/mapproxy/util/__init__.py", line
42, in local_base_config
yield
File "/usr/lib/python2.6/site-packages/mapproxy/wsgiapp.py", line 181, in
__call__
return resp(environ, start_response)
File "/usr/lib/python2.6/site-packages/mapproxy/response.py", line 151,
in __call__
self.response.seek(0, 2) # to EOF
ValueError: I/O operation on closed file
#######################################################
caches:
ORTHO2006:
grids: [spherical_mercator]
sources: [foo1_tms, foo2_tms]
meta_buffer: 0
meta_size: [1,1]
format: image/png
disable_storage: true
sources:
foo1_tms:
type: tile
url: '
http://localhost/mapcache_fbstiles/tms/1.0.0/foo1@gmaps/%(tms_path)s.xxx'
grid: spherical_mercator
transparent: true
on_error:
other:
response: transparent
cache: false
404:
response: transparent
cache: false
coverage:
datasource:
'/home/caches/src/boundaries/web_mercator/foo1_boundary_epsg3857.shp'
srs: EPSG:3857
foo2_tms:
type: tile
url: '
http://localhost/mapcache_fbstiles/tms/1.0.0/foo2@gmaps/%(tms_path)s.xxx'
grid: spherical_mercator
transparent: true
on_error:
other:
response: transparent
cache: false
404:
response: transparent
cache: false
coverage:
datasource:
'/home/caches/src/boundaries/web_mercator/foo2_boundary_epsg3857.shp'
srs: EPSG:3857
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20140428/5ac6c41f/attachment.html>
More information about the MapProxy
mailing list