[MapProxy] Caching a TMS server returning missing or empty tiles
Holger Schiebold
hschiebold at codematix.de
Thu Feb 2 09:28:43 EST 2012
Hello Jean-Claude,
i had the same problem 2 weeks ago. I modified the wms.py in
mapproxy/service to not display these errors, but missing tiles will be
requested again next time.
def _render_capture_source_errors ......
if render_layers and not rendered:
errors = '\n'.join(errors)
# raise RequestError('Could not get retrieve any
sources:\n'+errors, request=self.request)
# if errors:
# layer_merger.add(message_image('\n'.join(errors),
self.query.size,
# image_opts=ImageOptions(transparent=True)))
Regards,
Holger
Am 31.01.2012 13:14, schrieb Jean-Claude Repetto:
> Hello,
>
> I'm trying to use MapProxy to cache a TMS server. Sometimes, when the
> tile is empty, the server returns a http error 404 (Not found). Some
> TMS servers return a http error 204 (No content).
>
> Example :
> http://toolserver.org/tiles/bicycle/16/34333/22936.png -> OK
> http://toolserver.org/tiles/bicycle/16/34333/22935.png -> 404
>
> Is it possible to configure MapProxy so that missing (404) or empty
> (204) tiles are replaced by a default tile (generally a white tile, a
> black tile, or a transparent tile) ?
>
> Thanks,
> Jean-Claude
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapproxy
>
--
Holger Schiebold
____________________
codematix GmbH
Felsbachstrasse 5/7
D-07745 Jena
Tel. +49 (3641) 3038-34
www.codematix.de
More information about the MapProxy
mailing list