Main categories of OpenStreetBrowser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
5.2 KiB

  1. type: "overpass"
  2. query:
  3. 15: |
  4. (
  5. nwr[historic];
  6. nwr[tourism~'^(attraction|artwork)$'];
  7. nwr[heritage];
  8. nwr[amenity~'^(fountain|arts_centre|place_of_worship|theatre)$'];
  9. )
  10. feature:
  11. pre: |
  12. {% set color = 'red' %}
  13. {% set str = 'No image, wikimedia_commons or wikidata' %}
  14. {% if tags.wikidata %}
  15. {% set color = 'blue' %}
  16. {% set str = 'has wikidata tag' %}
  17. {% set wikidata = tags.wikidata|wikidataEntity %}
  18. {% if wikidata.claims.P18|length == 0 %}
  19. {% set color = '#007fff' %}
  20. {% set str = 'has wikidata tag, but wikidata object does not have an image' %}
  21. {% endif %}
  22. {% if wikidata.claims.P31[0].mainsnak.datavalue.value.id in ['Q5'] %}
  23. {% set color = 'magenta' %}
  24. {% set str = "wikidata points to a human, should most likely be 'subject:wikidata'" %}
  25. {% endif %}
  26. {% elseif tags.wikipedia %}
  27. {% set color = '#af00ff' %}
  28. {% set str = 'wikipedia tag found without corresponding wikidata tag' %}
  29. {% elseif tags.wikimedia_commons or tags.image %}
  30. {% set color = 'cyan' %}
  31. {% set str = tags.wikimedia_commons ? 'has wikimedia_commons tag' : 'has image tag' %}
  32. {% endif %}
  33. body: |
  34. {{ str }}
  35. style:
  36. color: |
  37. {{ color }}
  38. description: |
  39. {% if tags.historic and tags.historic != 'yes' %}
  40. {{ tagTransList('historic', tags.historic) }}
  41. {% if tags.historic == 'memorial' and tags.memorial %}
  42. ({{ tagTransList('memorial', tags.memorial) }})
  43. {% endif %}
  44. {% elseif tags.tourism %}
  45. {{ tagTransList('tourism', tags.tourism) }}
  46. {% elseif tags.amenity %}
  47. {{ tagTrans('amenity', tags.amenity) }}
  48. {% elseif tags.heritage %}
  49. {{ keyTrans('heritage') }}
  50. {% endif %}
  51. markerSymbol: "{{ markerPointer({ fillColor: color })|raw }}"
  52. listMarkerSymbol: "{{ markerCircle({ fillColor: color })|raw }}"
  53. filter:
  54. type:
  55. name: "{{ trans('filter:type') }}"
  56. show_default: "true"
  57. query: "nwr[{{ value }}]"
  58. type: "select"
  59. key: "tourism"
  60. values: |
  61. <option value='tourism-artwork' query='nwr[tourism=artwork]'>{{ tagTrans('tourism', 'artwork') }}</option>
  62. <option value='tourism-attraction' query='nwr[tourism=attraction]'>{{ tagTrans('tourism', 'attraction') }}</option>
  63. <option value='historic-memorial' query='nwr[historic=memorial]'>{{ tagTrans('historic', 'memorial') }}</option>
  64. <option value='historic-monument' query='nwr[historic=monument]'>{{ tagTrans('historic', 'monument') }}</option>
  65. <option value='historic-wayside_cross' query='nwr[historic=wayside_cross]'>{{ tagTrans('historic', 'wayside_cross') }}</option>
  66. <option value='historic-wayside_shrine' query='nwr[historic=wayside_shrine]'>{{ tagTrans('historic', 'wayside_shrine') }}</option>
  67. <option value='historic-building' query='nwr[historic=building]'>{{ tagTrans('historic', 'building') }}</option>
  68. <option value='historic-other' query='nwr[historic][historic!~"^(memorial|monument|wayside_cross|wayside_shrine|building)$"]'>{{ keyTrans('historic') }} {{ trans('other') }}</option>
  69. <option value='fountain' query='nwr[amenity=fountain]'>{{ tagTrans('amenity', 'fountain') }}</option>
  70. <option value='arts_centre' query='nwr[amenity=arts_centre]'>{{ tagTrans('amenity', 'arts_centre') }}</option>
  71. <option value='heritage' query='nwr[heritage]'>{{ keyTrans('heritage') }}</option>
  72. op: "has"
  73. info: |
  74. <table>
  75. <tr>
  76. <td>
  77. {{ markerCircle({ fillColor: 'red' })|raw }}
  78. </td>
  79. <td>No image, wikimedia_commons or wikidata</td>
  80. </tr>
  81. <tr>
  82. <td>
  83. {{ markerCircle({ fillColor: 'magenta' })|raw }}
  84. </td>
  85. <td>wikidata tag points to a human, should most likely be 'subject:wikidata'</td>
  86. </tr>
  87. <tr>
  88. <td>
  89. {{ markerCircle({ fillColor: '#af00ff' })|raw }}
  90. </td>
  91. <td>wikipedia tag found without corresponding wikidata tag</td>
  92. </tr>
  93. <tr>
  94. <td>
  95. {{ markerCircle({ fillColor: 'cyan' })|raw }}
  96. </td>
  97. <td>image or wikimedia_commons tag but no wikidata</td>
  98. </tr>
  99. <tr>
  100. <td>
  101. {{ markerCircle({ fillColor: '#007fff' })|raw }}
  102. </td>
  103. <td>has wikidata tag, but wikidata object does not have an image</td>
  104. </tr>
  105. <tr>
  106. <td>
  107. {{ markerCircle({ fillColor: 'blue' })|raw }}
  108. </td>
  109. <td>has wikidata tag</td>
  110. </tr>
  111. </table>
  112. This category lists artwork, memorials, historic and heritage protected objects. These should have an <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:image">image</a> or <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:wikimedia_commons">wikimedia_commons</a> tag, or (even better) a <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:wikidata">wikidata</a> tag pointing to the object's entry.<br>
  113. Memorials erroneously often have a wikidata (and wikipedia) tag of the person/event, which should be changed to <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:wikidata#Secondary_Wikidata_links">subject:wikidata</a> resp. <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:wikipedia#Secondary_Wikipedia_links">subject:wikipedia</a>".