[MapProxy] Max file size for mapproxy.yaml
Pratt, Jerald R (IS)
jerald.pratt at ngc.com
Wed Sep 14 15:01:31 PDT 2016
Sorry, just figure out that in this case, the problem was that my bbox in the grid had the same y cords.
If I see the potential size problem again I'll post a new post with the related error message.
Jerald
From: MapProxy [mailto:mapproxy-bounces at lists.osgeo.org] On Behalf Of Pratt, Jerald R (IS)
Sent: Wednesday, September 14, 2016 2:24 PM
To: mapproxy at lists.osgeo.org
Subject: EXT :[MapProxy] Max file size for mapproxy.yaml
Is there a max file size for mapproxy.yaml? Is there a way to test/check to see if the file size is causing mapproxy to crash?
I have scripts that creates entries in my mapproxy.yaml file. All works well but at some point as the file size grows I start to get errors when the file is being read. I have been using the demo page to verify that my map layers are working. When things go bad, I get a 500 error in my browser. Looking in the my httpd ssl_error_log file, I see the follow error messages:
[Wed Sep 14 21:23:19 2016] [error] [client 10.22.222.141] func.__memoize_cache[key] = func(*args)
[Wed Sep 14 21:23:19 2016] [error] [client 10.22.222.141] File "/usr/lib/python2.6/site-packages/MapProxy-1.5.0-py2.6.egg/mapproxy/config/loader.py", line 287, in tile_grid
[Wed Sep 14 21:23:19 2016] [error] [client 10.22.222.141] origin=conf.get('origin')
[Wed Sep 14 21:23:19 2016] [error] [client 10.22.222.141] File "/usr/lib/python2.6/site-packages/MapProxy-1.5.0-py2.6.egg/mapproxy/grid.py", line 130, in tile_grid
[Wed Sep 14 21:23:19 2016] [error] [client 10.22.222.141] origin=origin, name=name)
[Wed Sep 14 21:23:19 2016] [error] [client 10.22.222.141] File "/usr/lib/python2.6/site-packages/MapProxy-1.5.0-py2.6.egg/mapproxy/grid.py", line 311, in __init__
[Wed Sep 14 21:23:19 2016] [error] [client 10.22.222.141] self.grid_sizes = self._calc_grids()
[Wed Sep 14 21:23:19 2016] [error] [client 10.22.222.141] File "/usr/lib/python2.6/site-packages/MapProxy-1.5.0-py2.6.egg/mapproxy/grid.py", line 318, in _calc_grids
[Wed Sep 14 21:23:19 2016] [error] [client 10.22.222.141] x = max(math.ceil(width // res / self.tile_size[0]), 1)
[Wed Sep 14 21:23:19 2016] [error] [client 10.22.222.141] ZeroDivisionError: float divmod()
Jerald
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20160914/17c8f646/attachment.html>
More information about the MapProxy
mailing list