[MapProxy] Unicode support in layer names?
Oliver Tonnhofer
olt at omniscale.de
Mon Mar 16 07:19:21 PDT 2015
Hi,
> On 12.03.2015, at 08:36, Anders Sparre Jakobsen <ansj at hofor.dk> wrote:
> I have a working Mapproxy 1.6.0 installation on Windows serving several WMS layers. I am now tasked with adding an extra WMS-layer which contain the non-english character Ø (Unicode: U+00D8, Html: Ø).
> I have defined the layer in Mapproxy.yaml like this:
>
> layers:
> - name: Other-objects
> title: Other objects
> sources: ['wms_trans:Øvrige_objekter']
>
>
> When starting Mapproxy it quits immediately with the following information in the log:
>
> 2015-03-11 09:42:30,322 - INFO - mapproxy.config - reading: c:\mapproxy\mapproxy.yaml
> 2015-03-11 09:42:30,338 - WARNING - mapproxy.config - u'wms_trans:\xd8vrige_objekter' in layers[3].sources[0] not of type str
> 2015-03-11 09:42:30,338 - CRITICAL - mapproxy.config - invalid configuration
Source names are required to be basic strings and so it warns when you use unicode chars in the tagged source name.
Does it work when you specify the layer in the source definition?
layers:
- name: Other-objects
title: Other objects
sources: ['wms_trans']
sources:
wms_trans:
req:
layers: Øvrige_objekter
url: ...
Regards,
Oliver
--
Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.com
OpenStreetMap WMS and tile services | http://maps.omniscale.com
More information about the MapProxy
mailing list