<div dir="ltr"><div></div><div><div class="gmail-J0lOec"><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span>I had not read this good documentation enough</span></span></span></div><div class="gmail-J0lOec"><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span><br></span></span></span></div><div class="gmail-J0lOec"><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span>thanks a lot !</span></span></span></div><div class="gmail-J0lOec"><span class="gmail-VIiyi" lang="en"><span class="gmail-JLqJ4b gmail-ChMk0b"><span>Lionel</span></span></span><span class="gmail-zEswK"></span></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 4 juin 2021 à 14:55, Travis Kirstine <<a href="mailto:traviskirstine@gmail.com">traviskirstine@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Does escaping the percentage work with another percent work?</div><div><br></div><div><a href="https://wxs.ign.fr/beta/geoportail/wmts?service=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=CADASTRALPARCELS.PARCELLAIRE_EXPRESS&TILEMATRIXSET=PM&TILEMATRIX=%(z)s&TILEROW=%(y)s&TILECOL=%(x)s&FORMAT=image/png&STYLES=PCI%%20vecteu" target="_blank">https://wxs.ign.fr/beta/geoportail/wmts?service=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=CADASTRALPARCELS.PARCELLAIRE_EXPRESS&TILEMATRIXSET=PM&TILEMATRIX=%(z)s&TILEROW=%(y)s&TILECOL=%(x)s&FORMAT=image/png&STYLES=PCI%%20vecteu</a><br></div><div><br></div><div>See the doc</div><div><br></div><div><a href="https://mapproxy.org/docs/latest/configuration_examples.html#create-wms-from-existing-tile-server" target="_blank">https://mapproxy.org/docs/latest/configuration_examples.html#create-wms-from-existing-tile-server</a><br></div><div><br></div><div><p style="box-sizing:border-box;margin:0px 10px 0px 0px;font-weight:bold;color:rgb(49,112,143);font-family:Verdana,sans-serif;font-size:14px">Note</p><p style="box-sizing:border-box;margin:5px 0px 0px;color:rgb(49,112,143);font-family:Verdana,sans-serif;font-size:14px">You need to escape percent signs (<code style="box-sizing:border-box;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10.5px;padding:0px;color:rgb(58,55,64);background:inherit;border-radius:4px"><span style="box-sizing:border-box">%</span></code>) in the URL by repeating them (<code style="box-sizing:border-box;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10.5px;padding:0px;color:rgb(58,55,64);background:inherit;border-radius:4px"><span style="box-sizing:border-box">%%</span></code>).</p></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 4 Jun 2021 at 08:39, LionelB <<a href="mailto:lionel.bargeot@gmail.com" target="_blank">lionel.bargeot@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello</div><div>I would like to cascade this service <a href="https://wxs.ign.fr/beta/geoportail/wmts" target="_blank">https://wxs.ign.fr/beta/geoportail/wmts</a></div><div>It works fine except for one layer/style :<br></div><div><br></div><div><a href="https://wxs.ign.fr/beta/geoportail/wmts?service=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=CADASTRALPARCELS.PARCELLAIRE_EXPRESS&TILEMATRIXSET=PM&TILEMATRIX=%(z)s&TILEROW=%(y)s&TILECOL=%(x)s&FORMAT=image/png&STYLES=PCI" target="_blank">https://wxs.ign.fr/beta/geoportail/wmts?service=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=CADASTRALPARCELS.PARCELLAIRE_EXPRESS&TILEMATRIXSET=PM&TILEMATRIX=%(z)s&TILEROW=%(y)s&TILECOL=%(x)s&FORMAT=image/png&STYLES=PCI</a> vecteur&</div><div></div><div>The problem is the space in STYLEs description : STYLES=PCI vecteur</div><div><br></div><div>Directly in <a href="https://wxs.ign.fr/beta/geoportail/wmts?service=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=CADASTRALPARCELS.PARCELLAIRE_EXPRESS&TILEMATRIXSET=PM&TILEMATRIX=15&TILEROW=11464&TILECOL=16202&STYLE=PCI%20vecteur&FORMAT=image/png" target="_blank">https://wxs.ign.fr/beta/geoportail/wmts?service=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=CADASTRALPARCELS.PARCELLAIRE_EXPRESS&TILEMATRIXSET=PM&TILEMATRIX=15&TILEROW=11464&TILECOL=16202&STYLE=PCI%20vecteur&FORMAT=image/png</a></div><div>works fine</div><div>But it doesn't work in my yaml config file, mapproxy crashes : TypeError: not enough arguments for format string</div><div><br></div><div>I've already tried to escape space <br></div><div>&#x20;</div><div>\u0020</div><div>without success. <br></div><div><br></div><div>Many thanks</div><div>Lionel<br></div><div><br></div><div><br></div><div><br></div></div>
_______________________________________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org" target="_blank">MapProxy@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapproxy" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapproxy</a><br>
</blockquote></div>
</blockquote></div>