User:Craigfeuerherdt/Kosmos
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.
- See Kosmos Rendering Help for help on how to write rendering rules.
- 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 | natural=coastline | Polyline (MinZoom=1, Color=#000000, Width=11:1;17:5, Curved=true) | black, line width needs checking | ||
Beach | natural=beach | Polygon (Color=#F9E199) | 50% yellow | ||
Wood | natural=wood | Polygon (Color=#BFEDBB) | 30% green | ||
Scrub | natural=scrub | Polygon (Color=#BFEDBB) | 30% green | ||
Fell | natural=fell | Polygon (Color=#BFEDBB) | 30% green | ||
Farm | landuse=farm | Polygon (Color=#FFBB35) | 100% yellow | ||
Quarry | landuse=quarry | Polygon (Color=#FFBB35) | 100% yellow | ||
Residential | landuse=residential | Polygon (Color=#96E9A1) | 50% green | ||
Industrial | landuse=industrial | Polygon (Color=#96E9A1) | 50% green | ||
Commercial | landuse=commercial | Polygon (Color=#96E9A1) | 50% green | ||
Hospital | amenity=hospital | Polygon (Color=#96E9A1) | 50% green | ||
Retail | landuse=retail | Polygon (Color=#96E9A1) | 50% green | ||
Reservoir | landuse=reservoir | Polygon (Color=#99B8FF, BorderColor=#000000, BorderWidth=1:1;12:1;15:3) | 50% blue, check line widths | ||
Basin | landuse=basin | Polygon (Color=#99B8FF, BorderColor=#000000, BorderWidth=1:1;12:1;15:3) | 50% blue, check line widths | ||
Forest | landuse=forest | Polygon (Color=#BFEDBB) | 30% green | ||
Cemetery | landuse=cemetery | Polygon (Color=#FFBB35) | 100% yellow | ||
Allotments | landuse=allotments | Polygon (Color=#96E9A1) | 50% green | ||
Grass | landuse=grass | Polygon (Color=#FFBB35) | 100% yellow | ||
Skiing | sport=skiing | Polygon (Color=#FFBB35) | 100% yellow | ||
HorseRacing | sport=horse_racing | Polygon (Color=#96E9A1) | 50% green | ||
Tennis | sport=tennis | Polygon (Color=#FFBB35) | 100% yellow | ||
Swimming | sport=swimming | Polygon (Color=#99B8FF, BorderColor=#000000, BorderWidth=1:1;12:1;15:3) | 50% blue, check line widths | ||
Park | leisure=park | Polygon (Color=#FFBB35) | 100% yellow | ||
Pitch | leisure=pitch | Polygon (Color=#FFBB35) | 100% yellow | ||
GolfCourse | leisure=golf_course | Polygon (Color=#96E9A1) | 50% green | ||
Common | leisure=common | Polygon (Color=#FFBB35) | 100% yellow |
Water Features
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
Water | natural=water | Polygon (Color=#99B8FF, BorderColor=#000000, BorderWidth=1) | 50% blue | ||
Marsh | natural=marsh | Polygon (Color=#FFFFFF, BackgroundColor=#4B6FFF, HatchStyle=LightHorizontal) | 100% blue | ||
River | waterway=river | Polyline (Color=#4B6FFF, BorderColor=#000000, BorderWidth=1) | 100% blue | ||
Drain | waterway=drain | Polyline (Color=#4B6FFF, Width=1, Curved=true) | 100% blue | ||
Stream | waterway=stream | Polyline (Color=#4B6FFF, Width=1, Curved=true) | 100% blue | ||
Canal | waterway=canal | Polyline (Color=#4B6FFF, Width=1, Curved=true) | 100% blue | ||
Riverbank | waterway=riverbank | Polygon (BorderColor=#000000, BorderWidth=1) | black outline | ||
Land | natural=land | Polygon (Color=#FFBB35) | 100% yellow |
Other Land Features
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
Contours | ele=* | for elevation contours generated by Srtm2Osm | |||
.Major | ValueNum(e,"ele") % 100 = 0 | Polyline (MinZoom=11, Color=#D15C00, Width=2, Curved=true) | Major contours (100m ones) | ||
.* | Polyline (MinZoom=12, Color=#D15C00, Width=1, Curved=true) | all other contours |
Highways
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
HighwayFootway | highway=footway | Polyline (Color=#000000, DashStyle=DashDot, Width=1) | EliminateSeams | black | |
HighwayPath | highway=path | Polyline (Color=#000000, DashStyle=Dash, Width=1) | EliminateSeams | black | |
HighwaySteps | highway=steps | Polyline (Color=#FFDE93, DashStyle=Dot, BorderColor=gray, Width=13:1;17:6) | EliminateSeams | how to symbolise! | |
HighwayBridleway | highway=bridleway | Polyline (Color=#000000, DashStyle=Dash, Width=2) | EliminateSeams | black, check width & dashes | |
HighwayUnpaved | highway=unpaved | Polyline (Color=#000000, DashStyle=Dash, Width=2) | EliminateSeams | black | |
HighwayUnsurfaced | highway=unsurfaced | Polyline (Color=#000000, DashStyle=Dash, Width=2) | EliminateSeams | black | |
HighwayUnclassified | highway=unclassified | Polyline (Color=#E3AA73, BorderColor=#000000, Width=2) | EliminateSeams | 50% brown, black outline | |
HighwayPedestrian | highway=pedestrian | Polyline (Color=#000000, DashStyle=DashDot, Width=1) | EliminateSeams | black | |
HighwayResidential | highway=residential | Polyline (Color=#E3AA73, BorderColor=#000000, Width=3) | EliminateSeams | 50% brown, black outline | |
HighwayService | highway=service | Polyline (Color=#E3AA73, BorderColor=#000000, Width=2) | EliminateSeams | 50% brown, black outline | |
HighwayMinor | highway=minor | Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) | EliminateSeams | 50% brown, black outline | |
HighwayTrack | highway=track | Polyline (Color=#000000, DashStyle=Dash, Width=2) | EliminateSeams | black | |
HighwayTertiary | highway=tertiary | Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) | EliminateSeams | 50% brown, black outline | |
HighwaySecondary | 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 | 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 | highway=primary_link | Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) | EliminateSeams | 50% brown, black outline | |
HighwayTrunk | highway=trunk | Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) | EliminateSeams | 50% brown, black outline | |
HighwayTrunkLink | highway=trunk_link | Polyline (Color=#E3AA73, BorderColor=#000000, Width=4) | EliminateSeams | 50% brown, black outline | |
HighwayMotorway | 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 | 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 | railway=rail | Polyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:6) | EliminateSeams | ||
.tunnel | tunnel=yes | Polyline (MinZoom=6, Color=white, DashStyle=solid, BorderColor=gray, BorderDashStyle=Dash, Width=6:1;17:6) | EliminateSeams | ||
Light-Rail | railway=light_rail | Polyline (MinZoom=6, Color=black, DashStyle=solid, BorderColor=gray, Width=6:1;17:2) | EliminateSeams | ||
.tunnel | tunnel=yes | Polyline (MinZoom=6, Color=white, DashStyle=solid, BorderColor=black, BorderDashStyle=Dash, Width=6:1;17:2) | EliminateSeams | ||
Tram | railway=tram | Polyline (MinZoom=6, Color=black, DashStyle=solid, BorderColor=gray, Width=6:1;17:2) | EliminateSeams | ||
.tunnel | tunnel=yes | Polyline (MinZoom=6, Color=white, DashStyle=solid, BorderColor=black, BorderDashStyle=Dash, Width=6:1;17:2) | EliminateSeams | ||
RailDisused | 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 | aeroway=runway | Polyline (MinZoom=11, Color=#E7B27E, BorderColor=#000000, BorderWidth=1:1;12:1;15:3) | 50% brownm, black border, check border widths | ||
Taxiway | 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 | building=residential | Polygon (MinZoom=12, Color=#000000) | 100% black | ||
BuildingAny | building=* | Polygon (MinZoom=12, Color=#000000) | 100% black |