Index: trunk/umn/alkis_n/alkis_n_muster.map
===================================================================
--- trunk/umn/alkis_n/alkis_n_muster.map	(revision 369)
+++ trunk/umn/alkis_n/alkis_n_muster.map	(revision 392)
@@ -15,9 +15,11 @@
 #             "wms_enable_request" pauschal "*" im Root. 
 #             Das macht sonst Probleme bei FeatureInfo wenn nur auf einzelnen Layern.
-
-# ToDo: 
+#  2016-08-17 GKZ im DB-Namen 4stellig
+#  2017-10-24 Neues Mapfile mit QGIS generiert und hiermit abgeglichen (norgis-ALKIS-Import 2.1-10, norgis-ALKIS-Einbindung 2.0.17)
+#             u.a. in der GebÃ€ude-Beschriftung: Hausnummern getrennt von Dachform, Zustand usw., BÃ¶schungen.
+
+# ToDo:
+# - Um eine brauchbare Legende fÃŒr Linien anzuzeigen, mÃŒsste "SIZEUNITS METERS" geÃ€ndert werden. Derzeit nur FlÃ€chen-Legende brauchbar.
 # - Layer oder Gruppe fÃŒr SchÃ€tzungsklassen
-# - In "GebÃ€ude / Beschriftungen" werden ausser der Haunummer auch noch Buchstaben sichtbar, z.T. ÃŒberlappend
-#   Die sollten getrennt schaltbar sein.
 #
 ### Erlaeuterungen:
@@ -28,29 +30,16 @@
 #
 ## MapProxy:
-#  Layer fÃŒr FlÃ€che: LAYERS=fh,fe,fb,fw,fs,fi,fv
-#  Layer fÃŒr Strichzeichnung: LAYERS=gh,bh,ge,pe,be,gb,bb,gt,lt,pt,bt,gw,lw,pw,bw,gs,ps,bs,gi,li,pi,bi,gv,lv,pv,bv,fg,gg,lg,pg,bg,gff,lff,pff,lfn,bfn,bl
+#  Layer fÃŒr FlÃ€che: LAYERS=fh,fe,fb,fw,fs,fi,fv,fg,pe,ps,pv
+#  Layer fÃŒr Strichzeichnung: LAYERS=gh,bh,ge,be,gb,bb,gt,lt,pt,bt,gw,lw,pw,bw,gs,bs,gi,li,pi,bi,gv,lv,bv,gg,lg,pg,bgh,gff,lff,pff,lfn,bfn,bl
 #
 ## Layername:
-# Der aus QGIS generierte Layername ("l" + lfd.Nr) ist unterschiedlich je Mandant, 
-# und wird daher zur Vereinheitlichung ersetzt durch die Buchstaben fÃŒr "Typ" und "Gruppe" aus der unten stehenden Liste.
-#
-## Layer und Klassen:
-# Dies Muster-Mapfile wurde generiert auf der Basis von NBA-Daten fÃŒr einige Staedte in Ost-Westfalen.
-# FÃŒr den Einsatz in anderen Kreisen und anderen Regionen ist dies durch lokale Layer und Klassen zu ergÃ€nzen.
-#
-## HQ-Print:
-# Es wird keine _4-Mapdatei mehr fÃŒr High-Quality-Print mit 288dpi aufbereitet.
-# Statt dessen wird fÃŒr den HQ-Print der GetMap-Call ergÃ€nzt um den Parameter: "&map.resolution=288"
-# Beispiel fÃŒr Mapbender 2.7:
-# UPDATE gui_element_vars SET var_value = '[{"pattern": ".map&",
-#   "replacement": {"144": ".map&map.resolution=144&", "288": ".map&map.resolution=288&"}}]' 
-#   WHERE fkey_e_id = 'printPDF' AND var_name  ='highqualitymapfiles';
+# Der aus QGIS generierte Layername ("l" + lfd.Nr) ist unterschiedlich je Mandant, und wird daher zur Vereinheitlichung ersetzt durch die Buchstaben fÃŒr "Typ" und "Gruppe" aus der unten stehenden Liste.
 #
 ## Legende
-# Class-Name ohne sprechenden Namen (Signaturnummer in Klammer) sind mit einfachem "#" auskommentiert.
-# Class-Name, die derzeit keine schÃ¶ne Legende erzeugen, sind mit "#- ' auskommentiert und lassen
-#   sich somit durch Edit/Replace alle wieder aktivieren.
-
-## Typen:
+# Class-Namen ohne "sprechende" Namen (z.B. "Signaturnummer in Klammer", "{}-Array") sind mit einfachem "#" auskommentiert.
+# Class-Namen, die derzeit keine schÃ¶ne Legende erzeugen, sind mit "#-' auskommentiert und lassen sich somit durch Edit/Replace alle wieder aktivieren.
+
+## Layer-Namen: 
+## Typen (1. Buchstabe des Namens):
 # g Grenzen
 # f FlÃ€chen
@@ -59,5 +48,5 @@
 # b Beschriftungen
 
-## Gruppen:
+## Gruppen (2.(+3.) Buchstabe des Namens):
 # h	FriedhÃ¶fe
 # e	Vegetation
@@ -76,5 +65,5 @@
 # l	Lagebezeichnungen
 
-### Generierte Layer-Reihenfolge (340) (150) (230)
+### Generierte Layer-Reihenfolge:
 ##			*/ FlÃ€chen + Grenzen
 # fh FriedhÃ¶fe / FlÃ€chen
@@ -97,4 +86,5 @@
 # gr Rechtliche Festlegungen / Grenzen
 # gff FlurstÃŒcke / FlÃ€chen / Grenzen
+
 ##			*/ Linien
 # lt Topographie / Linien
@@ -106,4 +96,5 @@
 # lfn FlurstÃŒcke / Nummern / Linien
 # lff FlurstÃŒcke / FlÃ€chen / Linien
+
 ##			*/ Punkte
 # pff FlurstÃŒcke / FlÃ€chen / Punkte
@@ -115,8 +106,13 @@
 # ps Sport und Freizeit / Punkte
 # pt Topographie / Punkte
+
 ##			*/ Beschriftungen
 # bfn FlurstÃŒcke / Nummern / Beschriftungen
-# bg GebÃ€ude / Beschriftungen
-# bg2 GebÃ€ude / lfd. Nr. NebengebÃ€ude
+# bg  -> bgh GebÃ€ude / Hausnummern
+# bg2 -> bgn GebÃ€ude / lfd. Nr. NebengebÃ€ude
+# (NEU)  bgd GebÃ€ude / Dachform
+# (NEU)  bgf GebÃ€ude / Funktion
+# (NEU)  bgg GebÃ€ude / Geschosse
+# (NEU)  bgz GebÃ€ude / Zustand
 # bl Lagebezeichnungen / Beschriftungen
 # br Rechtliche Festlegungen / Beschriftungen
@@ -132,10 +128,14 @@
 	NAME "alkis"
 	STATUS ON
-   	#CONFIG "MS_ERRORFILE" "/opt/gdi/log/umn.log"
 	EXTENT ..
 	PROJECTION "init=epsg:25832" END
 	MAXSIZE 8400 # reicht fuer 288 dpi auf DIN-A2
 	DEFRESOLUTION 72
-	SYMBOLSET "symbols.sym" # ausgelagert, ursprÃŒnglich hier inline generiert
+	SYMBOL
+		NAME "0"
+		TYPE ELLIPSE FILLED TRUE
+		POINTS 1 1 1 1 END
+	END
+	SYMBOLSET "symbols.sym" # ausgelagert, ursprÃŒnglich alle hier inline generiert
 	FONTSET "/opt/gdi/alkisn/fonts/fonts.txt"
 	UNITS METERS
@@ -143,5 +143,5 @@
 		METADATA
 			wms_title "ALKIS"
-			wms_abstract "ALKIS *gkz* farbige Variante - Konverter PostNAS, Version NorGIS-Plugin, Stand vom 20. Mai 2016"
+			wms_abstract "ALKIS *gkz* farbige Variante - Konverter PostNAS, Version NorGIS-Plugin, Stand vom Oktober 2017"
 			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
 			wms_bbox_extended "true"
@@ -149,5 +149,5 @@
 			wms_onlineresource "http://10.0.100.79/cgi-bin/mapserv7?map=/opt/gdi/alkisn/alkis*gkz*.map"
 			# Die Position von "GKZ" im Mapfile-Namen muss 3stellig sein, am Ende vor ".map".
-			# GKZ wird vom Template ÃŒber den [map] ausgelesen um die richtige DB der Auskunft zu finden.
+			# GKZ wird vom Template ÃŒber die Variable [map] ausgelesen um die richtige DB der Auskunft zu finden.
 			wms_feature_info_mime_type "text/html"
 			wms_schema_location ".."
@@ -157,12 +157,12 @@
 
 			# theoretisch: fÃŒr ALLE Layer die Aufrufe "GetMap" und "GetCapabilities" zulassen.
-			# dann bei einzelnen Layern zusÃ€tzlich auch "GetLegendGraphic" oder "GetFeatureInfo" erlauben.
+			#  dann bei einzelnen Layern zusÃ€tzlich auch "GetLegendGraphic" oder "GetFeatureInfo" erlauben.
 		#	wms_enable_request "GetMap GetCapabilities" 
 
 			# praktisch: Bei Feature-Info auf Layer "gff" (Grenzen FlurstÃŒcke) antwortet der WMS
-			# dass der Layer nicht erlaubt ist. Also alles pauschal erlauben.
+			#  dass der Layer nicht erlaubt ist. Also alles pauschal erlauben.
 			wms_enable_request "*"
 
-			include "meta_contact.map" # ersetzen durch individuelle Datei je Katasteramt
+			include "meta_contact.map" # ersetzen durch eine individuelle Datei je Katasteramt
 		END
 	END
@@ -170,19 +170,15 @@
 	## Die Legende ist nicht brauchbar.
 	## 1. Die Legende von ALKIS ist sowieso sehr umfangreich. Das fÃŒllt mehrere Seiten.
-	## 2. Es werden zum Teil mehrere ALKIS-Objekt-Arten in einer Klasse dieses Mapfiles generiert, 
-	##    indem Darstellungsunterschiede aus Datenbank-Felder geholt werden.
-	##    Das kÃ¶nnte die Legende nicht abbilden.
+	## 2. Es werden zum Teil mehrere ALKIS-Objekt-Arten in einer Klasse dieses Mapfiles generiert, indem Darstellungsunterschiede 
+	##    aus Datenbank-Felder geholt werden. Das kÃ¶nnte die Legende nicht abbilden.
 	## 3. Einige Klassen haben keine Namen sondern Symbolnummern oder Ã€hnliches.
-	## 4. Die Sybole werden so gigantisch gezeichnet, dass sie die Einbindung des WMS im QGIS verhindern.
+	## 4. Die Sybole werden viel zu groÃ gezeichnet. Das liegt vermutlich an "SIZEUNIT METERS".
 	LEGEND
 		STATUS ON
 		KEYSIZE 32 16
-		TRANSPARENT ON
 		KEYSPACING 5 5
 		LABEL
-			TYPE TRUETYPE
-			FONT 'arial'
-			SIZE 11
-			COLOR 1 1 1
+			TYPE TRUETYPE FONT 'arial'
+			SIZE 11 COLOR 1 1 1
 		END
 	END
@@ -190,7 +186,7 @@
 	## Layer der Typen FlÃ€chen + Grenzen
 
-	LAYER NAME "fh" # FriedHÃ¶fe / FlÃ€chen
+	LAYER NAME "fh" # FriedhÃ¶fe / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_flaeche AS signaturnummer FROM po_polygons WHERE thema='FriedhÃ¶fe' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT sn_flaeche IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -201,5 +197,4 @@
 			wms_layer_group	"/FriedhÃ¶fe"
 			wms_title "FlÃ€chen"
-			#wms_enable_request "GetMap GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -219,7 +214,7 @@
 	END
 
