User:Baiuvarius/Topo 50/Topo 50.mrules

From OpenStreetMap Wiki
Jump to navigation Jump to search

Topo 50.mrules

//Maperitive-Rendering-Regeln für topographische Karten
//Baiuvarius

import-script:round.py

features
	Autobahnknoten:way[highway=motorway].node[highway=motorway_junction]
//	Landschaft: (@isOneOf(place,island,islet,archipelago) or @isoneof(natural,valley,gorge,ridge,arete,cliff,saddle,sinkhole)) AND name

	points,areas
		Ortsname 1 : @isOneOf(place,city,town,village,municipality)
		Ortsname 2 : @isOneOf(place,borough,suburb,quarter,neighbourhood,hamlet,isolated_dwelling,farm)
// and not type=multipolygon
//	points,areas
		Flaechenname Landschaft: (@isOneOf(place,archipelago,island,islet,locality) or @isoneof(natural,valley,cliff,sinkhole,bare_rock,scree,shingle,sand,dune,beach,mud)) AND name
		Flaechenname Gewaesser: (place=sea or @isoneof(natural,glacier,bay,strait,reef,shoal) or (natural=water and not @isoneof(water, river, canal, fish_pass, lock, wastewater)) OR @isOneOf(landuse,reservoir,basin) or wetland=tidalflat) and name
		Flaechenname Vegetation: (@isoneof(natural,wood,scrub,heath,moor,grassland,fell) or (natural=wetland and not (wetland=tidalflat or wetland=saltern)) or landuse=forest or landuse=meadow) and name

		Bergbau : man_made=mineshaft or landuse=quarry
		Kraftwerk : power=plant
		Umspannstation : power=substation and @isoneof(substation,transmission,converter)
		Erdoelpumpe : man_made=petroleum_well or (man_made=pumping_rig and type=oil)
		Gaspumpe : man_made=gas_well or (man_made=pumping_rig and type=gas)
		Klaeranlage : man_made=wastewater_plant
		Sportplatz : leisure=pitch
		Stadion : leisure=stadium
		Campingplatz : tourism=camp_site
		Schloss : historic=castle
		Dom : building=cathedral
		Kirche : building=church OR (amenity=place_of_worship and building and religion=christian)
		Kapelle : building=chapel OR historic=wayside_chapel
		Synagoge: building=synagogue or (amenity=place_of_worship and religion=jewish)
		Moschee: building=mosque or (amenity=place_of_worship and religion=muslim)
		Krankenhaus: amenity=hospital
		Windmuehle : man_made=windmill
		Wassermuehle : man_made=watermill
		Wasserbehaelter : man_made=reservoir_covered OR (man_made=storage_tank AND content=water)
		Wasserturm : man_made=water_tower
		Leuchtturm : man_made=lighthouse
		Sendeturm : man_made=communications_tower OR (man_made=tower AND tower:type=communication)
		Kuehlturm: man_made=tower and tower:type=cooling
		Turm : man_made=tower and not (tower:type=communication or tower:type=cooling)
		Schornstein : man_made=chimney
		Hoehleneingang : natural=cave_entrance
		Steinsetzung : site_type=megalith
		Huegelgrab : site_type=tumulus
		Denkmal:historic=monument OR artwork_type=statue OR man_made=obelisk OR (historic=memorial AND NOT (@isOneOf(memorial:type,stolperstein,Stolperstein,plate,plaque) OR @isOneOf(memorial,plaque,blue_plaque,stolperstein)))
		Kreuz : historic=wayside_shrine OR historic=wayside_cross or man_made=cross or summit:cross=yes
		Hubschrauberlandeplatz : aeroway=helipad
		Funkmast : (man_made=mast OR man_made=antenna) AND tower:type=communication
		Radioteleskop: man_made=telescope and telescope:type=radio
		Felsen:natural=rock OR natural=stone
		Quelle : natural=spring and not amenity=drinking_water
		Brunnen : man_made=water_well or amenity=fountain
		Herberge: tourism=hostel
		Huette: tourism=wilderness_hut
		Huette bewirtschaftet: tourism=alpine_hut
		Unterstand: amenity=shelter and not shelter_type=public_transport
		Aussichtspunkt: tourism=viewpoint and not man_made=tower
		Trinkwasser: amenity=drinking_water or (man_made=water_tap and drinking_water=yes) or (amenity=watering_place and drinking_water=yes)
		Golfplatz : leisure=golf_course
		Bunker: military=bunker or building=bunker

	lines,areas
		Fussgaengerzone: highway=pedestrian
		Staudamm: waterway=dam
	points
		Berggipfel: natural=peak OR natural=volcano
		Sattel: natural=saddle or mountain_pass=yes
		Hoehenpunkt : man_made=survey_point AND ele
		Wegweiser : information=guidepost and ele and not (@isoneof(natural,peak,volcano,saddle) or mountain_pass=yes)

		Windrad : power=generator AND generator:source=wind
		Bahnhof : railway=station or railway=halt
		Grenzuebergang: barrier=border_control
		Bake : seamark=beacon or man_made=beacon
		Hochspannungsmast : power=tower
		Baum : natural=tree AND (name OR denotation=landmark OR denotation=natural_monument OR monument=yes)
		Gewaessereinzelzeichen: waterway_direction
		Barriere 1: (@isoneof(barrier, block, bollard, bump_gate, bus_trap, cycle_barrier, gate, motorcycle_barrier, sump_buster) and not bicylce=no) or (barrier and bicycle=yes)
		Barriere 2: (@isoneof(barrier, chain, debris, hampshire_gate, horse_stile, jersey_barrier, kissing_gate, lift_gate, log, rope, spikes, stile, swing_gate, turnstile) and not bicycle=yes) or (barrier and bicycle=no)
		Brueckenanfang:bridge_start=yes and not bridge_end
		Brueckenende:bridge_end=yes and not bridge_start
		Tunnelportal anfang:tunnel_start=yes and not tunnel_end
		Tunnelportal ende:tunnel_end=yes and not tunnel_start

	lines
//		Name Gewaesserachse breit: waterway_label=river OR waterway_label=canal
//		Name Gewaesserachse schmal: @isOneOf (waterway_label,stream,drain,ditch)
		Landschaft Linie 1: @isoneof(natural,valley,ridge) AND name
		Landschaft Linie 2: @isoneof(natural,gorge,arete,cliff) AND name
		Tunnelachse: (highway or railway) and (tunnel and not tunnel=no) and not (@isoneof(highway,proposed,planned,construction) or @isoneof(railway,proposed,planned,construction))

		Wall : site_type=fortification
		Einfriedung : barrier=fence or (barrier=wall and historic) or barrier=city_wall or historic=citywalls

		// Straßen und Wege
		Schnellstrasse : highway=motorway or (highway=trunk and (oneway=yes and not junction=roundabout))
		Schnellstrassenrampe : highway=motorway_link or highway=trunk_link
		Hauptstrasse 1 : highway=primary OR highway=primary_link or (highway=trunk and (not oneway=yes or junction=roundabout))
		Hauptstrasse 2 : highway=secondary OR highway=secondary_link
		Hauptstrasse 3 : highway=tertiary OR highway=tertiary_link
		Nebenstrasse : highway=unclassified
		Ortsstrasse : @isOneOf(highway,road,residential,living_street) or (highway=service and not @isoneof(service,parking_aisle,drive-through,driveway))
		Hauptweg: highway=track AND tracktype=grade1
		Radweg: highway=cycleway OR (highway=path AND @isOneOf(surface,paved,asphalt,concrete*,paving_stones))
		Weg 1: (highway=track AND tracktype=grade2 AND NOT (@isOneOf(smoothness,bad,very_bad,horrible,very_horrible,impassable)))
		Weg 2: highway=track AND (NOT (tracktype=grade1 OR tracktype=grade2) OR @isOneOf(smoothness,bad,very_bad,horrible,very_horrible,impassable))
		Pfad : (highway=path AND NOT @isOneOf(surface,paved,asphalt,concrete*,paving_stones)) OR @isoneof(highway,footway,bridleway,steps)

		// Straßen im Bau
		Schnellstrasse im Bau : @isOneOf(construction,motorway,motorway_link,trunk,trunk_link)
		Schnellstrassenrampe im Bau: @isOneOf(construction,motorway_link,trunk_link)
		Hauptstrasse im Bau : @isOneOf(construction,primary,primary_linksecondary,secondary_link,tertiary,tertiary_link)
		Nebenstrasse im Bau : @isOneOf(construction,unclassified,service,road,residential,living_street)

		// Eisenbahnen
		Eisenbahn : railway=rail or railway=light_rail
		Eisenbahn im Bau : construction=rail or construction=light_rail
		Eisenbahn stillgelegt: railway=disused and not @isoneof(disused:railway,subway,tram,station,halt,platform,water_tower)
		Schmalspurbahn : @isoneof(railway,narrow_gauge,funicular,monorail)
		// or (railway=rail and rack and not rack=no)
		// Schmalspurbahn: auch Standseil-, Einschienenbahn
		Tram: railway=tram
		Luftseilbahn : @isoneof(aerialway,cable_car,gondola,mixed_lift)
		Materialseilbahn : aerialway=goods
		Skilift: @isoneof(aerialway,chair_lift,drag_lift,t-bar,j-bar,platter,rope_tow)

		Runway : aeroway=runway
		Taxiway : aeroway=taxiway
		Faehrlinie : route=ferry
		Pier : man_made=pier
		Kai: man_made=quay
		Buhne : man_made=groyne OR man_made=breakwater
		Hochspannungsleitung : power=line
		Rohrleitung : man_made=pipeline AND location=overground
		Foerderband: man_made=goods_conveyor
		Baumreihe: natural=tree_row
		Hecke : barrier=hedge or barrier=hedge_bank

		Gewaesserachse breit: waterway=river OR waterway=canal
		Gewaesserachse schmal: @isOneOf (waterway,stream,drain,ditch)
//		Staudamm Linie: waterway=dam and not area
		Wehr : waterway=weir
		Wasserfall: waterway=waterfall
		Schleusentor: waterway=lock_gate

		// Höhenlinien
		// Flachland: 20/10/5/(2.5)
		// Mittelgebirge: 50/10/5/(2.5)
		// Hochgebirge: 100/20/10/5/(2.5)
		// in Maperitive aber nur ganzzahlige Höhen
		Zaehllinie : contour[@isMulti(elevation, 100)]
		Hauptlinie : contour[@isMulti(elevation, 20) and not @isMulti(elevation, 100)]
		Hilfslinie 1 : contour[@isMulti(elevation, 10) and not @isMulti(elevation, 20)]
		Hilfslinie 2 : contour[@isMulti(elevation, 5) and not @isMulti(elevation, 10)]

		Boeschung: man_made=embankment
		Gelaendekante: natural=cliff OR natural=river_terrace
		Stuetzmauer : barrier=retaining_wall
		Deich: man_made=dyke and not highway

		// Grenzen
		Verwaltungsgrenze : way[boundary=administrative]
		Nationalparkgrenze : (boundary=protected_area AND protect_class=2) OR boundary=national_park
		NSGgrenze : (boundary=protected_area AND protect_class=4) or leisure=nature_reserve
		TrUebPlgrenze : military=training_area OR military=danger_area
	areas
		Gemeinde: boundary=administrative and gemeinde=yes and not place
		Siedlungsflaeche: landuse=residential or landuse=retail
		Industrieflaeche: landuse=industrial or landuse=commercial
		Deponie: landuse=landfill
		Friedhof: landuse=cemetery or amenity=grave_yard
		Erholungsflaeche: landuse=recreation_ground or @isoneof(leisure,common,stadium,water_park,golf_course) or (leisure=sports_centre and not building=yes)
		Park : leisure=park
		Gebaeude : building AND NOT building=no
		Parkplatz: amenity=parking
		Flugplatz: aeroway=aerodrome
		Vorfeld : aeroway=apron
		Schienenverkehrsfläche: landuse=railway
		Raststaette: highway=services or highway=rest_area
		Wiese : landuse=meadow OR natural=grassland
		Garten : leisure=garden or landuse=allotments
		Plantage : landuse=orchard OR landuse=plant_nursery
		Heide : natural=heath
		Feuchtgebiet: @isoneof(natural,wetland,moor,mud)
		Wald : landuse=forest OR natural=wood
		Gebuesch : natural=scrub
		Hopfen : landuse=farmland AND crop=hop
		Weingarten : landuse=vineyard
		Fels : natural=bare_rock
		Gletscher : natural=glacier
		Steine : natural=shingle OR natural=scree or (natural=beach and @isoneof(surface,gravel,fine_gravel,pebblestone,pebbles))
		Sand : natural=sand or natural=dune or (natural=beach and surface=sand)
		Gewaesserflaeche : waterway=riverbank OR natural=water OR landuse=reservoir or (landuse=basin and not @isoneof(basin,detention,infiltration))
//		Staudamm Flaeche: waterway=dam

properties
	curved : false
	font-family : LM Roman 10
	text-letter-spacing: -0.05
	font-style:italic
	font-size:15
	font-weight:bold
	text-halo-width : 5
	text-halo-color:#fefefe
	text-halo-opacity:80%
	map-background-color:white
	map-sea-color:#ccffff
	text-avoid-overlaps:false
	//detect-label-collision:true
	text-line-spacing:0.66
	line-color:black
	border-color:black
	fill-color:black
	map.rendering.lflp.min-buffer-space : 5
	map.rendering.lflp.max-allowed-corner-angle : 30

rules

