onthegomap / planetiler

Flexible tool to build planet-scale vector tilesets from OpenStreetMap data fast
Apache License 2.0
1.21k stars 100 forks source link

[FEATURE] Please clarify what triggers "match_key" in YAML configurations #859

Open zstadler opened 3 months ago

zstadler commented 3 months ago

The documentation for match_key in YAML configurations says:

  • match_key - string tag that triggered a match to include the feature in this layer

It is not clear to me which tag is selected when include_when is a complex boolean expression, involving nested __all__, __any__, and __not__.

Perhaps the documentation should say:

  • match_key - string tag that triggered a match to include the feature in this layer. In complex boolean expression this would be the first tag in reading order of the expression, that matches the element, ignoring all __not__ sub-expressions.