-	LAYER NAME "fe"	# VEgetation / FlÃ€chen
+	LAYER NAME "fe"	# Vegetation / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_flaeche AS signaturnummer FROM po_polygons WHERE thema='Vegetation' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT sn_flaeche IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -230,5 +225,4 @@
 			wms_layer_group	"/Vegetation"
 			wms_title "FlÃ€chen"
-			#wms_enable_request "GetMap GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -254,5 +248,6 @@
 		END
 		CLASS
-		#	NAME "(1409)"
+		#	NAME "{Ackerland,Hopfen,Landwirtschaft,Spargel,Streuobstacker}"
+			NAME "Ackerland, Hopfen, Landwirtschaft, Spargel, Streuobstacker"
 			EXPRESSION "1409"
 			STYLE
@@ -268,5 +263,6 @@
 		END
 		CLASS
-		#	NAME "(1561)"
+		#	NAME "{Rain,Schneise}"
+			NAME "Rain, Schneise"
 			EXPRESSION "1561"
 			STYLE
@@ -278,5 +274,5 @@
 	LAYER NAME "fb" # WohnBauflÃ€chen / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_flaeche AS signaturnummer FROM po_polygons WHERE thema='WohnbauflÃ€chen' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT sn_flaeche IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -287,5 +283,4 @@
 			wms_layer_group	"/WohnbauflÃ€chen"
 			wms_title "FlÃ€chen"
-			#wms_enable_request "GetMap GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -307,5 +302,5 @@
 	LAYER NAME "gt" # Topographie / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_randlinie AS signaturnummer FROM po_polygons WHERE thema='Topographie' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT polygon IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -316,5 +311,4 @@
 			wms_layer_group	"/Topographie"
 			wms_title "Grenzen"
-			#wms_enable_request "GetMap GetCapabilities"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -325,5 +319,5 @@
 		UNITS METERS
 		CLASS
-		#	NAME "(rn1551)"
+		#-	NAME '{"Damm, Wall, Deich","Felsen, Felsblock, Felsnadel",RÃŒckhaltebecken,"Sonstiges GewÃ€ssermerkmal",Staudamm,"Staudamm, auÃer Betrieb"}'
 			EXPRESSION "rn1551"
 			STYLE
@@ -339,5 +333,5 @@
 	LAYER NAME "ge"	# VEgetation / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_randlinie AS signaturnummer FROM po_polygons WHERE thema='Vegetation' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT polygon IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -348,5 +342,4 @@
 			wms_layer_group	"/Vegetation"
 			wms_title "Grenzen"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -357,5 +350,5 @@
 		UNITS METERS
 		CLASS
-		#	NAME "(rn1560)"
+		#-	NAME '{"Baumbestand, Laub- und Nadelholz","Baumbestand, Laubholz","Baumbestand, Nadelholz",GebÃŒsch,"GehÃ¶lz (Vegetationsmerkmal)",Gras,Korbweide,Reet,"RÃ¶hricht, Schilf",ZierflÃ€che}'
 			EXPRESSION "rn1560"
 			STYLE
@@ -368,5 +361,6 @@
 		END
 		CLASS
-		#	NAME "(rn1561)"
+		#	NAME "{Rain,Schneise}"
+		#-	NAME "Rain, Schneise"
 			EXPRESSION "rn1561"
 			STYLE
@@ -379,5 +373,6 @@
 		END
 		CLASS
-		#	NAME "(rn1563)"
+		#	NAME '{"Vegetationsmerkmal, Zustand nass"}'
+		#-	NAME 'Vegetationsmerkmal, Zustand nass'
 			EXPRESSION "rn1563"
 			STYLE
@@ -401,5 +396,5 @@
 		END
 		CLASS
-		#- 	NAME "Wald"
+		#-	NAME "Wald"
 			EXPRESSION "2517"
 			STYLE
@@ -415,5 +410,5 @@
 	LAYER NAME "gh"	# FriedHÃ¶fe / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_randlinie AS signaturnummer FROM po_polygons WHERE thema='FriedhÃ¶fe' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT polygon IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -424,5 +419,4 @@
 			wms_layer_group	"/FriedhÃ¶fe"
 			wms_title "Grenzen"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -447,5 +441,5 @@
 	LAYER NAME "gb"	# WohnBauflÃ€chen / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_randlinie AS signaturnummer FROM po_polygons WHERE thema='WohnbauflÃ€chen' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT polygon IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -456,5 +450,4 @@
 			wms_layer_group	"/WohnbauflÃ€chen"
 			wms_title "Grenzen"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -479,5 +472,5 @@
 	LAYER NAME "fw"	# GewÃ€sser / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_flaeche AS signaturnummer FROM po_polygons WHERE thema='GewÃ€sser' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT sn_flaeche IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -488,5 +481,4 @@
 			wms_layer_group	"/GewÃ€sser"
 			wms_title "FlÃ€chen"
-			#wms_enable_request "GetMap GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -498,5 +490,5 @@
 		UNITS METERS
 		CLASS
-		#- 	NAME "GewÃ€sser"
+			NAME "GewÃ€sser"
 			EXPRESSION "1410"
 			STYLE
@@ -505,8 +497,24 @@
 		END
 		CLASS
-		#	NAME "(1523)"
+		#-	NAME '{"Hafendamm, Mole","Wellenbrecher, Buhne"}'
+			NAME 'Hafendamm, Mole, Wellenbrecher, Buhne'
+			EXPRESSION "1308"
+			STYLE
+				COLOR 204 204 204
+			END
+		END
+		CLASS
+		#-	NAME '{Bach,Fleet,Graben,Priel,Teich,"Untergeordnetes GewÃ€sser"}'
+			NAME 'Bach, Fleet, Graben, Priel, Teich, Untergeordnetes GewÃ€sser'
 			EXPRESSION "1523"
 			STYLE
 				COLOR 226 255 255
+			END
+		END
+		CLASS
+		#-	NAME '{"Historische Mauer","Mauerkante links,","Mauerkante rechts,","Mauermitte,","Sonstige historische Mauer",Stadtmauer,"StÃŒtzmauer links",StÃŒtzmauermitte,"StÃŒtzmauer rechts","Ufermauer, Kaimauer"}'
+			EXPRESSION "2510"
+			STYLE
+				COLOR 204 204 204
 			END
 		END
@@ -515,5 +523,5 @@
 	LAYER NAME "fs"	# Sport und Freizeit / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_flaeche AS signaturnummer FROM po_polygons WHERE thema='Sport und Freizeit' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT sn_flaeche IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -524,5 +532,4 @@
 			wms_layer_group	"/Sport und Freizeit"
 			wms_title "FlÃ€chen"
-			#wms_enable_request "GetMap GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -572,5 +579,5 @@
 	LAYER NAME "gs"	# Sport und Freizeit / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_randlinie AS signaturnummer FROM po_polygons WHERE thema='Sport und Freizeit' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT polygon IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -581,5 +588,4 @@
 			wms_layer_group	"/Sport und Freizeit"
 			wms_title "Grenzen"
-			#wms_enable_request "GetMap GetCapabilities"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -601,5 +607,5 @@
 		END
 		CLASS
-		#- 	NAME "Ãberdachte TribÃŒne"
+		#-	NAME "Ãberdachte TribÃŒne"
 			EXPRESSION "rn1519"
 			STYLE
@@ -613,5 +619,5 @@
 		END
 		CLASS
-		#- 	NAME "Hart-, Rasenplatz, Spielfeld"
+		#-	NAME "Hart-, Rasenplatz, Spielfeld"
 			EXPRESSION "rn1520"
 			STYLE
@@ -635,5 +641,5 @@
 		END
 		CLASS
-		#- 	NAME "Schwimmbecken"
+		#-	NAME "Schwimmbecken"
 			EXPRESSION "rn1526"
 			STYLE
@@ -646,5 +652,5 @@
 		END
 		CLASS
-		#- 	NAME "Rennbahn, Laufbahn, GelÃ€uf"
+		#-	NAME "Rennbahn, Laufbahn, GelÃ€uf"
 			EXPRESSION "rn1521"
 			STYLE
@@ -660,5 +666,5 @@
 	LAYER NAME "gw"	# GewÃ€sser / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_randlinie AS signaturnummer FROM po_polygons WHERE thema='GewÃ€sser' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT polygon IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -669,5 +675,4 @@
 			wms_layer_group	"/GewÃ€sser"
 			wms_title "Grenzen"
-			#wms_enable_request "GetMap GetCapabilities"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -678,16 +683,6 @@
 		UNITS METERS
 		CLASS
-		#	NAME "(rn1551)"
-			EXPRESSION "rn1551"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 81 0 0
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	NAME "(2520)"
+		#	NAME '{"Stehendes GewÃ€sser, nicht stÃ€ndig Wasser fÃŒhrend"}'
+		#-	NAME 'Stehendes GewÃ€sser, nicht stÃ€ndig Wasser fÃŒhrend'
 			EXPRESSION "2520"
 			STYLE
@@ -701,5 +696,16 @@
 		END
 		CLASS
-		#- 	NAME "GewÃ€sser"
+		#-	NAME '{"Damm, Wall, Deich","Felsen, Felsblock, Felsnadel",RÃŒckhaltebecken,"Sonstiges GewÃ€ssermerkmal",Staudamm,"Staudamm, auÃer Betrieb"}'
+			EXPRESSION "rn1551"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 81 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "GewÃ€sser"
 			EXPRESSION "2518"
 			STYLE
@@ -712,5 +718,41 @@
 		END
 		CLASS
-		#	NAME "(rn1523)"
+		#	NAME '{"Hafendamm, Mole","Wellenbrecher, Buhne"}'
+		#-	NAME 'Hafendamm, Mole, Wellenbrecher, Buhne'
+			EXPRESSION "rn1308"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME "{Quelle,Stromschnelle,Wasserfall}"
+		#-	NAME "Quelle, Stromschnelle, Wasserfall"
+			EXPRESSION "rn1562"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 204 204
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Fischtreppe, Sicherheitstor, Sperrwerk"
+			EXPRESSION "rn1548"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 153 153 153
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME '{Bach,Fleet,Graben,Priel,Teich,"Untergeordnetes GewÃ€sser"}'
+		#-	NAME 'Bach, Fleet, Graben, Priel, Teich, Untergeordnetes GewÃ€sser'
 			EXPRESSION "rn1523"
 			STYLE
@@ -723,16 +765,15 @@
 		END
 		CLASS
-		#- 	NAME "Fischtreppe, Sicherheitstor, Sperrwerk"
-			EXPRESSION "rn1548"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 153 153 153
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#- 	NAME "Unterirdisches GewÃ€sser"
+		#	NAME '{"Historische Mauer","Mauerkante links,","Mauerkante rechts,","Mauermitte,","Sonstige historische Mauer",Stadtmauer,"StÃŒtzmauer links",StÃŒtzmauermitte,"StÃŒtzmauer rechts","Ufermauer, Kaimauer"}'
+			EXPRESSION "rn2510"
+			STYLE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Unterirdisches GewÃ€sser"
 			EXPRESSION "rn1550"
 			STYLE
@@ -749,14 +790,13 @@
 	LAYER NAME "fi" # Industrie und Gewerbe / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_flaeche AS signaturnummer FROM po_polygons WHERE thema='Industrie und Gewerbe' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT sn_flaeche IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
 		#EXTENT  ...
-		MAXSCALEDENOM 100000 # 500000
+		MAXSCALEDENOM 100000
 		METADATA
 			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
 			wms_layer_group	"/Industrie und Gewerbe"
 			wms_title "FlÃ€chen"
-			#wms_enable_request "GetMap GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -789,4 +829,11 @@
 		END
 		CLASS
+			NAME "VorratsbehÃ€lter, aufgestÃ€ndert"
+			EXPRESSION "1304"
+			STYLE
+				COLOR 204 204 204
+			END
+		END
+		CLASS
 		#	NAME "[1305]"
 			EXPRESSION "1305"
