[MapProxy] Unicode support in layer names?
Anders Sparre Jakobsen
ansj at hofor.dk
Thu Mar 12 00:36:26 PDT 2015
Hello List
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
The Ø have been translated into \xd8. I have attempted to save mapproxy.yaml with ansi, utf8 and utf8-signature encodings, this does not seem to have an effect.
Since this is an external wms source, it is not possible to rename it.
How can I make this work?
I have experimented a bit and it turns out Mapproxy is prevented from starting when using the character character in the name and sources options, but not in the Title.
Best regards,
Anders
More information about the MapProxy
mailing list