Kosmos Power Rules

From OpenStreetMap Wiki
Jump to navigation Jump to search

broom

This article or section may contain out-of-date information: Kosmos has been superseded by the more powerful Maperitive from the same author. Furthermore, the rules below are outdated not reflecting the currently used tagging scheme for power features.
If you know about the current state of affairs, please help keep everyone informed by updating this information. (Discussion)
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 differently.


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)
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)
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)
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)
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)
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)