@@ -813,5 +860,5 @@
 	LAYER NAME "gi" # Industrie und Gewerbe / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_randlinie AS signaturnummer FROM po_polygons WHERE thema='Industrie und Gewerbe' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT polygon IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -822,5 +869,4 @@
 			wms_layer_group	"/Industrie und Gewerbe"
 			wms_title "Grenzen"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -842,5 +888,5 @@
 		END
 		CLASS
-		#- 	NAME "KlÃ€rbecken"
+		#-	NAME "KlÃ€rbecken"
 			EXPRESSION "rn1510"
 			STYLE
@@ -864,5 +910,6 @@
 		END
 		CLASS
-		#	NAME "(rn2521)"
+		#	NAME '{"FÃ¶rderband, BandstraÃe",Tor}'
+		#-	NAME 'FÃ¶rderband, BandstraÃe, Tor'
 			EXPRESSION "rn2521"
 			STYLE
@@ -874,5 +921,5 @@
 		END
 		CLASS
-		#- 	NAME "VorratsbehÃ€lter, Speicherbauwerk unterirdisch"
+		#-	NAME "VorratsbehÃ€lter, Speicherbauwerk unterirdisch"
 			EXPRESSION "rn1321"
 			STYLE
@@ -918,9 +965,21 @@
 			END
 		END
+		CLASS
+		#	NAME "[2031]"
+			EXPRESSION "2031"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				PATTERN 2.00 1.00 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
 	END
 
 	LAYER NAME "fv"	# Verkehr / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_flaeche AS signaturnummer FROM po_polygons WHERE thema='Verkehr' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT sn_flaeche IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -955,4 +1014,11 @@
 		END
 		CLASS
+			NAME "Landeplatz, -bahn, Vorfeld, Rollbahn"
+			EXPRESSION "1808"
+			STYLE
+				COLOR 247 247 239
+			END
+		END
+		CLASS
 			NAME "Weg"
 			EXPRESSION "1542"
@@ -962,4 +1028,26 @@
 		END
 		CLASS
+			NAME "Anleger"
+			EXPRESSION "1544"
+			STYLE
+				COLOR 255 255 255
+			END
+		END
+		CLASS
+			NAME "Fahrbahn"
+			EXPRESSION "1540"
+			STYLE
+				COLOR 247 247 239
+			END
+		END
+		CLASS
+		#	NAME "{BrÃŒckenjoch}"
+			NAME "BrÃŒckenjoch"
+			EXPRESSION "1532"
+			STYLE
+				COLOR 204 204 204
+			END
+		END
+		CLASS
 			NAME "BrÃŒcke, Hochbahn/-straÃe"
 			EXPRESSION "1530"
@@ -972,5 +1060,5 @@
 	LAYER NAME "gv"	# Verkehr / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_randlinie AS signaturnummer FROM po_polygons WHERE thema='Verkehr' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT polygon IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -981,5 +1069,4 @@
 			wms_layer_group	"/Verkehr"
 			wms_title "Grenzen"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -990,5 +1077,6 @@
 		UNITS METERS
 		CLASS
-		#	NAME "(2516)"
+		#	NAME '{"Bahnverkehr, im Bau","Flughafen, im Bau","Flugverkehr, im Bau","Hubschrauberflugplatz, im Bau","Internationaler Flughafen, im Bau","Landeplatz, Sonderlandeplatz im Bau","Regionalflughafen, im Bau","Schiffsverkehr, im Bau","SegelfluggelÃ€nde, im Bau","StraÃenverkehr, im Bau","Verkehrslandeplatz, im Bau"}'
+		#-	NAME 'im Bau'
 			EXPRESSION "2516"
 			STYLE
@@ -1002,5 +1090,5 @@
 		END
 		CLASS
-		#- 	NAME "Bahnverkehr, Platz"
+		#-	NAME "Bahnverkehr, Platz"
 			EXPRESSION "2515"
 			STYLE
@@ -1013,5 +1101,39 @@
 		END
 		CLASS
-		#- 	NAME "Weg"
+		#	NAME '{"Bahnhof, Bahn im Freizeitpark","Bahnhof, Bergbahn, Seilbahn","Bahnhof, Eisenbahn","Bahnhof, GÃŒterverkehr","Bahnhof, Magnetschwebebahn","Bahnhof, Museumsbahn","Bahnhof, S-Bahn","Bahnhof, sonstige Bahnkategorie","Bahnhof, Stadtbahn","Bahnhof, Standseilbahn","Bahnhof, StraÃenbahn","Bahnhof, U-Bahn","Bahnhof, Zahnradbahn",Drehscheibe,"Haltestelle, Haltepunkt, Bahn im Freizeitpark","Haltestelle, Haltepunkt, Bergbahn, Seilbahn","Haltestelle, Haltepunkt, Eisenbahn","Haltestelle, Haltepunkt, GÃŒterverkehr","Haltestelle, Haltepunkt, Magnetschwebebahn","Haltestelle, Haltepunkt, Museumsbahn","Haltestelle, Haltepunkt, S-Bahn","Haltestelle, Haltepunkt, sonstige Bahnkategorie","Haltestelle, Haltepunkt, Stadtbahn","Haltestelle, Haltepunkt, Standseilbahn","Haltestelle, Haltepunkt, StraÃenbahn","Haltestelle, Haltepunkt, U-Bahn","Haltestelle, Haltepunkt, Zahnradbahn"}'
+		#-	NAME 'Bahnhof, Haltestelle'
+			EXPRESSION "rn1541"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Landeplatz, -bahn, Vorfeld, Rollbahn"
+			EXPRESSION "rn1808"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 81 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Anleger"
+			EXPRESSION "rn1544"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 153 153 153
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Weg"
 			EXPRESSION "rn1542"
 			STYLE
@@ -1019,4 +1141,63 @@
 				LINEJOIN ROUND
 				OUTLINECOLOR 81 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Fahrbahn"
+			EXPRESSION "rn1540"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 153 153 153
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Schleusenkammer"
+			EXPRESSION "rn1535"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 127 127 127
+				SIZE 0.5
+				WIDTH 0.5
+			END
+		END
+		CLASS
+		#	NAME "{BrÃŒckenjoch}"
+		#-	NAME "BrÃŒckenjoch"
+			EXPRESSION "rn1532"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 127 127 127
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Durchfahrt, Bauwerk"
+			EXPRESSION "2305"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				PATTERN 2.00 1.00 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME "{Furt}"
+		#-	NAME "Furt"
+			EXPRESSION "rn1320"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 153 153 153
+				PATTERN 0.35 0.35 END
 				SIZE 0.18
 				WIDTH 0.18
@@ -1041,16 +1222,4 @@
 				LINEJOIN ROUND
 				OUTLINECOLOR 153 153 153
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	NAME "(rn1320)"
-			EXPRESSION "rn1320"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 153 153 153
-				PATTERN 0.35 0.35 END
 				SIZE 0.18
 				WIDTH 0.18
@@ -1070,5 +1239,6 @@
 		END
 		CLASS
-		#	NAME "(rn1531)"
+		#	NAME "{BrÃŒckenpfeiler}"
+		#-	NAME "BrÃŒckenpfeiler"
 			EXPRESSION "rn1531"
 			STYLE
@@ -1082,5 +1252,5 @@
 		END
 		CLASS
-		#- 	NAME "Tunnel, UnterfÃŒhrung"
+		#-	NAME "Tunnel, UnterfÃŒhrung"
 			EXPRESSION "rn1533"
 			STYLE
@@ -1097,7 +1267,8 @@
 	LAYER NAME "fg"	# GebÃ€ude / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_flaeche AS signaturnummer FROM po_polygons WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer<>'ax_lagebezeichnungmitpseudonummer') AND NOT sn_flaeche IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+	#	DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_flaeche AS signaturnummer FROM po_polygons WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer<>'ax_lagebezeichnungmitpseudonummer') AND NOT sn_flaeche IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_flaeche AS signaturnummer FROM po_polygons WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer NOT IN ('ax_lagebezeichnungmitpseudonummer','ax_gebaeude_dachform','ax_gebaeude_funktion','ax_gebaeude_geschosse','ax_gebaeude_zustand','ax_bauteil_dachform','ax_bauteil_funktion','ax_bauteil_geschosse','ax_turm_funktion')) AND NOT sn_flaeche IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
 		#EXTENT  ...
 		MAXSCALEDENOM 10000
@@ -1106,5 +1277,4 @@
 			wms_layer_group	"/GebÃ€ude"
 			wms_title "FlÃ€chen"
-			#wms_enable_request "GetMap GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -1137,5 +1307,6 @@
 		END
 		CLASS
-		#	NAME "(2510)"
+		#	NAME '{"Historische Mauer","Mauerkante links,","Mauerkante rechts,","Mauermitte,","Sonstige historische Mauer",Stadtmauer,"StÃŒtzmauer links",StÃŒtzmauermitte,"StÃŒtzmauer rechts","Ufermauer, Kaimauer"}'
+			NAME 'Mauer'
 			EXPRESSION "2510"
 			STYLE
@@ -1168,7 +1339,8 @@
 	LAYER NAME "gg"	# GebÃ€ude / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_randlinie AS signaturnummer FROM po_polygons WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer<>'ax_lagebezeichnungmitpseudonummer') AND NOT polygon IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+	#	DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_randlinie AS signaturnummer FROM po_polygons WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer<>'ax_lagebezeichnungmitpseudonummer') AND NOT polygon IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_randlinie AS signaturnummer FROM po_polygons WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer NOT IN ('ax_lagebezeichnungmitpseudonummer','ax_gebaeude_dachform','ax_gebaeude_funktion','ax_gebaeude_geschosse','ax_gebaeude_zustand','ax_bauteil_dachform','ax_bauteil_funktion','ax_bauteil_geschosse','ax_turm_funktion')) AND NOT polygon IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
 		#EXTENT  ...
 		MAXSCALEDENOM 3500
@@ -1177,5 +1349,4 @@
 			wms_layer_group	"/GebÃ€ude"
 			wms_title "Grenzen"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -1186,5 +1357,5 @@
 		UNITS METERS
 		CLASS
-		#	NAME "(rn1330)"
+		#	NAME '{AquÃ€dukt,"Befestigung (Wall, Graben)","Denkmal, Denkstein, Standbild",FernsprechhÃ€uschen,Grab,"GrabhÃŒgel (HÃŒgelgrab)","GroÃsteingrab (Dolmen), HÃŒnenbett",MÃŒllbox,"Sonstige Einrichtung in Ã¶ffentlichen Bereichen","Sonstiges Bauwerk oder sonstige Einrichtung, Sonstiges","Sonstiges historisches Bauwerk oder sonstige historische Einrichtung","Wachturm (rÃ¶misch), Warte",Wasserleitung}'
 			EXPRESSION "rn1330"
 			STYLE
@@ -1197,6 +1368,6 @@
 		END
 		CLASS
-		#	NAME "(2512)"
-			EXPRESSION "2512"
+		#-	NAME "GebÃ€ude unter der ErdoberflÃ€che"
+			EXPRESSION "2032"
 			STYLE
 				LINECAP SQUARE
@@ -1209,6 +1380,7 @@
 		END
 		CLASS
-		#- 	NAME "GebÃ€ude unter der ErdoberflÃ€che"
-			EXPRESSION "2032"
+		#	NAME '{"Keller, unter der ErdoberflÃ€che","Tiefgarage, unter der ErdoberflÃ€che (Bauteil)"}'
+		#-	NAME 'Keller, Tiefgarage'
+			EXPRESSION "2512"
 			STYLE
 				LINECAP SQUARE
@@ -1221,49 +1393,5 @@
 		END
 		CLASS
-		#	NAME "(rn2510)"
-			EXPRESSION "rn2510"
-			STYLE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 0 0
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#- 	NAME "Anderes GebÃ€ude"
-			EXPRESSION "2031"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 0 0
-				PATTERN 2.00 1.00 END
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#- 	NAME "Ãffentliches GebÃ€ude"
-			EXPRESSION "2505"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 0 0
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	NAME "(rn1305)"
-			EXPRESSION "rn1305"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 0 0
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	NAME "(rn1317)"
+		#	NAME '{"Befestigung (Burgruine)","Burg (Fliehburg, Ringwall)",Lager,Schanze}'
 			EXPRESSION "rn1317"
 			STYLE