//Beschriftungen
	target : Ortsname 1
		define
			text-max-width:1000
			text-align-horizontal: near
			text-offset-vertical:-50%
		for : place=city
			define
				text-offset-horizontal:75
				text : @up(name)
				font-family : LM Roman 12
				font-style:normal
				font-stretch:0.8
			for : population>=1000000
				define
					font-size : 75
			elsefor : population>=500000
				define
					font-size : 70
			elsefor : population>=200000
				define
					font-size : 65
			else
				define
					font-size : 60
		elsefor : place=town
			define
				text-offset-horizontal:50
				text : @up(name)
				font-style:normal
				font-stretch:0.8
			for: gemeinde=yes
				define
					font-family : LM Roman 12
			else
				define
					font-family : LM Roman Slanted 10
			for : population>=100000
				define
					font-size : 60
			elsefor : population>=50000
				define
					font-size : 55
			elsefor : population>=20000
				define
					font-size : 50
			elsefor : population>=10000
				define
					font-size : 45
			else
				define
					font-size : 40
		elsefor : place=village OR place=municipality
			define
				text-offset-horizontal:30
			for: gemeinde=yes
				define
					font-family:LM Roman 12
					font-style:normal
			elsefor: population>=1000
				define
					font-family:LM Roman Slanted 10
					//font-style:normal
					//font-weight:normal
					font-stretch: 0.9
			for : population>=50000
				define
					font-size : 55
			elsefor : population>=10000
				define
					font-size : 50
			elsefor : population>=5000
				define
					font-size : 45
			elsefor : population>=1000
				define
					font-size : 40
			else
				define
					font-size : 35
		draw : text
		for : ele
			define
				font-family: LM Sans Demi Cond 10
				font-size : 15
				font-style : normal
				font-weight: normal
				font-stretch:1.05
				text-letter-spacing: 0
				text-offset-vertical : 50%
				text : "("ele")"
			draw : text
	target: Gemeinde
		define
			font-family:LM Roman 12
			font-style:normal
			text-letter-spacing:0.5
		for : population>=50000
			define
				font-size : 55
		elsefor : population>=10000
			define
				font-size : 50
		elsefor : population>=5000
			define
				font-size : 45
		elsefor : population>=1000
			define
				font-size : 40
		else
			define
				font-size : 35
		draw : text

	target:Berggipfel
		define
			font-family: LM Roman Unslanted 10
			font-size : 25
			font-style:normal
			text-align-vertical:far
			text-offset-vertical:-40%
		draw : text
	target:Sattel
		define
			font-family: LM Roman Unslanted 10
			font-size : 25
			font-style:normal
			text-align-vertical:far
			text-offset-vertical:-25%
		draw : text
	target : Ortsname 2
		define
			text-max-width:1000
			text-align-horizontal: near
			text-offset-vertical:-50%
		for : place=suburb or place=neighbourhood
			define
				text-offset-horizontal:30
			for : population>=1000
				define
					font-family : LM Roman Slanted 9
					font-style:normal
					font-weight:normal
			for : population>=10000
				define
					text : @up(name)
					font-stretch:0.85
			for : population>=100000
				define
					font-size : 55
			elsefor : population>=50000
				define
					font-size : 50
			elsefor : population>=10000
				define
					font-size : 45
			elsefor : population>=2000
				define
					font-size : 40
			elsefor : population>=1000
				define
					font-size : 35
			elsefor : population>=100
				define
					font-size : 30
			else
				define
					font-size : 25
		elsefor : place=hamlet
			define
				font-size : 25
				text-offset-horizontal:10
		elsefor : place=isolated_dwelling OR place=farm
			define
				font-size : 20
		draw : text
		for : ele
			define
				font-family: LM Sans Demi Cond 10
				font-size : 15
				font-style : normal
				font-weight: normal
				font-stretch:1.05
				text-letter-spacing: 0
				text-offset-vertical : 50%
				text : "("ele")"
			draw : text
	target:Flaechenname*
		if: *Gewaesser
			define
				text-color:#0066ff
				painting-cycle:790
		elseif: *Vegetation
			define
				text-color:#006600
				painting-cycle:790
		for:place=sea or area>=50
			define
				text:@up(name)
				font-stretch:0.85
		if:*Landschaft
			define
				font-family : LM Sans 10
				//font-style:normal
				//font-weight:normal
		else
			for:place=sea or area>=10
				define
					font-family : LM Roman Slanted 9
					font-style:normal
					font-weight:normal
		for:place=sea or area>=10
			define
				font-style:normal
				font-weight:normal
		for:place=sea
			define
				font-size:100
		elsefor: area>=100
			define
				font-size:75
		elsefor: area>=50
			define
				font-size:65
		elsefor: area>=10
			define
				font-size:55
		elsefor: area>=5
			define
				font-size:45
		elsefor: area>=2
			define
				font-size:35
		elsefor: area>=0.5
			define
				font-size:25
		else
			if: *Gewaesser
				for: area>=0.02
					define
						font-size:20
				else
					stop
			else
				for: area>=0.1
					define
						font-size:20
				else
					stop
		for:ele
			define
				text-offset-vertical:20%
				text-align-vertical:far
		draw : text
		for:ele
			//define
			//	shape:custom
			//	line-join:miter
			//	shape-def: pw:1.25;p:#0066ff;f:none;m:-50,0;50,0;m:-39,96;39,93;0,28;-39,96;39,93
			//	shape-size:19
			//draw:shape
			define
				font-family:LM Sans 10
				font-size : 15
				font-style : normal
				font-weight:normal
				text-func:roundElevation(e)
				text-offset-vertical:-20%
				text-align-vertical:near
			draw:text
	target:Landschaft*
		if: *Linie and $featuretype(area)
			stop
		define
			font-family:LM Sans 10
			font-size : 40
			font-style : normal
			font-weight:normal
		if:*1
			define
				font-size : 40
				text-letter-spacing:1
		else
			define
				font-size : 15
		for:ele
			define
				text-offset-vertical:-50%
		draw : text
		for : ele
			define
				font-size : 15
				text-offset-vertical : 50%
				text-func:roundElevation(e)
			draw : text
	target:Autobahnknoten
		define
			font-size : 20
			font-weight : normal
			text:ref " " name
		//draw:text
	//Gewaesserachse siehe weiter unten

	//Einzelzeichen
	target:Berggipfel
		define
			shape:triangle
			shape-size:15
			line-width:5
			line-join:round
			line-color:#fefefe
			line-opacity:0.8
		draw:shape
		define
			shape:triangle
			shape-size:15
			line-style:none
		draw:shape
		for : ele
			define
				font-family: LM Sans 10
				font-size : 15
				font-style:normal
				//font-weight:normal
				text-offset-vertical : 100%
				text-func:roundElevation(e)
				//painting-cycle:790
			draw : text
	target:Sattel
		define
			shape:circle
			shape-size:4.5
			line-style:none
			fill-color:#fefefe
			fill-opacity:0.8
		draw:shape
		define
			shape:circle
			shape-size:2
			line-style:none
			fill-color:black
			fill-opacity:1
		draw:shape
		for : ele
			define
				font-family: LM Sans 10
				font-size : 15
				font-style:normal
				//font-weight:normal
				text-offset-vertical : 80%
				text-func:roundElevation(e)
			draw : text
	target:Felsen
		define
			line-join:round
			line-end-cap:round
			shape:custom
			shape-def: p:#fefefe,0.8;f:none;pw:5;m:-45,0;0,130,45,0;z
			shape-size:26
		draw:shape
		define
			line-join:miter
			line-end-cap:none
			shape:custom
			shape-def: pw:0;m:-45,0;0,130,45,0;z
			shape-size:26
		draw:shape
		for:name
			define
				font-size:20
				text-offset-vertical:-100%
				text-align-vertical:far
			draw:text
		for : ele
			define
				font-family: LM Sans 10
				font-size : 15
				font-style:normal
				font-weight:normal
				text-offset-vertical : 150%
				text-func:roundElevation(e)
			draw : text
	target:Bergbau
		for:man_made=mineshaft
			define
				line-join:round
				line-start-cap:round
				line-end-cap:round
				shape : custom
				shape-def : p:#fefefe,0.8;pw:6.5;-10,10,9,-9;m:10,10;-9,-9;pw:5;m:-17,9;-9,17,-5,13,-13,5;z;m:5,13;9,17,15,11,15,3;z
				shape-size:17
			for: disused=yes
				define
					angle:180
			draw : shape 
			define
				line-join:miter
				line-start-cap:none
				line-end-cap:none
				shape : custom
				shape-def : p:black;pw:1.5;-10,10,9,-9;m:10,10;-9,-9;pw:0;m:-17,9;-9,17,-5,13,-13,5;z;m:5,13;9,17,15,11,15,3;z
				shape-size:17
			for: disused=yes
				define
					angle:180
			draw : shape 
		elsefor: resource=peat
			define
				fill-texture:icons/Topo50/torfstich.png
				line-style:none
			draw:fill	
		else
			define
				shape : custom
				shape-def : pw:1.25;m:0,3;6,3;m:-6,1;6,1;m:-6,-1;6,-1;m:-6,-3;2,-3;m:3,4;3,3;m:1,3;1,1;m:5,3;5,1;m:-5,1;-5,-1;m:-1,1;-1,-1;m:3,1;3,-1;m:-3,-1;-3,-3;m:1,-1;1,-3;m:-5,-3;-5,-4;m:-1,-3;-1,-4
				shape-size:30
			draw : shape
		for:resource
			for:resource=aggregate
				define
					text:"Kies/Sand"
			elsefor:resource=antimony
				define
					text:"Antimon"
			elsefor:resource=arsenic
				define
					text:"Arsen"
			elsefor:resource=arsenopyrite
				define
					text:"Arsenkies"
			elsefor:resource=barite
				define
					text:"Baryt"
			elsefor:resource=basalt
				define
					text:"Basalt"
			elsefor:resource=bauxite
				define
					text:"Bauxit"
			elsefor:resource=bentonite
				define
					text:"Bentonit"
			elsefor:resource=bismuth
				define
					text:"Wismut"
			elsefor:resource=chromite
				define
					text:"Chromit"
			elsefor:resource=clay
				define
					text:"Ton"
			elsefor:resource=coal
				define
					text:"Kohle"
			elsefor:resource=cobalt
				define
					text:"Kobalt"
			elsefor:resource=copper
				define
					text:"Kupfer"
			elsefor:resource=diatomite
				define
					text:"Kieselgur"
			elsefor:resource=dimension_stone
				define
					text:"Naturstein"
			elsefor:resource=dolomite
				define
					text:"Dolomit"
			elsefor:resource=feldspar
				define
					text:"Feldspat"
			elsefor:resource=fluorite
				define
					text:"Flussspat"
			elsefor:resource=gold
				define
					text:"Gold"
			elsefor:resource=graphite
				define
					text:"Graphit"
			elsefor:resource=gravel
				define
					text:"Kies"
			elsefor:resource=gypsum
				define
					text:"Gips"
			elsefor:resource=ilmenite
				define
					text:"Ilmenit"
			elsefor:resource=iron_ore
				define
					text:"Eisenerz"
			elsefor:resource=kaolin or resource=kaolinite
				define
					text:"Kaolin"
			elsefor:resource=lead
				define
					text:"Blei"
			elsefor:resource=limestone
				define
					text:"Kalk"
			elsefor:resource=loam
				define
					text:"Lehm"
			elsefor:resource=manganese
				define
					text:"Mangan"
			elsefor:resource=mica
				define
					text:"Glimmer"
			elsefor:resource=nickel
				define
					text:"Nickel"
			elsefor:resource=oil_sand
				define
					text:"Ölsand"
			elsefor:resource=oil_shale
				define
					text:"Ölschiefer"
			elsefor:resource=potash
				define
					text:"Kali"
			elsefor:resource=rutile
				define
					text:"Rutil"
			elsefor:resource=salt
				define
					text:"Salz"
			elsefor:resource=sand
				define
					text:"Sand"
			elsefor:resource=sandstone
				define
					text:"Sandstein"
			elsefor:resource=schist
				define
					text:"Glimmerschiefer"
			elsefor:resource=silica
				define
					text:"Quarz"
			elsefor:resource=silver
				define
					text:"Silber"
			elsefor:resource=slate
				define
					text:"Schiefer"
			elsefor:resource=stone
				define
					text:"Gestein"
			elsefor:resource=tin
				define
					text:"Zinn"
			elsefor:resource=travertine
				define
					text:"Travertin"
			elsefor:resource=tuff
				define
					text:"Tuff"
			elsefor:resource=tungsten
				define
					text:"Wolfram"
			elsefor:resource=uranium
				define
					text:"Uran"
			elsefor:resource=zinc
				define
					text:"Zink"
			elsefor:resource=zircon
				define
					text:"Zirkon"
			else
				stop
			define
				font-size:20
				text-offset-vertical:100%
			draw:text
	target:Kraftwerk
		define
			line-join:miter
			shape : custom
			//shape-def : pw:0;m:0,-125;a:125,125,0,125;a:125,125,0,-125;z;f:white;m:0,-110;a:110,110,0,110;a:110,110,0,-110;z;pw:2;m:7,89;-31,-3,31,25,-6,-59;pw:0;f:black;m:-33,-21;40,-53,-25,-100;z
			shape-def : pw:0;m:0,-115;a:115,115,0,115;a:115,115,0,-115;z;f:white;m:0,-100;a:100,100,0,100;a:100,100,0,-100;z;pw:2;m:12,87;-24,-1,35,25,0,-56;pw:0;f:black;m:-23,-33;32,-57,-16,-93;z
			shape-size:40
		draw : shape 
		define
			fill-color:#cccccc
			line-style:none
		draw:fill
	target:Umspannstation
		define
			line-join:miter
			shape : custom
			shape-def : pw:0;m:-115,-115;-115,115,115,115,115,-115;z;f:white;m:-100,-100;-100,100,100,100,100,-100;z;pw:2;m:12,87;-24,-1,35,25,0,-56;pw:0;f:black;m:-23,-33;32,-57,-16,-93;z
			shape-size:20
		draw : shape 
		define
			fill-color:#cccccc
			line-style:none
		draw:fill
	target:Erdoelpumpe
		define
			line-join:round
			line-start-cap:round
			line-end-cap:round
			shape : custom
			shape-def : p:#fefefe,0.8;f:none;pw:6.5;m:0,4;a:4,4,0,-4;a:4,4,0,4;z;m:0,4;0,14;m:-8,7;-8,10,8,18,8,15
			shape-size:18
		draw : shape 
		define
			line-join:miter
			line-start-cap:none
			line-end-cap:none
			shape : custom
			shape-def : p:black;f:white;pw:1.5;m:0,4;a:4,4,0,-4;a:4,4,0,4;z;m:0,4;0,14;m:-8,7;-8,10,8,18,8,15
			shape-size:18
		draw : shape 
	target:Gaspumpe
		define
			line-join:round
			line-start-cap:round
			line-end-cap:round
			shape : custom
			shape-def : p:#fefefe,0.8;f:none;pw:6.5;m:0,4;a:4,4,0,-4;a:4,4,0,4;z;m:0,4;0,12;a:4,4,8,12
			shape-size:16
		draw : shape 
		define
			line-join:miter
			line-start-cap:none
			line-end-cap:none
			shape : custom
			shape-def : p:black;f:white;pw:1.5;m:0,4;a:4,4,0,-4;a:4,4,0,4;z;m:0,4;0,12;a:4,4,8,12
			shape-size:16
		draw : shape 
	target:Klaeranlage
		define
			line-join:round
			shape : custom
			shape-def : pw:6.5;p:#fefefe,0.8;f:none;m:-1,-1;-1,1;1,1;1,-1;z
			shape-size:7
		//draw : shape 
		define
			line-join:miter
			shape : custom
			shape-def : pw:1.5;p:#0066ff;f:white;m:-1,-1;-1,1;1,1;1,-1;z;f:none;m:-1,-1;1,1
			shape-size:7
		draw : shape 
		define
			fill-color:#cccccc
			line-style:none
		draw:fill
	target:Sportplatz
		define
			fill-color:#e6ffcc
			line-width:1.5
		draw : fill
	target:Stadion
		define
			text:"Stadion"
		draw:text 
	target:Campingplatz
		define
			shape:custom
			line-join:round
			line-start-cap:round
			line-end-cap:round
			shape-def: p:#fefefe,0.8;pw:6.5;m:-15,0;15,0;m:-11,0;4,25;m:11,0;-4,25
			shape-size:31
		draw:shape
		define
			shape:custom
			line-join:miter
			line-start-cap:none
			line-end-cap:none
			shape-def: p:none;f:white;m:-11,0;0,18;11,0;z;p:black;pw:1.5;m:-15,0;15,0;m:-11,0;4,25;m:11,0;-4,25;pw:0;f:black;m:-6,0;0,10;6,0;z
			shape-size:31
		draw:shape
		define
			fill-color:#e6ffcc
			//fill-texture:icons/Topo50/wiese.png
			line-style:none
		draw:fill
	target:Golfplatz
		define
			shape:custom
			line-join:round
			line-start-cap:round
			line-end-cap:round
			shape-def: p:#fefefe,0.8;pw:6;m:0,0;0,19;pw:5;m:1,20;11,16,1,11;z;f:none;pw:6;m:0,5;a:8,5,0,-5;a:8,5,0,5;z
			shape-size:20
		draw:shape
		define
			shape:custom
			line-join:miter
			line-start-cap:none
			line-end-cap:none
			shape-def: p:black;f:white;pw:1;m:0,5;a:8,5,0,-5;a:8,5,0,5;z;f:black;pw:1;m:0,0;0,20;pw:0;m:1,20;11,16,1,11;z
			shape-size:20
		draw:shape
	target:Schloss
		for:ruins=yes
			define
				line-join:round
				line-start-cap:round
				line-end-cap:round
				shape:custom
				shape-def: p:#fefefe,0.8;pw:7;m:6,6;17,17;pw:5;m:18,17;21,6,11,10;z;m:0,9;a:9,9,0,-9;a:9,9,0,9;z
				shape-size:21
			draw:shape
			define
				line-join:miter
				line-start-cap:none
				line-end-cap:none
				shape:custom
				shape-def: p:black;pw:2;m:6,6;18,18;pw:0;m:18,17;21,6,11,10;z;m:0,9;a:9,9,0,-9;a:9,9,0,9;z;f:white;m:0,7;a:7,7,0,-7;a:7,7,0,7;z
				shape-size:21
			draw:shape
		else
			define
				line-join:round
				line-start-cap:round
				line-end-cap:round
				shape:custom
				shape-def: p:#fefefe,0.8;f:#fefefe,0.8;pw:7;m:0,8;0,25;pw:5;m:1,25;11,20,1,15;z;m:0,9;a:9,9,0,-9;a:9,9,0,9;z
				shape-size:25
			draw:shape
			define
				line-join:miter
				line-start-cap:none
				line-end-cap:none
				shape:custom
				shape-def: p:black;pw:2;m:0,8;0,25;pw:0;m:1,25;11,20,1,15;z;m:0,9;a:9,9,0,-9;a:9,9,0,9;z;f:white;m:0,7;a:7,7,0,-7;a:7,7,0,7;z
				shape-size:25
			draw:shape
	target:Dom
		define
			line-join:round
			line-start-cap:round
			line-end-cap:round
			shape:custom
			shape-def: p:#fefefe,0.8;pw:7;m:-7,17;7,17;m:-7,25;7,25;m:0,31;0,8;pw:5;m:0,9;a:9,9,0,-9;a:9,9,0,9;z
			shape-size:31
		draw:shape
		define
			line-join:miter
			line-start-cap:none
			line-end-cap:none
			shape:custom
			shape-def: p:black;pw:2;m:-8,17;8,17;m:-8,25;8,25;m:0,32;0,8;pw:0;m:0,9;a:9,9,0,-9;a:9,9,0,9;z;f:white;m:0,7;a:7,7,0,-7;a:7,7,0,7;z
			shape-size:32
		draw:shape
	target:Kirche
		define
			line-join:round
			line-start-cap:round
			line-end-cap:round
			shape:custom
			shape-def: p:#fefefe,0.8;pw:7;m:-7,17;7,17;m:0,24;0,8;pw:5;m:0,9;a:9,9,0,-9;a:9,9,0,9;z
			shape-size:24
		draw:shape
		define
			line-join:miter
			line-start-cap:none
			line-end-cap:none
			shape:custom
			shape-def: p:black;pw:2;m:-8,17;8,17;m:0,25;0,8;pw:0;m:0,9;a:9,9,0,-9;a:9,9,0,9;z;f:white;m:0,7;a:7,7,0,-7;a:7,7,0,7;z
			shape-size:25
		draw:shape
	target:Kapelle
		define
			line-join:round
			line-start-cap:round
			line-end-cap:round
			shape:custom
			shape-def: p:#fefefe,0.8;pw:7;m:-7,16;7,16;m:0,23;0,6;pw:5;m:-6,6;6,6,6,-6,-6,-6;z
			shape-size:23
		draw:shape
		define
			line-join:miter
			line-start-cap:none
			line-end-cap:none
			shape:custom
			shape-def: p:black;pw:2;m:-8,16;8,16;m:0,24;0,6;pw:0;m:-6,6;6,6,6,-6,-6,-6;z
			shape-size:24
		draw:shape
	target:Synagoge
		define
			shape:custom
			line-join:round
			shape-def: p:#fefefe,0.8;pw:6.5;m:-17,-10;17,-10;0,20;z;m:-17,10;17,10;0,-20;z
			shape-size:11
		draw:shape
		define
			shape:custom
			line-join:miter
			shape-def: p:black;f:none;pw:1.5;m:-17,-10;17,-10;0,20;z;m:-17,10;17,10;0,-20;z
			shape-size:11
		draw:shape
	target:Moschee
		define
			shape:circle
			line-style:none
			fill-color:#fefefe
			fill-opacity:0.8
			shape-size:7.25
		draw:shape
		define
			shape:custom
			line-join:miter
			line-start-cap:none
			line-end-cap:none
			shape-def: p:none;f:black;pw:0;m:0,17;a:17,17,0,-17;a:17,17,0,17;z;f:#fefefe;m:5,14;a:14,14,5,-14;a:14,14,5,14;z
			shape-size:19
		draw:shape
	target:Krankenhaus
		define
			shape:custom
			line-join:miter
			shape-def: pw:1.5;p:#ff0000;f:white;m:-87,-87;-87,88,88,88,88,-87;z;pw:3.5;m:-70,0;70,0;m:0,70;0,-70
			shape-size:17.5
		//draw:shape
	target:Windmuehle
		define
			line-join:round
			line-start-cap:round
			line-end-cap:round
			shape:custom
			shape-def: p:#fefefe,0.8;pw:7;m:-17,15;17,45;m:-17,45;17,15;pw:5;m:-6,0;-2,30,2,30,6,0;z
			shape-size:40
		draw:shape
		define
			line-join:miter
			line-start-cap:none
			line-end-cap:none
			shape:custom
			shape-def: pw:2;m:-17,15;17,45;m:-17,45;17,15;pw:0;m:-6,0;-2,30,2,30,6,0;z
			shape-size:40
		draw:shape
	target:Wassermuehle
		define
			shape:custom
			line-join:round
			shape-def: p:#fefefe,0.8;pw:5;f:black;m:-20,55;-20,105;20,105;20,55;z;m:46,36;94,51;106,13;58,-2;z;m:49,-33;78,-73;46,-97;16,-56;z;m:-49,-33;-78,-73;-46,-97;-16,-56;z;m:-46,36;-94,51;-106,13;-58,-2;z;m:0,60;a:60,60,0,-60;a:60,60,0,60;z
			shape-size:11
		draw:shape
		define
			shape:custom
			line-join:miter
			shape-def: pw:0;f:black;m:-20,55;-20,105;20,105;20,55;z;m:46,36;94,51;106,13;58,-2;z;m:49,-33;78,-73;46,-97;16,-56;z;m:-49,-33;-78,-73;-46,-97;-16,-56;z;m:-46,36;-94,51;-106,13;-58,-2;z;m:0,60;a:60,60,0,-60;a:60,60,0,60;z;f:white;m:0,40;a:40,40,0,-40;a:40,40,0,40;z
			shape-size:11
		draw:shape
	target:Wasserbehaelter
		define
			shape:custom
			line-start-cap:round
			line-end-cap:round
			shape-def: pw:2;p:#fefefe,0.8;m:0,60;a:60,60,0,-60;a:60,60,0,60;z
			shape-size:24
		//draw:shape
		define
			shape:custom
			line-start-cap:none
			line-end-cap:none
			shape-def: pw:2;p:#0066ff;f:white;m:0,8;a:8,8,0,-8;a:8,8,0,8;z;p:none;f:#0066ff;m:-8,0;a:8,8,-24,0;z
			shape-size:28
		draw:shape
	target:Wasserturm
		define
			shape:custom
			line-start-cap:round
			line-end-cap:round
			shape-def: p:#fefefe,0.8;pw:5;m:0,9;a:9,9,0,-9;a:9,9,0,9;z;pw:7;m:0,8;0,27
			shape-size:27
		draw:shape
		define
			shape:custom
			line-start-cap:none
			line-end-cap:none
			shape-def: pw:0;p:#0066ff;f:#0066ff;m:0,9;a:9,9,0,-9;a:9,9,0,9;z;f:white;m:0,7;a:7,7,0,-7;a:7,7,0,7;z;pw:2;m:0,8;0,28
			shape-size:28
		draw:shape
	target:Leuchtturm
		define
			shape:custom
			line-start-cap:round
			line-end-cap:round
			shape-def: p:#fefefe,0.8;pw:5;m:0,9;a:9,9,0,-9;a:9,9,0,9;z;pw:7;m:0,8;0,24;m:5,25;20,30;m:5,20;20,15;m:-5,25;-20,30;m:-5,20;-20,15
			shape-size:30
		draw:shape
		define
			shape:custom
			line-start-cap:none
			line-end-cap:none
			shape-def: pw:0;m:0,9;a:9,9,0,-9;a:9,9,0,9;z;f:white;m:0,7;a:7,7,0,-7;a:7,7,0,7;z;pw:2;m:0,8;0,25;m:5,25;20,30;m:5,20;20,15;m:-5,25;-20,30;m:-5,20;-20,15
			shape-size:30
		draw:shape
	target:Sendeturm
		define
			shape:custom
			line-start-cap:round
			line-end-cap:round
			shape-def: p:#fefefe,0.8;pw:5;m:0,9;a:9,9,0,-9;a:9,9,0,9;z;pw:7;m:0,8;0,24;pw:6;m:7,14;a:8,8,7,30;m:-7,30;a:8,8,-7,14
			shape-size:30
		draw:shape
		define
			shape:custom
			line-start-cap:none
			line-end-cap:none
			shape-def: pw:0;m:0,9;a:9,9,0,-9;a:9,9,0,9;z;f:white;m:0,7;a:7,7,0,-7;a:7,7,0,7;z;pw:2;m:0,8;0,25;pw:1;m:7,14;a:8,8,7,30;m:-7,30;a:8,8,-7,14
			shape-size:30
		draw:shape
	target:Turm
		define
			shape:custom
			line-start-cap:round
			line-end-cap:round
			shape-def: p:#fefefe,0.8;pw:5;m:0,9;a:9,9,0,-9;a:9,9,0,9;z;pw:7;m:0,8;0,27
			shape-size:27
		draw:shape
		define
			shape:custom
			line-start-cap:none
			line-end-cap:none
			shape-def: pw:0;m:0,9;a:9,9,0,-9;a:9,9,0,9;z;f:white;m:0,7;a:7,7,0,-7;a:7,7,0,7;z;pw:2;m:0,8;0,28
			shape-size:28
		draw:shape
		for:tourism=viewpoint or tower:type=observation
			define
				font-size:20
				text:"AT"
				text-offset-horizontal:125%
			draw:text
	target:Kuehlturm
		define
			shape:custom
			line-join:round
			shape-def: p:#fefefe,0.8;pw:7;f:none;m:-8,0;-4,28,4,28,8,0;z
			shape-size:28
		draw:shape
		define
			shape:custom
			line-join:miter
			shape-def: pw:2;f:none;m:-8,0;-4,28,4,28,8,0;z
			shape-size:28
		draw:shape
	target:Schornstein
		define
			shape:circle
			line-width:6.5
			line-color:#fefefe
			fill-color:white
			fill-opacity:0.8
			shape-size:3.5
		//draw:shape
		define
			shape:circle
			line-width:1.5
			line-color:black
			fill-color:white
			fill-opacity:1
			shape-size:3.5
		draw:shape
	target:Hoehleneingang
		define
			shape:custom
			line-join:round
			line-start-cap:round
			line-end-cap:round
			shape-def: p:#fefefe,0.8;pw:7;m:13,0;6,0,6,9;a:6,6,18,9;m:-6,9;-6,0;m:6,9;a:5,6,16,9;m:-4,9;-4,0,-13,0
			shape-size:18
		draw:shape
		define
			shape:custom
			line-join:miter
			line-start-cap:none
			line-end-cap:none
			shape-def: pw:2;m:14,0;6,0,6,9;a:6,6,18,9;m:-6,9;-6,0;m:6,9;a:5,6,16,9;m:-4,9;-4,0,-14,0
			shape-size:18
		draw:shape
	target:Windrad
		define
			shape:custom
			line-join:round
			line-start-cap:round
			line-end-cap:round
			shape-def: p:#fefefe,0.8;pw:7;m:0,0;0,25;m:-8,0;8,0;pw:5;m:-1,49;1,49,3,34,-3,34;z;m:7,32;19,23,18,21,4,27;z;m:-7,32;-19,23,-18,21,-4,27;z
			shape-size:30
		draw:shape
		define
			shape:custom
			line-join:miter
			line-start-cap:none
			line-end-cap:none
			shape-def: pw:2;m:0,0;0,25;m:-9,0;9,0;pw:0;m:-1,49;1,49,3,34,-3,34;z;m:7,32;19,23,18,21,4,27;z;m:-7,32;-19,23,-18,21,-4,27;z
			shape-size:30
		draw:shape
	target:Wall
		define
			shape : custom
			shape-def : pw:1.5;m:0,-35;0,35
			shape-spacing : 0
			shape-size : 7
			painting-cycle:600
		draw : shape
	target:Steinsetzung
		define
			shape:custom
			line-start-cap:round
			line-end-cap:round
			shape-def: p:#fefefe,0.8;pw:7;f:white;m:0,-5;a:8,5,0,5;a:8,5,0,-5;z;m:-9,-6;9,-6
			shape-size:10
		draw:shape
		define
			shape:custom
			line-start-cap:none
			line-end-cap:none
			shape-def: pw:2;f:white;m:0,-5;a:8,5,0,5;a:8,5,0,-5;z;m:-10,-6;10,-6
			shape-size:10
		draw:shape
	target:Huegelgrab
		define
			shape:custom
			line-start-cap:round
			line-end-cap:round
			shape-def: p:#fefefe,0.8;f:#fefefe,0.8;pw:5;m:-20,60;0,120,20,60;z;m:42,47;104,60,62,13;z;m:42,-47;104,-60,62,-13;z;m:-20,-60;0,-120,20,-60;z;m:-42,47;-104,60,-62,13;z;m:-42,-47;-104,-60,-62,-13;z
			shape-size:15
		draw:shape
		define
			shape:custom
			line-start-cap:none
			line-end-cap:none
			shape-def: f:black;pw:0;m:-20,60;0,120,20,60;z;m:42,47;104,60,62,13;z;m:42,-47;104,-60,62,-13;z;m:-20,-60;0,-120,20,-60;z;m:-42,47;-104,60,-62,13;z;m:-42,-47;-104,-60,-62,-13;z
			shape-size:15
		draw:shape
	target:Denkmal
		define
			shape:custom
			line-join:round
			line-start-cap:round
			line-end-cap:round
			shape-def: p:#fefefe,0.8;f:#fefefe,0.8;pw:6;m:12,0;0,31,-12,0;z;m:-15,0;15,0;m:0,40;a:9,9,0,22;a:9,9,0,40;z
			shape-size:20
		draw:shape
		define
			shape:custom
			line-join:miter
			line-start-cap:none
			line-end-cap:none
			shape-def: pw:1;p:black;f:white;m:12,0;0,31,-12,0;z;pw:1.5;m:11,0;-1,31;pw:1;m:-16,0;16,0;m:0,40;a:9,9,0,22;a:9,9,0,40;z
			shape-size:20
		draw:shape
	target:Kreuz
		define
			line-start-cap:round
			line-end-cap:round
			shape:custom
			shape-def: p:#fefefe,0.8;pw:6;f:none;m:-4,0;4,0;m:0,1;0,17;m:-5,12;5,12
			shape-size:18
		draw:shape
		define
			line-start-cap:none
			line-end-cap:none
			shape:custom
			shape-def: pw:1;f:none;m:-5,0;5,0;m:0,0;0,18;m:-6,12;6,12
			shape-size:18
		draw:shape
	target:Einfriedung
		define
			shape:custom
			shape-def: m:0,1;0,-1
			shape-size:10
			shape-aspect:0.5
			shape-spacing:0
			line-width:0.5
			curved:false
			painting-cycle:600
		draw:shape
		draw:line
	target:Hubschrauberlandeplatz
		define
			shape:circle
			shape-size:17.5
			line-width:2.5
			fill-color:white
			text-halo-width:0
			text:"H"
			font-family:LM Sans 10
			font-style:normal
			font-size:15
		//draw:shield
	target:Bahnhof
		for: station_direction
		 	for: station_direction < 3		
				define	
					angle: 0
			elsefor: station_direction < 8		
				define	
					angle: 5
			elsefor: station_direction < 13		
				define	
					angle: 10
			elsefor: station_direction < 18		
				define	
					angle: 15
			elsefor: station_direction < 23		
				define	
					angle: 20
			elsefor: station_direction < 28		
				define	
					angle: 25
			elsefor: station_direction < 33		
				define	
					angle: 30
			elsefor: station_direction < 38		
				define	
					angle: 35
			elsefor: station_direction < 43		
				define	
					angle: 40
			elsefor: station_direction < 48		
				define	
					angle: 45
			elsefor: station_direction < 53		
				define	
					angle: 50
			elsefor: station_direction < 58		
				define	
					angle: 55
			elsefor: station_direction < 63		
				define	
					angle: 60
			elsefor: station_direction < 68		
				define	
					angle: 65
			elsefor: station_direction < 73		
				define	
					angle: 70
			elsefor: station_direction < 78		
				define	
					angle: 75
			elsefor: station_direction < 83		
				define	
					angle: 80
			elsefor: station_direction < 88		
				define	
					angle: 85
			elsefor: station_direction < 93		
				define	
					angle: 90
			elsefor: station_direction < 98		
				define	
					angle: 95
			elsefor: station_direction < 103		
				define	
					angle: 100
			elsefor: station_direction < 108		
				define	
					angle: 105
			elsefor: station_direction < 113		
				define	
					angle: 110
			elsefor: station_direction < 118		
				define	
					angle: 115
			elsefor: station_direction < 123		
				define	
					angle: 120
			elsefor: station_direction < 128		
				define	
					angle: 125
			elsefor: station_direction < 133		
				define	
					angle: 130
			elsefor: station_direction < 138		
				define	
					angle: 135
			elsefor: station_direction < 143		
				define	
					angle: 140
			elsefor: station_direction < 148		
				define	
					angle: 145
			elsefor: station_direction < 153		
				define	
					angle: 150
			elsefor: station_direction < 158		
				define	
					angle: 155
			elsefor: station_direction < 163		
				define	
					angle: 160
			elsefor: station_direction < 168		
				define	
					angle: 165
			elsefor: station_direction < 173		
				define	
					angle: 170
			elsefor: station_direction < 178		
				define	
					angle: 175
			elsefor: station_direction < 183		
				define	
					angle: 180
			elsefor: station_direction < 188		
				define	
					angle: 185
			elsefor: station_direction < 193		
				define	
					angle: 190
			elsefor: station_direction < 198		
				define	
					angle: 195
			elsefor: station_direction < 203		
				define	
					angle: 200
			elsefor: station_direction < 208		
				define	
					angle: 205
			elsefor: station_direction < 213		
				define	
					angle: 210
			elsefor: station_direction < 218		
				define	
					angle: 215
			elsefor: station_direction < 223		
				define	
					angle: 220
			elsefor: station_direction < 228		
				define	
					angle: 225
			elsefor: station_direction < 233		
				define	
					angle: 230
			elsefor: station_direction < 238		
				define	
					angle: 235
			elsefor: station_direction < 243		
				define	
					angle: 240
			elsefor: station_direction < 248		
				define	
					angle: 245
			elsefor: station_direction < 253		
				define	
					angle: 250
			elsefor: station_direction < 258		
				define	
					angle: 255
			elsefor: station_direction < 263		
				define	
					angle: 260
			elsefor: station_direction < 268		
				define	
					angle: 265
			elsefor: station_direction < 273		
				define	
					angle: 270
			elsefor: station_direction < 278		
				define	
					angle: 275
			elsefor: station_direction < 283		
				define	
					angle: 280
			elsefor: station_direction < 288		
				define	
					angle: 285
			elsefor: station_direction < 293		
				define	
					angle: 290
			elsefor: station_direction < 298		
				define	
					angle: 295
			elsefor: station_direction < 303		
				define	
					angle: 300
			elsefor: station_direction < 308		
				define	
					angle: 305
			elsefor: station_direction < 313		
				define	
					angle: 310
			elsefor: station_direction < 318		
				define	
					angle: 315
			elsefor: station_direction < 323		
				define	
					angle: 320
			elsefor: station_direction < 328		
				define	
					angle: 325
			elsefor: station_direction < 333		
				define	
					angle: 330
			elsefor: station_direction < 338		
				define	
					angle: 335
			elsefor: station_direction < 343		
				define	
					angle: 340
			elsefor: station_direction < 348		
				define	
					angle: 345
			elsefor: station_direction < 353		
				define	
					angle: 350
			elsefor: station_direction < 358		
				define	
					angle: 355
			else		
				define	
					angle: 0
		define
			line-width:2
			line-color:black
			fill-color:white
			line-join:miter
		for: railway=station and station_direction
			define
				shape:custom
				shape-size:22
				shape-def: pw:2;p:black;f:white;m:-6,-11;-6,11,6,11,6,-11;z
		else
			define
				shape:square
				shape-size:12
		draw:shape
	target:Grenzuebergang
		define
			shape:custom
			shape-def: pw:2.5;p:#ff0000;f:white;m:0,-1;a:1,1,0,1;a:1,1,0,-1;z;m:-1,0;1,0
			shape-size:25
		draw:shape
	target:Bake
		define
			shape:custom
			line-start-cap:round
			line-end-cap:round
			shape-def: p:#fefefe,0.8;pw:6;m:-8,0;8,0;pw:7;m:0,0;0,25;pw:5;m:0,30;a:7,7,0,16;a:7,7,0,30;z
			shape-size:30
		draw:shape
		define
			shape:custom
			line-start-cap:none
			line-end-cap:none
			shape-def: pw:1;m:-9,0;9,0;pw:2;m:0,0;0,25;pw:0;m:0,30;a:7,7,0,16;a:7,7,0,30;z
			shape-size:30
		draw:shape
	target:Funkmast
		define
			shape:custom
			line-start-cap:round
			line-end-cap:round
			shape-def: p:#fefefe,0.8;pw:6;m:-8,0;8,0;pw:7;m:0,8;0,24;pw:6;m:7,14;a:8,8,7,30;m:-7,30;a:8,8,-7,14
			shape-size:30
		draw:shape
		define
			shape:custom
			line-start-cap:none
			line-end-cap:none
			shape-def: pw:1;m:-9,0;9,0;pw:2;m:0,0;0,25;pw:1;m:7,14;a:8,8,7,30;m:-7,30;a:8,8,-7,14
			shape-size:30
		draw:shape
	target:Hochspannungsmast
		define
			shape:square
			line-width:1
			line-join:miter
			fill-color:white
			shape-size:5
		draw:shape
	target:Radioteleskop
		define
			shape:custom
			shape-def: pw:0;m:-35,0;0,100,35,0;z;m:-65,209;a:150,150,-240,77;z;pw:4;m:17,137;47,177
			shape-size:48
		//draw:shape
	target:Baum
		for:leaf_type=needleleaved
			define
				line-join:round
				line-start-cap:round
				line-end-cap:round
				shape:custom
				shape-def: p:#fefefe,0.8;pw:5;f:black;m:0,12;17,10;0,36;-17,10;z;m:0,32;11,30;0,50;-11,30;z;f:none;pw:6.5;m:-14,0;14,0;pw:5;m:0,0;0,13
				shape-size:25
			draw:shape
			define
				line-join:miter
				line-start-cap:none
				line-end-cap:none
				shape:custom
				shape-def: pw:0;f:black;m:0,12;17,10;0,36;-17,10;z;m:0,32;11,30;0,50;-11,30;z;f:none;pw:1.5;m:-14,0;14,0;pw:2;m:0,0;0,13
				shape-size:25
			draw:shape
		else
			define
				line-join:round
				line-start-cap:round
				line-end-cap:round
				shape:custom
				shape-def: p:#fefefe,0.8;f:none;pw:6.5;m:-14,0;14,0;pw:7;m:0,0;0,10;pw:6.25;f:#fefefe;m:0,10;a:17,20,0,50;a:17,20,0,10;z
				shape-size:25
			draw:shape
			define
				line-join:miter
				line-start-cap:none
				line-end-cap:none
				shape:custom
				shape-def: f:none;pw:1.5;m:-14,0;14,0;pw:2;m:0,0;0,10;pw:1.25;m:0,10;a:17,20,0,50;a:17,20,0,10;a:15,20,0,50;pw:1;m:3,15;a:16,20,3,45
				shape-size:25
			draw:shape
		for:name
			define
				text-color:#006600
				font-size:20
				text-offset-vertical:-75%
				text-align-vertical:far
				painting-cycle:790
			//draw:text
	target:Quelle
		define
			shape:circle
			line-style:none
			fill-color:#0066ff
			shape-size:3
		draw:shape
		for:name
			define
				text-color:#0066ff
				font-size:20
				text-offset-vertical:-50%
				text-align-vertical:far
				painting-cycle:790
			//draw:text
	target:Brunnen
		define
			shape:circle
			shape-size:4
			line-width:6.5
			line-color:#fefefe
			line-opacity:0.8
		//draw:shape
		define
			shape:circle
			shape-size:3
			line-width:1
			line-color:#0066ff
			line-opacity:1
		for:drinking_water=yes
			define
				fill-color:#ccffff
		else
			define
				fill-color:white
		draw:shape
		for:drinking_water=yes
			define
				text-color:#0066ff
				text:"TW"
				font-size:18
				text-offset-horizontal:125%
				painting-cycle:790
			//draw:text
	target:Hoehenpunkt
		define
			shape:circle
			shape-size:4.5
			line-style:none
			fill-color:#fefefe
			fill-opacity:0.8
		draw:shape
		define
			shape:circle
			shape-size:2
			line-style:none
			fill-color:black
			fill-opacity:1
		draw:shape
		define
			text-func:roundElevation(e)
			font-family:LM Sans 10
			font-style:normal
			font-weight:normal
			font-size:15
			text-offset-horizontal:5
			text-align-horizontal: near
		draw:text
	target:Wegweiser
		define
			shape:circle
			shape-size:4.5
			line-style:none
			fill-color:#fefefe
			fill-opacity:0.8
		draw:shape
		define
			shape:circle
			shape-size:2
			line-style:none
			fill-color:black
			fill-opacity:1
		draw:shape
		define
			//text:name "\n" ele
			text-func:roundElevation(e)
			font-family:LM Sans 10
			font-style:normal
			font-weight:normal
			font-size:15
			text-align-horizontal: near
			text-offset-horizontal: 5
		draw:text
	target: Herberge
		define
			text:"JH"
		draw:text
	target: Huette*
		define
			shape:custom
			shape-size:7
		if: *bewirtschaftet
			define
				line-join:round
				line-start-cap:round
				line-end-cap:round
				shape-def:p:#fefefe,0.8;pw:7;f:none;m:-42,-63;-42,0,-50,0,0,60,50,0,42,0,42,-63;z
			draw:shape
			define
				line-join:miter
				line-start-cap:none
				line-end-cap:none
				shape-def:pw:2;f:black;m:-42,-63;-42,0,-50,0,0,60,50,0,42,0,42,-63;z
			draw:shape
		else
			define
				line-join:round
				line-start-cap:round
				line-end-cap:round
				shape-def:p:#fefefe,0.8;pw:7;f:none;m:-42,-63;-42,0,-50,0,0,60,50,0,42,0,42,-63;z
			draw:shape
			define
				line-join:miter
				line-start-cap:none
				line-end-cap:none
				shape-def:pw:2;f:none;m:-42,-63;-42,0,-50,0,0,60,50,0,42,0,42,-63;z
			draw:shape
	target: Unterstand
		define
			line-join:round
			line-start-cap:round
			line-end-cap:round
			shape:custom
			shape-size:7
			shape-def:p:#fefefe,0.8;pw:7;f:none;m:-42,-62;-42,0,-50,0,0,60,50,0,42,0,42,-62
		draw:shape
		define
			line-join:miter
			line-start-cap:none
			line-end-cap:none
			shape:custom
			shape-size:7
			shape-def:pw:2;f:none;m:-42,-63;-42,0,-50,0,0,60,50,0,42,0,42,-63
		draw:shape
	target: Aussichtspunkt
		for: viewpoint_direction
		 	for: viewpoint_direction < 3		
				define	
					angle: 0
			elsefor: viewpoint_direction < 8		
				define	
					angle: 5
			elsefor: viewpoint_direction < 13		
				define	
					angle: 10
			elsefor: viewpoint_direction < 18		
				define	
					angle: 15
			elsefor: viewpoint_direction < 23		
				define	
					angle: 20
			elsefor: viewpoint_direction < 28		
				define	
					angle: 25
			elsefor: viewpoint_direction < 33		
				define	
					angle: 30
			elsefor: viewpoint_direction < 38		
				define	
					angle: 35
			elsefor: viewpoint_direction < 43		
				define	
					angle: 40
			elsefor: viewpoint_direction < 48		
				define	
					angle: 45
			elsefor: viewpoint_direction < 53		
				define	
					angle: 50
			elsefor: viewpoint_direction < 58		
				define	
					angle: 55
			elsefor: viewpoint_direction < 63		
				define	
					angle: 60
			elsefor: viewpoint_direction < 68		
				define	
					angle: 65
			elsefor: viewpoint_direction < 73		
				define	
					angle: 70
			elsefor: viewpoint_direction < 78		
				define	
					angle: 75
			elsefor: viewpoint_direction < 83		
				define	
					angle: 80
			elsefor: viewpoint_direction < 88		
				define	
					angle: 85
			elsefor: viewpoint_direction < 93		
				define	
					angle: 90
			elsefor: viewpoint_direction < 98		
				define	
					angle: 95
			elsefor: viewpoint_direction < 103		
				define	
					angle: 100
			elsefor: viewpoint_direction < 108		
				define	
					angle: 105
			elsefor: viewpoint_direction < 113		
				define	
					angle: 110
			elsefor: viewpoint_direction < 118		
				define	
					angle: 115
			elsefor: viewpoint_direction < 123		
				define	
					angle: 120
			elsefor: viewpoint_direction < 128		
				define	
					angle: 125
			elsefor: viewpoint_direction < 133		
				define	
					angle: 130
			elsefor: viewpoint_direction < 138		
				define	
					angle: 135
			elsefor: viewpoint_direction < 143		
				define	
					angle: 140
			elsefor: viewpoint_direction < 148		
				define	
					angle: 145
			elsefor: viewpoint_direction < 153		
				define	
					angle: 150
			elsefor: viewpoint_direction < 158		
				define	
					angle: 155
			elsefor: viewpoint_direction < 163		
				define	
					angle: 160
			elsefor: viewpoint_direction < 168		
				define	
					angle: 165
			elsefor: viewpoint_direction < 173		
				define	
					angle: 170
			elsefor: viewpoint_direction < 178		
				define	
					angle: 175
			elsefor: viewpoint_direction < 183		
				define	
					angle: 180
			elsefor: viewpoint_direction < 188		
				define	
					angle: 185
			elsefor: viewpoint_direction < 193		
				define	
					angle: 190
			elsefor: viewpoint_direction < 198		
				define	
					angle: 195
			elsefor: viewpoint_direction < 203		
				define	
					angle: 200
			elsefor: viewpoint_direction < 208		
				define	
					angle: 205
			elsefor: viewpoint_direction < 213		
				define	
					angle: 210
			elsefor: viewpoint_direction < 218		
				define	
					angle: 215
			elsefor: viewpoint_direction < 223		
				define	
					angle: 220
			elsefor: viewpoint_direction < 228		
				define	
					angle: 225
			elsefor: viewpoint_direction < 233		
				define	
					angle: 230
			elsefor: viewpoint_direction < 238		
				define	
					angle: 235
			elsefor: viewpoint_direction < 243		
				define	
					angle: 240
			elsefor: viewpoint_direction < 248		
				define	
					angle: 245
			elsefor: viewpoint_direction < 253		
				define	
					angle: 250
			elsefor: viewpoint_direction < 258		
				define	
					angle: 255
			elsefor: viewpoint_direction < 263		
				define	
					angle: 260
			elsefor: viewpoint_direction < 268		
				define	
					angle: 265
			elsefor: viewpoint_direction < 273		
				define	
					angle: 270
			elsefor: viewpoint_direction < 278		
				define	
					angle: 275
			elsefor: viewpoint_direction < 283		
				define	
					angle: 280
			elsefor: viewpoint_direction < 288		
				define	
					angle: 285
			elsefor: viewpoint_direction < 293		
				define	
					angle: 290
			elsefor: viewpoint_direction < 298		
				define	
					angle: 295
			elsefor: viewpoint_direction < 303		
				define	
					angle: 300
			elsefor: viewpoint_direction < 308		
				define	
					angle: 305
			elsefor: viewpoint_direction < 313		
				define	
					angle: 310
			elsefor: viewpoint_direction < 318		
				define	
					angle: 315
			elsefor: viewpoint_direction < 323		
				define	
					angle: 320
			elsefor: viewpoint_direction < 328		
				define	
					angle: 325
			elsefor: viewpoint_direction < 333		
				define	
					angle: 330
			elsefor: viewpoint_direction < 338		
				define	
					angle: 335
			elsefor: viewpoint_direction < 343		
				define	
					angle: 340
			elsefor: viewpoint_direction < 348		
				define	
					angle: 345
			elsefor: viewpoint_direction < 353		
				define	
					angle: 350
			elsefor: viewpoint_direction < 358		
				define	
					angle: 355
			else		
				define	
					angle: 0
		define
			shape:custom
			line-style:solid
			shape-size:15
 	 	for: viewpoint_angle < 120		
			define	
				shape-def:p:#fefefe,0.8;f:#fefefe,0.8;pw:5;m:0,5;a:5,5,0,-5;a:5,5,0,5;z;m:-11,10;-46,39,-39,46,-20,57,-11,59,11,59,20,57,39,46,46,39,11,10;z
 	 	elsefor: viewpoint_angle < 180		
			define	
				shape-def:p:#fefefe,0.8;f:#fefefe,0.8;pw:5;m:0,5;a:5,5,0,-5;a:5,5,0,5;z;m:-15,3;-59,11,-57,20,-46,39,-39,46,-20,57,-11,59,11,59,20,57,39,46,46,39,57,20,59,11,15,3;z
	 	elsefor: viewpoint_angle < 240		
			define	
				shape-def:p:#fefefe,0.8;f:#fefefe,0.8;pw:5;m:0,5;a:5,5,0,-5;a:5,5,0,5;z;m:-14,-5;-57,-20,-59,-11,-59,11,-57,20,-46,39,-39,46,-20,57,-11,59,11,59,20,57,39,46,46,39,57,20,59,11,59,-11,57,-20,14,-5;z
 	 	elsefor: viewpoint_angle < 300		
			define	
				shape-def:p:#fefefe,0.8;f:#fefefe,0.8;pw:5;m:0,5;a:5,5,0,-5;a:5,5,0,5;z;m:-10,-11;-39,-46,-46,-39,-57,-20,-59,-11,-59,11,-57,20,-46,39,-39,46,-20,57,-11,59,11,59,20,57,39,46,46,39,57,20,59,11,59,-11,57,-20,46,-39,39,-46,10,-11;z
	 	else		
			define	
				shape:circle
				shape-size:10
				fill-color:#fefefe
				fill-opacity:0.8
				line-style:none
		draw:shape
		define
			shape:custom
			line-style:solid
			shape-size:15
 	 	for: viewpoint_angle < 120		
			define	
				shape-def:p:black;f:black;pw:0;m:0,5;a:5,5,0,-5;a:5,5,0,5;z;m:3,15;11,59,20,57,5,14;z;m:10,11;39,46,46,39,11,10;z;m:-10,11;-39,46,-46,39,-11,10;z;m:-3,15;-11,59,-20,57,-5,14;z
 	 	elsefor: viewpoint_angle < 180		
			define	
				shape-def:p:black;f:black;pw:0;m:0,5;a:5,5,0,-5;a:5,5,0,5;z;m:3,15;11,59,20,57,5,14;z;m:10,11;39,46,46,39,11,10;z;m:14,5;57,20,59,11,59,11,15,3;z;m:-14,5;-57,20,-59,11,-15,3;z;m:-10,11;-39,46,-46,39,-11,10;z;m:-3,15;-11,59,-20,57,-5,14;z
 	 	elsefor: viewpoint_angle < 240		
			define	
				shape-def:p:black;f:black;pw:0;m:0,5;a:5,5,0,-5;a:5,5,0,5;z;m:3,15;11,59,20,57,5,14;z;m:10,11;39,46,46,39,11,10;z;m:14,5;57,20,59,11,59,11,15,3;z;m:14,-5;57,-20,59,-11,15,-3;z;m:-14,-5;-57,-20,-59,-11,-15,-3;z;m:-14,5;-57,20,-59,11,-15,3;z;m:-10,11;-39,46,-46,39,-11,10;z;m:-3,15;-11,59,-20,57,-5,14;z
 	 	elsefor: viewpoint_angle < 300		
			define	
				shape-def:p:black;f:black;pw:0;m:0,5;a:5,5,0,-5;a:5,5,0,5;z;m:3,15;11,59,20,57,5,14;z;m:10,11;39,46,46,39,11,10;z;m:14,5;57,20,59,11,59,11,15,3;z;m:14,-5;57,-20,59,-11,15,-3;z;m:10,-11;39,-46,46,-39,11,-10;z;m:-10,-11;-39,-46,-46,-39,-11,-10;z;m:-14,-5;-57,-20,-59,-11,-15,-3;z;m:-14,5;-57,20,-59,11,-15,3;z;m:-10,11;-39,46,-46,39,-11,10;z;m:-3,15;-11,59,-20,57,-5,14;z
 	 	else		
			define	
				shape-def:p:black;f:black;pw:0;m:0,5;a:5,5,0,-5;a:5,5,0,5;z;m:3,15;11,59,20,57,5,14;z;m:10,11;39,46,46,39,11,10;z;m:14,5;57,20,59,11,59,11,15,3;z;m:14,-5;57,-20,59,-11,15,-3;z;m:10,-11;39,-46,46,-39,11,-10;z;m:3,-15;11,-59,20,-57,5,-14;z;m:-3,-15;-11,-59,-20,-57,-5,-14;z;m:-10,-11;-39,-46,-46,-39,-11,-10;z;m:-14,-5;-57,-20,-59,-11,-15,-3;z;m:-14,5;-57,20,-59,11,-15,3;z;m:-10,11;-39,46,-46,39,-11,10;z;m:-3,15;-11,59,-20,57,-5,14;z
		draw:shape
	target: Trinkwasser
		define
			shape:custom
			line-join:round
			shape-def: p:#fefefe,0.8;pw:5;m:-30,-50;-50,50,50,50,30,-50;z
			shape-size:10
		draw:shape
		define
			shape:custom
			line-join:miter
			shape-def: p:#0066ff;f:#0066ff;pw:0;m:-30,-50;-50,50,50,50,30,-50;z;f:white;m:-25,0;-32,35,32,35,25,0;z
			shape-size:10
		draw:shape
	target: Bunker
		define
			shape:custom
			line-join:round
			shape-def: p:#fefefe,0.8;pw:5;m:-13,0;-3,3,0,13,3,3,13,0,3,-3,0,-13,-3,-3;z
			shape-size:13
		draw:shape
		define
			shape:custom
			line-join:miter
			shape-def: p:black;f:black;pw:0;m:-13,0;-3,3,0,13,3,3,13,0,3,-3,0,-13,-3,-3;z;f:white;m:-3,3;3,3,3,-3,-3,-3;z
			shape-size:13
		draw:shape

