[MapProxy] Merging YAML arrays from different files
Oliver Tonnhofer
olt at omniscale.de
Wed Dec 9 00:23:20 PST 2015
Hi,
sorry for the late reply.
> On 27.11.2015, at 18:00, Piero Campalani <piero.campa at gmail.com> wrote:
> I am experiencing that MapProxy overwrites the objects of a certain class when read again from a configuration file.
>
> That is: it is not possible to define a first set of sources A in file f.yaml and a second set of sources B from file g.yaml, and have MapProxy to serve both sets (A U B).
>
> Is that right?
It should work for sources, but not for layers.
YAML dictionaries are merged together, but lists are overwritten.
```
sources:
a: ….
```
and
```
base: X
sources:
b: …
```
becomes
```
sources:
a: …
b: …
```
But
```
layers:
- name: a …
```
and
```
base: X
layers:
- name: b …
```
becomes
```
layers:
- name: b …
```
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