Kosmos Power Rules

From OpenStreetMap Wiki
Jump to: navigation, search
Kosmos Power Rules.png

This are rules for Kosmos version 2.x and up. With these rules power network will be rendered. Version 3.1 from July 28, 2009

  • power:(tower,line,generator,sub_station)
  • Node Area man_made=*:power_(fossil/hydro/nuclear/wind) and power_source=*:(biofossil,oil,gas,coal,hydro,wave,solar,nuclear,wind)
  • Text for power lines, towers, and man_made:power_(fossil/hydro/nuclear/wind) and power_source:(biofossil,oil,gas,coal,hydro,wave,solar,nuclear,wind) rendered with name or ref or operator. (in this order)
  • borders and coastlines is rendered for better orientation
  • Generator without power_source will be displayed as white triangle with black border. But power_source without power=generator will not be displayed.
  • special for Germany: operators are rendered differnetly.


Borders

Rule Name Targets Selector Template Options Comment
Border Way boundary=administrative
.level2 admin_level=2 Polyline (MinZoom=1, Color=black, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level4 admin_level=4 Polyline (MinZoom=8, Color=black, DashStyle=DashDot, Width=1:1;8:1.5;17:6)
.level8 admin_level=8 Polyline (MinZoom=12, Color=#A4A4A4, DashStyle=Dot, Width=1:1;9:1.5;5:5))
.* Polyline (MinZoom=12, Color=black, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
Coastline Way natural=coastline Polyline (MinZoom=1, Color=#8BCCE5, Width=11:1;17:5, Curved=true)

Water Features

Rule Name Targets Selector Template Options Comment
Water Area natural=water Polygon (Color=lightblue)
Marsh Area natural=marsh Polygon (Color=blue, BackgroundColor=#00000000, BorderColor=blue, BorderWidth=1:1;12:1;15:3, HatchStyle=DashedHorizontal)
River Way waterway=river Polyline (MinZoom=5, Color=lightblue, Width=5:1;10:2;17:14, Curved=true)
Drain Way waterway=drain Polyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, Curved=true)
Stream Way waterway=stream Polyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, Curved=true)
Canal Way waterway=canal Polyline (MinZoom=5, Color=lightblue, Width=5:1;10:1;17:10, Curved=true)
Riverbank Area waterway=riverbank Polygon (Color=lightblue)
Land Area natural=land Polygon (Color=white)

Motorway

Rule Name Targets Selector Template Options Comment
HighwayMotorway Way highway=motorway EliminateSeams
.Bridge bridge=yes Polyline (MinZoom=9, Color=#809BC0, BorderColor=gray, Width=9:1;17:14, BorderWidth=30%)
.* Polyline (MinZoom=9, Color=#809BC0, BorderColor=gray, Width=9:1;17:14)
HighwayMotorwayLink Way highway=motorway_link Polyline (MinZoom=9, Color=#809BC0, BorderColor=gray, Width=9:1;17:14) EliminateSeams


Railway

Rule Name Targets Selector Template Options Comment
RailwayStation Node railway=station Symbol (Type=Diamond, MinZoom=12, Color=red, BorderColor=black, BorderWidth=15%, Size=12:6;17:20)
RailDisused Way railway=disused Polyline (MinZoom=10, Color=white, DashStyle=Dot, BorderColor=#DDDDDD, Width=12:1;17:4) EliminateSeams
Railway Way railway=* Polyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:6) EliminateSeams

Places

Rule Name Targets Selector Template Options Comment
PlaceCountry Node place=country Text (MinZoom=3, MaxZoom=6, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=3:7;7:20)
PlaceCity Node place=city Text (MinZoom=8, MaxZoom=14, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=7:10;17:30)
PlaceTown Node place=town Text (MinZoom=10.5, MaxZoom=15, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=10:10;17:25)
PlaceVillage Node place=village Text (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20)
PlaceIsland Node place=island Text (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20)
PlaceSuburb Node place=suburb Text (MinZoom=13, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=13:10;17:20)
PlaceHamlet Node place=hamlet Text (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14)
PlaceLocality Node place=locality Text (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14)
PlaceFarm Node place=farm Text (MinZoom=15, MaxZoom=19, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=15:8;17:13)


Power:Line

Rule Name Targets Selector Template Options Comment
PowerLine Way power=line Text (MinZoom=11, Color=black, TagToUse=name;ref, FontName=Arial, FontStyle=regular, FontSize=11:8;16:12)
.DBEnergie Way operator=DB_Energie Polyline (Color=green, BorderColor=green, Width=12:0;14:2)
.DeutscheBahnAG Way operator=Deutsche_Bahn_AG Polyline (Color=green, BorderColor=green, Width=12:0;14:2)
.EnBW Way operator=EnBW Polyline (Color=cyan, BorderColor=lime, Width=12:0;14:2)
.EON Way operator=EON_Netz Polyline (Color=#ff00ff, BorderColor=#ff00ff, Width=12:0;14:2)
.EON_edis Way operator=EON_edis Polyline (Color=#ff00ff, BorderColor=#ff00ff, Width=12:0;14:2)
.RWE Way operator=RWE Polyline (Color=blue, BorderColor=blue, Width=12:0;14:2)
.StadtwerkeHannover Way operator=Stadtwerke_Hannover_AG Polyline (Color=#ff00ff, BorderColor=#ff00ff, Width=12:0;14:2)
.PreussenElektra Way operator=PreussenElektra Polyline (Color=#ff00ff, BorderColor=#ff00ff, Width=12:0;14:2)
.transpower Way operator=transpower Polyline (Color=lime, BorderColor=#ff00ff, Width=12:0;14:2)
.VET Way operator=Vattenfall_Europe_Transmission Polyline (Color=orange, BorderColor=orange, Width=12:0;14:2)
.operator Way operator=* Polyline (Color=gray, BorderColor=gray, Width=12:0;14:2)
.* Way Polyline (Color=red, BorderColor=red, Width=12:0;14:2)

Power:Tower

Rule Name Targets Selector Template Options Photo
PowerTower Node power=tower Power-tower.JPG
.PTref Node ref=* Symbol (Type=Circle, MinZoom=10, Color=lime, BorderColor=lime, BorderWidth=0%, size=10:2;13:3;16:14)
Text (MinZoom=14, Color=black, TagToUse=ref;name, FontName=Arial, FontStyle=bold, FontSize=14:8;16:12)
Power-tower.JPG
.PT Node Symbol (Type=Circle, MinZoom=10, Color=red, BorderColor=red, BorderWidth=0%, size=10:2;13:3;16:14)
Text (MinZoom=14, Color=black, TagToUse=ref;name, FontName=Arial, FontStyle=bold, FontSize=14:8;16:12)
Power-tower.JPG


Power:Sub_station

Rule Name Targets Selector Template Options Photo
PowerStationNodea Node power=station Symbol (Type=Circle, MinZoom=7, Maxzoom=11, Color=#A0FFC000, BorderColor=orange, BorderWidth=2%, size=7:10;8:20;9:40;10:80)
Text (MinZoom=12, Color=black, TagToUse=name;ref;operator, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
PowerStationAreaa Area power=station Symbol (Type=Circle, MinZoom=7, Maxzoom=11, Color=#80FFC000, BorderColor=orange, BorderWidth=2%, size=7:10;8:20;9:40;10:80)
Text (MinZoom=12, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
800px-Transmissionsubstation.jpg
PowerStationNodeb Node power=station Symbol (Type=Square, MinZoom=11, Color=#A0FFC000, BorderColor=orange, BorderWidth=2%, size=12:8;15:10)
Text (MinZoom=12, Color=black, TagToUse=name;ref;operator, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
PowerStationAreab Area power=station Polygon (MinZoom=11, Color=#A0FFC000, BorderColor=orange, BorderWidth=1:1;16:1)
Text (MinZoom=12, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
800px-Transmissionsubstation.jpg
PowerSub_stationNode Node power=sub_station Symbol (Type=Square, MinZoom=9, Color=yellow, BorderColor=orange, BorderWidth=5%, size=9:8;15:10)
Text (MinZoom=14, Color=black, TagToUse=name;ref;operator, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
PowerSub_StationBuildingRaus Area power=sub_station building=yes Symbol (Type=Square, MinZoom=16, Color=white, BorderColor=white, BorderWidth=0%, size=16:1)
Text (MinZoom=16, Color=white, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=16:10, TextMode=AreaCenter)
800px-Transmissionsubstation.jpg
PowerSub_StationAreaa Area power=sub_station Symbol (Type=Circle, MinZoom=9, Maxzoom=12, Color=#80FFFF00, BorderColor=orange, BorderWidth=2%, size=9:20;10:40)
Text (MinZoom=12, Color=red, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
800px-Transmissionsubstation.jpg
PowerSub_stationAreab Area power=sub_station Polygon (MinZoom=12, Color=yellow, BorderColor=orange, BorderWidth=1:1;16:1)
Text (MinZoom=14, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
800px-Transmissionsubstation.jpg


Node Man_made:Power_(...)

Rule Name Targets Selector Template Options Comment
Man_madePower_fossilNode Node man_made=power_fossil Symbol (Type=Diamond, MinZoom=8, Color=brown, BorderColor=black, BorderWidth=0%, size=10:5;14:16)
Text (MinZoom=13, Color=black, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
Man_madePower_hydroNode Node man_made=power_hydro Symbol (Type=Diamond, MinZoom=8, Color=blue, BorderColor=black, BorderWidth=0%, size=10:5;14:16)
Text (MinZoom=13, Color=black, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
Man_madePower_nuclearNode Node man_made=power_nuclear Symbol (Type=Diamond, MinZoom=8, Color=orange, BorderColor=black, BorderWidth=0%, size=10:5;14:16)
Text (MinZoom=13, Color=black, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
Man_madePower_windNode Node man_made=power_wind Symbol (Type=Circle, MinZoom=8, Color=cyan, BorderColor=black, BorderWidth=0%, size=10:5;16:15)
Text (MinZoom=13, Color=black, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)

Area Man_made:Power_(...)

Rule Name Targets Selector Template Options Comment
Man_madePower_fossilArea Area man_made=power_fossil Polygon (MinZoom=6, Color=brown, BorderColor=brown, BorderWidth=1:1;16:1, BackgroundColor=green)
Text (MinZoom=13, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
Man_madePower_hydroArea Area man_made=power_hydro Polygon (MinZoom=6, Color=blue, BorderColor=blue, BorderWidth=1:1;16:1, BackgroundColor=green)
Text (MinZoom=13, Color=lime, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
Man_madePower_nuclearArea Area man_made=power_nuclear Polygon (MinZoom=6, Color=orange, BorderColor=orange, BorderWidth=1:1;16:1, BackgroundColor=green)
Text (MinZoom=13, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
Man_madePower_windArea Area man_made=power_wind Polygon (MinZoom=6, Color=cyan, Options=TopLevel, BorderColor=orange, BorderWidth=1:1;16:1, BackgroundColor=green)
Text (MinZoom=13, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)

Node Power_source

Rule Name Targets Selector Template Options Comment
power_sourceNode Node power=generator
.power_sourceBiofuelNode power_source=biofuel Symbol (Type=Diamond, MinZoom=8, Color=green, BorderColor=black, BorderWidth=0%, size=10:5;14:16)
Text (MinZoom=13, Color=green, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
.power_sourceCoalNode power_source=coal Symbol (Type=Diamond, MinZoom=8, Color=gray, BorderColor=black, BorderWidth=0%, size=10:5;14:16)
Text (MinZoom=13, Color=black, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
.power_sourceGasNode power_source=gas Symbol (Type=Diamond, MinZoom=8, Color=yellow, BorderColor=black, BorderWidth=0%, size=10:5;14:16)
Text (MinZoom=13, Color=black, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
.power_sourceHydroNode power_source=hydro Symbol (Type=Diamond, MinZoom=8, Color=blue, BorderColor=black, BorderWidth=0%, size=10:5;14:16)
Text (MinZoom=13, Color=green, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
.power_sourceNuclearNode power_source=nuclear Symbol (Type=Diamond, MinZoom=8, Color=orange, BorderColor=black, BorderWidth=0%, size=10:5;14:16)
Text (MinZoom=13, Color=black, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
.power_sourceOilNode power_source=oil Symbol (Type=Diamond, MinZoom=8, Color=black, BorderColor=black, BorderWidth=0%, size=10:5;14:16)
Text (MinZoom=13, Color=black, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
.power_sourceSolarNode power_source=solar Symbol (Type=Square, MinZoom=8, Color=lightgray, BorderColor=black, BorderWidth=0%, size=10:5;14:16)
Text (MinZoom=13, Color=black, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
.power_sourceWaveNode power_source=wave Symbol (Type=Diamond, MinZoom=8, Color=blue, BorderColor=black, BorderWidth=0%, size=10:5;14:16)
Text (MinZoom=13, Color=green, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
.power_sourceWindNode power_source=wind Symbol (Type=Circle, MinZoom=8, Color=cyan, BorderColor=cyan, BorderWidth=0%, size=10:2;16:15)
Text (MinZoom=13, Color=black, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
.* power=generator Symbol (Type=Triangle, MinZoom=7, Color=white, BorderColor=black, BorderWidth=0%, size=10:5;14:16)
Text (MinZoom=12, Color=black, TagToUse=name;ref;operator, TextLineOffset=-200%, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)


Area Power_source

Rule Name Targets Selector Template Options Comment
power_sourceArea Area power=generator
.power_sourceBiofuelArea power_source=biofuel Polygon (MinZoom=9, Color=green, BorderColor=black, BorderWidth=1:1;16:1)
Text (MinZoom=12, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
.power_sourceCoalArea power_source=coal Polygon (MinZoom=9, Color=gray, BorderColor=black, BorderWidth=1:1;16:1, BackgroundColor=green)
Text (MinZoom=12, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
.power_sourceGasArea power_source=gas Polygon (MinZoom=9, Color=yellow, BorderColor=black, BorderWidth=1:1;16:1, BackgroundColor=green)
Text (MinZoom=12, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
.power_sourceHydroArea power_source=hydro Polygon (MinZoom=9, Color=blue, BorderColor=black, BorderWidth=1:1;16:1)
Text (MinZoom=12, Color=lime, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
.power_sourceNuclearArea power_source=nuclear Polygon (MinZoom=9, Color=orange, BorderColor=black, BorderWidth=1:1;16:1)
Text (MinZoom=12, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
.power_sourceOilArea power_source=oil Polygon (MinZoom=9, Color=black, BorderColor=black, BorderWidth=1:1;16:1, BackgroundColor=green)
Text (MinZoom=12, Color=gray, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
.power_sourceSolarArea power_source=solar Polygon (MinZoom=9, Color=lightgray, BorderColor=black, BorderWidth=1:1;16:1)
Text (MinZoom=12, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
.power_sourceWaveArea power_source=wave Polygon (MinZoom=9, Color=#5555ff, BorderColor=black, BackgroundColor=blue, BorderWidth=1:1;16:1, HatchStyle=DashedHorizontal)
Text (MinZoom=12, Color=lime, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
.power_sourceWindArea power_source=wind Polygon (MinZoom=9, Color=cyan, Options=TopLevel, BorderColor=cyan, BorderWidth=1:1;16:1, BackgroundColor=cyan)
Text (MinZoom=12, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)
.* power=generator Polygon (MinZoom=7, Color=gray, BorderColor=gray, size=10:5;14:16, BorderWidth=1:1;16:1)
Text (MinZoom=12, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)

Routes

Rule Name Targets Selector Template Options Comment
RelationOperatorDB_Energie Relation type=route route=power operator=DB_Energie Polyline (MinZoom=7, Color=#4050FF50, Width=7:1;17:10, Curved=true)
RelationOperatorVET Relation type=route route=power operator=Vattenfall_Europe_Transmission Polyline (MinZoom=7, Color=#40FFFF00, Width=7:1;17:10, Curved=true)
RelationOperatorEON_Netz Relation type=route route=power operator=EON_Netz Polyline (MinZoom=7, Color=#40FF00FF, Width=7:1;17:10, Curved=true)
RelationOperatorRWE Relation type=route route=power operator=RWE Polyline (MinZoom=7, Color=#400202FE, Width=7:1;17:10, Curved=true)
RouteFoot Relation type=route route=foot Polyline (MinZoom=7, Color=#500000aa, Width=7:1;17:10, Curved=true)