#
# Copyright 2017-2020 Kai Pastor
#
# Based on ISOM_rules.yaml from https://github.com/sembruk/osm2xmap/ rev 3c6cdb5
#
# Copyright 2016 Semyon Yakimov
#
# This file is part of OpenOrienteering.
#
# OpenOrienteering is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpenOrienteering is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenOrienteering.  If not, see <http://www.gnu.org/licenses/>.

109    natural = ant_hill
111    natural = depression
107    natural = gully
111    natural = hollow
109    natural = knoll
109    natural = termite_mount

214    natural = bare_rock
213    natural = beach AND surface = sand
203.1  natural = cave_entrance
201    natural = cliff
213    natural = dune
203    natural = hole AND rock != no
213    natural = sand
205    natural = stone

303    natural = hole AND water = yes
312    natural = spring
301    natural = water
308    natural = wetland
310    natural = wetland AND intermittent = yes
307.1  natural = wetland AND foot = impassable

418    natural = bush
403    natural = grassland
403    natural = heath
408    natural = scrub
417    natural = tree
406    natural = wood
408    natural = wood AND (wood:age = young OR wood:age = very_young)
404    natural = wood AND wood:density = sparse
408    natural = wood AND wood:density = dense

306    waterway = ditch
305    waterway = drain
306    waterway = drain AND intermittent = yes
301    waterway = riverbank
305    waterway = stream
306    waterway = stream AND intermittent = yes

520    landuse = allotments
520    landuse = cemetery
520    landuse = commercial
# 710    landuse = construction
412    landuse = farmland
520    landuse = farmyard
406    landuse = forest
401    landuse = grass
520    landuse = industrial
# 710    landuse = landfill
403    landuse = logging
401    landuse = meadow
709    landuse = military
413    landuse = orchard
301    landuse = reservoir
# 710    landuse = quarry
213    landuse = quarry AND resource = sand
520    landuse = residential
414    landuse = vineyard

401    leisure = park
401    leisure = pitch

501.8  highway = cycleway

505.1  highway = footway

526    highway = milestone

501.19 highway = primary
501.19 highway = secondary
501.9  highway = tertiary

506    highway = path
505.1  highway = path AND (smoothness = good OR smoothness = intermediate)
506    highway = path AND (smoothness = bad OR smoothness = very_bad)
507    highway = path AND (smoothness = horrible OR smoothness = very_horrible)


505.2  highway = track
501.8  highway = track AND (smoothness = good OR smoothness = intermediate)
505.2  highway = track AND (smoothness = bad OR smoothness = very_bad)
505.1  highway = track AND (smoothness = horrible OR smoothness = very_horrible)


501.8  (highway = unclassified OR highway = residential OR highway = service OR highway = living_street)
501.9  (highway = unclassified OR highway = residential OR highway = service OR highway = living_street) AND (surface = asphalt OR surface = concrete OR surface = concrete:plates OR surface = concrete:lanes)
# 503.1  (highway = unclassified OR highway = residential OR highway = service OR highway = living_street) AND (surface = compacted OR surface = gravel)
501.8  (highway = unclassified OR highway = residential OR highway = service OR highway = living_street) AND (surface = ground OR surface = sand OR surface = unpaved)
505.2  (highway = unclassified OR highway = residential) AND (surface = grass OR surface = dirt)

509.1  railway ~= "" AND railway != "abandoned" AND tunnel != "yes"

521    building ~= "" AND building != ruins

526    man_made = cairn
524    man_made = chimney
508    man_made = cutline
524    man_made = lighthouse
524    man_made = mast
109    man_made = mound
528    man_made = pipeline AND location = overhead
529    man_made = pipeline AND location = overground
526    man_made = survey_point
524    man_made = tower
524    man_made = water_tower
311    man_made = water_well

531    amenity = bench
313    amenity = drinking_water
527    amenity = feeding_place
311    amenity = fountain
525    amenity = hunting_stand
501    amenity = parking
709    amenity = prison
521    amenity = shelter
313    amenity = watering_place

510    aerialway ~= "" AND aerialway != no

511    power = line
510    power = minor_line

108    barrier = ditch
518    barrier = fence
410.1  barrier = hedge
410    barrier = hedge AND (area = yes OR is_area = yes)
515    barrier = wall

521    tourism = alpine_hut
531    tourism = artwork
521    tourism = chalet

526    historic = boundary_stone

531    pipeline = marker