@@ -1277,5 +1405,5 @@
 		END
 		CLASS
-		#- 	NAME "Anderes GebÃ€ude"
+		#-	NAME "Anderes GebÃ€ude"
 			EXPRESSION "rn1501"
 			STYLE
@@ -1288,8 +1416,8 @@
 		END
 		CLASS
-		#	NAME "(2507)"
-			EXPRESSION "2507"
-			STYLE
-				LINECAP SQUARE
+		#	NAME '{"Historische Mauer","Mauerkante links,","Mauerkante rechts,","Mauermitte,","Sonstige historische Mauer",Stadtmauer,"StÃŒtzmauer links",StÃŒtzmauermitte,"StÃŒtzmauer rechts","Ufermauer, Kaimauer"}'
+		#-	NAME 'Mauer'
+			EXPRESSION "rn2510"
+			STYLE
 				LINEJOIN ROUND
 				OUTLINECOLOR 0 0 0
@@ -1299,6 +1427,6 @@
 		END
 		CLASS
-		#- 	NAME "aufgestÃ€ndert"
-			EXPRESSION "2508"
+		#-	NAME "Anderes GebÃ€ude"
+			EXPRESSION "2031"
 			STYLE
 				LINECAP SQUARE
@@ -1311,5 +1439,50 @@
 		END
 		CLASS
-		#- 	NAME "Schornstein im GebÃ€ude"
+		#-	NAME "Ãffentliches GebÃ€ude"
+			EXPRESSION "2505"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME '{Antenne,BrÃŒckenlaufkran,Drehkran,Einsteigeschacht,Freitreppe,Funkmast,"Historische Mauer",Hochofen,Kran,Laufkran,Mauer,Portalkran,Radioteleskop,Rampe,Rolltreppe,SchachtÃ¶ffnung,SchÃ¶pfwerk,Solarzellen,"Sonstige historische Mauer","Sonstiges Bauwerk oder sonstige Anlage fÃŒr Industrie und Gewerbe",Stadtmauer,Staumauer,"Staumauer, auÃer Betrieb",StÃŒtzmauer,Terrasse,Treppe,Trockendock,"VorratsbehÃ€lter, Speicherbauwerk",Wasserrad,Windrad}'
+			EXPRESSION "rn1305"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Hochhaus"
+			EXPRESSION "2623"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				SIZE 0.5
+				WIDTH 0.5
+			END
+		END
+		CLASS
+		#-	NAME "aufgestÃ€ndert"
+			EXPRESSION "2508"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				PATTERN 2.00 1.00 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Unterirdisch"
 			EXPRESSION "2513"
 			STYLE
@@ -1322,5 +1495,5 @@
 		END
 		CLASS
-		#- 	NAME "Turm im GebÃ€ude"
+		#-	NAME "Turm im GebÃ€ude"
 			EXPRESSION "2514"
 			STYLE
@@ -1333,5 +1506,17 @@
 		END
 		CLASS
-		#	NAME "(rn1525)"
+		#	NAME '{Arkade,"Auskragende Geschosse","Auskragende/zurÃŒckspringende Geschosse","Durchfahrt an ÃŒberbauter VerkehrsstraÃe","Durchfahrt im GebÃ€ude","GebÃ€udeteil - abweichende GeschosshÃ¶he","Geringergeschossiger GebÃ€udeteil","HÃ¶hergeschossiger GebÃ€udeteil (nicht Hochhaus)",Keller,Loggia,"Sonstiger GebÃ€udeteil","Tiefgarage (Bauteil)",Treppenunterkante,"ZurÃŒckspringende Geschosse"}'
+		#-	NAME 'Ãberdachung, Durchfahrt'
+			EXPRESSION "2507"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME '{Brunnen,"Springbrunnen, Zierbrunnen"}'
 			EXPRESSION "rn1525"
 			STYLE
@@ -1347,5 +1532,5 @@
 	LAYER NAME "gr"	# Rechtliche Festlegungen / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_randlinie AS signaturnummer FROM po_polygons WHERE thema='Rechtliche Festlegungen' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT polygon IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -1371,5 +1556,5 @@
 
 		CLASS
-		#- 	NAME "Bau-, Raum-, Bodenordnungsrecht"
+		#-	NAME "Bau-, Raum-, Bodenordnungsrecht"
 			EXPRESSION "rn1704"
 			STYLE
@@ -1385,5 +1570,5 @@
 	LAYER NAME "gff" # FlurstÃŒcke / FlÃ€chen / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,polygon AS geom,sn_randlinie AS signaturnummer FROM po_polygons WHERE thema='FlurstÃŒcke' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (NOT layer IN ('ax_flurstueck_nummer','ax_flurstueck_zuordnung','ax_flurstueck_zuordnung_pfeil')) AND NOT polygon IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -1395,5 +1580,4 @@
 			wms_layer_group	"/FlurstÃŒcke"
 			wms_title "Grenzen"
-			#wms_enable_request "GetFeatureInfo GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -1403,5 +1587,5 @@
 
 		HEADER   "/opt/gdi/alkisn/templates/alkisauskh.html" 
-		TEMPLATE "/opt/gdi/alkisn/templates/alkisausk.html" # gkz aus Mapfile-Name!
+		TEMPLATE "/opt/gdi/alkisn/templates/alkisausk.html" # gkz wird aus Mapfile-Name entnommen!
 		FOOTER   "/opt/gdi/alkisn/templates/footer.html"
 		TOLERANCEUNITS pixels TOLERANCE 1
@@ -1410,12 +1594,10 @@
 		UNITS METERS
 		CLASS
-		#- 	NAME "FlurstÃŒcksgrenze"
+		#-	NAME "FlurstÃŒcksgrenze"
 			EXPRESSION "2028"
 			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
+				LINECAP SQUARE LINEJOIN ROUND
 				OUTLINECOLOR 0 0 0
-				SIZE 0.35
-				WIDTH 0.35
+				SIZE 0.35 WIDTH 0.35
 			END
 		END
@@ -1426,5 +1608,5 @@
 	LAYER NAME "lt"	# Topographie / Linien
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,line AS geom,signaturnummer FROM po_lines WHERE thema='Topographie' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT line IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -1435,5 +1617,4 @@
 			wms_layer_group	"/Topographie"
 			wms_title "Linien"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -1444,5 +1625,5 @@
 		UNITS METERS
 		CLASS
-		#- 	NAME "Damm, Wall, Deich, Graben, Knick, Wallkante"
+		#-	NAME "Damm, Wall, Deich, Graben, Knick, Wallkante"
 			EXPRESSION "2620"
 			STYLE
@@ -1459,9 +1640,51 @@
 			END
 		END
+		CLASS
+		#	NAME '{"BÃ¶schung, Kliff","GelÃ€ndekante, BÃ¶schungsoberkante","GelÃ€ndekante, BÃ¶schungsunterkante","GelÃ€ndekante, Allgemeine GelÃ€ndekante (z.B. Trennschraffe)"}'
+		#-	NAME 'BÃ¶schung, GelÃ€ndekante'
+			EXPRESSION "2531"
+			STYLE END
+			STYLE END
+			STYLE
+				COLOR 255 255 255
+			#	OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 81 0 0
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME '{"GelÃ€ndekante, BÃ¶schungsoberkante, unsicher","GelÃ€ndekante, BÃ¶schungsunterkante, unsicher","GelÃ€ndekante, Sonstige Begrenzungskante (z.B. Trennschraffe), unsicher"}'
+			EXPRESSION "8223"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE
+				COLOR 255 255 255
+			#	OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 81 0 0
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				PATTERN 2.00 1.00 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
 	END
 
 	LAYER NAME "lw" # GewÃ€sser / Linien
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,line AS geom,signaturnummer FROM po_lines WHERE thema='GewÃ€sser' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT line IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -1472,5 +1695,4 @@
 			wms_layer_group	"/GewÃ€sser"
 			wms_title "Linien"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -1481,5 +1703,6 @@
 		UNITS METERS
 		CLASS
-		#	NAME "(2003)"
+		#	NAME '{Lahnung,SchÃ¶pfwerk,"Sonstiges Bauwerk im GewÃ€sserbereich",Sperrwerk,Wehr}'
+		#-	NAME 'Bauwerk im GewÃ€sserbereich'
 			EXPRESSION "2003"
 			STYLE
@@ -1497,6 +1720,9 @@
 		END
 		CLASS
-		#	NAME "(2592)"
+		#	NAME '{Bach,Fleet,Graben,"Grabenkante links","Grabenkante rechts",Grabenmitte,Linienverkehr,"Untergeordnetes GewÃ€sser"}'
+		#-	NAME 'Bach, Fleet, Graben'
 			EXPRESSION "2592"
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1513,6 +1739,13 @@
 		END
 		CLASS
-		#	NAME "(2593)"
+		#	NAME '{"Bach, nicht stÃ€ndig Wasser fÃŒhrend","Fleet, nicht stÃ€ndig Wasser fÃŒhrend","Graben, nicht stÃ€ndig Wasser fÃŒhrend","Grabenkante links, nicht stÃ€ndig Wasser fÃŒhrend","Grabenkante rechts, nicht stÃ€ndig Wasser fÃŒhrend","Grabenmitte, nicht stÃ€ndig Wasser fÃŒhrend","Untergeordnetes GewÃ€sser, nicht stÃ€ndig Wasser fÃŒhrend"}'
+		#-	NAME 'nicht stÃ€ndig Wasser fÃŒhrend'
 			EXPRESSION "2593"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1547,6 +1780,21 @@
 		END
 		CLASS
-		#	NAME "(2560)"
+		#	NAME '{"Bach, verdolt","Bach, verrohrt, unterirdisch, bedeckt",Durchlass,"Fleet, verdolt","Fleet, verrohrt, unterirdisch, bedeckt","Graben, verdolt","Graben, verrohrt, unterirdisch, bedeckt",Rohrdurchlass,Siel,"Untergeordnetes GewÃ€sser, verdolt","Untergeordnetes GewÃ€sser, verrohrt, unterirdisch, bedeckt"}'
+		#-	NAME 'verrohrt, Durchlass'
 			EXPRESSION "2560"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1563,9 +1811,56 @@
 			END
 		END
+		CLASS
+		#	NAME "{DÃŒker}"
+		#-	NAME "DÃŒker"
+			EXPRESSION "2561"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE
+				COLOR 255 255 255
+			#	OPACITY 0
+				WIDTH 1.01
+			END
+			STYLE
+				COLOR 0 204 204
+				INITIALGAP 3.6
+				LINEJOIN ROUND
+				PATTERN 0.00 3.60 END
+				SIZE 1
+			END
+		END
 	END
 
 	LAYER NAME "lv"	# Verkehr / Linien 
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,line AS geom,signaturnummer FROM po_lines WHERE thema='Verkehr' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT line IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -1576,5 +1871,4 @@
 			wms_layer_group	"/Verkehr"
 			wms_title "Linien"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -1585,5 +1879,6 @@
 		UNITS METERS
 		CLASS
-		#	NAME "(2535)"
+		#	NAME '{"FuÃweg (Weg, Pfad, Steig)","Karren- und Ziehweg","Rad- und FuÃweg (Weg, Pfad, Steig)","Radweg (Weg, Pfad, Steig)","Reitweg (Weg, Pfad, Steig)",Skaterstrecke,"Weg, Pfad, Steig"}'
+		#-	NAME 'Weg'
 			EXPRESSION "2535"
 			STYLE
@@ -1602,6 +1897,33 @@
 		END
 		CLASS
