User:Craigfeuerherdt/Kosmos

From OpenStreetMap Wiki
Jump to: navigation, 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