User:Andrewpmk/Groundtruth/Rendering Rules

From OpenStreetMap Wiki
Jump to: navigation, search

Rendering Rules

Areas

Rule Name Selector Min Level Max Level Type Name Label Colors Pattern
Wetland natural=marsh or waterway=wetland 18 Wetland "wetland"
   


00000000000000000000000000000000

11110000111100001111000011110000 00000000000000000000000000000000 00001111000011110000111100001111

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


Farm landuse=farm 18 "farm"
   


Fell natural=fell 18 "fell"
   


Residential area landuse=residential 20 City "residential area"
   


Water waterway=river or natural=water 18 River name
   


Riverbank waterway=riverbank 18 River
   


Sea natural=sea 18 Sea name
   


Glacier natural=glacier 18 Glacier name
   


Sports complex leisure=sports_centre 18 Sports complex name
   


City park leisure=park 18 City park name
   


Building building=yes 23
   


Cemetery landuse=cemetery 18
   


Lines

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


2
Motorway highway=motorway 17 Major HWY thick ref "$04$uppercase"
   


4
Svincolo autostradale highway=motorway_link 20 Major HWY Connector-thick
   


2
Trunk highway=trunk 17 Principal HWY-thick name ++ ref
   


4
TrunkLink highway=trunk_link 20
   


2
PrimaryRoad highway=primary 18 Principal HWY-medium name ++ ref
   


3
PrimaryRoadLink highway=primary_link 20
   


2
SecondaryRoad highway=secondary 19 Arterial Road-thick name ++ ref
   


3
TertiaryRoad highway=tertiary 20 Arterial Road-medium name ++ ref
   


2
ResidentialRoad highway=residential 21 name ++ ref
   


2
UnclassifiedRoad highway=unclassified 21 name ++ ref
   


2
ServiceRoad highway=service 21
   


Cycleway (highway=cycleway or cycleway=track) 21 "cycleway" ++ ref
   


1111111111111000

1111111111111000

Path (highway=footway or highway=path) 22 Trail ref
   


11111000

11111000

Track highway=track and (tracktype=grade1 or tracktype=grade2 or not tracktype=*) 21 Unpaved Road-thin ref
   


1111111111111000

1111111111111000

Minor track highway=track and (tracktype=grade3 or tracktype=grade4 or tracktype=grade5) 22 Trail ref
   


1111111111100000

1111111111100000

Pedestrian highway=pedestrian 21 name
   


3
Railway railway=rail 19 Railroad name
   


00011000 00011000 00011000 11111111 00011000 00011000 00011000
CableCar aerialway=cable_car 21 "cable car"
   


1100

1100

AerialwaysMinor aerialway=chair_lift or aerialway=drag_lift 22 "aerialway"
   


1100

1100

River waterway=river 12 River name
   


2
Stream waterway=stream 22 Stream-thin name
   


2
Ditch barrier=ditch 24 "ditch"
   


1111

1000 1000 1000

NationalBorder boundary=administrative admin_level=2 12 Intl. Boundary "border"
   


1111001100111100 1111001100111100
NationalPark boundary=national_park 12 "nat. park"
   


1111001100111100

1111001100111100

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 22 City (Small) name
Locality place=locality 21 Region name (no Point, middle) name
Cima natural=peak 21 Summit name ++ ele "$1f$elevation" #IconPeak
Parcheggio amenity=parking 22 Parking Area
GuestHouse tourism=guest_house 22 Bed & Breakfast inn name
Bench amenity=bench 22 Bench #IconBench
BicycleParking amenity=bicycle_parking 21 name #IconBicycleParking
BicycleRental amenity=bicycle_rental 21 name ++ ref
Cafe amenity=cafe 21 Bar name
Drinking water amenity=drinking_water 22 Drinking Water "fontana"
FastFood amenity=fast_food 22 Fast food name
Fuel amenity=fuel 22 Fuel/Gas operator
GuestHouse tourism=guest_house 22 Bed & Breakfast inn name
Hospital amenity=hospital 21 Hospital name
Church amenity=place_of_worship 22 Church name
Police amenity=police 22 Police Station name
Post office amenity=post_office 22 Post office name
Quarry landuse=quarry 22 Mine name
Shelter amenity=shelter 22 Shelter name #IconShelter
Telephone amenity=telephone 22 Telephone
Toilets amenity=toilets 22 Restroom
Tourist information tourism=information 22 Information
Scenic area tourism=viewpoint 22 Scenic area name

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
   


11111111
01000010
01000010

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

IconBicycleParking

Color ID Color
1
   


2
   


1111000000000000
1000100000000000
1000100000000000
1111000000000000
1000000000000000
1001110000111000
1000010000010000
0000022222220000
0000020000020000
0011122000221100
0100210200202010
1000201022002001
1001001002222001
1000001001000001
0100010000100010
0011100000011100

Cyclewaycolor

Color ID Color
1
   


2
   


11111111
11111100
11111111