<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’m trying to use MapProxy as a TMS client, producing tiles as a WMS service. 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> </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'><ServiceException>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)</ServiceException><o:p></o:p></p><p class=MsoNormal><o:p> </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&REQUEST=GetMap&FORMAT=image/jpeg&WIDTH=1114&HEIGHT=679&BBOX=662764.77,4884158.7,663495.62,4884604&SRS=EPSG:26917&VERSION=1.1.1&STYLES=&SERVICE=WMS<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here’s the relevant portion of the mapproxy config file:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'>services:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> demo:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> wms:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> srs: ['EPSG:4326', 'EPSG:900913', 'EPSG:3785', 'EPSG:26917']<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> image_formats: ['image/jpeg', 'image/png']<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> md:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> title: WMS Proxy<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'>layers:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> - name: ortho_2008<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> title: Orthos 2008<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> sources: [ortho2008tms]<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'>caches:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> # No caches are used<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'>sources:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> ortho2008tms:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> type: tile<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> 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'> origin: sw<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> grid: google1<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'>grids:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> google1:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> srs: 'EPSG:3785'<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> res_factor: 2<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> num_levels: 25<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> bbox: [-20037508, -20037508, 20037508, 20037508]<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> bbox_srs: 'EPSG:3785'<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> origin: ul<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'> tile_size: [256,256]<o:p></o:p></p></div></body></html>