//Flächennutzung, Bodenoberfläche
	target:Gebaeude
		for:building=greenhouse
			define
				fill-color:white
				line-style:none
			draw:fill
			define
				fill-color:black
				fill-hatch-color:white
				fill-hatch:vertical
				line-width:1.5
				line-join:miter
				line-style:solid
				painting-cycle:540
			draw:fill
		else
			define
				fill-color:black
				line-style:none
				painting-cycle:540
			draw:fill
	target:Gebuesch
		define
			fill-texture:icons/Topo50/gebuesch.png
			line-style:none
		draw:fill
	target:Steine
		define
			fill-texture:icons/Topo50/steine.png
			line-style:none
			//painting-cycle:420
		draw:fill
	target:Sand
		define
			fill-texture:icons/Topo50/sand.png
			line-style:none
		draw:fill
	target:Fels
		define
			fill-color:#e6e6e6
			line-style:none
			//painting-cycle:420
		draw:fill
	target:Siedlungsflaeche
		define
			fill-color:#ffb2b2
			line-style:none
		draw:fill
		//for : name and not place
			//define
				//text-max-width:1000
				//text-align-horizontal: near
				//font-size : 25
			//draw:text
	target:Industrieflaeche
		define
			fill-color:#cccccc
			line-style:none
		draw:fill
	target:Deponie
		define
			fill-color:#cccccc
			line-style:none
		draw:fill
	target:Friedhof
		define
			fill-texture:icons/Topo50/friedhof.png
			line-style:none
		draw:fill
	target:Erholungsflaeche
		define
			fill-color:#e6ffcc
			line-style:none
		draw:fill
	target:Park
		define
			fill-color:#e6ffcc
			line-style:none
		draw:fill
	target:Parkplatz
		define
			fill-color:white
			line-width:1.5
		draw:fill
	target:Flugplatz
		define
			fill-color:#e6ffcc
			line-width:1.5
		draw:fill
		for:aerodrome=gliding
			define
				shape:custom
				shape-def: pw:0;f:black;m:0,-157;a:157,157,0,157;a:157,157,0,-157;z;f:white;m:0,-142;a:142,142,0,142;a:142,142,0,-142;z;f:black;m:-14,13;46,93,50,94,55,92,58,89,12,0,72,-27,101,-5,116,-13,94,-53,0,-15,-75,-94,-81,-94,-84,-92,-86,-90,-86,-86,-27,-4,-56,8,-96,28,-110,36,-115,41,-114,44,-109,46,-103,46,-88,42,-52,31;z
				shape-size:40
			draw:shape
		else
			define
				font-size:20
			draw:text
	target:Schienenverkehrsfläche
		define
			fill-color:#cccccc
			line-style:none
		draw:fill
	target:Raststaette
		define
			fill-color:white
			line-width:1.5
		draw:fill
	target:Wiese
		define
			fill-texture:icons/Topo50/wiese.png
			line-style:none
		draw:fill
	target:Garten
		define
			fill-color:#e6ffcc
			line-style:none
		draw:fill
	target:Plantage
		define
			fill-texture:icons/Topo50/plantage.png
		for:landuse=plant_nursery
			define
				line-width:0.5
				line-color:#006600
		else
			define
				line-style:none
		draw:fill
	target:Heide
		define
			fill-texture:icons/Topo50/heide.png
			line-style:none
		draw:fill
	target:Feuchtgebiet
		//Moor
		for:@isoneof(wetland,bog,fen,string_bog,marsh,reedbed,saltmarsh) or natural=moor
			define
				fill-texture:icons/Topo50/moor.png
				line-style:none
		//Feuchtwiese
		elsefor:wetland=wet_meadow
			define
				fill-texture:icons/Topo50/feuchtwiese.png
				line-style:none
		//Feuchtwald
		elsefor:wetland=swamp or wetland=mangrove
			define
				fill-color:#ccff99
				line-style:none
			draw:fill
			define
				fill-texture:icons/Topo50/nass.png
				line-style:none
		//Watt
		elsefor:wetland=tidalflat
			define
				fill-color:#f2d5aa
				line-style:none
				painting-cycle:521
		//sonstiges Feuchtgebiet
		else
			define
				fill-texture:icons/Topo50/nass.png
				line-style:none
		draw:fill
	target:Wald
		define
			fill-color:#ccff99
			line-style:none
		draw:fill
