<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi everyone,<br><br>I have mapproxy providing a TMS service for tiles that I store locally (on my notebook, later on a server). These tiles are pre-generated in a certain range of zoom levels, let's say 0-12. Since the source has a resolution of 100m*100m per pixel and I'd like to limit computation time and storage space, I don't want to pre-generate higher zoom levels. However, it should be possible to zoom in further. Therefore, I'm looking for a way to configurate mapproxy so that it delivers stretched images based on the pre-generated tiles whenever a higher zoom level is requested. If possible, I'd prefer to realize this in mapproxy, since the Leaflet client I'm using does not seem to support something like this natively and I can't change the client.<br><br>From the documentation, I found that the definition of a custom grid and the stretch_factor option could help. However, I tried many things and I just can't get it to work. I'd really appreciate it if someone could help me with this. You can find a minimal configuration below.<br><br>Thank you in advance,<br><br>Mario<br><br><br>Minimal configuration:<br><br>services:<br> tms: <br><br>sources:<br> corine_tile_source:<br> type: tile<br> url: file:///C:/Projects/mapserver/data/corine/%(z)s/%(x)s/%(y)s.png<br> <br>grids:<br> mygrid:<br> base: GLOBAL_MERCATOR<br> num_levels: 13<br> stretch_factor: 10.0<br> <br>caches:<br> corine_tile_source_cache:<br> sources: [corine_tile_source] <br> grids: [mygrid]<br> cache:<br> type: file<br> directory_layout: tms<br> directory: C:/Projects/mapserver/data/cache/corine<br> <br>layers:<br> - name: corine_tiles<br> title: Local Corine Tiles<br> sources: [corine_tile_source_cache]<br><br> </div></body>
</html>