-		#	NAME "(2525)"
+		#	NAME '{AutofÃ€hrverkehr,"AutofÃ€hrverkehr, EisenbahnfÃ€hrverkehr",EisenbahnfÃ€hrverkehr,PersonenfÃ€hrverkehr,"Schifffahrtslinie, FÃ€hrverkehr"}'
+		#-	NAME 'FÃ€hrverkehr'
+			EXPRESSION "2609"
+			STYLE END
+			STYLE END
+			STYLE
+				COLOR 255 255 255
+				#OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 0 204 204
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				PATTERN 2.00 1.00 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME '{"Bahn im Freizeitpark, Gleis","Bergbahn, Seilbahn, Gleis","Eisenbahn, Gleis","GÃŒterverkehr, Gleis","Magnetschwebebahn, Gleis","Museumsbahn, Gleis","S-Bahn, Gleis","Sonstige Bahnkategorie, Gleis","Stadtbahn, Gleis","Standseilbahn, Gleis","StraÃenbahn, Gleis","U-Bahn, Gleis","Zahnradbahn, Gleis"}'
+		#-	NAME 'Bahn, Gleis'
 			EXPRESSION "2525"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1618,6 +1940,21 @@
 		END
 		CLASS
-		#	NAME "(2527)"
+		#	NAME "{Fahrbahnbegrenzungslinie}"
+		#-	NAME "Fahrbahnbegrenzungslinie"
 			EXPRESSION "2527"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1634,6 +1971,37 @@
 		END
 		CLASS
-		#	NAME "(2530)"
+		#	NAME "{Steg}"
+		#-	NAME "Steg"
 			EXPRESSION "2530"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1650,6 +2018,69 @@
 		END
 		CLASS
-		#	NAME "(2506)"
+		#	NAME '{"Fahrbahnbegrenzungslinie, ÃŒberdeckt"}'
+		#-	NAME 'Fahrbahnbegrenzungslinie, ÃŒberdeckt'
 			EXPRESSION "2506"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1667,6 +2098,132 @@
 		END
 		CLASS
-		#- 	NAME "Widerlager"
+		#-	NAME "Widerlager"
 			EXPRESSION "2533"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1686,5 +2243,5 @@
 	LAYER NAME "li"	# Industrie und Gewerbe / Linien
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,line AS geom,signaturnummer FROM po_lines WHERE thema='Industrie und Gewerbe' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT line IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -1695,5 +2252,4 @@
 			wms_layer_group	"/Industrie und Gewerbe"
 			wms_title "Linien"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -1704,6 +2260,26 @@
 		UNITS METERS
 		CLASS
-		#	NAME "[2524]"
-			EXPRESSION "2524"
+		#	NAME '{"BahnÃŒbergang, Schranke","HÃ€ngende Lampe",HÃ¶ckerlinie,"Rohrleitung, Pipeline",Zaun}'
+		#-	NAME 'Schranke, Rohrleitung, Zaun'
+			EXPRESSION "2002"
+			STYLE
+				COLOR 255 255 255
+				#OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 0 0 0
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME '{Erdkabel,"Rohrleitung, Pipeline, unter der ErdoberflÃ€che","Rohrleitung, Pipeline, unter der WasseroberflÃ€che"}'
+		#-	NAME 'Erdkabel, Rohrleitung'
+			EXPRESSION "2523"
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1715,4 +2291,27 @@
 				LINECAP SQUARE
 				LINEJOIN ROUND
+				PATTERN 0.35 0.35 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME "[2524]"
+			EXPRESSION "2524"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE
+				COLOR 255 255 255
+			#	OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 0 0 0
+				LINECAP SQUARE
+				LINEJOIN ROUND
 				SIZE 0.18
 				WIDTH 0.18
@@ -1723,7 +2322,8 @@
 	LAYER NAME "lg" # GebÃ€ude / Linien
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,line AS geom,signaturnummer FROM po_lines WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer<>'ax_lagebezeichnungmitpseudonummer') AND NOT line IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+	#	DATA "geom FROM (SELECT ogc_fid,gml_id,line AS geom,signaturnummer FROM po_lines WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer<>'ax_lagebezeichnungmitpseudonummer') AND NOT line IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		DATA "geom FROM (SELECT ogc_fid,gml_id,line AS geom,signaturnummer FROM po_lines WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer NOT IN ('ax_lagebezeichnungmitpseudonummer','ax_gebaeude_dachform','ax_gebaeude_funktion','ax_gebaeude_geschosse','ax_gebaeude_zustand','ax_bauteil_dachform','ax_bauteil_funktion','ax_bauteil_geschosse','ax_turm_funktion')) AND NOT line IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
 		#EXTENT  ...
 		MAXSCALEDENOM 3500
@@ -1732,5 +2332,4 @@
 			wms_layer_group	"/GebÃ€ude"
 			wms_title "Linien"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -1741,6 +2340,6 @@
 		UNITS METERS
 		CLASS
-		#	NAME "(2507)"
-			EXPRESSION "2507"
+		#-	NAME "Kanal, Im Bau"
+			EXPRESSION "2519"
 			STYLE
 				COLOR 255 255 255
@@ -1749,14 +2348,18 @@
 			END
 			STYLE
-				COLOR 0 0 0
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	NAME "(2303)"
-			EXPRESSION "2303"
+				COLOR 0 204 204
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				PATTERN 7.00 1.00 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME '{Arkade,"Auskragende Geschosse","Auskragende/zurÃŒckspringende Geschosse","Durchfahrt an ÃŒberbauter VerkehrsstraÃe","Durchfahrt im GebÃ€ude","GebÃ€udeteil - abweichende GeschosshÃ¶he","Geringergeschossiger GebÃ€udeteil","HÃ¶hergeschossiger GebÃ€udeteil (nicht Hochhaus)",Keller,Loggia,"Sonstiger GebÃ€udeteil","Tiefgarage (Bauteil)",Treppenunterkante,"ZurÃŒckspringende Geschosse"}'
+		#-	NAME 'Durchfahrt, Ãberdachung'
+			EXPRESSION "2507"
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1768,4 +2371,27 @@
 				LINECAP SQUARE
 				LINEJOIN ROUND
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME "{Firstlinie}"
+		#-	NAME "Firstlinie"
+			EXPRESSION "2303"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE
+				COLOR 255 255 255
+			#	OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 0 0 0
+				LINECAP SQUARE
+				LINEJOIN ROUND
 				PATTERN 1.00 1.00 END
 				SIZE 0.18
@@ -1777,5 +2403,5 @@
 	LAYER NAME "lp"	# Politische Grenzen / Linien
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,line AS geom,signaturnummer FROM po_lines WHERE thema='Politische Grenzen' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT line IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -1786,15 +2412,20 @@
 			wms_layer_group	"/Politische Grenzen"
 			wms_title "Linien"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
 		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
 		STATUS OFF
 		TYPE LINE
+
+		SIZEUNITS METERS # Sets the unit of STYLE object SIZE.
+		# Mit "SIZEUNITS METERS" wird hier keine lesbare Legende erzeugt. Die Symbole werden zu gross.
+		# Wenn man "SIZEUNITS METERS" auskommentiert (default is pixels) und glichzeitig "SYMBOLSCALEDENOM 1000" setzt, wird eine brauchbare Legende ausgegeben.
+		# Die Linien decken aber nicht ganz die darunter liegende schwarze Linie (0,35 m) ab.
+	#	SYMBOLSCALEDENOM 1000 # Nicht generiert. Versuch eine lesbare Legende zu generieren.
 		UNITS METERS
-		# alle CLASS doppelt generiert!
-		CLASS
-		#- 	NAME "Flurgrenze"
+
+		# Die folgenden CLASS werden in QGIS doppelt generiert, mit unterschiedlicher Anzahl Dummy-"STYLE/END". Nur die jeweils 1. Version wurde ÃŒbernommen.
+		CLASS
+		#-	NAME "Flurgrenze"
 			EXPRESSION "2012"
 			STYLE # Grundierung
@@ -1819,6 +2450,15 @@
 		END
 		CLASS
-		#- 	NAME "Gemarkungsgrenze"
+		#-	NAME "Gemarkungsgrenze"
 			EXPRESSION "2014"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1842,6 +2482,51 @@
 		END
 		CLASS
-		#- 	NAME "Gemeindegrenze"
+		#-	NAME "Gemeindegrenze"
 			EXPRESSION "2022"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1864,9 +2549,1041 @@
 			END
 		END
+		CLASS
+		#-	NAME "Landkreisgrenze"
+			EXPRESSION "2010"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE
+				COLOR 255 255 255
+			#	OPACITY 0
+				WIDTH 1.515
+			END
+			STYLE
+				COLOR 242 127 255
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				PATTERN 7.00 12.00 END
+				SIZE 1.5
+				WIDTH 1.5
+			END
+			STYLE
+				COLOR 242 127 255
+				INITIALGAP 10.75
+				LINEJOIN ROUND
+				PATTERN 0.00 4.50 0.00 14.50 END
+				SIZE 1.5
+				WIDTH 1.5
+			END
+		END
+		CLASS
+		#-	NAME "Regierungsbezirksgrenze"
+			EXPRESSION "2020"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE
+				COLOR 255 255 255
+			#	OPACITY 0
+				WIDTH 1.515
+			END
+			STYLE
+				COLOR 242 127 255
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				PATTERN 7.00 3.00 7.00 12.00 END
+				SIZE 1.5
+				WIDTH 1.5
+			END
+			STYLE
+				COLOR 242 127 255
+				INITIALGAP 20.75
+				LINEJOIN ROUND
+				PATTERN  0.00 4.50 0.00 24.50 END
+				SIZE 1.5
+				WIDTH 1.5
+			END
+		END
+
+		CLASS
+		#-	NAME "Landesgrenze"
+			EXPRESSION "2018"
+			# QGIS generiert hier 3069 mal STYLE/END ohne Inhalt!! Dies wird reduziert, da das nicht sinnvoll erscheint.
+			STYLE END
+			STYLE END
+			STYLE
+				COLOR 255 255 255
+				#OPACITY 0
+				WIDTH 2.02
+			END
+			STYLE
+				COLOR 242 127 255
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				PATTERN 8.00 3.50 8.00 9.00 END
+				SIZE 2 WIDTH 2
+			END
+			STYLE
+				COLOR 242 127 255
+				INITIALGAP 24
+				LINEJOIN ROUND
+				PATTERN 0.00 28.50 END
+				SIZE 2 WIDTH 2
+			END
+		END
+
 	END
 
 	LAYER NAME "lfn" # FlurstÃŒcke / Nummern / Linien
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,line AS geom,signaturnummer FROM po_lines WHERE thema='FlurstÃŒcke' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer IN ('ax_flurstueck_nummer','ax_flurstueck_zuordnung','ax_flurstueck_zuordnung_pfeil')) AND NOT line IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -1884,4 +3601,5 @@
 			# einen Legenden-Eintrag "kaputte Grafik" obwohl doppelt deaktiviert.
 			# LÃ¶sung: Doppelte Gruppe auflÃ¶sen. Mit REQUIRES koppeln.
+
 			wms_layer_group	"/FlurstÃŒcke"
 			wms_title "Zuordnung"
@@ -1910,6 +3628,29 @@
 		END
 		CLASS
+		#-	NAME "Zuordnungspfeil, abweichender Rechtszustand"
+			EXPRESSION "2005"
+			STYLE END
+			STYLE END
+			STYLE
+				COLOR 255 255 255
+				#OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 204 204 204
+				LINEJOIN ROUND
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
 		#- 	NAME "Zuordnungspfeil"
 			EXPRESSION "2004"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1928,5 +3669,5 @@
 	LAYER NAME "lff" # FlurstÃŒcke / FlÃ€chen / Linien
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,line AS geom,signaturnummer FROM po_lines WHERE thema='FlurstÃŒcke' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (NOT layer IN ('ax_flurstueck_nummer','ax_flurstueck_zuordnung','ax_flurstueck_zuordnung_pfeil')) AND NOT line IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -1938,5 +3679,4 @@
 			wms_layer_group	"/FlurstÃŒcke"
 			wms_title "Linien"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -1947,6 +3687,24 @@
 		UNITS METERS
 		CLASS
