#
# (C) 2017 Kai Pastor
#
# Based on ISOM_rules.yaml from https://github.com/sembruk/osm2xmap/ rev 3c6cdb5
#
# (C) 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.9  natural = cave_entrance
201    natural = cliff
201.2  natural = cliff AND area = yes
213    natural = dune
203.1  natural = hole AND rock != no
201.2  natural = rock AND area = yes
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
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

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

520    landuse = allotments
520.2  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

503    highway = cycleway

505    highway = footway

526    highway = milestone

502.2  highway = motorway
502.1  highway = motorway_link

506    highway = path
505    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)

502.1  highway = primary
502.1  highway = secondary
502.1  highway = tertiary

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

502.1  highway = trunk AND lanes = 2
502.1  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"

523    building = ruins
521    building ~= "" AND building != ruins
523    building ~= "" AND building != ruins AND ruins = yes
523    building ~= "" AND building != ruins AND historic = 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
517    barrier = fence AND ruins = yes
411.2  barrier = hedge
410    barrier = hedge AND area = yes
515    barrier = wall
514    barrier = wall AND ruins = yes

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

526    historic = boundary_stone

531    pipeline = marker

713    shop = convenience