//		for:leaf_type=broadleaved
//			define
//				fill-texture:icons/Topo50/laubwald.png
//		elsefor:leaf_type=needleleaved
//			define
//				fill-texture:icons/Topo50/nadelwald.png
//		else
//			define
//				fill-texture:icons/Topo50/mischwald.png
//		draw:fill
	target:Hopfen
		define
			fill-texture:icons/Topo50/hopfen.png
			line-style:none
		draw:fill
	target:Weingarten
		define
			fill-texture:icons/Topo50/weingarten.png
			line-style:none
		draw:fill
	target:Gletscher
		define
			painting-cycle:451
			line-style:none
			fill-color:white
		draw:fill
		define
			painting-cycle:450
			line-style:solid
			line-color:#0066ff
			line-width:2
		draw:line
	target:Gewaesserflaeche
		define
			painting-cycle:520
			//line-style:solid
			//fill-color:none
		for:waterway=lock or water=lock
			define
				line-width:5
				line-color:black
		else
			define
				line-color:#0066ff
				line-width:2.5
		for:intermittent=yes
			define
				line-style:dash
		draw:line
		define
			painting-cycle:521
			line-style:none
		for: water=wastewater
			define
				fill-color:#f2f2cc
		else
			define
				fill-color:#ccffff
		draw:fill
	//Grenzen
	target:*grenze
		define
			curved:false
			painting-cycle:670
			line-opacity:0.6
		if:Verwaltungs*
			define
				line-color:#9900ff
			for: admin_level=2
				define
					line-style:dash10to2
					line-width:12
			elsefor: admin_level=4
				define
					line-style:dash
					line-width:12
			elsefor: admin_level=5
				define
					line-style:dashdot
					line-width:9
			elsefor: admin_level=6
				define
					line-style:dashdotdot
					line-width:6
			elsefor: admin_level=7 or admin_level=8
				define
					line-style:dot
					line-width:3
			else
				stop
		elseif:NSG*
			define
				line-width:6
				line-color:#006600
				//line-hatch:diagonalcross
				//line-hatch-color:#fefefe
		elseif:Nationalpark*
			define
				line-width:12
				line-color:#006600
		elseif:TrUebPl*
			define
				line-width:6
				line-color:#ff66ff
		else
			stop
		draw:line
	target:Hochspannungsleitung
		define
			shape:custom
			shape-def: f:none;m:1,-1;0,0;1,1
			shape-size:10
			shape-spacing:5
			line-width:1
			curved:false
			painting-cycle:660
		draw:shape
		draw:line
