User:Sparcuser/GroundTruth Seamap Rules

From OpenStreetMap Wiki
Jump to navigation Jump to search

GroundTruth rendering rules for Seamaps.

These are rendering rules for GroundTruth tool for Seamaps.
Note: you need to run GroundTruth version 1.0 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.

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
LandBackgroundColor #888844
SeaColor #FFFFFF

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"
   


Residential landuse=residential 18 City "residential"
   


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


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"
   


ResidentialRoadHighZoom highway=residential or highway=living_street or highway=service 22 name
   


2
ResidentialRoadLowZoom highway=residential 20 21 "residential road"
   


1
Motorway highway=motorway 12 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 20 Arterial Road-thick "secondary road"
   


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


2
UnclassifiedRoad highway=unclassified 21 "unclassified road"
   


2
Track highway=track and (tracktype=grade1 or tracktype=grade2 or not tracktype=*) 22 Unpaved Road-thin "track"
   


11111100

11111100

Railway railway=rail 18 Railroad "railway"
   


2
River waterway=river 12 River "river"
   


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


2
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
Country place=country 12 17 Region name (no Point, big) name
State place=state 12 17 Region name (no Point, middle) name
City place=city 12 City (Large) name
Town place=town 20 City (Medium) name
Village place=village or place=hamlet 22 City (Small) name
Locality place=locality 21 Region name (no Point, middle) name
PlaceOfWorship amenity=place_of_worship 22 Place of Worship name
ParkingNode amenity=parking 22 Parking Area
MotorwayJunction highway=motorway_junction 20 Exit name ++ " " ++ ref
Fuel amenity=fuel 22 Fuel/Gas operator
Police amenity=police 22 Police Station "police station"
Hospital amenity=hospital 22 Hospital "hospital " ++ name
Harbour amenity=harbor or leisure=marina 16 Harbor "Harbour " ++ name #IconHarbour
Seamark-lateral-red-small seamark:buoy_lateral:colour=red 16 20 unlit Navaid, red "Bouy " ++ name #IconSeamarkBuoy_lateral-red_small
Seamark-lateral-green-small seamark:buoy_lateral:colour=green 16 20 unlit Navaid, green "Bouy " ++ name #IconSeamarkBuoy_lateral-green_small
Seamark-buoy_yellow-small seamark:buoy_special_purpose:colour=yellow or seamark=beacon_cardinal 16 20 Navaid, amber "Buoy " ++ name #IconSeamark-buoy_yellow-small
Seamark-lateral-red-spar seamark:buoy_lateral:colour=red and not seamark:buoy_lateral:shape=conical 21 unlit Navaid, red "Bouy " ++ name #IconSeamarkBuoy_lateral-red-spar
Seamark-lateral-green-spar seamark:buoy_lateral:colour=green and not seamark:buoy_lateral:shape=conical 21 unlit Navaid, green "Bouy " ++ name #IconSeamarkBuoy_lateral-green-spar
Seamark-lateral-red-conical seamark:buoy_lateral:colour=red and seamark:buoy_lateral:shape=conical 21 unlit Navaid, red "Bouy " ++ name #IconSeamarkBuoy_lateral-red-conical
Seamark-lateral-green-concical seamark:buoy_lateral:colour=green and seamark:buoy_lateral:shape=conical 21 unlit Navaid, green "Bouy " ++ name #IconSeamarkBuoy_lateral-green-conical
Seamark-lateral-green-red-green seamark:buoy_lateral:colour=green;red;green 21 "Bouy " ++ name #IconSeamarkBuoy_lateral-green-red-green
Seamark-lateral-red-green-red seamark:buoy_lateral:colour=red;green;red 21 "Bouy " ++ name #IconSeamarkBuoy_lateral-red-green-red
SeamarkTopmark_Cone-green seamark:topmark:shape=cone and seamark:topmark:colour=green 21 #IconSeamarkTopmark_Cone-green
SeamarkTopmark_Cylinder-green seamark:topmark:shape=cylinder and seamark:topmark:colour=green 21 #IconSeamarkTopmark_Cylinder-green
SeamarkLight-green seamark:light:colour=green 21 #IconSeamarkLight-green
SeamarkTopmark_Cone-red seamark:topmark:shape=cone and seamark:topmark:colour=red 21 #IconSeamarkTopmark_Cone-red
SeamarkTopmark_Cylinder-red seamark:topmark:shape=cylinder and seamark:topmark:colour=red 21 #IconSeamarkTopmark_Cylinder-red
SeamarkLight-red seamark:light:colour=red 21 #IconSeamarkLight-red
Seamark-beacon_cardinal-south (seamark=beacon_cardinal and seamark:beacon_cardinal:category=south) or (seamark=buoy_cardinal and seamark:buoy_cardinal:category=south) 21 Buoy with south topmark "Beacon Cardinal South " ++ name #IconSeamark-beacon_cardinal-south
Seamark-beacon_cardinal-north (seamark=beacon_cardinal and seamark:beacon_cardinal:category=north) or (seamark=buoy_cardinal and seamark:buoy_cardinal:category=north) 21 Buoy with north topmark "Beacon Cardinal North " ++ name #IconSeamark-beacon_cardinal-north
Seamark-beacon_cardinal-west (seamark=beacon_cardinal and seamark:beacon_cardinal:category=west) or (seamark=buoy_cardinal and seamark:buoy_cardinal:category=west) 21 Navaid, amber "Beacon Cardinal West " ++ name #IconSeamark-beacon_cardinal-west
Seamark-beacon_cardinal-east (seamark=beacon_cardinal and seamark:beacon_cardinal:category=east) or (seamark=buoy_cardinal and seamark:buoy_cardinal:category=east) 21 Navaid, amber "Beacon Cardinal East " ++ name #IconSeamark-beacon_cardinal-east
Seamark-beacon_cardinal-isd (seamark=beacon_cardinal and seamark:beacon_cardinal:category=isd) or (seamark=buoy_cardinal and seamark:buoy_cardinal:category=isd) 21 Navaid, amber "Beacon Cardinal Isolated Danger " ++ name #IconSeamark-beacon_cardinal-isd
Seamark-buoy_special_purpose seamark=buoy_special_purpose and seamark:buoy_special_purpose:colour=yellow 21 Navaid, amber "Buoy special purpose" ++ name #IconSeamark-buoy_special_purpose