-		#- 	NAME "Strittige Grenze"
+		#-	NAME "FlurstÃŒcksgrenze, abw. Rechtszustand"
+			EXPRESSION "2029"
+			STYLE
+				COLOR 255 255 255
+				#OPACITY 0
+				WIDTH 0.3535
+			END
+			STYLE
+				COLOR 204 204 204
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				SIZE 0.35
+				WIDTH 0.35
+			END
+		END
+		CLASS
+		#-	NAME "Strittige Grenze"
 			EXPRESSION "2006"
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1964,6 +3722,12 @@
 		END
 		CLASS
-		#- 	NAME "FlurstÃŒcksgrenze nicht feststellbar"
+		#-	NAME "FlurstÃŒcksgrenze nicht feststellbar"
 			EXPRESSION "2008"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
 			STYLE
 				COLOR 255 255 255
@@ -1986,5 +3750,5 @@
 	LAYER NAME "pff" # FlurstÃŒcke / FlÃ€chen / Punkte
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,point AS geom,drehwinkel_grad,signaturnummer FROM po_points WHERE thema='FlurstÃŒcke' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (NOT layer IN ('ax_flurstueck_nummer','ax_flurstueck_zuordnung','ax_flurstueck_zuordnung_pfeil')) AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -1996,5 +3760,5 @@
 			wms_layer_group	"/FlurstÃŒcke"
 			wms_title "Punkte"
-			#wms_enable_request "GetCapabilities GetMap"
+			wms_enable_request "!GetLegendGraphic" # Punkt-Layer komplett in Legende unterdrÃŒcken
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -2006,5 +3770,5 @@
 		UNITS METERS
 		CLASS
-		#- 	NAME "Abgemarkter Grenzpunkt"
+		#-	NAME "Abgemarkter Grenzpunkt"
 			EXPRESSION "3020"
 			STYLE
@@ -2016,5 +3780,16 @@
 		END
 		CLASS
-		#- 	NAME "Grenzpunkt, Abmarkung zeitweilig ausgesetzt"
+		#-	NAME "Grenzpunkt ohne spezifizierte Abmarkung"
+			EXPRESSION "3024"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				#OFFSET 0 0
+				SIZE 1.5182
+				SYMBOL "norGIS_alkis3024_1" # NEU
+			END
+		END
+		CLASS
+		#-	NAME "Grenzpunkt, Abmarkung zeitweilig ausgesetzt"
 			EXPRESSION "3022"
 			STYLE
@@ -2026,5 +3801,16 @@
 		END
 		CLASS
-		#- 	NAME "FlurstÃŒcksÃŒberhaken"
+		#	NAME "(3011)"
+			EXPRESSION "3011"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				OFFSET 0 1
+				SIZE 2.2509
+				SYMBOL "norGIS_alkis3011_1"
+			END
+		END
+		CLASS
+		#-	NAME "FlurstÃŒcksÃŒberhaken"
 			EXPRESSION "3010"
 			STYLE
@@ -2036,11 +3822,22 @@
 			END
 		END
+		CLASS
+		#-	NAME "Abgemarkter Grenzpunkt, abw. Rechtszustand"
+			EXPRESSION "3021"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 0
+				SIZE 1.6995
+				SYMBOL "norGIS_alkis3021_1"
+			END
+		END
 	END
 
 	LAYER NAME "pg" # GebÃ€ude / Punkte
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,point AS geom,drehwinkel_grad,signaturnummer FROM po_points WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer<>'ax_lagebezeichnungmitpseudonummer') AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		DATA "geom FROM (SELECT ogc_fid,gml_id,point AS geom,drehwinkel_grad,signaturnummer FROM po_points WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer IN ('ax_gebaeude_funktion','ax_bauteil_funktion','ax_turm_funktion')) AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
 		#EXTENT  ...
 		MAXSCALEDENOM 3500
@@ -2049,5 +3846,5 @@
 			wms_layer_group	"/GebÃ€ude"
 			wms_title "Punkte"
-			#wms_enable_request "GetCapabilities GetMap"
+			wms_enable_request "!GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -2059,24 +3856,4 @@
 		UNITS METERS
 		CLASS
-		#- 	NAME "Springbrunnen, Zierbrunnen"
-			EXPRESSION "3539"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 4.056
-				SYMBOL "norGIS_alkis3539_1"
-			END
-		END
-		CLASS
-		#	NAME "(3527)"
-			EXPRESSION "3527"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 3.8294
-				SYMBOL "norGIS_alkis3527_1"
-			END
-		END
-		CLASS
 		#- 	NAME "Umformer"
 			EXPRESSION "3521"
@@ -2099,12 +3876,190 @@
 		END
 		CLASS
-		#- 	NAME "Denkmal"
-			EXPRESSION "3532"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				OFFSET 0 2
-				SIZE 4.866
-				SYMBOL "norGIS_alkis3532_1"
+		#- 	NAME "Post"
+			EXPRESSION "3312"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3312_1"
+			END
+		END
+		CLASS
+		#-	NAME "Krankenhaus"
+			EXPRESSION "3321"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 0
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3321_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Hallenbad"
+			EXPRESSION "3334"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 6.2313
+				SYMBOL "norGIS_alkis3334_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Kindergarten"
+			EXPRESSION "3323"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 6.2313
+				SYMBOL "norGIS_alkis3323_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Toilette"
+			EXPRESSION "3311"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3311_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Kino"
+			EXPRESSION "3306"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3306_1"
+			END
+		END
+		CLASS
+		#-	NAME "Theater"
+			EXPRESSION "3314"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 0
+				SIZE 6.0274
+				SYMBOL "norGIS_alkis3314_1"
+			END
+		END
+		CLASS
+		#	NAME "(3340)"
+			EXPRESSION "3340"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 0
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3340_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Bank"
+			EXPRESSION "3300"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.189
+				SYMBOL "norGIS_alkis3300_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Tiefgarage"
+			EXPRESSION "3336"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 6.2313
+				SYMBOL "norGIS_alkis3336_1"
+			END
+		END
+		CLASS
+		#-	NAME "GebÃ€ude zum Busbahnhof"
+			EXPRESSION "3332"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 0
+				SIZE 5.5062
+				SYMBOL "norGIS_alkis3332_1"
+			END
+		END
+		CLASS
+		#-	NAME "Parkhaus"
+			EXPRESSION "3309"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 0
+				SIZE 6.2313
+				SYMBOL "norGIS_alkis3309_1"
+			END
+		END
+		CLASS
+		#-	NAME "Bibliothek"
+			EXPRESSION "3315"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 0
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3315_1"
+			END
+		END
+		CLASS
+		#-	NAME "Apotheke"
+			EXPRESSION "3338"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 0
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3338_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Hotel"
+			EXPRESSION "3302"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3302_1"
+			END
+		END
+		CLASS
+		#-	NAME "Synagoge"
+			EXPRESSION "3317"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 0
+				SIZE 3.5122
+				SYMBOL "norGIS_alkis3317_1"
+			END
+		END
+		CLASS
+		#-	NAME "Jugendherberge"
+			EXPRESSION "3303"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 0
+				SIZE 6.0047
+				SYMBOL "norGIS_alkis3303_1"
+			END
+		END
+		CLASS
+		#- 	NAME "GaststÃ€tte"
+			EXPRESSION "3305"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3305_1"
 			END
 		END
@@ -2120,24 +4075,4 @@
 		END
 		CLASS
-		#- 	NAME "Post"
-			EXPRESSION "3312"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.0077
-				SYMBOL "norGIS_alkis3312_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Hallenbad"
-			EXPRESSION "3334"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 6.2313
-				SYMBOL "norGIS_alkis3334_1"
-			END
-		END
-		CLASS
 		#- 	NAME "Kapelle"
 			EXPRESSION "3318"
@@ -2150,4 +4085,14 @@
 		END
 		CLASS
+		#- 	NAME "Kirche"
+			EXPRESSION "3316"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 10.0381
+				SYMBOL "norGIS_alkis3316_1"
+			END
+		END
+		CLASS
 		#- 	NAME "Feuerwehr"
 			EXPRESSION "3326"
@@ -2159,110 +4104,9 @@
 			END
 		END
-		CLASS
-		#- 	NAME "Kirche"
-			EXPRESSION "3316"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 10.0381
-				SYMBOL "norGIS_alkis3316_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Kindergarten"
-			EXPRESSION "3323"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 6.2313
-				SYMBOL "norGIS_alkis3323_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Toilette"
-			EXPRESSION "3311"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.0077
-				SYMBOL "norGIS_alkis3311_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Kino"
-			EXPRESSION "3306"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.0077
-				SYMBOL "norGIS_alkis3306_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Tiefgarage"
-			EXPRESSION "3336"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 6.2313
-				SYMBOL "norGIS_alkis3336_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Bank"
-			EXPRESSION "3300"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.189
-				SYMBOL "norGIS_alkis3300_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Brunnen / Gasquelle, Mofette / Heilquelle"
-			EXPRESSION "3529"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 2.6965
-				SYMBOL "norGIS_alkis3529_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Hotel"
-			EXPRESSION "3302"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.0077
-				SYMBOL "norGIS_alkis3302_1"
-			END
-		END
-		CLASS
-		#- 	NAME "GaststÃ€tte"
-			EXPRESSION "3305"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.0077
-				SYMBOL "norGIS_alkis3305_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Meilenstein, historischer Grenzstein"
-			EXPRESSION "3536"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				OFFSET 0 1
-				SIZE 2.8688
-				SYMBOL "norGIS_alkis3536_1"
-			END
-		END
 	END
 
 	LAYER NAME "pv"	# Verkehr / Punkte
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,point AS geom,drehwinkel_grad,signaturnummer FROM po_points WHERE thema='Verkehr' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -2273,5 +4117,5 @@
 			wms_layer_group	"/Verkehr"
 			wms_title "Punkte"
-			#wms_enable_request "GetCapabilities GetMap"
+			wms_enable_request "!GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -2346,5 +4190,5 @@
 	LAYER NAME "pe"	# Vegetation / Punkte
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,point AS geom,drehwinkel_grad,signaturnummer FROM po_points WHERE thema='Vegetation' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -2355,5 +4199,5 @@
 			wms_layer_group	"/Vegetation"
 			wms_title "Punkte"
-			#wms_enable_request "GetCapabilities GetMap"
+			wms_enable_request "!GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -2550,5 +4394,5 @@
 	LAYER NAME "pw"	# GewÃ€sser / Punkte
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,point AS geom,drehwinkel_grad,signaturnummer FROM po_points WHERE thema='GewÃ€sser' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -2559,5 +4403,5 @@
 			wms_layer_group	"/GewÃ€sser"
 			wms_title "Punkte"
-			#wms_enable_request "GetCapabilities GetMap"
+			wms_enable_request "!GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -2636,5 +4480,5 @@
 	LAYER NAME "pi"	# Industrie und Gewerbe / Punkte
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,point AS geom,drehwinkel_grad,signaturnummer FROM po_points WHERE thema='Industrie und Gewerbe' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -2645,5 +4489,5 @@
 			wms_layer_group	"/Industrie und Gewerbe"
 			wms_title "Punkte"
-			#wms_enable_request "GetCapabilities GetMap"
+			wms_enable_request "!GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -2751,5 +4595,5 @@
 	LAYER NAME "ps"	# Sport und Freizeit / Punkte
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,point AS geom,drehwinkel_grad,signaturnummer FROM po_points WHERE thema='Sport und Freizeit' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -2760,5 +4604,5 @@
 			wms_layer_group	"/Sport und Freizeit"
 			wms_title "Punkte"
-			#wms_enable_request "GetCapabilities GetMap"
+			wms_enable_request "!GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -2833,5 +4677,5 @@
 	LAYER NAME "pt"	# Topographie / Punkte
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,point AS geom,drehwinkel_grad,signaturnummer FROM po_points WHERE thema='Topographie' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -2842,5 +4686,5 @@
 			wms_layer_group	"/Topographie"
 			wms_title "Punkte"