//Verkehrsnetz
//Seilbahnen
	target:Luftseilbahn
		define
			curved:false
			shape:circle
			line-style:none
			shape-size:3.5
			shape-spacing:11.4
			painting-cycle:660
		draw:shape
		define
			line-width:1.5
			line-style:solid
		draw:line
	target:Materialseilbahn
		define
			line-width:1.5
			line-style:solid
		draw:line
		define
			curved:false
			shape:circle
			line-width:0.75
			fill-color:white
			shape-size:3.3
			shape-spacing:12.3
			painting-cycle:660
		draw:shape
	target:Skilift
		define
			line-width:1.5
			line-color: #b36600
			shape:custom
			shape-def:p:#b36600;m:0,-1;0,1;z
			shape-size:2.5
			shape-spacing:5
			shape-aspect:5
			painting-cycle:660
		draw:line
		draw:shape
//Tunnelachse
	target:Tunnelachse
		define
			line-width:1.5
			line-style:dash
			painting-cycle:590
		for: highway=motorway or (highway=trunk and (oneway=yes and not junction=roundabout))
			define
				line-offset:0.75
				line-offset-sides:right
		draw:line
//Eisenbahn, Linie
	target:Eisenbahn*
		for:tunnel AND NOT tunnel=no
			stop
		for: service=yard or service=siding
//			define
//				line-color:#cccccc
			stop
		if: *stillgelegt
			for: not (usage=tourism or service)
			define
				text:"stillgelegt"
				font-weight:normal
				text-offset-vertical:-95%
			//draw:text
		else
			for: railway:traffic_mode=freight and not service
				define
					text:"nur Güterverkehr"
					font-weight:normal
					text-offset-vertical:-75%
				//draw:text
		for:usage=tourism or service
			define
				line-width:2
		else
			define
				line-width:4
		for:bridge and not bridge=no
			define
				line-start-cap:round
				line-end-cap:round
			for:layer>4
				define
					painting-cycle:652
			elsefor:layer=4
				define
					painting-cycle:642
			elsefor:layer=3
				define
					painting-cycle:632
			elsefor:layer=2
				define
					painting-cycle:622
			elsefor:layer=1
				define
					painting-cycle:612
			else
				define
					painting-cycle:602
		else
			define
				painting-cycle:602
		if:*im Bau
			define
				line-style:dash
		draw:line
//Eisenbahnbrücke, Decker
		for:bridge and not bridge=no
			define
				line-start-cap:none
				line-end-cap:none
			for:usage=tourism or service
				define
					line-width:4
			else
				define
					line-width:6
			for:layer>4
				define
					painting-cycle:651
			elsefor:layer=4
				define
					painting-cycle:641
			elsefor:layer=3
				define
					painting-cycle:631
			elsefor:layer=2
				define
					painting-cycle:621
			elsefor:layer=1
				define
					painting-cycle:611
			else
				define
					painting-cycle:601
			define
				line-color:white
			draw:line
//Eisenbahnbrücke, Kontur
			for:usage=tourism or service
				define
					line-width:6.5
			else
				define
					line-width:8.5
			for:layer>4
				define
					painting-cycle:650
			elsefor:layer=4
				define
					painting-cycle:640
			elsefor:layer=3
				define
					painting-cycle:630
			elsefor:layer=2
				define
					painting-cycle:620
			elsefor:layer=1
				define
					painting-cycle:610
			else
				define
					painting-cycle:600
			define
				line-color:black
			draw:line
		for: @isoneof(embankment, yes, both, right) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,-1
				shape-size:5
				shape-spacing:0
				painting-cycle: 530
			for:usage=tourism or service
				define
					shape-aspect:2.4
			else
				define
					shape-aspect:2.8
			draw:shape
		for: @isoneof(embankment, yes, both, left) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,1
				shape-size:5
				shape-spacing:0
				painting-cycle: 530
			for:usage=tourism or service
				define
					shape-aspect:2.4
			else
				define
					shape-aspect:2.8
			draw:shape
		for: @isoneof(cutting, yes, both, right)
			define
				line-color:#b36600
				line-width:1.5
				line-offset-sides:right
				shape:custom
				shape-size:5
				shape-spacing:0
				painting-cycle: 530
			for:usage=tourism or service
				define
					line-offset:6
					shape-def: m:0,-10;0,-24
					shape-aspect:2.4
			else
				define
					line-offset:7
					shape-def: m:0,-1;0,-2
					shape-aspect:2.8
			draw:shape
			draw:line
		for: @isoneof(cutting, yes, both, left)
			define
				line-color:#b36600
				line-width:1.5
				line-offset-sides:left
				shape:custom
				shape-size:5
				shape-spacing:0
				painting-cycle: 530
			for:usage=tourism or service
				define
					line-offset:6
					shape-def: m:0,10;0,24
					shape-aspect:2.4
			else
				define
					line-offset:7
					shape-def: m:0,1;0,2
					shape-aspect:2.8
			draw:shape
			draw:line
//Schmalspurbahn, Linie
	target:Schmalspurbahn
		for:tunnel AND NOT tunnel=no
			stop
		define
			line-color:black
			line-width:1.6
			line-style:dashlong
		for: bridge and not bridge=no
			for:layer>4
				define
					painting-cycle:652
			elsefor:layer=4
				define
					painting-cycle:642
			elsefor:layer=3
				define
					painting-cycle:632
			elsefor:layer=2
				define
					painting-cycle:622
			elsefor:layer=1
				define
					painting-cycle:612
			else
				define
					painting-cycle:602
		else
			define
				painting-cycle:602
		draw:line
		for: bridge and not bridge=no
			define
				line-color:white
				line-width:1.5
				border-width:0.75
				border-style:solid
			draw:line
//Schmalspurbahn, Decker
		define
			line-color:white
			line-style:solid
			border-style:none
		for: bridge and not bridge=no
			define
				line-width:5
			for:layer>4
				define
					painting-cycle:651
			elsefor:layer=4
				define
					painting-cycle:641
			elsefor:layer=3
				define
					painting-cycle:631
			elsefor:layer=2
				define
					painting-cycle:621
			elsefor:layer=1
				define
					painting-cycle:611
			else
				define
					painting-cycle:601
		else
			define
				line-width:1.5
				painting-cycle:601
		draw:line
//Schmalspurbahn, Kontur
		define
			line-color:black
			line-style:solid
		for: bridge and not bridge=no
			define
				line-width:7.5
			for:layer>4
				define
					painting-cycle:650
			elsefor:layer=4
				define
					painting-cycle:640
			elsefor:layer=3
				define
					painting-cycle:630
			elsefor:layer=2
				define
					painting-cycle:620
			elsefor:layer=1
				define
					painting-cycle:610
			else
				define
					painting-cycle:600
		else
			define
				line-width:3
				painting-cycle:600
		draw:line
		for: @isoneof(embankment, yes, both, right) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,-1
				shape-size:5
				shape-spacing:0
				painting-cycle: 530
				shape-aspect:2.6
			draw:shape
		for: @isoneof(embankment, yes, both, left) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,1
				shape-size:5
				shape-spacing:0
				painting-cycle: 530
				shape-aspect:2.6
			draw:shape
		for: @isoneof(cutting, yes, both, right)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:6.5
				line-offset-sides:right
				shape:custom
				shape-def: m:0,-12;0,-26
				shape-size:5
				shape-aspect:2.6
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
		for: @isoneof(cutting, yes, both, left)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:6.5
				line-offset-sides:left
				shape:custom
				shape-def: m:0,12;0,26
				shape-size:5
				shape-aspect:2.6
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
//Strassennummern
	target:*strasse*
		if:*im Bau
			stop
		if:*rampe*
			stop
		for:tunnel and not tunnel=no
			stop
		define
			font-family:LM Sans 10
			font-style:normal
			font-weight:normal
			text-offset-vertical:-10%
			map.rendering.lflp.min-buffer-space:200
		for:@isMatch(ref,"A ")
			define
				font-size:30
			for:int_ref
				define
					text:int_ref " ("ref")"
			else
				define
					text:ref
		elsefor:@isMatch(ref,"B ")
			define
				font-size:30
				text:ref
		elsefor:ref
			define
				font-size:20
				text:ref
		else
			stop
		draw:text
//Schnellstrasse, Mittellinie
	target:Schnellstrasse*
		if: *rampe*
			stop
		if: *im Bau
			stop
		for:tunnel AND NOT tunnel=no
			stop
		define
			line-width:0.75
			line-offset:1.4375
			line-offset-sides:left
		for:bridge and not bridge=no
			define
				line-start-cap:round
				line-end-cap:round
			for:layer>4
				define
					painting-cycle:652
			elsefor:layer=4
				define
					painting-cycle:642
			elsefor:layer=3
				define
					painting-cycle:632
			elsefor:layer=2
				define
					painting-cycle:622
			elsefor:layer=1
				define
					painting-cycle:612
			else
				define
					painting-cycle:602
		else
			define
				painting-cycle:602
		draw:line
//Schnellstrasse, Decker
	target:Schnellstrasse*
		if: *rampe*
			stop
		define
			line-offset:0.75
			line-offset-sides:right
		for:tunnel AND NOT tunnel=no
			stop
		define
			line-width: 3.625
			line-color:#ffb300
		for: bridge and not bridge=no
			define
				line-start-cap:round
				line-end-cap:round
			for:layer>4
				define
					painting-cycle:651
			elsefor:layer=4
				define
					painting-cycle:641
			elsefor:layer=3
				define
					painting-cycle:631
			elsefor:layer=2
				define
					painting-cycle:621
			elsefor:layer=1
				define
					painting-cycle:611
			else
				define
					painting-cycle:601
		else
			define
				painting-cycle:601
		if:*im Bau
			define
				line-color:white
		draw:line
//Schnellstrasse, Kontur
		define
			line-width: 7.625
			line-color:black
		for: bridge and not bridge=no
			define
				line-start-cap:none
				line-end-cap:none
			for:layer>4
				define
					painting-cycle:650
			elsefor:layer=4
				define
					painting-cycle:640
			elsefor:layer=3
				define
					painting-cycle:630
			elsefor:layer=2
				define
					painting-cycle:620
			elsefor:layer=1
				define
					painting-cycle:610
			else
				define
					painting-cycle:600
		else
			define
				painting-cycle:600
		if:*im Bau
			define
				line-style:dashlong
//		else
//			define
//				line-style:solid
		draw:line
		for: @isoneof(embankment, yes, both, right) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,-1
				shape-size:5
				shape-aspect:3.825
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(embankment, yes, both, left) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,1
				shape-size:5
				shape-aspect:3.225
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(cutting, yes, both, right)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:9.5625
				line-offset-sides:right
				shape:custom
				shape-def: m:0,-97;0,-153
				shape-size:5
				shape-aspect:3.825
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
		for: @isoneof(cutting, yes, both, left)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:8.0625
				line-offset-sides:left
				shape:custom
				shape-def: m:0,73;0,129
				shape-size:5
				shape-aspect:3.225
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
//Hauptstrasse, Decker
	target:Hauptstrasse*
		for:tunnel AND NOT tunnel=no
			stop
//		for:oneway=yes
//			define
//				line-offset:2
//				line-offset-sides:right
		if:*1
			define
				line-color:#ffb300
		elseif:*2
			define
				line-color:#ffff00
		elseif:*3
			define
				line-color:white
		for: bridge and not bridge=no
			define
				line-start-cap:round
				line-end-cap:round
			for:layer>4
				define
					painting-cycle:651
			elsefor:layer=4
				define
					painting-cycle:641
			elsefor:layer=3
				define
					painting-cycle:631
			elsefor:layer=2
				define
					painting-cycle:621
			elsefor:layer=1
				define
					painting-cycle:611
			else
				define
					painting-cycle:601
		else
			define
				painting-cycle:601
		define
			line-width:5
		if:*im Bau
			define
				line-color:white
		draw:line
//Hauptstrasse, Kontur
		define
			line-color:black
		if: *3
			define
				line-width:8
		else
			define
				line-width:10
		for: bridge and not bridge=no
			define
				line-start-cap:none
				line-end-cap:none
			for:layer>4
				define
					painting-cycle:650
			elsefor:layer=4
				define
					painting-cycle:640
			elsefor:layer=3
				define
					painting-cycle:630
			elsefor:layer=2
				define
					painting-cycle:620
			elsefor:layer=1
				define
					painting-cycle:610
			else
				define
					painting-cycle:600
		else
			define
				painting-cycle:600
		if:*im Bau
			define
				line-style:dashlong
