<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=CS link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi Radim,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I think this is not possible. I quickly look at the source code (<a href="https://github.com/mapproxy/mapproxy/blob/7ade9e1af398e5408bb6f5af132755e63aeec9dc/mapproxy/source/tile.py#L45">https://github.com/mapproxy/mapproxy/blob/7ade9e1af398e5408bb6f5af132755e63aeec9dc/mapproxy/source/tile.py#L45</a> )and there is only check if requested and source tile sizes are equal. If not, exception is raised</span>. <span lang=EN-US>So there is no logic for stitching smaller tiles to larger one.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Maybe you should try to use 2 caches. One cache with standard (small) tiles and one with large tiles. Then you can try to use small tile cache as source for large tile cache. I don’t try this, its just quick idea… <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal>David <span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Odesláno z aplikace <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Pošta</a> pro Windows 10<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b><span lang=EN-US>Od: </span></b><span lang=EN-US><a href="mailto:radim.blazek@gmail.com">Radim Blazek</a><br><b>Odesláno:</b>čtvrtek 1. září 2016 13:54<br><b>Komu: </b><a href="mailto:mapproxy@lists.osgeo.org">mapproxy@lists.osgeo.org</a><br><b>Předmět: </b>[MapProxy] 512x512 tile service from 256x256 tile source<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I would like to get 512x512 tiles from a source which has 256x256<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>tiles, here is my config:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>------------------------------------------------------------------------------------------------------------------------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>services:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> tms:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> use_grid_names: true<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> srs: ['EPSG:3857']<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>layers:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> - name: osm<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> title: OSM<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> sources: [osm_cache]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>caches:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> osm_cache:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> grids: [webmercator_512]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> sources: [osm_source]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>sources:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> osm_source:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> type: tile<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> grid: webmercator<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> url: http://tile.openstreetmap.org/%(z)s/%(x)s/%(y)s.png<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>grids:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> webmercator:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> base: GLOBAL_WEBMERCATOR<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US> webmercator_512:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> base: GLOBAL_WEBMERCATOR<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> tile_size: [512, 512]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> res: [78271.516964, 39135.758482, 19567.879241, 9783.9396205 ]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>------------------------------------------------------------------------------------------------------------------------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>But this request: /tiles/osm/webmercator_512/0/0/0.png returns: "tile<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>size of cache and tile source do not match: (256, 256) != (512, 512)"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Making 512x512 tile service from WMS source or higher resolution WMS<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>service from 256x256 tile source both work.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>So what is the trick to get 512x512 tiles?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Radim<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>_______________________________________________<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>MapProxy mailing list<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>MapProxy@lists.osgeo.org<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>http://lists.osgeo.org/mailman/listinfo/mapproxy<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>