#
# 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

401    natural = beach AND surface = sand
201    natural = cliff
206    natural = cliff AND (area = yes OR is_area = yes)
401    natural = dune
206    natural = rock AND (area = yes OR is_area = yes)
401    natural = sand
205    natural = stone

301.2  natural = water
310.1  natural = wetland
310.1  natural = wetland AND intermittent = yes
301.3  natural = wetland AND foot = impassable

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

304    waterway = canal
305    waterway = drain
304    waterway = river
301.2  waterway = riverbank
305    waterway = stream

520    landuse = allotments
520.2  landuse = cemetery
520    landuse = commercial
# 710    landuse = construction
401    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.2  landuse = reservoir
# 710    landuse = quarry
401    landuse = quarry AND resource = sand
520    landuse = residential
414    landuse = vineyard

401    leisure = park
401    leisure = pitch

503    highway = cycleway



502.2  highway = motorway
502    highway = motorway_link


502    highway = primary
502    highway = secondary
502    highway = tertiary

504    highway = track
503    highway = track AND (smoothness = good OR smoothness = intermediate)
504    highway = track AND (smoothness = bad OR smoothness = very_bad)

502    highway = trunk AND lanes = 2
502    highway = trunk_link AND lanes = 1

503    (highway = unclassified OR highway = residential OR highway = service OR highway = living_street)
502    (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)
503    (highway = unclassified OR highway = residential OR highway = service OR highway = living_street) AND (surface = ground OR surface = sand OR surface = unpaved)
504    (highway = unclassified OR highway = residential) AND (surface = grass OR surface = dirt)

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

521    building ~= "" AND building != ruins

524    man_made = chimney
508    man_made = cutline
524    man_made = lighthouse
524    man_made = mast
109    man_made = mound
529    man_made = pipeline AND location = overground
524    man_made = tower
524    man_made = water_tower

531    amenity = bench
525    amenity = hunting_stand
501    amenity = parking
709    amenity = prison
521    amenity = shelter

510    aerialway ~= "" AND aerialway != no

511    power = line
510    power = minor_line

518    barrier = fence
406.4  barrier = hedge
406    barrier = hedge AND (area = yes OR is_area = yes)
515    barrier = wall

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


531    pipeline = marker

