[MapProxy] cascading a tile service with space in url

Travis Kirstine traviskirstine at gmail.com
Fri Jun 4 05:55:16 PDT 2021


Does escaping the percentage work with another percent work?

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

See the doc

https://mapproxy.org/docs/latest/configuration_examples.html#create-wms-from-existing-tile-server

Note

You need to escape percent signs (%) in the URL by repeating them (%%).



On Fri, 4 Jun 2021 at 08:39, LionelB <lionel.bargeot at gmail.com> wrote:

> Hello
> I would like to cascade this service
> https://wxs.ign.fr/beta/geoportail/wmts
> It works fine except for one layer/style :
>
>
> 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
> vecteur&
> The problem is the space in STYLEs description : STYLES=PCI vecteur
>
> Directly in
> 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
> works fine
> But it doesn't work in my yaml config file, mapproxy crashes : TypeError:
> not enough arguments for format string
>
> I've already tried to escape space
> &#x20;
> \u0020
> without success.
>
> Many thanks
> Lionel
>
>
>
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapproxy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20210604/b0042d8d/attachment.html>


More information about the MapProxy mailing list