Browse Source

construction: include railway, building, construction:*=*

heritage
parent
commit
c4bbd7d557
  1. 26
      construction.json

26
construction.json

@ -19,20 +19,36 @@
"(", "(",
"nwr[landuse~\"^(construction)$\"];", "nwr[landuse~\"^(construction)$\"];",
"nwr[highway~\"^(construction)$\"];", "nwr[highway~\"^(construction)$\"];",
"nwr[railway~\"^(construction)$\"];",
"nwr[building~\"^(construction)$\"];",
"nwr[highway~\"^(construction)$\"];",
"nwr[~\"^construction:\"~\".\"];",
")" ")"
] ]
}, },
"feature": { "feature": {
"pre": [ "pre": [
"{% set key = null %}{% set value = null %}",
"{% if tags.highway == 'construction' %}", "{% if tags.highway == 'construction' %}",
"{% set key = 'highway' %}", "{% set key = 'highway' %}",
"{% set value = tags.construction %}",
"{% elseif tags.landuse == 'construction' and tags.construction %}",
"{% set value = tags.construction|default('construction') %}",
"{% elseif tags.railway == 'construction' %}",
"{% set key = 'railway' %}",
"{% set value = tags.construction|default('construction') %}",
"{% elseif tags.building == 'construction' %}",
"{% set key = 'building' %}",
"{% set value = tags.construction|default('construction') %}",
"{% elseif tags.landuse == 'construction' %}",
"{% set key = 'landuse' %}", "{% set key = 'landuse' %}",
"{% set value = tags.construction %}",
"{% set value = tags.construction|default('construction') %}",
"{% else %}", "{% else %}",
"{% set key = 'landuse' %}",
"{% set value = tags.landuse %}",
"{% for k, v in tags %}",
"{% set m = k|matches('^construction:(.*)$') %}",
"{% if m %}",
"{% set key = m[1] %}",
"{% set value = v %}",
"{{ debug(key, value) }}",
"{% endif %}{% endfor %}",
"{% endif %}" "{% endif %}"
], ],
"description": "{{ tagTrans(key, value) }}" "description": "{{ tagTrans(key, value) }}"

Loading…
Cancel
Save