//		else
//			define
//				line-style:solid
		draw:line
		for: @isoneof(embankment, yes, both, right) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,-1
				shape-size:5
				shape-aspect:4
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(embankment, yes, both, left) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,1
				shape-size:5
				shape-aspect:4
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(cutting, yes, both, right)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:10
				line-offset-sides:right
				shape:custom
				shape-def: m:0,-26;0,-40
				shape-size:5
				shape-aspect:4
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
		for: @isoneof(cutting, yes, both, left)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:10
				line-offset-sides:left
				shape:custom
				shape-def: m:0,26;0,40
				shape-size:5
				shape-aspect:4
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
//Nebenstrasse, Decker
	target:Nebenstrasse*
		for:tunnel AND NOT tunnel=no
			stop
		for: bridge and not bridge=no
			define
				line-start-cap:round
				line-end-cap:round
			for:layer>4
				define
					painting-cycle:651
			elsefor:layer=4
				define
					painting-cycle:641
			elsefor:layer=3
				define
					painting-cycle:631
			elsefor:layer=2
				define
					painting-cycle:621
			elsefor:layer=1
				define
					painting-cycle:611
			else
				define
					painting-cycle:601
		else
			define
				painting-cycle:601
		define
			line-width:4
			line-color:white
		draw:line
//Nebenstrasse, Kontur
		define
			line-color:black
		for: bridge and not bridge=no
			define
				line-width: 7.5
				line-start-cap:none
				line-end-cap:none
			for:layer>4
				define
					painting-cycle:650
			elsefor:layer=4
				define
					painting-cycle:640
			elsefor:layer=3
				define
					painting-cycle:630
			elsefor:layer=2
				define
					painting-cycle:620
			elsefor:layer=1
				define
					painting-cycle:610
			else
				define
					painting-cycle:600
		else
			define
				line-width: 5.5
				painting-cycle:600
		if:*im Bau
			define
				line-style:dashlong
//		else
//			define
//				line-style:solid
		draw:line
		for: @isoneof(embankment, yes, both, right) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,-1
				shape-size:5
				shape-aspect:3.1
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(embankment, yes, both, left) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,1
				shape-size:5
				shape-aspect:3.1
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(cutting, yes, both, right)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:7.75
				line-offset-sides:right
				shape:custom
				shape-def: m:0,-17;0,-31
				shape-size:5
				shape-aspect:3.1
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
		for: @isoneof(cutting, yes, both, left)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:7.75
				line-offset-sides:left
				shape:custom
				shape-def: m:0,17;0,31
				shape-size:5
				shape-aspect:3.1
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
//Ortsstrasse, Decker
	target:Ortsstrasse
		for:tunnel AND NOT tunnel=no
			stop
//		for:oneway=yes
//			define
//				line-offset:1
//				line-offset-sides:right
		for: bridge and not bridge=no
			define
				line-start-cap:round
				line-end-cap:round
			for:layer>4
				define
					painting-cycle:651
			elsefor:layer=4
				define
					painting-cycle:641
			elsefor:layer=3
				define
					painting-cycle:631
			elsefor:layer=2
				define
					painting-cycle:621
			elsefor:layer=1
				define
					painting-cycle:611
			else
				define
					painting-cycle:601
		else
			define
				painting-cycle:601
		define
			line-width:3
			line-color:white
			line-style:solid
		draw:line
//Ortsstrasse, Kontur
		define
			line-color:black
		for: bridge and not bridge=no
			define
				line-width: 6.5
				line-start-cap:none
				line-end-cap:none
			for:layer>4
				define
					painting-cycle:650
			elsefor:layer=4
				define
					painting-cycle:640
			elsefor:layer=3
				define
					painting-cycle:630
			elsefor:layer=2
				define
					painting-cycle:620
			elsefor:layer=1
				define
					painting-cycle:610
			else
				define
					painting-cycle:600
		else
			define
				line-width: 4.5
				painting-cycle:600
		if:*im Bau
			define
				line-style:dashlong
//		else
//			define
//				line-style:solid
		draw:line
		for: @isoneof(embankment, yes, both, right) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,-1
				shape-size:5
				shape-aspect:2.9
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(embankment, yes, both, left) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,1
				shape-size:5
				shape-aspect:2.9
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(cutting, yes, both, right)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:7.25
				line-offset-sides:right
				shape:custom
				shape-def: m:0,-15;0,-29
				shape-size:5
				shape-aspect:2.9
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
		for: @isoneof(cutting, yes, both, left)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:7.25
				line-offset-sides:left
				shape:custom
				shape-def: m:0,15;0,29
				shape-size:5
				shape-aspect:2.9
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
//Schnellstrassenrampe, Decker
	target:Schnellstrassenrampe*
		for:tunnel AND NOT tunnel=no
			stop
		define
			line-width: 3.625
			line-color:#ffb300
		for: bridge and not bridge=no
			define
				line-start-cap:round
				line-end-cap:round
			for:layer>4
				define
					painting-cycle:651
			elsefor:layer=4
				define
					painting-cycle:641
			elsefor:layer=3
				define
					painting-cycle:631
			elsefor:layer=2
				define
					painting-cycle:621
			elsefor:layer=1
				define
					painting-cycle:611
			else
				define
					painting-cycle:601
		else
			define
				painting-cycle:601
		if:*im Bau
			define
				line-color:white
		draw:line
//Schnellstrassenrampe, Kontur
		define
			line-width: 7.625
			line-color:black
		for: bridge and not bridge=no
			define
				line-start-cap:none
				line-end-cap:none
			for:layer>4
				define
					painting-cycle:650
			elsefor:layer=4
				define
					painting-cycle:640
			elsefor:layer=3
				define
					painting-cycle:630
			elsefor:layer=2
				define
					painting-cycle:620
			elsefor:layer=1
				define
					painting-cycle:610
			else
				define
					painting-cycle:600
		else
			define
				painting-cycle:600
		if:*im Bau
			define
				line-style:dashlong
//		else
//			define
//				line-style:solid
		draw:line
		for: @isoneof(embankment, yes, both, right) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,-1
				shape-size:5
				shape-aspect:3.525
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(embankment, yes, both, left) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,1
				shape-size:5
				shape-aspect:3.525
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(cutting, yes, both, right)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:8.8125
				line-offset-sides:right
				shape:custom
				shape-def: m:0,-85;0,-141
				shape-size:5
				shape-aspect:3.525
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
		for: @isoneof(cutting, yes, both, left)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:8.8125
				line-offset-sides:left
				shape:custom
				shape-def: m:0,85;0,141
				shape-size:5
				shape-aspect:3.525
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
//Fussgängerzone, Decker
	target:Fussgaengerzone
		for:layer>4
			define
				painting-cycle:651
		elsefor:layer=4
			define
				painting-cycle:641
		elsefor:layer=3
			define
				painting-cycle:631
		elsefor:layer=2
			define
				painting-cycle:621
		elsefor:layer=1
			define
				painting-cycle:611
		elsefor:layer=-1
			define
				painting-cycle:591
		elsefor:layer=-2
			define
				painting-cycle:581
		elsefor:layer=-3
			define
				painting-cycle:571
		elsefor:layer=-4
			define
				painting-cycle:561
		elsefor:layer<-4
			define
				painting-cycle:551
		else
			define
				painting-cycle:601
		for:area=yes
			define
				fill-color:#e6ffcc
				line-style:none
			draw:fill
		else
			define
				line-color:#e6ffcc
				line-width:3
			for: bridge and not bridge=no
				define
					line-start-cap:round
					line-end-cap:round
			draw:line
//Fussgängerzone, Kontur
		for:layer>4
			define
				painting-cycle:650
		elsefor:layer=4
			define
				painting-cycle:640
		elsefor:layer=3
			define
				painting-cycle:630
		elsefor:layer=2
			define
				painting-cycle:620
		elsefor:layer=1
			define
				painting-cycle:610
		elsefor:layer=-1
			define
				painting-cycle:590
		elsefor:layer=-2
			define
				painting-cycle:580
		elsefor:layer=-3
			define
				painting-cycle:570
		elsefor:layer=-4
			define
				painting-cycle:560
		elsefor:layer<-4
			define
				painting-cycle:550
		else
			define
				painting-cycle:600
		for:area=yes
			define
				fill-color:black
				line-width:1.5
				line-style:solid
			draw:fill
		else
			define
				line-color:black
			for: bridge and not bridge=no
				define
					line-start-cap:none
					line-end-cap:none
					line-width:6.5
			else
				define
					line-width:4.5
			draw:line
//Haupt- oder Radweg, Decker
	target:*weg
		for:tunnel AND NOT tunnel=no
			stop
		define
			line-width:3
			line-color:white
		for: bridge and not bridge=no
			define
				line-start-cap:round
				line-end-cap:round
			for:layer>4
				define
					painting-cycle:651
			elsefor:layer=4
				define
					painting-cycle:641
			elsefor:layer=3
				define
					painting-cycle:631
			elsefor:layer=2
				define
					painting-cycle:621
			elsefor:layer=1
				define
					painting-cycle:611
			else
				define
					painting-cycle:601
		else
			define
				painting-cycle:601
		draw:line
//Haupt- oder Radweg, Kontur
		for:bridge and not bridge=no
			define
				line-width:6.5
				line-color:black
				line-start-cap:none
				line-end-cap:none
			for:layer>4
				define
					painting-cycle:650
			elsefor:layer=4
				define
					painting-cycle:640
			elsefor:layer=3
				define
					painting-cycle:630
			elsefor:layer=2
				define
					painting-cycle:620
			elsefor:layer=1
				define
					painting-cycle:610
			else
				define
					painting-cycle:600
			draw:line
		else
			define
				line-width:2.5
				line-color:black
				line-offset:1
				painting-cycle:600
			if: Hauptweg
				define
					line-offset-sides:left
				draw:line
				define
					line-style:dash
					line-offset-sides:right
				draw:line
			elseif: Radweg
				define
					line-style:dash
					line-offset-sides:both
				draw:line
		for: @isoneof(embankment, yes, both, right) or man_made=dyke
			define
				shape:custom
				shape-def: ps:solid;pw:1.5;p:#b36600;m:0,0;0,-1
				shape-size:5
				shape-aspect:2.9
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(embankment, yes, both, left) or man_made=dyke
			define
				shape:custom
				shape-def: ps:solid;pw:1.5;p:#b36600;m:0,0;0,1
				shape-size:5
				shape-aspect:2.9
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(cutting, yes, both, right)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:7.25
				line-offset-sides:right
				line-style:solid
				shape:custom
				shape-def: m:0,-15;0,-29
				shape-size:5
				shape-aspect:2.9
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
		for: @isoneof(cutting, yes, both, left)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:7.25
				line-offset-sides:left
				line-style:solid
				shape:custom
				shape-def: m:0,15;0,29
				shape-size:5
				shape-aspect:2.9
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
	target:Weg*
		for:tunnel AND NOT tunnel=no
			stop
		elsefor:bridge and not bridge=no
			define
				line-width:1.5
			for:layer>4
				define
					painting-cycle:650
			elsefor:layer=4
				define
					painting-cycle:640
			elsefor:layer=3
				define
					painting-cycle:630
			elsefor:layer=2
				define
					painting-cycle:620
			elsefor:layer=1
				define
					painting-cycle:610
			else
				define
					painting-cycle:600
		else
			define
				line-width:1.25
			if:*2
				define
					line-style:dash10to2
		draw:line
		for: @isoneof(embankment, yes, both, right) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,-1
				shape-size:5
				shape-aspect:2.25
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(embankment, yes, both, left) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:1,0;1,1
				shape-size:5
				shape-aspect:2.25
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(cutting, yes, both, right)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:5.625
				line-offset-sides:right
				line-style:solid
				shape:custom
				shape-def: m:0,-17;0,-45
				shape-size:5
				shape-aspect:2.25
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
		for: @isoneof(cutting, yes, both, left)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:5.625
				line-offset-sides:left
				line-style:solid
				shape:custom
				shape-def: m:0,17;0,45
				shape-size:5
				shape-aspect:2.25
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
	target:Pfad
		for:tunnel AND NOT tunnel=no
			stop
		elsefor:bridge and not bridge=no
			define
				line-width:1.5
			for:layer>4
				define
					painting-cycle:650
			elsefor:layer=4
				define
					painting-cycle:640
			elsefor:layer=3
				define
					painting-cycle:630
			elsefor:layer=2
				define
					painting-cycle:620
			elsefor:layer=1
				define
					painting-cycle:610
			else
				define
					painting-cycle:600
		else
			define
				line-width:1.25
				line-style:dash
		draw:line
		for: @isoneof(embankment, yes, both, right) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,-1
				shape-size:5
				shape-aspect:2.25
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(embankment, yes, both, left) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:1,0;1,1
				shape-size:5
				shape-aspect:2.25
				shape-spacing:0
				painting-cycle: 530
			draw:shape
		for: @isoneof(cutting, yes, both, right)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:5.625
				line-offset-sides:right
				line-style:solid
				shape:custom
				shape-def: m:0,-17;0,-45
				shape-size:5
				shape-aspect:2.25
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
		for: @isoneof(cutting, yes, both, left)
			define
				line-color:#b36600
				line-width:1.5
				line-offset:5.625
				line-offset-sides:left
				line-style:solid
				shape:custom
				shape-def: m:0,17;0,45
				shape-size:5
				shape-aspect:2.25
				shape-spacing:0
				painting-cycle: 530
			draw:shape
			draw:line
//Straßenbahn
	target:Tram
		for:tunnel AND NOT tunnel=no
			stop
//Straßenbahnbrücke, Kontur
		for:bridge and not bridge=no
			define
				line-width:5.5
			for:layer>4
				define
					painting-cycle:650
			elsefor:layer=4
				define
					painting-cycle:640
			elsefor:layer=3
				define
					painting-cycle:630
			elsefor:layer=2
				define
					painting-cycle:620
			elsefor:layer=1
				define
					painting-cycle:610
			else
				define
					painting-cycle:600
			draw:line
//Straßenbahnbrücke, Decker
			define
				line-width:3
			for:layer>4
				define
					painting-cycle:651
			elsefor:layer=4
				define
					painting-cycle:641
			elsefor:layer=3
				define
					painting-cycle:631
			elsefor:layer=2
				define
					painting-cycle:621
			elsefor:layer=1
				define
					painting-cycle:611
			else
				define
					painting-cycle:601
			define
				line-color:white
			draw:line
