User:VicVal/Diving

From OpenStreetMap Wiki
Jump to navigation Jump to search

This page is for a mapping project related to the sport of Diving, in OSM specified as Cliff-diving. The project primarily focused on facilities in the Danish speaking part of the world, so the reminder of this page will be in Danish. If you have any enquiries, feel free to contact me or leave a note on my discussion page.

Udspring

Jeg har en interesse i hvor man kan dyrke udspring i Danmark og da jeg står overfor at skulle danne et overblik herover, så har jeg valgt at bruge vores fælles OSM projekt som database.

Først og fremmest skal vi have styr på hvor der er vand, som kan bruges til udspring.

Tags for danske svømmeanlæg

Hvis man kigger på Tag:amenity=swimming_pool og Tag:leisure=swimming_pool så er der ingen tvivl om at den sidste vinder.

Derudover kommer et eller flere sports tag, f.eks. Tag:sport=swimming. Se også artikler om DE:Schwimmbad og Bathing.

Taginfo for leisure:swimming_pool.

Overpass Turbo queries

Inspiration: Eksempler og andre eksempler.

{{key1=leisure}}
{{key2=leisure}}
{{value=swimming_pool}}
<osm-script output="json">
  <union>
    <query type="node">
      <has-kv k="{{key1}}" v="{{value}}"/>
      <bbox-query {{bbox}}/>
    </query>
    <query type="way">
      <has-kv k="{{key1}}" v="{{value}}"/>
      <bbox-query {{bbox}}/>
    </query>
    <query type="relation">
      <has-kv k="{{key1}}" v="{{value}}"/>
      <bbox-query {{bbox}}/>
    </query>
    <query type="node">
      <has-kv k="{{key2}}" v="{{value}}"/>
      <bbox-query {{bbox}}/>
    </query>
    <query type="way">
      <has-kv k="{{key2}}" v="{{value}}"/>
      <bbox-query {{bbox}}/>
    </query>
    <query type="relation">
      <has-kv k="{{key2}}" v="{{value}}"/>
      <bbox-query {{bbox}}/>
    </query>
  </union>
  <print mode="body"/>
  <recurse type="down"/>
  <print mode="skeleton"/>
</osm-script>

{{style:
/* all black */
node,way,area
{ fill-color:#000000; fill-opacity:0.4; color:#000000; opacity:0.8; width:2; }

/* power_source: outer red */
node[amenity],
way[amenity],
area[amenity]
{ color:#ff0000; }

/* generator:source: outer green */
node[leisure],
way[leisure],
area[leisure]
{ color:#00ff00; }

/* power_source & generator:source: outer yellow */
node[amenity][leisure],
way[amenity][leisure],
area[amenity][leisure]
{ color:#ffff00; }

/* generator:method: outer bigger */
node[sport],
way[sport],
area[sport]
{ width:7; }

/* generator:output: inner yellow */
node[access],
way[access],
area[access]
{ fill-color:#ffff00; }

/* power_rating: inner red */
node[access=private],
way[access=private],
area[access=private]
{ fill-color:#ff0000; }

/* generator:output*: inner green */
node[access=public],
way[access=public],
area[access=public]
{ fill-color:#00ff00; }

}}