Patterns

IconHarbour

Color ID Color
1
   


2
   


21111112
21211212
00211200
00211200
00211200
00211200
11211011
21111112
02111120


IconSeamarkBuoy_lateral-red_small

Color ID Color
1
   


0011000
0011000
0011000
0011000
0111100
0111100


IconSeamarkBuoy_lateral-green_small

Color ID Color
1
   


0011000
0011000
0011000
0011000
0111100
0111100


IconSeamark-buoy_yellow-small

Color ID Color
1
   


0011000
0011000
0011000
0011000
0111100
0111100


IconSeamarkBuoy_lateral-red-conical

Color ID Color
1
   


000000000
000000000
000000000
000010000
000010000
000010000
000010000
000010000
000111000
000111000
001111100
001111100
011111110
011111110
111111111
111111111
111111111
000000000
000000000
000000000
000000000
000000000


IconSeamarkBuoy_lateral-red-spar

Color ID Color
1
   


000000000
000000000
000000000
000010000
000010000
000111000
000111000
000111000
000111000
000111000
000111000
000111000
000111000
000111000
000111000
011111110
011111110
000000000
000000000
000000000
000000000
000000000


IconSeamarkBuoy_lateral-green-conical

Color ID Color
1
   


000000000
000000000
000000000
000010000
000010000
000010000
000010000
000010000
000111000
000111000
001111100
001111100
011111110
011111110
111111111
111111111
111111111
000000000
000000000
000000000
000000000
000000000


IconSeamarkBuoy_lateral-green-spar

Color ID Color
1
   


000000000
000000000
000000000
000010000
000010000
000111000
000111000
000111000
000111000
000111000
000111000
000111000
000111000
000111000
000111000
011111110
011111110
000000000
000000000
000000000
000000000
000000000


IconSeamarkBuoy_lateral-green-red-green

Color ID Color
1
   


2
   


000000000
000000000
000000000
000010000
000010000
000111000
000111000
000111000
000222000
000222000
000222000
000222000
000111000
000111000
000111000
011111110
011111110
000000000
000000000
000000000
000000000
000000000


IconSeamarkBuoy_lateral-red-green-red

Color ID Color
1
   


2
   


000000000
000000000
000000000
000010000
000010000
000111000
000111000
000111000
000222000
000222000
000222000
000222000
000111000
000111000
000111000
011111110
011111110
000000000
000000000
000000000
000000000
000000000



IconSeamarkTopmark_Cylinder-green

Color ID Color
1
   


001111100
001111100
001111100
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000


IconSeamarkTopmark_Cylinder-red

Color ID Color
1
   


001111100
001111100
001111100
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000


IconSeamarkTopmark_Cone-green

Color ID Color
1
   


000010000
000111000
001111100
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000


IconSeamarkTopmark_Cone-red

Color ID Color
1
   


000010000
000111000
001111100
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000



IconSeamarkLight-green

Color ID Color
1
   


000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000010000
001110000
111100000
011100000
001100000


IconSeamarkLight-red

Color ID Color
1
   


000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000000000
000010000
001110000
111100000
111100000
001100000


IconSeamark-beacon_cardinal-south

Color ID Color
1
   


2
   


2222222
0222220
0022200
0002000
2222222
0222220
0022200
0002000
0011100
0011100
0011100
0011100
0011100
0011100
0022200
0022200
0022200
0022200
0022200
0022200
2222222
2222222


IconSeamark-beacon_cardinal-north

Color ID Color
1
   


2
   


0002000
0022200
0222220
2222222
0002000
0022200
0222220
2222222
0002000
0022200
0022200
0022200
0022200
0022200
0022200
0011100
0011100
0011100
0011100
0011100
0011100
2222222
2222222


IconSeamark-beacon_cardinal-west

Color ID Color
1
   


2
   


2222222
0222220
0022200
0002000
0002000
0022200
0222220
2222222
0002000
0022200
0022200
0022200
0011100
0011100
0011100
0011100
0011100
0011100
0022200
0022200
0022200
2222222
2222222


IconSeamark-beacon_cardinal-east

Color ID Color
1
   


2
   


0002000
0022200
0222220
2222222
0002000
2222222
0222220
0022200
0002000
0002000
0011100
0011100
0011100
0022200
0022200
0022200
0022200
0022200
0022200
0011100
0011100
0011100
2222222
2222222


IconSeamark-beacon_cardinal-isd

Color ID Color
1
   


2
   


0022200
0222220
0022200
0002000
0022200
0222220
0022200
0002000
0022200
0022200
0022200
0022200
0022200
0022200
0011100
0011100
0011100
0011100
0011100
0011100
1111111
1111111

IconSeamark-buoy_special_purpose

Color ID Color
1
   


000000000
000000000
000000000
000010000
000010000
000111000
000111000
000111000
000111000
000111000
000111000
000111000
000111000
000111000
000111000
011111110
011111110
000000000
000000000
000000000
000000000