//Straßenbahn, Linie
		define
			line-width:1
			line-color:black
		for:bridge and not bridge=no
			define
				line-start-cap:round
				line-end-cap:round
			for:layer>4
				define
					painting-cycle:652
			elsefor:layer=4
				define
					painting-cycle:642
			elsefor:layer=3
				define
					painting-cycle:632
			elsefor:layer=2
				define
					painting-cycle:622
			elsefor:layer=1
				define
					painting-cycle:612
			else
				define
					painting-cycle:602
		else
			define
				painting-cycle:602
		draw:line
		define
			shape:custom
			shape-def: pw:2;m:0,0;0,-1
			shape-size:20
			shape-aspect:0.2
			shape-spacing:0
		draw:shape
		for: @isoneof(embankment, yes, both, right) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,-1
				shape-size:5
				shape-spacing:0
				painting-cycle: 530
				shape-aspect:2.4
			draw:shape
		for: @isoneof(embankment, yes, both, left) or man_made=dyke
			define
				shape:custom
				shape-def: pw:1.5;p:#b36600;m:0,0;0,1
				shape-size:5
				shape-spacing:0
				painting-cycle: 530
				shape-aspect:2.4
			draw:shape
		for: @isoneof(cutting, yes, both, right)
			define
				line-color:#b36600
				line-width:1.5
				line-offset-sides:right
				shape:custom
				shape-size:5
				shape-spacing:0
				painting-cycle: 530
				line-offset:6
				shape-def: m:0,-10;0,-24
				shape-aspect:2.4
			draw:shape
			draw:line
		for: @isoneof(cutting, yes, both, left)
			define
				line-color:#b36600
				line-width:1.5
				line-offset-sides:left
				shape:custom
				shape-size:5
				shape-spacing:0
				painting-cycle: 530
				line-offset:6
				shape-def: m:0,10;0,24
				shape-aspect:2.4
			draw:shape
			draw:line
	target:Bruecken*
 	 	for: bridge_direction < 3		
			define	
				angle: 0
		elsefor: bridge_direction < 8		
			define	
				angle: 5
		elsefor: bridge_direction < 13		
			define	
				angle: 10
		elsefor: bridge_direction < 18		
			define	
				angle: 15
		elsefor: bridge_direction < 23		
			define	
				angle: 20
		elsefor: bridge_direction < 28		
			define	
				angle: 25
		elsefor: bridge_direction < 33		
			define	
				angle: 30
		elsefor: bridge_direction < 38		
			define	
				angle: 35
		elsefor: bridge_direction < 43		
			define	
				angle: 40
		elsefor: bridge_direction < 48		
			define	
				angle: 45
		elsefor: bridge_direction < 53		
			define	
				angle: 50
		elsefor: bridge_direction < 58		
			define	
				angle: 55
		elsefor: bridge_direction < 63		
			define	
				angle: 60
		elsefor: bridge_direction < 68		
			define	
				angle: 65
		elsefor: bridge_direction < 73		
			define	
				angle: 70
		elsefor: bridge_direction < 78		
			define	
				angle: 75
		elsefor: bridge_direction < 83		
			define	
				angle: 80
		elsefor: bridge_direction < 88		
			define	
				angle: 85
		elsefor: bridge_direction < 93		
			define	
				angle: 90
		elsefor: bridge_direction < 98		
			define	
				angle: 95
		elsefor: bridge_direction < 103		
			define	
				angle: 100
		elsefor: bridge_direction < 108		
			define	
				angle: 105
		elsefor: bridge_direction < 113		
			define	
				angle: 110
		elsefor: bridge_direction < 118		
			define	
				angle: 115
		elsefor: bridge_direction < 123		
			define	
				angle: 120
		elsefor: bridge_direction < 128		
			define	
				angle: 125
		elsefor: bridge_direction < 133		
			define	
				angle: 130
		elsefor: bridge_direction < 138		
			define	
				angle: 135
		elsefor: bridge_direction < 143		
			define	
				angle: 140
		elsefor: bridge_direction < 148		
			define	
				angle: 145
		elsefor: bridge_direction < 153		
			define	
				angle: 150
		elsefor: bridge_direction < 158		
			define	
				angle: 155
		elsefor: bridge_direction < 163		
			define	
				angle: 160
		elsefor: bridge_direction < 168		
			define	
				angle: 165
		elsefor: bridge_direction < 173		
			define	
				angle: 170
		elsefor: bridge_direction < 178		
			define	
				angle: 175
		elsefor: bridge_direction < 183		
			define	
				angle: 180
		elsefor: bridge_direction < 188		
			define	
				angle: 185
		elsefor: bridge_direction < 193		
			define	
				angle: 190
		elsefor: bridge_direction < 198		
			define	
				angle: 195
		elsefor: bridge_direction < 203		
			define	
				angle: 200
		elsefor: bridge_direction < 208		
			define	
				angle: 205
		elsefor: bridge_direction < 213		
			define	
				angle: 210
		elsefor: bridge_direction < 218		
			define	
				angle: 215
		elsefor: bridge_direction < 223		
			define	
				angle: 220
		elsefor: bridge_direction < 228		
			define	
				angle: 225
		elsefor: bridge_direction < 233		
			define	
				angle: 230
		elsefor: bridge_direction < 238		
			define	
				angle: 235
		elsefor: bridge_direction < 243		
			define	
				angle: 240
		elsefor: bridge_direction < 248		
			define	
				angle: 245
		elsefor: bridge_direction < 253		
			define	
				angle: 250
		elsefor: bridge_direction < 258		
			define	
				angle: 255
		elsefor: bridge_direction < 263		
			define	
				angle: 260
		elsefor: bridge_direction < 268		
			define	
				angle: 265
		elsefor: bridge_direction < 273		
			define	
				angle: 270
		elsefor: bridge_direction < 278		
			define	
				angle: 275
		elsefor: bridge_direction < 283		
			define	
				angle: 280
		elsefor: bridge_direction < 288		
			define	
				angle: 285
		elsefor: bridge_direction < 293		
			define	
				angle: 290
		elsefor: bridge_direction < 298		
			define	
				angle: 295
		elsefor: bridge_direction < 303		
			define	
				angle: 300
		elsefor: bridge_direction < 308		
			define	
				angle: 305
		elsefor: bridge_direction < 313		
			define	
				angle: 310
		elsefor: bridge_direction < 318		
			define	
				angle: 315
		elsefor: bridge_direction < 323		
			define	
				angle: 320
		elsefor: bridge_direction < 328		
			define	
				angle: 325
		elsefor: bridge_direction < 333		
			define	
				angle: 330
		elsefor: bridge_direction < 338		
			define	
				angle: 335
		elsefor: bridge_direction < 343		
			define	
				angle: 340
		elsefor: bridge_direction < 348		
			define	
				angle: 345
		elsefor: bridge_direction < 353		
			define	
				angle: 350
		elsefor: bridge_direction < 358		
			define	
				angle: 355
		else		
			define	
				angle: 0
		define
			shape:custom
			line-join:miter
		for:bridge_layer>4
			define
				painting-cycle:650
		elsefor:bridge_layer=4
			define
				painting-cycle:640
		elsefor:bridge_layer=3
			define
				painting-cycle:630
		elsefor:bridge_layer=2
			define
				painting-cycle:620
		elsefor:bridge_layer=1
			define
				painting-cycle:610
		else
			define
				painting-cycle:600
		for: bridge_key=highway
			for:bridge_value=motorway or bridge_value=trunk
				define
					shape-size:14.125
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:65,8;113,-40
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:65,-8;113,40
			elsefor:bridge_value=motorway_link or bridge_value=trunk_link
				define
					shape-size:12.625
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-101,-40;-53,8;m:53,8;11,-101
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-101,40;-53,-8;m:53,-8;11,101
			elsefor: @isoneof(bridge_value, primary, primary_link, secondary, secondary_link)
				define
					shape-size:15
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-30,-10;-18,2;m:18,2;30,-10
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-30,10;-18,-2;m:18,-2;30,10
			elsefor: @isoneof(bridge_value, tertiary, tertiary_link)
				define
					shape-size:13
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-26,-10;-14,2;m:14,2;26,-10
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-26,10;-14,-2;m:14,-2;26,10
			elsefor: bridge_value=unclassified
				define
					shape-size:11.5
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-23,-10;-11,2;m:11,2;23,-10
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-23,10;-11,-2;m:11,-2;23,10
			elsefor: @isoneof(bridge_value,service,road,residential,living_street,track1)
				define
					shape-size:10.5
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-21,-10;-9,2;m:9,2;21,-10
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-21,10;-9,-2;m:9,-2;21,10
			else
				define
					shape-size:5
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-1,-1;0,0;1,-1
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-1,1;0,0;1,1
		elsefor: bridge_key=railway
			for: @isoneof(bridge_value,narrow_gauge,funicular,monorail)
				define
					shape-size:11.5
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-23,-10;-11,2;m:11,2;23,-10
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-23,10;-11,-2;m:11,-2;23,10
			elsefor: bridge_value=railservice
				define
					shape-size:11
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-22,-10;-10,2;m:10,2;22,-10
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-22,10;-10,-2;m:10,-2;22,10
			else
				define
					shape-size:12
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-24,-10;-12,2;m:12,2;24,-10
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-24,10;-12,-2;m:12,-2;24,10
		draw:shape
	target:Tunnelportal*
 	 	for: tunnel_direction < 3		
			define	
				angle: 0
		elsefor: tunnel_direction < 8		
			define	
				angle: 5
		elsefor: tunnel_direction < 13		
			define	
				angle: 10
		elsefor: tunnel_direction < 18		
			define	
				angle: 15
		elsefor: tunnel_direction < 23		
			define	
				angle: 20
		elsefor: tunnel_direction < 28		
			define	
				angle: 25
		elsefor: tunnel_direction < 33		
			define	
				angle: 30
		elsefor: tunnel_direction < 38		
			define	
				angle: 35
		elsefor: tunnel_direction < 43		
			define	
				angle: 40
		elsefor: tunnel_direction < 48		
			define	
				angle: 45
		elsefor: tunnel_direction < 53		
			define	
				angle: 50
		elsefor: tunnel_direction < 58		
			define	
				angle: 55
		elsefor: tunnel_direction < 63		
			define	
				angle: 60
		elsefor: tunnel_direction < 68		
			define	
				angle: 65
		elsefor: tunnel_direction < 73		
			define	
				angle: 70
		elsefor: tunnel_direction < 78		
			define	
				angle: 75
		elsefor: tunnel_direction < 83		
			define	
				angle: 80
		elsefor: tunnel_direction < 88		
			define	
				angle: 85
		elsefor: tunnel_direction < 93		
			define	
				angle: 90
		elsefor: tunnel_direction < 98		
			define	
				angle: 95
		elsefor: tunnel_direction < 103		
			define	
				angle: 100
		elsefor: tunnel_direction < 108		
			define	
				angle: 105
		elsefor: tunnel_direction < 113		
			define	
				angle: 110
		elsefor: tunnel_direction < 118		
			define	
				angle: 115
		elsefor: tunnel_direction < 123		
			define	
				angle: 120
		elsefor: tunnel_direction < 128		
			define	
				angle: 125
		elsefor: tunnel_direction < 133		
			define	
				angle: 130
		elsefor: tunnel_direction < 138		
			define	
				angle: 135
		elsefor: tunnel_direction < 143		
			define	
				angle: 140
		elsefor: tunnel_direction < 148		
			define	
				angle: 145
		elsefor: tunnel_direction < 153		
			define	
				angle: 150
		elsefor: tunnel_direction < 158		
			define	
				angle: 155
		elsefor: tunnel_direction < 163		
			define	
				angle: 160
		elsefor: tunnel_direction < 168		
			define	
				angle: 165
		elsefor: tunnel_direction < 173		
			define	
				angle: 170
		elsefor: tunnel_direction < 178		
			define	
				angle: 175
		elsefor: tunnel_direction < 183		
			define	
				angle: 180
		elsefor: tunnel_direction < 188		
			define	
				angle: 185
		elsefor: tunnel_direction < 193		
			define	
				angle: 190
		elsefor: tunnel_direction < 198		
			define	
				angle: 195
		elsefor: tunnel_direction < 203		
			define	
				angle: 200
		elsefor: tunnel_direction < 208		
			define	
				angle: 205
		elsefor: tunnel_direction < 213		
			define	
				angle: 210
		elsefor: tunnel_direction < 218		
			define	
				angle: 215
		elsefor: tunnel_direction < 223		
			define	
				angle: 220
		elsefor: tunnel_direction < 228		
			define	
				angle: 225
		elsefor: tunnel_direction < 233		
			define	
				angle: 230
		elsefor: tunnel_direction < 238		
			define	
				angle: 235
		elsefor: tunnel_direction < 243		
			define	
				angle: 240
		elsefor: tunnel_direction < 248		
			define	
				angle: 245
		elsefor: tunnel_direction < 253		
			define	
				angle: 250
		elsefor: tunnel_direction < 258		
			define	
				angle: 255
		elsefor: tunnel_direction < 263		
			define	
				angle: 260
		elsefor: tunnel_direction < 268		
			define	
				angle: 265
		elsefor: tunnel_direction < 273		
			define	
				angle: 270
		elsefor: tunnel_direction < 278		
			define	
				angle: 275
		elsefor: tunnel_direction < 283		
			define	
				angle: 280
		elsefor: tunnel_direction < 288		
			define	
				angle: 285
		elsefor: tunnel_direction < 293		
			define	
				angle: 290
		elsefor: tunnel_direction < 298		
			define	
				angle: 295
		elsefor: tunnel_direction < 303		
			define	
				angle: 300
		elsefor: tunnel_direction < 308		
			define	
				angle: 305
		elsefor: tunnel_direction < 313		
			define	
				angle: 310
		elsefor: tunnel_direction < 318		
			define	
				angle: 315
		elsefor: tunnel_direction < 323		
			define	
				angle: 320
		elsefor: tunnel_direction < 328		
			define	
				angle: 325
		elsefor: tunnel_direction < 333		
			define	
				angle: 330
		elsefor: tunnel_direction < 338		
			define	
				angle: 335
		elsefor: tunnel_direction < 343		
			define	
				angle: 340
		elsefor: tunnel_direction < 348		
			define	
				angle: 345
		elsefor: tunnel_direction < 353		
			define	
				angle: 350
		elsefor: tunnel_direction < 358		
			define	
				angle: 355
		else		
			define	
				angle: 0
		define
			shape:custom
			line-join:miter
		define
			painting-cycle:602
		for: tunnel_key=highway
			for:tunnel_value=service
				stop
			elsefor:tunnel_value=motorway or tunnel_value=trunk
				define
					shape-size:14.125
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-49,8;65,8;113,-40
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-49,-8;65,-8;113,40
			elsefor:tunnel_value=motorway_link or tunnel_value=trunk_link
				define
					shape-size:12.625
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-101,-40;-53,8;53,8;11,-101
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-101,40;-53,-8;53,-8;11,101
			elsefor: @isoneof(tunnel_value, primary, primary_link, secondary, secondary_link)
				define
					shape-size:15
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-30,-10;-18,2;18,2;30,-10
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-30,10;-18,-2;18,-2;30,10
			elsefor: @isoneof(tunnel_value, tertiary, tertiary_link)
				define
					shape-size:13
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-26,-10;-14,2;14,2;26,-10
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-26,10;-14,-2;14,-2;26,10
			elsefor: tunnel_value=unclassified
				define
					shape-size:11.5
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-23,-10;-11,2;11,2;23,-10
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-23,10;-11,-2;11,-2;23,10
			else
				define
					shape-size:10
				if: *anfang
					define
						shape-def: f:0;pw:1.25;m:-2,-1;-1,0;1,0;2,-1
				if: *ende
					define
						shape-def: f:0;pw:1.25;m:-2,1;-1,0;1,0;2,1
		elsefor: tunnel_key=railway
			define
				shape-size:10
			if: *anfang
				define
					shape-def: f:0;pw:1.25;m:-2,-1;-1,0;1,0;2,-1
			if: *ende
				define
					shape-def: f:0;pw:1.25;m:-2,1;-1,0;1,0;2,1
		draw:shape
	target: Barriere*
		for: has_direction=false
			stop
 	 	for: barrier_direction < 3		
			define	
				angle: 0
		elsefor: barrier_direction < 8		
			define	
				angle: 5
		elsefor: barrier_direction < 13		
			define	
				angle: 10
		elsefor: barrier_direction < 18		
			define	
				angle: 15
		elsefor: barrier_direction < 23		
			define	
				angle: 20
		elsefor: barrier_direction < 28		
			define	
				angle: 25
		elsefor: barrier_direction < 33		
			define	
				angle: 30
		elsefor: barrier_direction < 38		
			define	
				angle: 35
		elsefor: barrier_direction < 43		
			define	
				angle: 40
		elsefor: barrier_direction < 48		
			define	
				angle: 45
		elsefor: barrier_direction < 53		
			define	
				angle: 50
		elsefor: barrier_direction < 58		
			define	
				angle: 55
		elsefor: barrier_direction < 63		
			define	
				angle: 60
		elsefor: barrier_direction < 68		
			define	
				angle: 65
		elsefor: barrier_direction < 73		
			define	
				angle: 70
		elsefor: barrier_direction < 78		
			define	
				angle: 75
		elsefor: barrier_direction < 83		
			define	
				angle: 80
		elsefor: barrier_direction < 88		
			define	
				angle: 85
		elsefor: barrier_direction < 93		
			define	
				angle: 90
		elsefor: barrier_direction < 98		
			define	
				angle: 95
		elsefor: barrier_direction < 103		
			define	
				angle: 100
		elsefor: barrier_direction < 108		
			define	
				angle: 105
		elsefor: barrier_direction < 113		
			define	
				angle: 110
		elsefor: barrier_direction < 118		
			define	
				angle: 115
		elsefor: barrier_direction < 123		
			define	
				angle: 120
		elsefor: barrier_direction < 128		
			define	
				angle: 125
		elsefor: barrier_direction < 133		
			define	
				angle: 130
		elsefor: barrier_direction < 138		
			define	
				angle: 135
		elsefor: barrier_direction < 143		
			define	
				angle: 140
		elsefor: barrier_direction < 148		
			define	
				angle: 145
		elsefor: barrier_direction < 153		
			define	
				angle: 150
		elsefor: barrier_direction < 158		
			define	
				angle: 155
		elsefor: barrier_direction < 163		
			define	
				angle: 160
		elsefor: barrier_direction < 168		
			define	
				angle: 165
		elsefor: barrier_direction < 173		
			define	
				angle: 170
		elsefor: barrier_direction < 178		
			define	
				angle: 175
		elsefor: barrier_direction < 183		
			define	
				angle: 180
		elsefor: barrier_direction < 188		
			define	
				angle: 185
		elsefor: barrier_direction < 193		
			define	
				angle: 190
		elsefor: barrier_direction < 198		
			define	
				angle: 195
		elsefor: barrier_direction < 203		
			define	
				angle: 200
		elsefor: barrier_direction < 208		
			define	
				angle: 205
		elsefor: barrier_direction < 213		
			define	
				angle: 210
		elsefor: barrier_direction < 218		
			define	
				angle: 215
		elsefor: barrier_direction < 223		
			define	
				angle: 220
		elsefor: barrier_direction < 228		
			define	
				angle: 225
		elsefor: barrier_direction < 233		
			define	
				angle: 230
		elsefor: barrier_direction < 238		
			define	
				angle: 235
		elsefor: barrier_direction < 243		
			define	
				angle: 240
		elsefor: barrier_direction < 248		
			define	
				angle: 245
		elsefor: barrier_direction < 253		
			define	
				angle: 250
		elsefor: barrier_direction < 258		
			define	
				angle: 255
		elsefor: barrier_direction < 263		
			define	
				angle: 260
		elsefor: barrier_direction < 268		
			define	
				angle: 265
		elsefor: barrier_direction < 273		
			define	
				angle: 270
		elsefor: barrier_direction < 278		
			define	
				angle: 275
		elsefor: barrier_direction < 283		
			define	
				angle: 280
		elsefor: barrier_direction < 288		
			define	
				angle: 285
		elsefor: barrier_direction < 293		
			define	
				angle: 290
		elsefor: barrier_direction < 298		
			define	
				angle: 295
		elsefor: barrier_direction < 303		
			define	
				angle: 300
		elsefor: barrier_direction < 308		
			define	
				angle: 305
		elsefor: barrier_direction < 313		
			define	
				angle: 310
		elsefor: barrier_direction < 318		
			define	
				angle: 315
		elsefor: barrier_direction < 323		
			define	
				angle: 320
		elsefor: barrier_direction < 328		
			define	
				angle: 325
		elsefor: barrier_direction < 333		
			define	
				angle: 330
		elsefor: barrier_direction < 338		
			define	
				angle: 335
		elsefor: barrier_direction < 343		
			define	
				angle: 340
		elsefor: barrier_direction < 348		
			define	
				angle: 345
		elsefor: barrier_direction < 353		
			define	
				angle: 350
		elsefor: barrier_direction < 358		
			define	
				angle: 355
		else		
			define	
				angle: 0
		if: *1
			define
				shape:circle
				shape-size:4.5
				line-style:none
				fill-color:#fefefe
				fill-opacity:0.8
			//draw:shape
			define
				shape:circle
				shape-size:2
				line-style:none
				fill-color:#ff0000
				fill-opacity:1
			//draw:shape
		if: *2
			define
				shape:custom
				line-end-cap:round
				line-start-cap:round
				shape-def:p:#fefefe,0.8;pw:7;m:-1,0;1,0
				shape-size:10
			//draw:shape
			define
				shape:custom
				line-end-cap:none
				line-start-cap:none
				shape-def:p:#ff0000;pw:2;m:-1,0;1,0
				shape-size:10
			//draw:shape
	target:Runway
		for:surface=grass
			stop
		define
			line-color:white
			line-width:20
			line-start-cap:square
			line-end-cap:square
		for:layer>4
			define
				painting-cycle:651
		elsefor:layer=4
			define
				painting-cycle:641
		elsefor:layer=3
			define
				painting-cycle:631
		elsefor:layer=2
			define
				painting-cycle:621
		elsefor:layer=1
			define
				painting-cycle:611
		elsefor:layer=-1
			define
				painting-cycle:591
		elsefor:layer=-2
			define
				painting-cycle:581
		elsefor:layer=-3
			define
				painting-cycle:571
		elsefor:layer=-4
			define
				painting-cycle:561
		elsefor:layer<-4
			define
				painting-cycle:551
		else
			define
				painting-cycle:601
		draw:line
		define
			line-color:black
			line-width:23
		for:layer>4
			define
				painting-cycle:650
		elsefor:layer=4
			define
				painting-cycle:640
		elsefor:layer=3
			define
				painting-cycle:630
		elsefor:layer=2
			define
				painting-cycle:620
		elsefor:layer=1
			define
				painting-cycle:610
		elsefor:layer=-1
			define
				painting-cycle:590
		elsefor:layer=-2
			define
				painting-cycle:580
		elsefor:layer=-3
			define
				painting-cycle:570
		elsefor:layer=-4
			define
				painting-cycle:560
		elsefor:layer<-4
			define
				painting-cycle:550
		else
			define
				painting-cycle:600
		draw:line
	target:Taxiway
		for:surface=grass
			stop
		define
			line-color:white
			line-width:9
		for:layer>4
			define
				painting-cycle:651
		elsefor:layer=4
			define
				painting-cycle:641
		elsefor:layer=3
			define
				painting-cycle:631
		elsefor:layer=2
			define
				painting-cycle:621
		elsefor:layer=1
			define
				painting-cycle:611
		elsefor:layer=-1
			define
				painting-cycle:591
		elsefor:layer=-2
			define
				painting-cycle:581
		elsefor:layer=-3
			define
				painting-cycle:571
		elsefor:layer=-4
			define
				painting-cycle:561
		elsefor:layer<-4
			define
				painting-cycle:551
		else
			define
				painting-cycle:601
		draw:line
		define
			line-color:black
			line-width:12
		for:layer>4
			define
				painting-cycle:650
		elsefor:layer=4
			define
				painting-cycle:640
		elsefor:layer=3
			define
				painting-cycle:630
		elsefor:layer=2
			define
				painting-cycle:620
		elsefor:layer=1
			define
				painting-cycle:610
		elsefor:layer=-1
			define
				painting-cycle:590
		elsefor:layer=-2
			define
				painting-cycle:580
		elsefor:layer=-3
			define
				painting-cycle:570
		elsefor:layer=-4
			define
				painting-cycle:560
		elsefor:layer<-4
			define
				painting-cycle:550
		else
			define
				painting-cycle:600
		draw:line
	target:Vorfeld
		define
			fill-color:white
			line-style:none
		for:layer>4
			define
				painting-cycle:651
		elsefor:layer=4
			define
				painting-cycle:641
		elsefor:layer=3
			define
				painting-cycle:631
		elsefor:layer=2
			define
				painting-cycle:621
		elsefor:layer=1
			define
				painting-cycle:611
		elsefor:layer=-1
			define
				painting-cycle:591
		elsefor:layer=-2
			define
				painting-cycle:581
		elsefor:layer=-3
			define
				painting-cycle:571
		elsefor:layer=-4
			define
				painting-cycle:561
		elsefor:layer<-4
			define
				painting-cycle:551
		else
			define
				painting-cycle:601
		draw:fill
		define
			fill-color:black
			line-width:3
			line-style:solid
		for:layer>4
			define
				painting-cycle:650
		elsefor:layer=4
			define
				painting-cycle:640
		elsefor:layer=3
			define
				painting-cycle:630
		elsefor:layer=2
			define
				painting-cycle:620
		elsefor:layer=1
			define
				painting-cycle:610
		elsefor:layer=-1
			define
				painting-cycle:590
		elsefor:layer=-2
			define
				painting-cycle:580
		elsefor:layer=-3
			define
				painting-cycle:570
		elsefor:layer=-4
			define
				painting-cycle:560
		elsefor:layer<-4
			define
				painting-cycle:550
		else
			define
				painting-cycle:600
		draw:fill
	target:Faehrlinie
		for:railway=ferry
			define
				shape:custom
				shape-size:40
				shape-def: pw:0;p:none;f:black;m:0,-1;a:1,1,0,1;a:1,1,0,-1;z
				shape-aspect:0.45
				shape-mode:center
		elsefor:motor_vehicle=yes
			define
				shape:square
				shape-size:9
				line-color:black
				fill-color:white
				line-width:0.5
				shape-mode:center
		else
			define
				shape:custom
				shape-size:25
				shape-def: pw:1.25;p:black;f:white;m:0,-1;a:1,1,0,1;a:1,1,0,-1;z
				shape-aspect:0.45
				shape-mode:center
		draw:shape
		define
			line-color:black
			line-width:1.5
			line-style:dash
			//curved:true
		draw:line
	target:Pier
		define
			line-width:1.5
			curved:false
		draw:line
	target:Kai
		define
			line-width:2
			curved:false
		draw:line
	target:Buhne
		define
			line-width:2
		draw:line
	target:Rohrleitung
		define
			line-color:#b36600
			line-width:1.5
			curved:false
		draw:line
		define
			shape:circle
			fill-color:#b36600
			line-style:none
			shape-size:3
			shape-spacing:20
		draw:shape
	target:Foerderband
		define
			line-color:#b36600
			line-width:1.5
			curved:false
		draw:line
		define
			shape:circle
			fill-color:#b36600
			line-style:none
			shape-size:3
			shape-spacing:10
		draw:shape
	target:Baumreihe
		define
			shape:circle
			line-width:1.25
			line-color:#006600
			fill-color:white
			shape-size:2.5
			shape-spacing:3
		draw:shape
	target:Hecke
		define
			shape:circle
			line-width:0.5
			line-color:#006600
			fill-color:white
			shape-size:3.5
			shape-spacing:6
		//draw:shape
		define
			line-style:dot
			line-width:1.5
		draw:line