-			#wms_enable_request "GetCapabilities GetMap"
+			wms_enable_request "!GetLegendGraphic"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -2889,5 +4733,5 @@
 
 	LAYER NAME "bfn" # FlurstÃŒcke / Nummern / Beschriftungen
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='FlurstÃŒcke' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer IN ('ax_flurstueck_nummer','ax_flurstueck_zuordnung','ax_flurstueck_zuordnung_pfeil'))  AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -2901,5 +4745,4 @@
 		#	wms_title "Beschriftungen (Punkte)"
 			wms_title "Beschriftungen"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -2928,8 +4771,11 @@
 	END
 
-	LAYER NAME "bg"	# GebÃ€ude / Beschriftungen
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+#	LAYER NAME "bg"	 # GebÃ€ude / Beschriftungen
+	LAYER NAME "bgh" # GebÃ€ude / Hausnummer (HauptgebÃ€ude)
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer<>'ax_lagebezeichnungmitpseudonummer')  AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+	#	DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer<>'ax_lagebezeichnungmitpseudonummer')  AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'L' WHEN 'rechtsbÃŒndig' THEN 'R' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer NOT IN ('ax_lagebezeichnungmitpseudonummer','ax_gebaeude_dachform','ax_gebaeude_funktion','ax_gebaeude_geschosse','ax_gebaeude_zustand','ax_bauteil_dachform','ax_bauteil_funktion','ax_bauteil_geschosse','ax_turm_funktion')) AND point IS NOT NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		# Daten der neuen Layer hier raus: Dachform usw.
 		#EXTENT  ...
 		LABELITEM "text"
@@ -2939,6 +4785,6 @@
 			wms_layer_group	"/GebÃ€ude"
 		#	wms_title "Beschriftungen (Punkte)"
-			wms_title "Beschriftungen"
-			#wms_enable_request "GetCapabilities GetMap"
+		#	wms_title "Beschriftungen"
+			wms_title "Hausnummern"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -2949,4 +4795,69 @@
 		TYPE POINT
 		UNITS METERS
+		CLASS
+			LABEL
+				ANGLE [drehwinkel_grad]
+				ANTIALIAS TRUE
+				TYPE TRUETYPE FONT [font_umn] SIZE [size_umn]
+				BUFFER 2 FORCE TRUE
+				COLOR [color_umn] OUTLINECOLOR 255 255 255
+				POSITION [position_umn] PRIORITY 10
+			END
+		END
+	END
+
+	#AYER NAME "bg2" # GebÃ€ude / lfd. Nr. NebengebÃ€ude
+	LAYER NAME "bgn" # GebÃ€ude / NebengebÃ€ude lfd. Nr. # NebengebÃ€ude-Nummer in Klammer, normalerweise aus
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTIONTYPE POSTGIS
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung) WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'L' WHEN 'rechtsbÃŒndig' THEN 'R' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer='ax_lagebezeichnungmitpseudonummer') AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		#EXTENT  ...
+		LABELITEM "text"
+		MAXSCALEDENOM 3500
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GebÃ€ude" # "/GebÃ€ude/Laufende Hausnummern"
+			wms_title "NebengebÃ€ude lfd. Nr." # "Beschriftungen (Punkte)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS INCHES
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+		CLASS
+			LABEL
+				ANGLE [drehwinkel_grad]
+				ANTIALIAS TRUE
+				TYPE TRUETYPE FONT [font_umn]
+				SIZE [size_umn] BUFFER 2
+				FORCE TRUE
+				OUTLINECOLOR 255 255 255 COLOR [color_umn]
+				POSITION [position_umn] PRIORITY 10
+			END
+		END
+	END
+
+	LAYER NAME "bgd" # GebÃ€ude / Dachform # Neu 2017-10
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTIONTYPE POSTGIS
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'L' WHEN 'rechtsbÃŒndig' THEN 'R' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer IN ('ax_gebaeude_dachform','ax_bauteil_dachform')) AND point IS NOT NULL AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		#EXTENT  ...
+		LABELITEM "text"
+		MAXSCALEDENOM 3500
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GebÃ€ude"
+ 			wms_title "Dachform"
+ 		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS INCHES
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+
 		CLASS
 			LABEL
@@ -2962,13 +4873,14 @@
 				PRIORITY 10
 				TYPE TRUETYPE
-			END
-		END
+			END # LABEL
+		END
+
 	END
 
-	LAYER NAME "bg2" # GebÃ€ude / lfd. Nr. NebengebÃ€ude
-		# NebengebÃ€ude-Nummer in Klammer, normalerweise aus
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+	LAYER NAME "bgf" # GebÃ€ude / Funktion # Neu 2017-10
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'L' WHEN 'rechtsbÃŒndig' THEN 'R' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer='ax_lagebezeichnungmitpseudonummer') AND point IS NOT NULL AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'L' WHEN 'rechtsbÃŒndig' THEN 'R' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer IN ('ax_gebaeude_funktion','ax_bauteil_funktion','ax_turm_funktion')) AND point IS NOT NULL AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+
 		#EXTENT  ...
 		LABELITEM "text"
@@ -2976,7 +4888,229 @@
 		METADATA
 			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/GebÃ€ude" # "/GebÃ€ude/Laufende Hausnummern"
-			wms_title "lfd. Nr. NebengebÃ€ude" # "Beschriftungen (Punkte)"
-			#wms_enable_request "GetCapabilities GetMap"
+			wms_layer_group	"/GebÃ€ude"
+ 			wms_title "Funktion"
+ 		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS INCHES
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+
+		CLASS
+			LABEL
+				ANGLE [drehwinkel_grad]
+				ANTIALIAS TRUE
+				FONT [font_umn]
+				SIZE [size_umn]
+				BUFFER 2
+				COLOR [color_umn]
+				FORCE TRUE
+			#	OFFSET 0 0
+				OUTLINECOLOR 255 255 255
+				POSITION [position_umn]
+				PRIORITY 10
+			#	SHADOWSIZE 0 0
+				TYPE TRUETYPE
+			END # LABEL
+		END
+	END # v
+
+	LAYER NAME "bgg" # GebÃ€ude / Geschosse # Neu 2017-10
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTIONTYPE POSTGIS
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'L' WHEN 'rechtsbÃŒndig' THEN 'R' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer IN ('ax_gebaeude_geschosse','ax_bauteil_geschosse')) AND point IS NOT NULL AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		#EXTENT  ...
+		LABELITEM "text"
+		MAXSCALEDENOM 3500
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GebÃ€ude"
+ 			wms_title "Geschosse"
+ 		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS INCHES
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+		CLASS
+			LABEL
+				ANGLE [drehwinkel_grad]
+				ANTIALIAS TRUE
+				FONT [font_umn]
+				SIZE [size_umn]
+				BUFFER 2
+				COLOR [color_umn]
+				FORCE TRUE
+			#	OFFSET 0 0
+				OUTLINECOLOR 255 255 255
+				POSITION [position_umn]
+				PRIORITY 10
+			#	SHADOWSIZE 0 0
+				TYPE TRUETYPE
+			END # LABEL
+		END
+	END
+
+	LAYER NAME "bgz" # GebÃ€ude / Zustand # Neu 2017-10
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTIONTYPE POSTGIS
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'L' WHEN 'rechtsbÃŒndig' THEN 'R' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='GebÃ€ude' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer='ax_gebaeude_zustand') AND point IS NOT NULL AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		#EXTENT  ...
+		LABELITEM "text"
+		MAXSCALEDENOM 3500
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GebÃ€ude"
+ 			wms_title "Zustand"
+ 		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS INCHES
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+		CLASS
+			LABEL
+				ANGLE [drehwinkel_grad]
+				ANTIALIAS TRUE
+				FONT [font_umn]
+				SIZE [size_umn]
+				BUFFER 2
+				COLOR [color_umn]
+				FORCE TRUE
+			#	OFFSET 0 0
+				OUTLINECOLOR 255 255 255
+				POSITION [position_umn]
+				PRIORITY 10
+			#	SHADOWSIZE 0 0
+				TYPE TRUETYPE
+			END # LABEL
+		END
+	END
+
+	LAYER NAME "bl" # Lagebezeichnungen / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTIONTYPE POSTGIS
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Lagebezeichnungen' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		#EXTENT  ...
+		LABELITEM "text"
+		MAXSCALEDENOM 5000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Lagebezeichnungen"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS INCHES
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+		CLASS
+			LABEL
+				ANGLE [drehwinkel_grad]
+				ANTIALIAS TRUE
+				TYPE TRUETYPE FONT [font_umn]
+				SIZE [size_umn]
+				BUFFER 2
+				COLOR [color_umn]
+				FORCE TRUE
+				OUTLINECOLOR 255 255 255
+				POSITION [position_umn]
+				PRIORITY 10
+			END
+		END
+	END
+
+	LAYER NAME "br" # Rechtliche Festlegungen / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTIONTYPE POSTGIS
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung) WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Rechtliche Festlegungen' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		#EXTENT  ...
+		LABELITEM "text"
+		MAXSCALEDENOM 25000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Rechtliche Festlegungen"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS INCHES
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+		CLASS
+			LABEL
+				ANGLE [drehwinkel_grad]
+				ANTIALIAS TRUE
+				TYPE TRUETYPE FONT [font_umn]
+				SIZE [size_umn]
+				BUFFER 2
+				COLOR [color_umn] OUTLINECOLOR 255 255 255
+				FORCE TRUE
+				POSITION [position_umn]
+				PRIORITY 10
+			END
+		END
+	END
+
+	LAYER NAME "bv" # Verkehr / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTIONTYPE POSTGIS
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Verkehr' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		#EXTENT  ...
+		LABELITEM "text"
+		MAXSCALEDENOM 5000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Verkehr"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS INCHES
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+		CLASS
+			LABEL
+				ANGLE [drehwinkel_grad]
+				ANTIALIAS TRUE
+				TYPE TRUETYPE FONT [font_umn]
+				SIZE [size_umn]
+				BUFFER 2
+				COLOR [color_umn]
+				FORCE TRUE
+				OUTLINECOLOR 255 255 255
+				POSITION [position_umn]
+				PRIORITY 10
+			END
+		END
+	END
+
+	LAYER NAME "bh"	# FriedHÃ¶fe / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTIONTYPE POSTGIS
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='FriedhÃ¶fe' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		#EXTENT  ...
+		LABELITEM "text"
+		MAXSCALEDENOM 5000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/FriedhÃ¶fe"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -3004,8 +5138,8 @@
 	END
 
-	LAYER NAME "bl" # Lagebezeichnungen / Beschriftungen
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+	LAYER NAME "be"	# Vegetation / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Lagebezeichnungen' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Vegetation' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
 		#EXTENT  ...
 		LABELITEM "text"
@@ -3013,8 +5147,7 @@
 		METADATA
 			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Lagebezeichnungen"
+			wms_layer_group	"/Vegetation"
 		#	wms_title "Beschriftungen (Punkte)"
 			wms_title "Beschriftungen"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -3042,160 +5175,9 @@
 	END
 
