User:Le sanglier/FR:Rendering rules

From OpenStreetMap Wiki
Jump to navigation Jump to search

GroundTruth rendering rules for Philippe maps.

These are rendering rules for GroundTruth tool for Philippe 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 driving.

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

Rendering Rules

Options

Option Value Comment
RulesVersion 1.6 Minimal version of GroundTruth needed to use these rules
LandBackgroundColor #FFEFBF Color of the map background. If not set, the default unit color will be used
SeaColor #7EC9FF Color of the sea polygons.
ForceBackgroundColor true Forces showing of custom the map background color

Areas

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


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


leisure leisure=sports_centre or leisure=pitch 18 loisir "leisure"
   


Residential landuse=residential 18 City "residential"
   


Water waterway=riverbank or natural=water 18 River "water"
   


Building building=yes or building=office or building=shopping_mall or building=apartments or building=car_park or building=supermarket or building=mixed_use or building=mall 23 "building"
   


Sea natural=sea 18 Sea "sea"
   


Lines

Rule Name Selector Min Level Max Level Type Name Label Colors Width Border Width Pattern
NationalBorder relation:boundary=administrative and relation:admin_level=2 12 Intl. Boundary "border"
   


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


4
MotorwayLink highway=motorway_link 20 Major HWY Connector-thick "motorway link"
   


2
Trunk highway=trunk 17 Principal HWY-thick "trunk"
   


4
TrunkLink highway=trunk_link 20 "trunk link"
   


2
PrimaryRoad highway=primary 18 Principal HWY-medium "primary road"
   


3
PrimaryRoadLink highway=primary_link 20 "primary road link"
   


2
SecondaryRoad highway=secondary 19 Arterial Road-thick "secondary road"
   


3
TertiaryRoad highway=tertiary 20 Arterial Road-medium "tertiary road"
   


2
UnclassifiedRoad highway=unclassified or highway=service 21 "unclassified road"
   


2
residential highway=residential or highway=living_street 21 "residential"
   


2
NomRoute name=* and (highway=primary or highway=secondary or highway=tertiary or highway=unclassified or highway=service or highway=residential or highway=track or highway=footway or highway=path or waterway=* ) 24 name
   


1
TrackMajor highway=track and (tracktype=grade1 or tracktype=grade2 or tracktype=grade3 or not tracktype=* ) 21 Unpaved Road-thin "Major track"
   


11111100

11111100

TrackMinor highway=track and (tracktype=grade4 or tracktype=grade5 ) 21 Unpaved Road-thin "Minor track"
   


11111000

11111000

PathMinor (highway=footway or highway=path or highway=cycleway or highway=steps) 22 "minor path"
   


11110000

11110000

Railway railway=rail 18 Railroad "railway"
   


2
River waterway=river 12 River "river"
   


2
Stream waterway=stream 22 Stream-thin "stream"
   


1
Coastline natural=coastline 12 Shoreline "coastline"
   


2

Points

Rule Name Selector Min Level Max Level Type Name Label Icon
City place=city 19 City (Large) name
Town place=town 20 City (Medium) name
Village place=village 21 City (Small) name
hameau place=hamlet 22 City (Small) name
Locality place=locality 23 Region name (no Point, middle) name
PlaceOfWorship amenity=place_of_worship 23 Place of Worship name
Peak natural=peak 21 Summit name ++ ele "$1f$elevation" #IconPeak
historic historic=* or tourism=attraction 23 patrimoine name
ParkingNode amenity=parking 22 Parking Area
MotorwayJunction highway=motorway_junction 20 Exit name ++ " " ++ ref
GuestHouse tourism=guest_house 24 Bed & Breakfast inn name
Bench amenity=bench 23 Bench "bench" #IconBench
Ruins historic=ruins or historic=archaeological_site 23 name #IconRuins
Viewpoint tourism=viewpoint 22 name #IconViewpoint
WaterTower man_made=water_tower 23 #IconWaterTower
Fuel amenity=fuel 22 Fuel/Gas operator
Police amenity=police 22 Police Station "police station"
Hospital amenity=hospital 22 Hospital "hospital " ++ 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
   


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