//Gewässerachse, Decker
	target:Gewaesserachse*
		if:*breit
			for: not ((tunnel AND NOT tunnel=no) or intermittent=yes)
				define
					painting-cycle:521
					line-width:2.5
					line-color:#ccffff
				for: bridge and not bridge=no
					define
						line-start-cap:round
						line-end-cap:round
					for:layer>4
						define
							painting-cycle:651
					elsefor:layer=4
						define
							painting-cycle:641
					elsefor:layer=3
						define
							painting-cycle:631
					elsefor:layer=2
						define
							painting-cycle:621
					elsefor:layer=1
						define
							painting-cycle:611
					else
						define
							painting-cycle:601
				draw:line
//Gewässerachse, Kontur
		define
			painting-cycle:520
			line-width:2
			line-color:#0066ff
		for:bridge and not bridge=no
			define
				line-start-cap:none
				line-end-cap:none
			for:layer>4
				define
					painting-cycle:650
			elsefor:layer=4
				define
					painting-cycle:640
			elsefor:layer=3
				define
					painting-cycle:630
			elsefor:layer=2
				define
					painting-cycle:620
			elsefor:layer=1
				define
					painting-cycle:610
			else
				define
					painting-cycle:600
		for:tunnel AND NOT tunnel=no
			define
				line-style:dot
		elsefor:intermittent=yes
			define
				line-style:dash
		else
			if:*breit
				for: lock=yes
					define
						line-width:7.5
						line-color:black
				else
					define
						line-width:5
		draw:line
		for:tunnel AND NOT tunnel=no
			stop
//Name Gewaesserachse
		define
			text-max-width:1000
			text-color:#0066ff
			text-offset-vertical:-10%
			painting-cycle:790
		//	curved:false
		//draw:line
		for:@isoneof(name,Rhein,Elbe) or @isoneof(name:de,Rhein,Elbe)
			define
				text:@up(name)
				font-family:LM Roman 12
				font-stretch:0.85
				font-size:45
		elsefor:motorboat=yes or CEMT
			define
				font-family:LM Roman 12
				font-size:35
		else
			if:*breit
				define
					font-family:LM Roman 12
					font-size:25
			else
				define
					font-size:20
		draw:text
//Fließrichtungspfeil
		for:(waterway=river or waterway=stream) AND NOT intermittent=yes
			for:tidal=yes
				define
					shape:custom
					line-join:miter
					shape-def: pw:2;p:#0066ff;f:#0066ff;m:-100,-60;100,-60;pw:0;m:-100,-30;-100,-90,-220,-60;z;m:100,-30;100,-90,220,-60;z
					shape-size:44
					shape-orientation:flow
					shape-spacing:15
					painting-cycle:700
			else
				define
					shape:custom
					line-join:miter
					shape-def: pw:2;p:#0066ff;f:#0066ff;m:-160,-60;40,-60;pw:0;m:40,-30;160,-60,40,-90;z
					shape-size:32
					shape-orientation:flow
					shape-spacing:15
					painting-cycle:700
			draw:shape
	target:Staudamm
		for: area=yes
			define
				fill-color:#666666
				line-width:3
				painting-cycle:540
			draw:fill
		else
			define
				line-width:3.25
				line-color:white
				border-width:0.75
				border-style:solid
				border-color:black
			draw:line
			define
				shape:custom
				shape-def: p:black;pw:2;m:0,0;0,-1
				shape-size:4.25
				shape-aspect:3
				shape-spacing:0
				painting-cycle:531
			draw:shape
	target:Wehr
		define
			line-width:1.25
		draw:line
		define
			shape:custom
			shape-def: pw:1.25;m:0,0;0,-1
			shape-size:2.5
			shape-aspect:2.4
			shape-spacing:0
			painting-cycle:531
		draw:shape
	target:Wasserfall
		define
			shape:custom
			line-join:miter
			shape-def: p:black;f:none;pw:2.5;m:-48,0;0,-48;48,0
			shape-size:13
			shape-spacing:0
		draw: shape
	target:Schleusentor
		define
			line-width:2
		draw:line
	target: Gewaessereinzelzeichen
		for: has_direction=false
			stop
 	 	for: waterway_direction < 3		
			define	
				angle: 0
		elsefor: waterway_direction < 8		
			define	
				angle: 5
		elsefor: waterway_direction < 13		
			define	
				angle: 10
		elsefor: waterway_direction < 18		
			define	
				angle: 15
		elsefor: waterway_direction < 23		
			define	
				angle: 20
		elsefor: waterway_direction < 28		
			define	
				angle: 25
		elsefor: waterway_direction < 33		
			define	
				angle: 30
		elsefor: waterway_direction < 38		
			define	
				angle: 35
		elsefor: waterway_direction < 43		
			define	
				angle: 40
		elsefor: waterway_direction < 48		
			define	
				angle: 45
		elsefor: waterway_direction < 53		
			define	
				angle: 50
		elsefor: waterway_direction < 58		
			define	
				angle: 55
		elsefor: waterway_direction < 63		
			define	
				angle: 60
		elsefor: waterway_direction < 68		
			define	
				angle: 65
		elsefor: waterway_direction < 73		
			define	
				angle: 70
		elsefor: waterway_direction < 78		
			define	
				angle: 75
		elsefor: waterway_direction < 83		
			define	
				angle: 80
		elsefor: waterway_direction < 88		
			define	
				angle: 85
		elsefor: waterway_direction < 93		
			define	
				angle: 90
		elsefor: waterway_direction < 98		
			define	
				angle: 95
		elsefor: waterway_direction < 103		
			define	
				angle: 100
		elsefor: waterway_direction < 108		
			define	
				angle: 105
		elsefor: waterway_direction < 113		
			define	
				angle: 110
		elsefor: waterway_direction < 118		
			define	
				angle: 115
		elsefor: waterway_direction < 123		
			define	
				angle: 120
		elsefor: waterway_direction < 128		
			define	
				angle: 125
		elsefor: waterway_direction < 133		
			define	
				angle: 130
		elsefor: waterway_direction < 138		
			define	
				angle: 135
		elsefor: waterway_direction < 143		
			define	
				angle: 140
		elsefor: waterway_direction < 148		
			define	
				angle: 145
		elsefor: waterway_direction < 153		
			define	
				angle: 150
		elsefor: waterway_direction < 158		
			define	
				angle: 155
		elsefor: waterway_direction < 163		
			define	
				angle: 160
		elsefor: waterway_direction < 168		
			define	
				angle: 165
		elsefor: waterway_direction < 173		
			define	
				angle: 170
		elsefor: waterway_direction < 178		
			define	
				angle: 175
		elsefor: waterway_direction < 183		
			define	
				angle: 180
		elsefor: waterway_direction < 188		
			define	
				angle: 185
		elsefor: waterway_direction < 193		
			define	
				angle: 190
		elsefor: waterway_direction < 198		
			define	
				angle: 195
		elsefor: waterway_direction < 203		
			define	
				angle: 200
		elsefor: waterway_direction < 208		
			define	
				angle: 205
		elsefor: waterway_direction < 213		
			define	
				angle: 210
		elsefor: waterway_direction < 218		
			define	
				angle: 215
		elsefor: waterway_direction < 223		
			define	
				angle: 220
		elsefor: waterway_direction < 228		
			define	
				angle: 225
		elsefor: waterway_direction < 233		
			define	
				angle: 230
		elsefor: waterway_direction < 238		
			define	
				angle: 235
		elsefor: waterway_direction < 243		
			define	
				angle: 240
		elsefor: waterway_direction < 248		
			define	
				angle: 245
		elsefor: waterway_direction < 253		
			define	
				angle: 250
		elsefor: waterway_direction < 258		
			define	
				angle: 255
		elsefor: waterway_direction < 263		
			define	
				angle: 260
		elsefor: waterway_direction < 268		
			define	
				angle: 265
		elsefor: waterway_direction < 273		
			define	
				angle: 270
		elsefor: waterway_direction < 278		
			define	
				angle: 275
		elsefor: waterway_direction < 283		
			define	
				angle: 280
		elsefor: waterway_direction < 288		
			define	
				angle: 285
		elsefor: waterway_direction < 293		
			define	
				angle: 290
		elsefor: waterway_direction < 298		
			define	
				angle: 295
		elsefor: waterway_direction < 303		
			define	
				angle: 300
		elsefor: waterway_direction < 308		
			define	
				angle: 305
		elsefor: waterway_direction < 313		
			define	
				angle: 310
		elsefor: waterway_direction < 318		
			define	
				angle: 315
		elsefor: waterway_direction < 323		
			define	
				angle: 320
		elsefor: waterway_direction < 328		
			define	
				angle: 325
		elsefor: waterway_direction < 333		
			define	
				angle: 330
		elsefor: waterway_direction < 338		
			define	
				angle: 335
		elsefor: waterway_direction < 343		
			define	
				angle: 340
		elsefor: waterway_direction < 348		
			define	
				angle: 345
		elsefor: waterway_direction < 353		
			define	
				angle: 350
		elsefor: waterway_direction < 358		
			define	
				angle: 355
		else		
			define	
				angle: 0
		for:waterway=waterfall
			define
				shape:custom
				line-join:miter
				shape-def: p:black;f:none;pw:2.5;m:48,-65;0,-17;-48,-65
				shape-size:13
		elsefor: waterway=lock_gate
			define
				shape:custom
				line-join:miter
				shape-def: pw:1.5;f:none;m:85,60;0,-25,-85,60;pw:0;f:0;m:110,30;80,60,50,30,80,0;z;m:-50,30;-80,60,-110,30,-80,0;z
				shape-size:22
		elsefor: @isoneof(waterway,weir,dam)
			define
				shape:custom
				shape-def: pw:2;f:none;m:1,0;-1,0
				shape-size:10
		else
			stop
		draw:shape

	//Höhenlinien
	target:Zaehllinie
		define
			font-family:LM Sans 10
			font-style: italic
			font-size: 15
			text: elevation
			text-color: #b36600
			text-offset-vertical:-10%
			painting-cycle: 512
		draw: text
		define
			line-color: #b36600
			curved: true
			line-width: 1.5
			painting-cycle: 510
		draw : contour
	target:Hauptlinie
		define
			line-color: #b36600
			curved: true
			line-width: 1
			painting-cycle: 510
		draw : contour	
	target:Hilfslinie*
		define
			line-color: #b36600
			curved: true
			painting-cycle: 510
		if: *1
			define
				line-width: 0.75
				line-style:dash10to2
		else
			define
				line-width: 0.75
				line-style:dash
		draw : contour

	target:Boeschung
		define
			line-width:0.5
		draw:line
		define
			shape:custom
			shape-def: pw:2.5;m:0,0;0,-1
			shape-size:6.25
			shape-aspect:1.6
			shape-spacing:0
			painting-cycle:531
		draw:shape
	target:Gelaendekante
		define
			line-color:#b36600
			line-width:0.5
		draw:line
		define
			shape:custom
			shape-def: pw:2.5;p:#b36600;m:0,0;0,-1
			shape-size:6.25
			shape-aspect:1.6
			shape-spacing:0
			painting-cycle:530
		draw:shape
	target:Stuetzmauer
		define
			line-color:#b36600
			line-width:2
		draw:line
	target:Deich
		define
			line-width:0.5
		draw:line
		define
			shape:custom
			shape-def: pw:2.5;m:0,0;0,-1;m:1,0;1,1
			shape-size:4
			shape-aspect:2.5
			shape-spacing:0
			painting-cycle:531
		draw:shape

round.py

def roundElevation(e):
	try:
		return str(int(round(float(e['ele']))))
	except:
		return e['ele']