<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" 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=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@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:0in;
        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:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I&#8217;m trying to use MapProxy as a TMS client, producing tiles as a WMS service.&nbsp; That is, it reads tiles from another TMS service and combines them into a larger WMS image.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Unfortunately I get the following error when making a WMS request:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&lt;ServiceException&gt;Could not get retrieve any sources:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>tile size of cache and tile source do not match: (256, 256) != (1114, 679)&lt;/ServiceException&gt;<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>The request looks like this:<o:p></o:p></p><p class=MsoNormal>http://mapproxy/service?LAYERS=ortho_2008&amp;REQUEST=GetMap&amp;FORMAT=image/jpeg&amp;WIDTH=1114&amp;HEIGHT=679&amp;BBOX=662764.77,4884158.7,663495.62,4884604&amp;SRS=EPSG:26917&amp;VERSION=1.1.1&amp;STYLES=&amp;SERVICE=WMS<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Here&#8217;s the relevant portion of the mapproxy config file:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-left:.5in'>services:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp; demo:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp; wms:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; srs: ['EPSG:4326', 'EPSG:900913', 'EPSG:3785', 'EPSG:26917']<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; image_formats: ['image/jpeg', 'image/png']<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; md:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title: WMS Proxy<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-left:.5in'>layers:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp; - name: ortho_2008<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; title: Orthos 2008<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; sources: [ortho2008tms]<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-left:.5in'>caches:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp; # No caches are used<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-left:.5in'>sources:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp; ortho2008tms:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; type: tile<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; url: http://tileserver/tms/1.0.0/%(layer)s_cache@googlemaps_grid_1/%(z)s/%(x)s/%(y)s.jpg<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; origin: sw<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; grid: google1<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-left:.5in'>grids:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp; google1:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; srs: 'EPSG:3785'<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; res_factor: 2<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; num_levels: 25<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; bbox: [-20037508, -20037508, 20037508, 20037508]<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; bbox_srs: 'EPSG:3785'<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; origin: ul<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&nbsp;&nbsp;&nbsp; tile_size: [256,256]<o:p></o:p></p></div></body></html>