User:WolleU/kosmos/ErstExperiment

From OpenStreetMap Wiki
Jump to navigation Jump to search

Template: Kosmos_Power_Rules

This are rules for Kosmos version 1.10 and up. With these rules power network will be rendered. Version 2.2

  • 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.
  • soon: support for wires=*

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)


Motorway

Rule Name Targets Selector Template Options Comment
HighwayMotorway way highway=motorway EliminateSeams
ResidentialWay way highway=residential EliminateSeams
.* Polyline (MinZoom=9, Color=#809BC0, BorderColor=gray, Width=9:1;17:14)
Primary way highway=primary EliminateSeams
Secondary way highway=secondary EliminateSeams
Tertiary way highway=tertiary EliminateSeams
.Bridge bridge=yes Polyline (MinZoom=9, Color=#809BC0, BorderColor=gray, Width=9:1;17:14, BorderWidth=30%)
HighwayMotorwayLink way highway=motorway_link Polyline (MinZoom=9, Color=#809BC0, BorderColor=gray, Width=9:1;17:14) 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=1:1;10:1;12:2)
.DeutscheBahnAG way operator=Deutsche_Bahn_AG Polyline (Color=green, BorderColor=green, Width=1:1;10:1;12:2)
.EnBW way operator=EnBW Polyline (Color=lime, BorderColor=lime, Width=1:1;10:1;12:2)
.EON way operator=EON_Netz Polyline (Color=#ff00ff, BorderColor=#ff00ff, Width=1:1;10:1;12:2)
.RWE way operator=RWE Polyline (Color=blue, BorderColor=blue, Width=1:1;10:1;12:2)
.StadtwerkeHannover way operator=Stadtwerke_Hannover_AG Polyline (Color=#ff00ff, BorderColor=#ff00ff, Width=1:1;10:1;12:2)
.VET way operator=Vattenfall_Europe_Transmission Polyline (Color=orange, BorderColor=orange, Width=1:1;10:1;12:2)
.operator way operator=* Polyline (Color=gray, BorderColor=gray, Width=1:1;10:1;12:2)
.* way Polyline (Color=red, BorderColor=red, Width=1:1;12:1;14:2)


Power:Tower

Rule Name Targets Selector Template Options Photo
PowerTower node power=tower Symbol (Type=Circle, MinZoom=13, Color=lightgray, BorderColor=lightgray, BorderWidth=0%, size=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
PowerStationNode node power=station Symbol (Type=Square, MinZoom=9, Color=yellow, BorderColor=red, BorderWidth=0%, size=12:8;15:10)
Text (MinZoom=12, Color=black, TagToUse=ref;name;operator, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
PowerStationArea area power=station Polygon (MinZoom=9, Color=yellow, BorderColor=red, BorderWidth=1:1;16:1)
Text (MinZoom=12, Color=black, TagToUse=ref;name;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=11, Color=yellow, BorderColor=red, BorderWidth=0%, size=12:8;15:10)
Text (MinZoom=12, Color=black, TagToUse=ref;name;operator, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:8;15:10)
PowerSub_stationArea area power=sub_station Polygon (MinZoom=11, Color=yellow, BorderColor=red, BorderWidth=1:1;16:1)
Text (MinZoom=12, Color=black, TagToUse=ref;name;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=9, 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=9, 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=9, 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=9, 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 Symbol (Type=Triangle, MinZoom=7, Color=white, BorderColor=black, BorderWidth=0%, size=10:5;14:16, Density=1:5;10:10;16:24)
Text (MinZoom=12, Color=black, TagToUse=name;ref;operator, FontName=Times New Roman, FontStyle=bold, FontSize=12:8;15:10, TextMode=AreaCenter)