User:Gnurfos/GroundTruthRenderingRules

From OpenStreetMap Wiki
Jump to navigation Jump to search
These are rendering rules for GroundTruth tool for hiking maps.
Note: you need to run GroundTruth version 1.1 or above in order to be able to use these rules.
Feel free to modify or add new rules to this page if you find stuff that's relevant to hiking.

You can see other rendering rules pages by visiting the Category:GroundTruth Rules page.

Rendering Rules

Options

Option Value Comment
RulesVersion 1.1 Minimal version of GroundTruth needed to use these rules

Areas

Rule Name Selector Min Level Max Level Type Name Label Colors Pattern
Land natural=land 18 Land "land"
   


Marsh natural=marsh or waterway=wetland 18 Wetland "marsh"
   


00000000000000000000000000000000

11110000111100001111000011110000 00000000000000000000000000000000 00001111000011110000111100001111

Forest landuse=forest or natural=wood 18 Woods "forest"
   


Farm landuse=farm or landuse=farmland 18 "farm"
   


Fell natural=fell 18 "fell"
   


Residential landuse=residential 18 City "residential"
   


Water waterway=riverbank or waterway=river or natural=water 18 River name
   


Sea natural=sea 18 Sea "sea"
   


Lines

Rule Name Selector Min Level Max Level Type Name Label Colors Width Border Width Pattern
Coastline natural=coastline 12 Shoreline "coastline"
   


2
Path highway=footway or highway=path 21 name
   


11111000

11111000

Cycleway highway=cycleway 21 name
   


11111000

11111000

Track highway=track 21 name
   


11111100

11111100

BigRoadHighZoom highway=primary or highway=primary_link

or highway=motorway or highway=motorway_link or highway=trunk or highway=trunk_link

22 name
   


8
BigRoad highway=primary or highway=primary_link

or highway=motorway or highway=motorway_link or highway=trunk or highway=trunk_link

19 21 name
   


4
RoadBigZoom highway=secondary or highway=tertiary

or highway=unclassified or highway=unpaved or highway=residential or highway=service

22 name
   


4
Road highway=secondary or highway=tertiary

or highway=unclassified or highway=unpaved or highway=residential or highway=service

19 21 name
   


2
Railway railway=rail 19 Railroad name
   


2
CableCar aerialway=cable_car 21 "cable car"
   


1100

1100

AerialwaysMinor aerialway=chair_lift or aerialway=drag_lift 21 "aerialway"
   


1100

1100

River waterway=river 12 River name
   


2
Stream waterway=stream 21 Stream-thin name
   


2
Fence barrier=fence 21 "fence"
   


1
Ditch barrier=ditch 21 "ditch"
   


1111 1000 1000 1000

PowerLine power=line 21 "power line"
   


1
NationalBorder boundary=administrative admin_level=2 12 "border"
   


1111001100111100

1111001100111100

NationalPark boundary=national_park 12 "nat. park"
   


1111001100111100

1111001100111100

RelationHikingRoute relation:route=hiking 21 "Rel: " ++ relation:name
   


1110001110001110 1110001110001110 1110001110001110 0000000000000000 0000000000000000 1110001110001110 1110001110001110 1110001110001110

NoName not name=* 19 name
   


4

Points

Rule Name Selector Min Level Max Level Type Name Label Icon
City place=city 20 City (Large) name
Town place=town 21 City (Medium) name
Village place=village or place=hamlet 21 City (Small) name
Locality place=locality 21 Region name (no Point, middle) name
PlaceOfWorship amenity=place_of_worship 21 Church name
Peak natural=peak 21 Summit name ++ ele "$1f$elevation" #IconPeak
ParkingNode amenity=parking 21 Parking Area name
Quarry landuse=quarry 21 Mine name
TourismInformation tourism=information and not information=guidepost 21 Information
Guidepost tourism=information and information=guidepost and highway=distance_marker 21 name #IconGuidepost
HuntingStand amenity=hunting_stand 21 "hunting stand" #IconHuntingStand
GuestHouse tourism=guest_house 21 Bed & Breakfast inn name
Shelter amenity=shelter 21 name #IconShelter
Bench amenity=bench 21 Bench "bench" #IconBench
Ruins historic=ruins or historic=archaeological_site 21 name #IconRuins
Viewpoint tourism=viewpoint 21 name #IconViewpoint
WaterTower man_made=water_tower 21 "water tower" #IconWaterTower
DrinkingWater amenity=drinking_water 21 Drinking Water name #IconDrinkingWater
TodoContinue todo=continue 21 "to do: continue" #IconTodoContinue
TodoJunction todo=junction 21 "to do: junction" #IconTodoJunction
PostBox amenity=post_box 21 Mailbox "mailbox"
Shop shop=* 21 Shop name
Recycling amenity=recycling 21 "recycling" #IconRecycling
School amenity=school 21 School name
Telephone amenity=telephone 21 Telephone "phone"

Patterns

IconPeak

Color ID Color
1
   


0001000
0011100
0111110
1111111
1111111

IconShelter

Color ID Color
1
   


000010000
000101000
001000100
010000010
101000101
001000100
001000100
001000100

IconBench

Color ID Color
1
   


2
   


2222222222
2111111112
0212002120
0212002120
0222002220

IconRuins

Color ID Color
1
   


111000
111000
111000
111111
111111

IconWaterTower

Color ID Color
1
   


111111
111111
011110
001100
001100
001100
001100
001100
001100
001100

IconViewpoint

Color ID Color
1
   


00000011000000
00000011000000
00110011001100
00111011011100
00011011011000
00000000000000
11111011011111
11111011011111
00000000000000
00011011011000
00111011011100
00110011001100
00000011000000
00000011000000

IconDrinkingWater

Color ID Color
1
   


000000000
111111000
000011000
000011000
000111100
000000000
000011000
000000000
010011001
010000001
011111111

IconGuidepost

Color ID Color
1
   


2
   


3
   


00333333333333
33111111111113
33111111111113
00333333333333
00000022200000
00000022200000
03333333333300
03111111111133
03111111111133
03333333333300
00000022200000
00000022200000
00000022200000
00000022200000

IconHuntingStand

Color ID Color
1
   


2
   


00022
02222
22222
22222
22222
22222
10001
01010
00100
01010
10001

IconTodoJunction

Color ID Color
1
   


2
   


222202222
211202112
211121112
221111122
022111220
221111122
211121112
211202112
222202222

IconTodoContinue

Color ID Color
1
   


00100
01110
11111
01110
00100

IconRecycling

Color ID Color
1
   


000000000000000000000000
000000000000000000000000
000000000000000000000000
000000000000000000000000
000000000000000000000000
000000000010011000000000
000000001111011100000000
000000111111011110000000
000000001111011110000000
000000011101001110000000
000000111101000111000000
000001111000000111100100
000111110000000011101100
001111100000000001111100
001111000000001101111100
001110000000001111111000
001100000011000011111000
000000001110000000111000
000000011111000000000000
000000111111111111110000
000000111111111111110000
000000011100000000000000
000000001110000000000000
000000000110000000000000