-	LAYER NAME "br" # Rechtliche Festlegungen / Beschriftungen
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+## +++ Doppelter Text "Nettelstedter Bach" blau/schwarz siehe alkis330 bei 2779-8-1114
+	LAYER NAME "bw"	# GewÃ€sser / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung) WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Rechtliche Festlegungen' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
-		#EXTENT  ...
-		LABELITEM "text"
-		MAXSCALEDENOM 25000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Rechtliche Festlegungen"
-		#	wms_title "Beschriftungen (Punkte)"
-			wms_title "Beschriftungen"
-			#wms_enable_request "GetCapabilities GetMap"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS INCHES
-		STATUS OFF
-		SYMBOLSCALEDENOM 1000
-		TYPE POINT
-		UNITS METERS
-		CLASS
-			LABEL
-				ANGLE [drehwinkel_grad]
-				ANTIALIAS TRUE
-				FONT [font_umn]
-				SIZE [size_umn]
-				BUFFER 2
-				COLOR [color_umn]
-				FORCE TRUE
-				OUTLINECOLOR 255 255 255
-				POSITION [position_umn]
-				PRIORITY 10
-				TYPE TRUETYPE
-			END
-		END
-	END
-
-	LAYER NAME "bv" # Verkehr / Beschriftungen
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
-		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Verkehr' AND modell && ARRAY['DLKM','DKKM1000']::varchar[]  AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
-		#EXTENT  ...
-		LABELITEM "text"
-		MAXSCALEDENOM 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Verkehr"
-		#	wms_title "Beschriftungen (Punkte)"
-			wms_title "Beschriftungen"
-			#wms_enable_request "GetCapabilities GetMap"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS INCHES
-		STATUS OFF
-		SYMBOLSCALEDENOM 1000
-		TYPE POINT
-		UNITS METERS
-		CLASS
-			LABEL
-				ANGLE [drehwinkel_grad]
-				ANTIALIAS TRUE
-				FONT [font_umn]
-				SIZE [size_umn]
-				BUFFER 2
-				COLOR [color_umn]
-				FORCE TRUE
-				OUTLINECOLOR 255 255 255
-				POSITION [position_umn]
-				PRIORITY 10
-				TYPE TRUETYPE
-			END
-		END
-	END
-
-	LAYER NAME "bh"	# FriedHÃ¶fe / Beschriftungen
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
-		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='FriedhÃ¶fe' AND modell && ARRAY['DLKM','DKKM1000']::varchar[]  AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
-		#EXTENT  ...
-		LABELITEM "text"
-		MAXSCALEDENOM 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/FriedhÃ¶fe"
-		#	wms_title "Beschriftungen (Punkte)"
-			wms_title "Beschriftungen"
-			#wms_enable_request "GetCapabilities GetMap"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS INCHES
-		STATUS OFF
-		SYMBOLSCALEDENOM 1000
-		TYPE POINT
-		UNITS METERS
-		CLASS
-			LABEL
-				ANGLE [drehwinkel_grad]
-				ANTIALIAS TRUE
-				FONT [font_umn]
-				SIZE [size_umn]
-				BUFFER 2
-				COLOR [color_umn]
-				FORCE TRUE
-				OUTLINECOLOR 255 255 255
-				POSITION [position_umn]
-				PRIORITY 10
-				TYPE TRUETYPE
-			END
-		END
-	END
-
-	LAYER NAME "be"	# Vegetation / Beschriftungen
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
-		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Vegetation' AND modell && ARRAY['DLKM','DKKM1000']::varchar[]  AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
-		#EXTENT  ...
-		LABELITEM "text"
-		MAXSCALEDENOM 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Vegetation"
-		#	wms_title "Beschriftungen (Punkte)"
-			wms_title "Beschriftungen"
-			#wms_enable_request "GetCapabilities GetMap"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS INCHES
-		STATUS OFF
-		SYMBOLSCALEDENOM 1000
-		TYPE POINT
-		UNITS METERS
-		CLASS
-			LABEL
-				ANGLE [drehwinkel_grad]
-				ANTIALIAS TRUE
-				FONT [font_umn]
-				SIZE [size_umn]
-				BUFFER 2
-				COLOR [color_umn]
-				FORCE TRUE
-				OUTLINECOLOR 255 255 255
-				POSITION [position_umn]
-				PRIORITY 10
-				TYPE TRUETYPE
-			END
-		END
-	END
-
-	LAYER NAME "bw"	# GewÃ€sser / Beschriftungen
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
-		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='GewÃ€sser' AND modell && ARRAY['DLKM','DKKM1000']::varchar[]  AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='GewÃ€sser' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
 		#EXTENT  ...
 		LABELITEM "text"
@@ -3206,5 +5188,4 @@
 		#	wms_title "Beschriftungen (Punkte)"
 			wms_title "Beschriftungen"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -3217,15 +5198,10 @@
 		CLASS
 			LABEL
-				ANGLE [drehwinkel_grad]
-				ANTIALIAS TRUE
-				FONT [font_umn]
-				SIZE [size_umn]
-				BUFFER 2
-				COLOR [color_umn]
-				FORCE TRUE
-				OUTLINECOLOR 255 255 255
-				POSITION [position_umn]
+				ANGLE [drehwinkel_grad] ANTIALIAS TRUE
+				TYPE TRUETYPE FONT [font_umn]
+				SIZE [size_umn] BUFFER 2
+				COLOR [color_umn] OUTLINECOLOR 255 255 255
+				FORCE TRUE POSITION [position_umn]
 				PRIORITY 10
-				TYPE TRUETYPE
 			END
 		END
@@ -3233,7 +5209,7 @@
 
 	LAYER NAME "bi" # Industrie und Gewerbe / Beschriftungen
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Industrie und Gewerbe' AND modell && ARRAY['DLKM','DKKM1000']::varchar[]  AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Industrie und Gewerbe' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
 		#EXTENT  ...
 		LABELITEM "text"
@@ -3244,5 +5220,4 @@
 		#	wms_title "Beschriftungen (Punkte)"
 			wms_title "Beschriftungen"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -3257,13 +5232,9 @@
 				ANGLE [drehwinkel_grad]
 				ANTIALIAS TRUE
-				FONT [font_umn]
-				SIZE [size_umn]
-				BUFFER 2
-				COLOR [color_umn]
-				FORCE TRUE
-				OUTLINECOLOR 255 255 255
-				POSITION [position_umn]
+				TYPE TRUETYPE FONT [font_umn]
+				SIZE [size_umn] BUFFER 2
+				COLOR [color_umn] OUTLINECOLOR 255 255 255
+				FORCE TRUE POSITION [position_umn]
 				PRIORITY 10
-				TYPE TRUETYPE
 			END
 		END
@@ -3271,7 +5242,7 @@
 
 	LAYER NAME "bs"	# Sport und Freizeit / Beschriftungen
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
-		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Sport und Freizeit' AND modell && ARRAY['DLKM','DKKM1000']::varchar[]  AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Sport und Freizeit' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
 		#EXTENT  ...
 		LABELITEM "text"
@@ -3282,5 +5253,4 @@
 		#	wms_title "Beschriftungen (Punkte)"
 			wms_title "Beschriftungen"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -3295,19 +5265,16 @@
 				ANGLE [drehwinkel_grad]
 				ANTIALIAS TRUE
-				FONT [font_umn]
-				SIZE [size_umn]
-				BUFFER 2
-				COLOR [color_umn]
-				FORCE TRUE
-				OUTLINECOLOR 255 255 255
-				POSITION [position_umn]
+				TYPE TRUETYPE FONT [font_umn]
+				SIZE [size_umn] BUFFER 2
+				COLOR [color_umn] OUTLINECOLOR 255 255 255
+				FORCE TRUE POSITION [position_umn]
 				PRIORITY 10
-				TYPE TRUETYPE
 			END
 		END
 	END
 
+	# Dieser Laywer wurde 2017-10 aus alkis0300 NICHT generiert.
 	LAYER NAME "bb"	# WohnBauflÃ€chen / Beschriftungen
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung)  WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='WohnbauflÃ€chen' AND modell && ARRAY['DLKM','DKKM1000']::varchar[]  AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -3320,5 +5287,4 @@
 		#	wms_title "Beschriftungen (Punkte)"
 			wms_title "Beschriftungen"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -3333,13 +5299,11 @@
 				ANGLE [drehwinkel_grad]
 				ANTIALIAS TRUE
-				FONT [font_umn]
+				TYPE TRUETYPE FONT [font_umn]
 				SIZE [size_umn]
 				BUFFER 2
-				COLOR [color_umn]
+				COLOR [color_umn] OUTLINECOLOR 255 255 255
 				FORCE TRUE
-				OUTLINECOLOR 255 255 255
 				POSITION [position_umn]
 				PRIORITY 10
-				TYPE TRUETYPE
 			END
 		END
@@ -3347,5 +5311,5 @@
 
 	LAYER NAME "bt" # Topographie / Beschriftungen
-		CONNECTION "dbname='alkis*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
 		CONNECTIONTYPE POSTGIS
 		DATA "geom FROM (SELECT ogc_fid,gml_id,text,f.umn AS color_umn,lower(art) || coalesce('-'||effekt,'') ||CASE WHEN stil='Kursiv' THEN '-italic' WHEN stil='Fett' THEN '-bold' WHEN stil='Fett, Kursiv' THEN '-bold-italic' ELSE '' END || CASE WHEN coalesce(fontsperrung,0)=0 THEN '' ELSE '-'||(fontsperrung/0.25)::int END AS font_umn,0.25/0.0254*skalierung*grad_pt AS size_umn,CASE coalesce(l.vertikaleausrichtung,s.vertikaleausrichtung) WHEN 'oben' THEN 'L' WHEN 'Basis' THEN 'U' ELSE 'C' END || CASE coalesce(l.horizontaleausrichtung,s.horizontaleausrichtung) WHEN 'linksbÃŒndig' THEN 'R' WHEN 'rechtsbÃŒndig' THEN 'L' ELSE 'C' END AS position_umn,drehwinkel_grad,point AS geom FROM po_labels l JOIN alkis_schriften s ON s.signaturnummer=l.signaturnummer AND s.katalog=1 JOIN alkis_farben f ON s.farbe=f.id WHERE thema='Topographie' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
@@ -3358,5 +5322,4 @@
 		#	wms_title "Beschriftungen (Punkte)"
 			wms_title "Beschriftungen"
-			#wms_enable_request "GetCapabilities GetMap"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -3371,46 +5334,42 @@
 				ANGLE [drehwinkel_grad]
 				ANTIALIAS TRUE
-				FONT [font_umn]
-				SIZE [size_umn]
-				BUFFER 2
-				COLOR [color_umn]
+				TYPE TRUETYPE FONT [font_umn]
+				SIZE [size_umn] BUFFER 2
+				COLOR [color_umn] OUTLINECOLOR 255 255 255
 				FORCE TRUE
-				OUTLINECOLOR 255 255 255
 				POSITION [position_umn]
 				PRIORITY 10
-				TYPE TRUETYPE
 			END
 		END
 	END
 
-	LAYER
-		NAME "copyright"
-		STATUS ON # DEFAULT
-		TYPE POINT
-		TRANSFORM lr
-		METADATA
-			wms_title "Copyright"
-			wms_abstract "In der Karte sichtbare Angabe auf die Herkunft der Daten"
-			WMS_KEYWORDLIST "Katasteramt, Copyright, Quellenangabe"
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			#wms_enable_request "GetCapabilities GetMap"
-		END
-		FEATURE
-			POINTS 0 0 END
-			# individuell Kreisname und ggf. Vertragsnummer einsetzen:
-			TEXT 'Copyright Geobasisdaten Liegenschaftskataster Kreis __'
-		END
-		CLASS
-			LABEL
-				SIZE small
-				POSITION ul
-				COLOR 50 50 50
-				FORCE TRUE
-				STYLE
-					GEOMTRANSFORM 'labelpoly'
-					COLOR 250 250 250
-				END
-			END
-		END
-	END
+	#LAYER
+	#	NAME "copyright"
+	#	STATUS ON
+	#	TYPE POINT
+	#	TRANSFORM lr
+	#	METADATA
+	#		wms_title "Copyright"
+	#		wms_abstract "In der Karte sichtbare Angabe auf die Herkunft der Daten"
+	#		WMS_KEYWORDLIST "Katasteramt, Copyright, Quellenangabe"
+	#		wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+	#	END
+	#	FEATURE
+	#		POINTS 0 0 END
+	#		# individuell Kreisname und ggf. Vertragsnummer einsetzen:
+	#		TEXT 'Copyright Geobasisdaten Liegenschaftskataster Kreis __'
+	#	END
+	#	CLASS
+	#		LABEL
+	#			SIZE small
+	#			POSITION ul
+	#			COLOR 50 50 50
+	#			FORCE TRUE
+	#			STYLE
+	#				GEOMTRANSFORM 'labelpoly'
+	#				COLOR 250 250 250
+	#			END
+	#		END
+	#	END
+	#END
 END
