<div>Dear all,</div><div><br></div><div>I'm new to the list, first of all, I would like to congratulate the team of MapProxy. I think have several interesting features.</div><div><br></div><div>Just to use that feature, I want to ask for help because I have doubts about </div>
<div>configuring MapProxy.</div><div><br></div><div>I'm working on a project based on OpenLayers, which makes requests WMS (GetMap) according to a certain extent and some resolutions.</div><div><br></div><div>Below you have a sample definition:</div>
<div><br></div><div><div><b><i><script type="text/javascript"></i></b></div><div><b><i>    var map;</i></b></div><div><b><i>    function init(){</i></b></div><div><b><i>        OpenLayers.Util.onImageLoadErrorColor = "transparent";</i></b></div>
<div><b><i>        map = new OpenLayers.Map('map', {</i></b></div><div><b><i><span class="Apple-tab-span" style="white-space:pre">              </span>  resolutions: [76.43702827, 38.21851414, 19.10925707, 9.554628534, 4.777314267,2.388657133, 1.194328567, 0.597164283, 0.298582142, 0.140047909, 0.084028745,0.028009582],</i></b></div>
<div><b><i>          maxExtent: new OpenLayers.Bounds(414222.0, 4567961.0, 434063.0, 4583763.0),</i></b></div><div><b><i>          projection: new OpenLayers.Projection("EPSG:23031")</i></b></div><div><b><i>        });</i></b></div>
<div><b><i>        var layer = new OpenLayers.Layer.WMS( "WMS SAMPLE",</i></b></div><div><b><i>            "<a href="http://192.168.0.152/mapproxy/service">http://192.168.0.152/mapproxy/service</a>?",</i></b></div>
<div><b><i>            {layers: "</i></b><b><i>WMS SAMPLE</i></b><b><i>", format: "image/png", srs:"EPSG:23031",</i></b></div><div><b><i>             exceptions: "application/vnd.ogc.se_inimage"},</i></b></div>
<div><b><i>            {singleTile: false, isBaseLayer: true} );</i></b></div><div><b><i><br></i></b></div><div><b><i>        map.addLayer(layer);</i></b></div><div><b><i><span class="Apple-tab-span" style="white-space:pre">          </span>var centre=[424160,4576735]</i></b></div>
<div><b><i><span class="Apple-tab-span" style="white-space:pre">            </span>//map.zoomTo(3);</i></b></div><div><b><i><span class="Apple-tab-span" style="white-space:pre">               </span>map.setCenter(centre,2);</i></b></div><div><b><i>    }</i></b></div>
<div><b><i></script></i></b></div></div><div><br></div><div>This extension is the same, exactly,  with the extension and resolutions that are defined in the MapProxy (mapproxy.yaml). Below my grid configuration:</div>
<div><br></div><div><b><i>UTM31N:<br>    origin: 'nw'<br>    srs: 'EPSG:23031'<br>    bbox: 
[414222,4567961,434063,4583763]<br>    bbox_srs: 'EPSG:23031'<br>    res: 
[76.437028270,38.218514140,19.109257070,9.554628534,4.777314267,2.388657133,1.194328567,0.597164283,0.298582142,0.140047909,0.084028745,0.028009582]<br>    
#align_resolutions_with: GLOBAL_MERCATOR</i></b></div><div><br></div><div>But if I see the images that are requested and the images cached in MapProxy, I can see that the extensions are different, so the images are different.</div>
<div><br></div><div>I want to avoid Mapproxy should render images together, I thought the same extension and same resolutions mappropxy should generate some tiles are exactly alike, but the result is not what I expected</div>
<div><br></div><div>I guess this makes more work to MapProxy (bonding, resampling ...)</div><div><br></div><div>My goal is that OL requests exactly match the MapProxy cache. Someone can help me?</div><div><br></div><div>Also, just tell you that I prefer to use WMS service instead of WMTS or similar. Is one of the requirements of the project.</div>
<div>All information would be welcome.</div><div>Thanks in advance,</div><div><br></div><div>javier</div>