User:Craigfeuerherdt/Kosmos

From OpenStreetMap Wiki
Jump to navigation Jump to search

Introduction

This page contains a set of Kosmos rendering rules for an orienteering map. These rules are generally based on those provided by the author of Open Orienteering Map and the specifications documented on IOFmapping. They do not cover the whole range of OSM tagging currently in use. If you wish to adapt these rules please inform me as I am interested in publicising the merits of OSM and associated tools for the production of orienteering maps.

  1. See Kosmos Rendering Help for help on how to write rendering rules.
  2. Before committing changes to the page, please make sure the rules are actually working. Try them with the latest version of Kosmos (2.00 or above), since they are not compatible with previous versions.

URL of the rules to use in Kosmos: http://wiki.openstreetmap.org/wiki/User:Craigfeuerherdt/Kosmos

Options

Option Value Comment
MinKosmosVersion 2.1 Minimal version of Kosmos needed to use these rules
LandBackgroundColor #FFFFFF white
SeaColor #99B8FF 50% blue

Land Areas

Rule Name Targets Selector Template Options Comment
Coastline way natural=coastline Polyline (MinZoom=1, Color=#000000, Width=11:1;17:5, Curved=true) black, line width needs checking
Beach area natural=beach Polygon (Color=#F9E199) 50% yellow
Wood area natural=wood Polygon (Color=#BFEDBB) 30% green
Scrub area natural=scrub Polygon (Color=#BFEDBB) 30% green
Fell area natural=fell Polygon (Color=#BFEDBB) 30% green
Farm area landuse=farm Polygon (Color=#FFBB35) 100% yellow
Quarry area landuse=quarry Polygon (Color=#FFBB35) 100% yellow
Residential area landuse=residential Polygon (Color=#96E9A1) 50% green
Industrial area landuse=industrial Polygon (Color=#96E9A1) 50% green
Commercial area landuse=commercial Polygon (Color=#96E9A1) 50% green
Hospital area amenity=hospital Polygon (Color=#96E9A1) 50% green
Retail area landuse=retail Polygon (Color=#96E9A1) 50% green
Reservoir area landuse=reservoir Polygon (Color=#99B8FF, BorderColor=#000000, BorderWidth=1:1;12:1;15:3) 50% blue, check line widths
Basin area landuse=basin Polygon (Color=#99B8FF, BorderColor=#000000, BorderWidth=1:1;12:1;15:3) 50% blue, check line widths
Forest area landuse=forest Polygon (Color=#BFEDBB) 30% green
Cemetery area landuse=cemetery Polygon (Color=#FFBB35) 100% yellow
Allotments area landuse=allotments Polygon (Color=#96E9A1) 50% green
Grass area landuse=grass Polygon (Color=#FFBB35) 100% yellow
Skiing area sport=skiing Polygon (Color=#FFBB35) 100% yellow
HorseRacing area sport=horse_racing Polygon (Color=#96E9A1) 50% green
Tennis area sport=tennis Polygon (Color=#FFBB35) 100% yellow
Swimming area sport=swimming Polygon (Color=#99B8FF, BorderColor=#000000, BorderWidth=1:1;12:1;15:3) 50% blue, check line widths
Park area leisure=park Polygon (Color=#FFBB35) 100% yellow
Pitch area leisure=pitch Polygon (Color=#FFBB35) 100% yellow
GolfCourse area leisure=golf_course Polygon (Color=#96E9A1) 50% green
Common area leisure=common Polygon (Color=#FFBB35) 100% yellow

Water Features

Rule Name Targets Selector Template Options Comment
Water area natural=water Polygon (Color=#99B8FF, BorderColor=#000000, BorderWidth=1) 50% blue
Marsh area natural=marsh Polygon (Color=#FFFFFF, BackgroundColor=#4B6FFF, HatchStyle=LightHorizontal) 100% blue
River way waterway=river Polyline (Color=#4B6FFF, BorderColor=#000000, BorderWidth=1) 100% blue
Drain way waterway=drain Polyline (Color=#4B6FFF, Width=1, Curved=true) 100% blue
Stream way waterway=stream Polyline (Color=#4B6FFF, Width=1, Curved=true) 100% blue
Canal way waterway=canal Polyline (Color=#4B6FFF, Width=1, Curved=true) 100% blue
Riverbank area waterway=riverbank Polygon (BorderColor=#000000, BorderWidth=1) black outline
Land area natural=land Polygon (Color=#FFBB35) 100% yellow

Other Land Features

Rule Name Targets Selector Template Options Comment
Contours way ele=* for elevation contours generated by Srtm2Osm
.Major way ValueNum(e,"ele") % 100 = 0 Polyline (MinZoom=11, Color=#D15C00, Width=2, Curved=true) Major contours (100m ones)
.* way Polyline (MinZoom=12, Color=#D15C00, Width=1, Curved=true) all other contours

Highways

Rule Name Targets Selector Template Options Comment
HighwayFootway way highway=footway Polyline (Color=#000000, DashStyle=DashDot, Width=1) EliminateSeams black
HighwayPath way highway=path Polyline (Color=#000000, DashStyle=Dash, Width=1) EliminateSeams black
HighwaySteps way highway=steps Polyline (Color=#FFDE93, DashStyle=Dot, BorderColor=gray, Width=13:1;17:6) EliminateSeams how to symbolise!
HighwayBridleway way highway=bridleway Polyline (Color=#000000, DashStyle=Dash, Width=2) EliminateSeams black, check width & dashes
HighwayUnpaved way highway=unpaved Polyline (Color=#000000, DashStyle=Dash, Width=2) EliminateSeams black
HighwayUnsurfaced way highway=unsurfaced Polyline (Color=#000000, DashStyle=Dash, Width=2) EliminateSeams black
HighwayUnclassified way highway=unclassified Polyline (Color=#E3AA73, BorderColor=#000000, Width=2) EliminateSeams 50% brown, black outline
HighwayPedestrian way highway=pedestrian Polyline (Color=#000000, DashStyle=DashDot, Width=1) EliminateSeams black
HighwayResidential way highway=residential Polyline (Color=#E3AA73, BorderColor=#000000, Width=3) EliminateSeams 50% brown, black outline
HighwayService way highway=service Polyline (Color=#E3AA73, BorderColor=#000000, Width=2) EliminateSeams 50% brown, black outline
HighwayMinor way highway=minor Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) EliminateSeams 50% brown, black outline
HighwayTrack way highway=track Polyline (Color=#000000, DashStyle=Dash, Width=2) EliminateSeams black
HighwayTertiary way highway=tertiary Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) EliminateSeams 50% brown, black outline
HighwaySecondary way highway=secondary EliminateSeams
.Bridge bridge=yes Polyline (Color=#E3AA73, BorderColor=#000000, Width=4, BorderWidth=30%) 50% brown, black outline
.* Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) 50% brown, black outline, check widths
HighwayPrimary way highway=primary EliminateSeams
.Bridge bridge=yes Polyline (Color=#E3AA73, BorderColor=#000000, Width=4, BorderWidth=30%) 50% brown, black outline
.* Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) 50% brown, black outline
HighwayPrimaryLink way highway=primary_link Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) EliminateSeams 50% brown, black outline
HighwayTrunk way highway=trunk Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) EliminateSeams 50% brown, black outline
HighwayTrunkLink way highway=trunk_link Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) EliminateSeams 50% brown, black outline
HighwayMotorway way highway=motorway EliminateSeams
.Bridge bridge=yes Polyline (Color=#E3AA73, BorderColor=#000000, Width=4, BorderWidth=30%) 50% brown, black outline, check widths
.* Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) 50% brown, black outline, check widths
HighwayMotorwayLink way highway=motorway_link Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) EliminateSeams 50% brown, black outline, check widths

Transport

Rule Name Targets Selector Template Options Comment
Rail way railway=rail Polyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:6) EliminateSeams
.tunnel way tunnel=yes Polyline (MinZoom=6, Color=white, DashStyle=solid, BorderColor=gray, BorderDashStyle=Dash, Width=6:1;17:6) EliminateSeams
Light-Rail way railway=light_rail Polyline (MinZoom=6, Color=black, DashStyle=solid, BorderColor=gray, Width=6:1;17:2) EliminateSeams
.tunnel way tunnel=yes Polyline (MinZoom=6, Color=white, DashStyle=solid, BorderColor=black, BorderDashStyle=Dash, Width=6:1;17:2) EliminateSeams
Tram way railway=tram Polyline (MinZoom=6, Color=black, DashStyle=solid, BorderColor=gray, Width=6:1;17:2) EliminateSeams
.tunnel way tunnel=yes Polyline (MinZoom=6, Color=white, DashStyle=solid, BorderColor=black, BorderDashStyle=Dash, Width=6:1;17:2) EliminateSeams
RailDisused way railway=disused Polyline (MinZoom=10, Color=white, DashStyle=Dot, BorderColor=#DDDDDD, Width=10:1;17:4) EliminateSeams

Other Ways

Rule Name Targets Selector Template Options Comment
Runway way aeroway=runway Polyline (MinZoom=11, Color=#E7B27E, BorderColor=#000000, BorderWidth=1:1;12:1;15:3) 50% brownm, black border, check border widths
Taxiway way aeroway=taxiway Polyline (MinZoom=12, Color=#E7B27E, BorderColor=#000000, BorderWidth=1:1;12:1;15:3) 50% brown, black border, check border widths

Buildings

Rule Name Targets Selector Template Options Comment
BuildingResidential area building=residential Polygon (MinZoom=12, Color=#000000) 100% black
BuildingAny area building=* Polygon (MinZoom=12, Color=#000000) 100% black