#
# (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/>.

112    natural = ant_hill
115    natural = depression
109    natural = gully
115    natural = hollow
112    natural = knoll
112    natural = termite_mount

212    natural = bare_rock
211    natural = beach AND surface = sand
205    natural = cave_entrance
201    natural = cliff
202    natural = cliff AND area = yes
211    natural = dune
204    natural = hole AND rock != no
202    natural = rock AND area = yes
211    natural = sand
207    natural = stone

303    natural = hole AND water = yes
313    natural = spring
304.1.1      natural = water
310    natural = wetland
311    natural = wetland AND intermittent = yes
309.0.1        natural = wetland AND foot = impassable

420    natural = bush
403    natural = grassland
408    natural = scrub
419    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

# 305    waterway = canal
307    waterway = ditch
306    waterway = drain
307    waterway = drain AND intermittent = yes
# 305    waterway = river
304.1.1      waterway = riverbank
306    waterway = stream
307    waterway = stream AND intermittent = yes

528.1  landuse = allotments
528.1  landuse = cemetery
528.1  landuse = commercial
# 710    landuse = construction
415    landuse = farmland
528.1  landuse = farmyard
406    landuse = forest
401    landuse = grass
528.1  landuse = industrial
# 710    landuse = landfill
403    landuse = logging
401    landuse = meadow
709    landuse = military
412    landuse = orchard
304.1.1      landuse = reservoir
# 710    landuse = quarry
211    landuse = quarry AND resource = sand
528.1  landuse = residential
413    landuse = vineyard

401    leisure = pitch

# 504    highway = cycleway

# 506    highway = footway

537    highway = milestone

# 501.0  highway = motorway
529.0.4        highway = motorway_link

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

529.0.4        highway = primary
529.0.4        highway = secondary
529.0.4        highway = tertiary

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

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

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

# 515    railway ~= "" AND railway != "abandoned" AND tunnel != "yes"

# 530    building = ruins
526.1  building ~= "" AND building != ruins
# 530    building ~= "" AND building != ruins AND ruins = yes
# 530    building ~= "" AND building != ruins AND historic = ruins

537    man_made = cairn
535    man_made = chimney
509    man_made = cutline
535    man_made = lighthouse
535    man_made = mast
112    man_made = mound
533    man_made = pipeline AND location = overhead
534    man_made = pipeline AND location = overground
537    man_made = survey_point
535    man_made = tower
535    man_made = water_tower
312    man_made = water_well

540    amenity = bench
314    amenity = drinking_water
538    amenity = feeding_place
312    amenity = fountain
536    amenity = hunting_stand
529.0.2      amenity = parking
709    amenity = prison
526.1  amenity = shelter
314    amenity = watering_place

516    aerialway ~= "" AND aerialway != no

517    power = line
516    power = minor_line

110    barrier = ditch
524    barrier = fence
# 523    barrier = fence AND ruins = yes
410.1  barrier = hedge
410    barrier = hedge AND area = yes
521.1.1        barrier = wall
# 520    barrier = wall AND ruins = yes

526.1  tourism = alpine_hut
540    tourism = artwork
526.1  tourism = chalet

537    historic = boundary_stone

540    pipeline = marker

713    shop = convenience
