<div dir="ltr"><div><div><div>Hi Andrea,<br><br></div>We do something similar using a WSGI filter in front of MapProxy. In the filter we look for DPI parameter and update the LAYERS query string parameter to the appropriate layer based on it. Details of creating a WSGI filter for MapProxy can be found here: <a href="https://mapproxy.org/docs/1.10.0/auth.html">https://mapproxy.org/docs/1.10.0/auth.html</a>. Our logic DPI logic is within the __call__ method.<br><br></div>Hope that helps,<br><br></div>Matt.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 22 September 2017 at 12:41, Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">I need to change the resolution of the map returned following the dpi parameter from the request of the gis client.</div><div dir="auto">To do this, I try to find a solution to use a different cache folder for the same layer when the dpi from the request are different.</div><div dir="auto"><br></div><div dir="auto">I try to have 2 kind of cache. One for 90 dpi and another for 300dpi.</div><div dir="auto">The layer should take from the 90 when the user do not put the dpi param or set explicitly the dpi=90.</div><div dir="auto">Otherwise the layer use the 300 dpi cache when the user request ask foto dpi=300.</div><div dir="auto"><br></div><div dir="auto">Is this allowed with mapproxy ?</div><div dir="auto"><br></div><div dir="auto">Manu THX.</div><span class="HOEnZb"><font color="#888888"><div dir="auto">Andrea Peri</div><div dir="auto"><br></div><div dir="auto"><br></div></font></span></div>
<br>______________________________<wbr>_________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org">MapProxy@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapproxy" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapproxy</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Matt Walker<br>@_walkermatt<br></div>
</div>