Index: trunk/umn/alkis_n/alkis_n_muster.map
===================================================================
--- trunk/umn/alkis_n/alkis_n_muster.map	(revision 395)
+++ trunk/umn/alkis_n/alkis_n_muster.map	(revision 424)
@@ -1,5 +1,4 @@
 MAP
-# ALKIS generiert aus norBIT-QGIS-Plugin, dann manuell nach-bearbeitet fÃŒr mapserver 7.0
-# http://10.0.100.79/cgi-bin/mapserv7?map=/opt/gdi/alkisn/alkis*gkz*.map&REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1 
+# ALKIS generiert aus norBIT-QGIS-Plugin, dann manuell nach-bearbeitet fÃŒr mapserver 7.4
 
 # Stand:
@@ -19,9 +18,26 @@
 #             u.a. in der GebÃ€ude-Beschriftung: Hausnummern getrennt von Dachform, Zustand usw., BÃ¶schungen
 #  2017-11-24 Abstract, Pol. Grenzen nur mit 1 Style zeichnen.
-
+#  2018-11-07 Test mit Full-Schema, -EPSG:54004
+#  2019-01-22 Layer "pt": "drehwinkel_grad" bei "signaturnummer"=3632 in Tabelle "po_points" der alkis-DB darf NICHT "0" sein  -> ggf. Wert minimal aendern
+#  2019-03-08 GKZ in Keywords
+#  2019-04    Neue Mapfiles mit QGIS generiert und hiermit abgeglichen:
+#                 Layer bll, bwl und pg2 hinzugefÃŒgt
+#                 Symbole (Classes) ergÃ€nzt
+#             Layer-Reihenfolge geÃ€ndert (Reihenfolge der Layer im Mapfile wurde im Mapbender durch die Gruppierung ÃŒberlagert)
+#                 (es gibt aber weiterhin unerwÃŒnschte Ãberlagerungen, z.B. GebÃ€udeflÃ€chen ÃŒber Punkte Industrie und Gewerbe oder GewÃ€sser Linien/Grenzen ÃŒber VerkehrsflÃ€chen)
+#             Titel von Layer "pg" geÃ€ndert, z.T. auch von anderen Layern
+#             wms_abstract angepasst (Stand und Link zur Symbolliste)
+#             Alle OFFSETs auskommentiert (kÃ¶nnen dann gelÃ¶scht werden), weil Positionierung jetzt ÃŒber Anchorpoint lÃ€uft
+#  2019-05  -> fÃŒr die Verwendung mÃŒssen zusÃ€tzlich zum Maptrimmer die Extents fÃŒr die einzelnen Layer eingefÃŒgt werden
+#  2019-08-13 User ms6 -> ms7
+#  2020-01-28 F.J.: Name in CLASS auskommentiert im Layer: Linien (Verkehr), Punkte (Verkehr), Linien (GebÃ€ude). Darstellung in Legende ist sonst fehlerhaft.
+#
 # ToDo:
+# - LAYER "bgn" = GebÃ€ude / NebengebÃ€ude lfd. Nr. - zeigt nichts an!
+# - Vergebene Hausnummern, zu denen noch kein GebÃ€ude-Objekt existiert anzeigen. In Klammern am Rand des FlurstÃŒcks.
 # - PATTERN in Flurgrenze und Co. prÃŒfen. Asynchron? (Siehe SW-Version)
 # - 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
+# - ggf. alle Offsets entfernen (Sind schon auskommentiert)
 #
 ### Erlaeuterungen:
@@ -32,6 +48,6 @@
 #
 ## MapProxy:
-#  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
+#  Layer fÃŒr FlÃ€che: LAYERS=fh,fb,fe,fw,fs,fi,fv,fg
+#  Layer fÃŒr Strichzeichnung: LAYERS=gt,lt,pt,bt,gh,bh,gb,bb,ge,pe,be,gs,ps,bs,gw,lw,pw,bw,bwl,gi,li,bi,lv,gv,pv,bv,lg,gg,pg,pg2,pi,bgh,bgn,bgd,bgf,bgg,bgz,bl,bll,gff,lfn,lff,pff,bfn
 #
 ## Layername:
@@ -68,63 +84,86 @@
 
 ### Generierte Layer-Reihenfolge:
-##			*/ FlÃ€chen + Grenzen
+## */ alle FlÃ€chen (ohne GebÃ€ude) in einer Gruppe "/FlÃ€chennutzung (FlÃ€chen)"
 # fh FriedhÃ¶fe / FlÃ€chen
+# fb WohnBauflÃ€chen / FlÃ€chen
 # fe Vegetation / FlÃ€chen
-# fb WohnbauflÃ€chen / FlÃ€chen
-# gt Topographie / Grenzen
-# ge Vegetation / Grenzen
-# gh FriedhÃ¶fe / Grenzen
-# gb WohnbauflÃ€chen / Grenzen
 # fw GewÃ€sser / FlÃ€chen
 # fs Sport und Freizeit / FlÃ€chen
+# fi Industrie und Gewerbe / FlÃ€chen
+# fv Verkehr / FlÃ€chen
+
+## */ Gruppe Topographie
+# gt Topographie / Grenzen
+# lt Topographie / Linien
+# pt Topographie / Punkte
+# bt Topographie / Beschriftungen
+
+## */ Gruppe FriedhÃ¶fe
+# gh FriedHÃ¶fe / Grenzen
+# bh FriedHÃ¶fe / Beschriftungen
+
+## */ Gruppe WohnBauflÃ€chen
+# gb WohnBauflÃ€chen / Grenzen
+# bb WohnBauflÃ€chen / Beschriftungen
+
+## */ Gruppe Vegetation
+# ge Vegetation / Grenzen
+# pe Vegetation / Punkte
+# be Vegetation / Beschriftungen
+
+## */ Gruppe Sport und Freizeit
 # gs Sport und Freizeit / Grenzen
+# ps Sport und Freizeit / Punkte
+# bs Sport und Freizeit / Beschriftungen
+
+## */ Gruppe GewÃ€sser
 # gw GewÃ€sser / Grenzen
-# fi Industrie und Gewerbe / FlÃ€chen
+# lw GewÃ€sser / Linien
+# pw GewÃ€sser / Punkte
+# bw GewÃ€sser / Beschriftungen
+# bwl GewÃ€sser / Beschriftungen (Linien)
+
+## */ Gruppe Industrie und Gewerbe
 # gi Industrie und Gewerbe / Grenzen
-# fv Verkehr / FlÃ€chen
+# li Industrie und Gewerbe / Linien
+# pi Industrie und Gewerbe / Punkte
+# bi Industrie und Gewerbe / Beschriftungen
+
+## */ Gruppe Verkehr
 # gv Verkehr / Grenzen
+# lv Verkehr / Linien
+# pv Verkehr / Punkte
+# bv Verkehr / Beschriftungen
+
+## */ Gruppe GebÃ€ude
 # fg GebÃ€ude / FlÃ€chen
 # gg GebÃ€ude / Grenzen
+# lg GebÃ€ude / Linien
+# pg GebÃ€ude / Punkte
+# pg2 GebÃ€ude / Punkte     QGIS/ALKIS: GebÃ€ude / GebÃ€ude / Punkte
+# bgh GebÃ€ude / Hausnummer (HauptgebÃ€ude)
+# bgn GebÃ€ude / NebengebÃ€ude lfd. Nr.
+# bgd GebÃ€ude / Dachform
+# bgf GebÃ€ude / Funktion
+# bgg GebÃ€ude / Geschosse
+# bgz GebÃ€ude / Zustand
+
+## */ Gruppe Rechtliche Festlegung
 # gr Rechtliche Festlegungen / Grenzen
+# br Rechtliche Festlegungen / Beschriftungen
+
+## */ Gruppe Politische Grenzen
+# lp Politische Grenzen / Linien
+
+## */ Gruppe Lagebezeichnungen
+# bl Lagebezeichnungen / Beschriftungen
+# bll Lagebezeichnungen / Beschriftungen (Linien)
+
+## */ Gruppe FlurstÃŒcke
 # gff FlurstÃŒcke / FlÃ€chen / Grenzen
-
-##			*/ Linien
-# lt Topographie / Linien
-# lw GewÃ€sser / Linien
-# lv Verkehr / Linien
-# li Industrie und Gewerbe / Linien 
-# lg GebÃ€ude / Linien
-# lp Politische Grenzen / Linien
 # lfn FlurstÃŒcke / Nummern / Linien
 # lff FlurstÃŒcke / FlÃ€chen / Linien
-
-##			*/ Punkte
 # pff FlurstÃŒcke / FlÃ€chen / Punkte
-# pg GebÃ€ude / Punkte
-# pv Verkehr / Punkte
-# pe Vegetation / Punkte
-# pw GewÃ€sser / Punkte
-# pi Industrie und Gewerbe / Punkte
-# ps Sport und Freizeit / Punkte
-# pt Topographie / Punkte
-
-##			*/ Beschriftungen
 # bfn FlurstÃŒcke / Nummern / Beschriftungen
-# 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
-# bv Verkehr / Beschriftungen
-# bh FriedhÃ¶fe / Beschriftungen
-# be Vegetation / Beschriftungen
-# bw GewÃ€sser / Beschriftungen
-# bi Industrie und Gewerbe / Beschriftungen
-# bs Sport und Freizeit / Beschriftungen
-# bb WohnbauflÃ€chen / Beschriftungen
-# bt Topographie / Beschriftungen
 
 	NAME "alkis"
@@ -145,14 +184,14 @@
 		METADATA
 			wms_title "ALKIS"
-			wms_abstract "ALKIS *gkz* farbige Variante - Konverter PostNAS, Version NorGIS-Plugin, Stand vom November 2017. Die Legende wÃ€re zu umfangreich. Sie wird hier nur fÃŒr eine kleine Anzahl Objekte ausgegeben. Eine vollstÃ€ndige Beschreibung der Zeichenvorschrift fÃŒr ALKIS findet man z.B. in http://sg.geodatenzentrum.de/web_public/adv/sk/alkis/docAlkisFB/SymbologyCatalog.html "
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_abstract "ALKIS *gkz* farbige Variante - Konverter PostNAS, Version NorGIS-Plugin, Stand vom Juni 2019. Die Legende wÃ€re zu umfangreich. Sie wird hier nur fÃŒr eine kleine Anzahl Objekte ausgegeben. Eine vollstÃ€ndige Beschreibung der Zeichenvorschrift fÃŒr ALKIS findet man z.B. in http://sg.geodatenzentrum.de/web_public/adv/sk/v1.1/alkis/docAlkisFB/SymbologyCatalog.html "
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
 			wms_bbox_extended "true"
 			wms_encoding "UTF-8"
-			wms_onlineresource "http://10.0.100.79/cgi-bin/mapserv7?map=/opt/gdi/alkisn/alkis*gkz*.map"
+			wms_onlineresource "http://ows.krz.de/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 die Variable [map] ausgelesen um die richtige DB der Auskunft zu finden.
 			wms_feature_info_mime_type "text/html"
 			wms_schema_location ".."
-			wms_keywordlist "ALKIS,FlurstÃŒck,NAS"
+			wms_keywordlist "GKZ*gkz*,ALKIS,FlurstÃŒck,NAS"
 			wms_fees "none"
 			wms_accessconstraints "fÃŒr den Dienstgebrauch"
@@ -165,6 +204,5 @@
 			#  dass der Layer nicht erlaubt ist. Also alles pauschal erlauben.
 			wms_enable_request "*"
-
-			include "meta_contact.map" # ersetzen durch eine individuelle Datei je Katasteramt
+			include "meta600.map" # Kontakt krz
 		END
 	END
@@ -173,7 +211,7 @@
 	## 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.
+	##    aus Datenbank-Feldern geholt werden. Das kÃ¶nnte die Legende nicht abbilden.
 	## 3. Einige Klassen haben keine Namen sondern Symbolnummern oder Ã€hnliches.
-	## 4. Die Sybole werden viel zu groÃ gezeichnet. Das liegt vermutlich an "SIZEUNIT METERS".
+	## 4. Die Symbole werden viel zu groÃ gezeichnet. Das liegt vermutlich an "SIZEUNIT METERS".
 	LEGEND
 		STATUS ON
@@ -186,17 +224,17 @@
 	END
 
-	## Layer der Typen FlÃ€chen + Grenzen
+	## Gruppe mit den FlÃ€chen (ohne GebÃ€ude)
 
 	LAYER NAME "fh" # FriedhÃ¶fe / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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"
-		#EXTENT  ...
+		EXTENT ..
 		MAXSCALEDENOM 25000
 		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/FriedhÃ¶fe"
-			wms_title "FlÃ€chen"
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/FlÃ€chennutzung (FlÃ€chen)"
+			wms_title "FriedhÃ¶fe (FlÃ€chen)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -216,15 +254,15 @@
 	END
 
-	LAYER NAME "fe"	# Vegetation / FlÃ€chen
+	LAYER NAME "fb" # WohnBauflÃ€chen / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 25000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Vegetation"
-			wms_title "FlÃ€chen"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 500000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/FlÃ€chennutzung (FlÃ€chen)"
+			wms_title "WohnbauflÃ€chen (FlÃ€chen)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -236,53 +274,23 @@
 		UNITS METERS
 		CLASS
-			NAME "Brachland, Heide, Moor, Sumpf, Torf"
-			EXPRESSION "1404"
-			STYLE
-				COLOR 242 234 232
-			END
-		END
-		CLASS
-			NAME "Garten"
-			EXPRESSION "1406"
-			STYLE
-				COLOR 234 255 211
-			END
-		END
-		CLASS
-		#	NAME "{Ackerland,Hopfen,Landwirtschaft,Spargel,Streuobstacker}"
-			NAME "Ackerland, Hopfen, Landwirtschaft, Spargel, Streuobstacker"
-			EXPRESSION "1409"
-			STYLE
-				COLOR 255 247 191
-			END
-		END
-		CLASS
-			NAME "Wald"
-			EXPRESSION "1414"
-			STYLE
-				COLOR 216 255 216
-			END
-		END
-		CLASS
-		#	NAME "{Rain,Schneise}"
-			NAME "Rain, Schneise"
-			EXPRESSION "1561"
-			STYLE
-				COLOR 234 255 211
-			END
-		END
-	END
-
-	LAYER NAME "fb" # WohnBauflÃ€chen / FlÃ€chen
+			NAME "WohnbauflÃ€che"
+			EXPRESSION "1401"
+			STYLE
+				COLOR 255 234 244
+			END
+		END
+	END
+
+	LAYER NAME "fe"	# Vegetation / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 500000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/WohnbauflÃ€chen"
-			wms_title "FlÃ€chen"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 25000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/FlÃ€chennutzung (FlÃ€chen)"
+			wms_title "Vegetation (FlÃ€chen)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -294,193 +302,53 @@
 		UNITS METERS
 		CLASS
-			NAME "WohnbauflÃ€che"
-			EXPRESSION "1401"
-			STYLE
-				COLOR 255 234 244
-			END
-		END
-	END
-
-	LAYER NAME "gt" # Topographie / Grenzen
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 10000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Topographie"
-			wms_title "Grenzen"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		TYPE POLYGON
-		UNITS METERS
-		CLASS
-		#-	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
-	END
-
-	LAYER NAME "ge"	# VEgetation / Grenzen
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Vegetation"
-			wms_title "Grenzen"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		TYPE POLYGON
-		UNITS METERS
-		CLASS
-		#-	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
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 255 0
-				SIZE 0.18
-				WIDTH 0.18
+			NAME "Brachland, Heide, Moor, Sumpf, Torf"
+			EXPRESSION "1404"
+			STYLE
+				COLOR 242 234 232
+			END
+		END
+		CLASS
+			NAME "Garten"
+			EXPRESSION "1406"
+			STYLE
+				COLOR 234 255 211
+			END
+		END
+		CLASS
+		#	NAME "{Ackerland,Hopfen,Landwirtschaft,Spargel,Streuobstacker}"
+			NAME "Ackerland, Hopfen, Landwirtschaft, Spargel, Streuobstacker"
+			EXPRESSION "1409"
+			STYLE
+				COLOR 255 247 191
+			END
+		END
+		CLASS
+			NAME "Wald"
+			EXPRESSION "1414"
+			STYLE
+				COLOR 216 255 216
 			END
 		END
 		CLASS
 		#	NAME "{Rain,Schneise}"
-		#-	NAME "Rain, Schneise"
-			EXPRESSION "rn1561"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 255 0
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	NAME '{"Vegetationsmerkmal, Zustand nass"}'
-		#-	NAME 'Vegetationsmerkmal, Zustand nass'
-			EXPRESSION "rn1563"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 204 204
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	NAME "[2515]"
-			EXPRESSION "2515"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 153 153 153
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#-	NAME "Wald"
-			EXPRESSION "2517"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 255 0
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-	END
-
-	LAYER NAME "gh"	# FriedHÃ¶fe / Grenzen
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/FriedhÃ¶fe"
-			wms_title "Grenzen"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		TYPE POLYGON
-		UNITS METERS
-		CLASS
-		#	NAME "[2515]"
-			EXPRESSION "2515"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 153 153 153
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-	END
-
-	LAYER NAME "gb"	# WohnBauflÃ€chen / Grenzen
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 10000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/WohnbauflÃ€chen"
-			wms_title "Grenzen"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		TYPE POLYGON
-		UNITS METERS
-		CLASS
-		#	NAME "[2515]"
-			EXPRESSION "2515"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 153 153 153
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-	END
-
+			NAME "Rain, Schneise"
+			EXPRESSION "1561"
+			STYLE
+				COLOR 234 255 211
+			END
+		END
+	END
+	
 	LAYER NAME "fw"	# GewÃ€sser / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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"
-		#EXTENT  ...
+		EXTENT ..
 		MAXSCALEDENOM 500000
 		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/GewÃ€sser"
-			wms_title "FlÃ€chen"
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/FlÃ€chennutzung (FlÃ€chen)"
+			wms_title "GewÃ€sser (FlÃ€chen)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -514,4 +382,5 @@
 			END
 		END
+#		##Gehoert die folgende Klasse wirklich zu den Gewaessern?  -> wird in Gem. Hille (GKZ 430) und Kreis Minden (GKZ300) so verwendet
 		CLASS
 		#-	NAME '{"Historische Mauer","Mauerkante links,","Mauerkante rechts,","Mauermitte,","Sonstige historische Mauer",Stadtmauer,"StÃŒtzmauer links",StÃŒtzmauermitte,"StÃŒtzmauer rechts","Ufermauer, Kaimauer"}'
@@ -521,17 +390,24 @@
 			END
 		END
-	END
-
+		CLASS
+		#-	NAME '{"Bach, nicht stÃ€ndig Wasser fÃŒhrend","Fleet, nicht stÃ€ndig Wasser fÃŒhrend","Graben, nicht stÃ€ndig Wasser fÃŒhrend","Teich, nicht stÃ€ndig Wasser fÃŒhrend","Untergeordnetes GewÃ€sser, nicht stÃ€ndig Wasser fÃŒhrend"}'
+			EXPRESSION "1572"
+			STYLE
+				COLOR 226 255 255
+			END 
+		END 
+	END
+		
 	LAYER NAME "fs"	# Sport und Freizeit / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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"
-		#EXTENT  ...
+		EXTENT ..
 		MAXSCALEDENOM 25000 # 500000
 		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Sport und Freizeit"
-			wms_title "FlÃ€chen"
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/FlÃ€chennutzung (FlÃ€chen)"
+			wms_title "Sport und Freizeit (FlÃ€chen)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -550,4 +426,11 @@
 		END
 		CLASS
+			NAME "Stadion"
+			EXPRESSION "1522"
+			STYLE
+				COLOR 255 255 255
+			END
+		END
+		CLASS
 			NAME "Ãberdachte TribÃŒne"
 			EXPRESSION "1519"
@@ -579,226 +462,16 @@
 	END
 
-	LAYER NAME "gs"	# Sport und Freizeit / Grenzen
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 10000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Sport und Freizeit"
-			wms_title "Grenzen"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		TYPE POLYGON
-		UNITS METERS
-		CLASS
-		#	NAME "[2515]"
-			EXPRESSION "2515"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 153 153 153
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#-	NAME "Ãberdachte TribÃŒne"
-			EXPRESSION "rn1519"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 81 0 0
-				PATTERN 2.00 1.00 END
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#-	NAME "Hart-, Rasenplatz, Spielfeld"
-			EXPRESSION "rn1520"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 81 0 0
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	NAME "[1524]"
-			EXPRESSION "rn1524"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 81 0 0
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#-	NAME "Schwimmbecken"
-			EXPRESSION "rn1526"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 204 204
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#-	NAME "Rennbahn, Laufbahn, GelÃ€uf"
-			EXPRESSION "rn1521"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 81 0 0
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-	END
-
-	LAYER NAME "gw"	# GewÃ€sser / Grenzen
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/GewÃ€sser"
-			wms_title "Grenzen"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		TYPE POLYGON
-		UNITS METERS
-		CLASS
-		#	NAME '{"Stehendes GewÃ€sser, nicht stÃ€ndig Wasser fÃŒhrend"}'
-		#-	NAME 'Stehendes GewÃ€sser, nicht stÃ€ndig Wasser fÃŒhrend'
-			EXPRESSION "2520"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 204 204
-				PATTERN 4.00 2.00 END
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#-	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
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 204 204
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	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
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 204 204
-				SIZE 0.18
-				WIDTH 0.18
-			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 "rn2510"
-			STYLE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 0 0
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#-	NAME "Unterirdisches GewÃ€sser"
-			EXPRESSION "rn1550"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 204 204
-				PATTERN 0.35 0.35 END
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-	END
-
+	
 	LAYER NAME "fi" # Industrie und Gewerbe / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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  ...
+		EXTENT ..
 		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_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/FlÃ€chennutzung (FlÃ€chen)"
+			wms_title "Industrie und Gewerbe (FlÃ€chen)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -860,136 +533,15 @@
 	END
 
-	LAYER NAME "gi" # Industrie und Gewerbe / Grenzen
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 10000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Industrie und Gewerbe"
-			wms_title "Grenzen"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		TYPE POLYGON
-		UNITS METERS
-		CLASS
-		#	NAME "[2515]"
-			EXPRESSION "2515"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 153 153 153
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#-	NAME "KlÃ€rbecken"
-			EXPRESSION "rn1510"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 204 204
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	NAME "(rn2504)"
-			EXPRESSION "rn2504"
-			STYLE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 0 0
-				PATTERN 0.35 0.35 END
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	NAME '{"FÃ¶rderband, BandstraÃe",Tor}'
-		#-	NAME 'FÃ¶rderband, BandstraÃe, Tor'
-			EXPRESSION "rn2521"
-			STYLE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 0 0
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#-	NAME "VorratsbehÃ€lter, Speicherbauwerk unterirdisch"
-			EXPRESSION "rn1321"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 0 0
-				PATTERN 0.35 0.35 END
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	NAME "[rn1501]"
-			EXPRESSION "rn1501"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 0 0
-				SIZE 0.35
-				WIDTH 0.35
-			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 "Mast"
-			EXPRESSION "rn1306"
-			STYLE
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				OUTLINECOLOR 0 0 0
-				SIZE 0.18
-				WIDTH 0.18
-			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='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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"
-		#EXTENT  ...
+		EXTENT ..
 		MAXSCALEDENOM 25000
 		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Verkehr"
-			wms_title "FlÃ€chen"
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/FlÃ€chennutzung (FlÃ€chen)"
+			wms_title "Verkehr (FlÃ€chen)"
 			#wms_enable_request "GetMap GetLegendGraphic"
 		END
@@ -1059,16 +611,19 @@
 		END
 	END
-
-	LAYER NAME "gv"	# Verkehr / Grenzen
+	
+
+	## Gruppe Topographie
+	
+	LAYER NAME "gt" # Topographie / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Verkehr"
-			wms_title "Grenzen"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 10000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Topographie"
+			wms_title "Grenzen (Topogr.)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -1079,4 +634,2068 @@
 		UNITS METERS
 		CLASS
+		#-	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
+	END
+	
+	LAYER NAME "lt"	# Topographie / Linien
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 10000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Topographie"
+			wms_title "Linien (Topogr.)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		TYPE LINE
+		UNITS METERS
+		CLASS
+		#-	NAME "Damm, Wall, Deich, Graben, Knick, Wallkante"
+			EXPRESSION "2620"
+			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 '{"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 "pt"	# Topographie / Punkte
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 10000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Topographie"
+			wms_title "Punkte (Topogr.)"
+			wms_enable_request "!GetLegendGraphic"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+		CLASS
+		#- 	NAME "Felsen, Felsblock, Felsnadel"
+			EXPRESSION "3627"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.3476
+				SYMBOL "norGIS_alkis3627_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Busch, Hecke, Knick"
+			EXPRESSION "3601"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.4275
+				SYMBOL "norGIS_alkis3601_1"
+			END
+		END
+
+		# "Internal Server Error" wenn diese Class aktiv ist.
+		#  Tritt nur auf bei kleinen MaÃstÃ€ben (> 1000) und an manchen Stellen.
+		#  Jan2019:
+		#  Tritt auf, wenn in DB in der Tabelle "po_points" fuer "signaturnummer"=3632 ein "drehwinkel_grad"=0 eingetragen ist.
+		#  Workaround: in der DB in der Tabelle "po_points" die entsprechenden Eintraege suchen (signaturnummer ='3632' AND drehwinkel_grad =0) ...
+		#  ... und "drehwinkel_grad" auf einen sehr kleinen Wert, wie z.B. 0.000000001, setzen.
+		CLASS
+	 	#- 	NAME "Busch, Hecke, Knick"
+	 		EXPRESSION "3632"
+	 		STYLE
+	 			ANGLE [drehwinkel_grad]
+	 			MINSIZE 1
+	 			SIZE 2.0
+	 			SYMBOL "norGIS_alkis3632_1"
+	 		END
+	  	END
+		CLASS
+		#-	NAME "HÃ¶hleneingang"
+			EXPRESSION "3625"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.9654
+				SYMBOL "norGIS_alkis3625_1"
+			END
+		END
+		CLASS
+		#-	NAME "Besonderer topographischer Punkt"
+			EXPRESSION "3629"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.0197
+				SYMBOL "norGIS_alkis3629_1"
+			END
+		END
+		CLASS
+		#-	NAME "Felsen, Felsblock, Felsnadel"
+			EXPRESSION "3634"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.3309
+				SYMBOL "norGIS_alkis3634_1"
+			END
+		END
+	END
+	
+	LAYER NAME "bt" # Topographie / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		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='Topographie' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND point IS NOT NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		EXTENT ..
+		LABELITEM "text"
+		MAXSCALEDENOM 10000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Topographie"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen (Topogr.)"
+		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
+	
+	
+	## Gruppe FriedhÃ¶fe
+	
+	LAYER NAME "gh"	# FriedHÃ¶fe / Grenzen
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 5000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/FriedhÃ¶fe"
+			wms_title "Grenzen (FriedhÃ¶fe)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		TYPE POLYGON
+		UNITS METERS
+		CLASS
+		#	NAME "[2515]"
+			EXPRESSION "2515"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 153 153 153
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+	END
+	
+	LAYER NAME "bh"	# FriedHÃ¶fe / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		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='FriedhÃ¶fe' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND point IS NOT 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:3034 EPSG:3857"
+			wms_layer_group	"/FriedhÃ¶fe"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen (FriedhÃ¶fe)"
+		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
+
+
+	## Gruppe WohnbauflÃ€chen
+	
+		LAYER NAME "gb"	# WohnBauflÃ€chen / Grenzen
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 10000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/WohnbauflÃ€chen"
+			wms_title "Grenzen (Wohnbaufl.)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		TYPE POLYGON
+		UNITS METERS
+		CLASS
+		#	NAME "[2515]"
+			EXPRESSION "2515"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 153 153 153
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+	END
+	
+	# Dieser Layer wurde 2017-10 aus alkis0300 NICHT generiert.
+	LAYER NAME "bb"	# WohnBauflÃ€chen / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		LABELITEM "text"
+		MAXSCALEDENOM 10000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/WohnbauflÃ€chen"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen (Wohnbaufl.)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS INCHES
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT # ANNOTATION
+		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
+
+
+	## Gruppe Vegetation
+	
+	LAYER NAME "ge"	# Vegetation / Grenzen
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 5000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Vegetation"
+			wms_title "Grenzen (Vegetation)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		TYPE POLYGON
+		UNITS METERS
+		CLASS
+		#-	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
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 255 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME "{Rain,Schneise}"
+		#-	NAME "Rain, Schneise"
+			EXPRESSION "rn1561"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 255 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME '{"Vegetationsmerkmal, Zustand nass"}'
+		#-	NAME 'Vegetationsmerkmal, Zustand nass'
+			EXPRESSION "rn1563"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 204 204
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME "[2515]"
+			EXPRESSION "2515"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 153 153 153
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Wald"
+			EXPRESSION "2517"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 255 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+	END
+	
+	LAYER NAME "pe"	# Vegetation / Punkte
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 5000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Vegetation"
+			wms_title "Punkte (Vegetation)"
+			wms_enable_request "!GetLegendGraphic"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+		CLASS
+		#- 	NAME "Baumschule"
+			EXPRESSION "3446"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 4.192
+				SYMBOL "norGIS_alkis3446_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Sumpf"
+			EXPRESSION "3478"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.065
+				SYMBOL "norGIS_alkis3478_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Garten"
+			EXPRESSION "3421"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.8127
+				SYMBOL "norGIS_alkis3421_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Streuobstacker"
+			EXPRESSION "3440"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 4.192
+				SYMBOL "norGIS_alkis3440_1"
+			END
+		END
+		CLASS
+		#-	NAME "Obstplantage"
+			EXPRESSION "3450"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 4.192
+				SYMBOL "norGIS_alkis3450_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Quelle"
+			EXPRESSION "3613"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.0197
+				SYMBOL "norGIS_alkis3613_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Nadelbaum"
+			EXPRESSION "3597"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 2
+				SIZE 4.8638
+				SYMBOL "norGIS_alkis3597_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Obstbaumplantage"
+			EXPRESSION "3452"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 4.192
+				SYMBOL "norGIS_alkis3452_1"
+			END
+		END
+		CLASS
+		#-	NAME "DÃŒne, Sand"
+			EXPRESSION "3484"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.0137
+				SYMBOL "norGIS_alkis3484_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Nadelwald"
+			EXPRESSION "3460"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 4.8491
+				SYMBOL "norGIS_alkis3460_1"
+			END
+		END
+	    CLASS
+		#-	NAME "Moor"
+			EXPRESSION "3476"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.6088
+				SYMBOL "norGIS_alkis3476_1"
+			END
+		END	
+		CLASS
+		#- 	NAME "Unland"
+			EXPRESSION "3480"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 4.0107
+				SYMBOL "norGIS_alkis3480_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Mischwald"
+			EXPRESSION "3462"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.3703
+				SYMBOL "norGIS_alkis3462_1"
+			END
+		END
+		CLASS
+		#-	NAME "Fels"
+			EXPRESSION "3481"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.7614
+				SYMBOL "norGIS_alkis3481_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Gras"
+			EXPRESSION "3413"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 0.4305
+				SYMBOL "norGIS_alkis3413_1"
+			END
+		END
+		CLASS
+		#-	NAME "Obststrauchplantage"
+			EXPRESSION "3454"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.8807
+				SYMBOL "norGIS_alkis3454_1"
+			END
+		END
+		CLASS
+		#- 	NAME "ZierflÃ€che"
+			EXPRESSION "3605"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 2.4245
+				SYMBOL "norGIS_alkis3605_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Streuobstwiese"
+			EXPRESSION "3441"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 4.192
+				SYMBOL "norGIS_alkis3441_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Laubwald"
+			EXPRESSION "3458"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.3763
+				SYMBOL "norGIS_alkis3458_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Laubbaum"
+			EXPRESSION "3599"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 2
+				SIZE 4.567
+				SYMBOL "norGIS_alkis3599_1"
+			END
+		END
+		CLASS
+		#-	NAME "RÃ¶hricht, Schilf"
+			EXPRESSION "3603"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.7388
+				SYMBOL "norGIS_alkis3603_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Heide"
+			EXPRESSION "3474"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.9261
+				SYMBOL "norGIS_alkis3474_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Mischwald"
+			EXPRESSION "3470"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 4.8718
+				SYMBOL "norGIS_alkis3470_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Busch, Hecke, Knick"
+			EXPRESSION "3601"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.4275
+				SYMBOL "norGIS_alkis3601_1"
+			END
+		END
+		CLASS
+		#-	NAME "Steine, Schotter / Wellenbrecher, Buhne"
+			EXPRESSION "3482"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.2856
+				SYMBOL "norGIS_alkis3482_1"
+			END
+		END
+		CLASS
+		#-	NAME "Spargel"
+			EXPRESSION "3444"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 2.34
+				SYMBOL "norGIS_alkis3444_1"
+			END
+		END
+	END
+	
+	LAYER NAME "be"	# Vegetation / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		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='Vegetation' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND point IS NOT 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:3034 EPSG:3857"
+			wms_layer_group	"/Vegetation"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen (Vegetation)"
+		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
+
+
+	## Gruppe Sport und Freizeit
+	
+	LAYER NAME "gs"	# Sport und Freizeit / Grenzen
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 10000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Sport und Freizeit"
+			wms_title "Grenzen (Sport u. Freizeit)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		TYPE POLYGON
+		UNITS METERS
+		CLASS
+		#	NAME "[2515]"
+			EXPRESSION "2515"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 153 153 153
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Stadion"
+			EXPRESSION "rn1522"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 81 0 0
+				SIZE 0.5
+				WIDTH 0.5
+			END
+		END
+		CLASS
+		#-	NAME "Ãberdachte TribÃŒne"
+			EXPRESSION "rn1519"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 81 0 0
+				PATTERN 2.00 1.00 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Hart-, Rasenplatz, Spielfeld"
+			EXPRESSION "rn1520"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 81 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME "[1524]"
+			EXPRESSION "rn1524"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 81 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Schwimmbecken"
+			EXPRESSION "rn1526"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 204 204
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "Rennbahn, Laufbahn, GelÃ€uf"
+			EXPRESSION "rn1521"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 81 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+	END
+	
+	LAYER NAME "ps"	# Sport und Freizeit / Punkte
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 10000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Sport und Freizeit"
+			wms_title "Punkte (Sport u. Freizeit)"
+			wms_enable_request "!GetLegendGraphic"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+		CLASS
+		#- 	NAME "Spielplatz, Bolzplatz"
+			EXPRESSION "3423"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 7.3643
+				SYMBOL "norGIS_alkis3423_1"
+			END
+		END
+		CLASS
+		#-	NAME "Skating"
+			EXPRESSION "3409"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 7.3643
+				SYMBOL "norGIS_alkis3409_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Kleingarten"
+			EXPRESSION "3419"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 6.4126
+				SYMBOL "norGIS_alkis3419_1"
+			END
+		END
+		CLASS
+		#-	NAME "Gradierwerk"
+			EXPRESSION "3525"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 6.0727
+				SYMBOL "norGIS_alkis3525_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Garten"
+			EXPRESSION "3421"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.8127
+				SYMBOL "norGIS_alkis3421_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Rasen"
+			EXPRESSION "3413"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 0.4305
+				SYMBOL "norGIS_alkis3413_1"
+			END
+		END
+		CLASS
+		#-	NAME "Zoo"
+			EXPRESSION "3410"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 7.3643
+				SYMBOL "norGIS_alkis3410_1"
+			END
+		END
+		CLASS
+		#-	NAME "SchieÃanlage"
+			EXPRESSION "3524"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 6.3673
+				SYMBOL "norGIS_alkis3524_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Park"
+			EXPRESSION "3415"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.6648
+				SYMBOL "norGIS_alkis3415_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Campingplatz"
+			EXPRESSION "3412"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 7.7268
+				SYMBOL "norGIS_alkis3412_1"
+			END
+		END
+		CLASS
+		#-	NAME "Safaripark, Wildpark"
+			EXPRESSION "3411"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 7.3643
+				SYMBOL "norGIS_alkis3411_1"
+			END
+		END
+	END
+
+	LAYER NAME "bs"	# Sport und Freizeit / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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 '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='Sport und Freizeit' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND point IS NOT NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		EXTENT ..
+		LABELITEM "text"
+		MAXSCALEDENOM 10000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Sport und Freizeit"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen (Sport u. Freizeit)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS INCHES
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT # ANNOTATION
+		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
+
+
+	## Gruppe GewÃ€sser
+	
+	LAYER NAME "gw"	# GewÃ€sser / Grenzen
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 5000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GewÃ€sser"
+			wms_title "Grenzen (GewÃ€sser)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		TYPE POLYGON
+		UNITS METERS
+		CLASS
+		#	NAME '{"Stehendes GewÃ€sser, nicht stÃ€ndig Wasser fÃŒhrend"}'
+		#-	NAME 'Stehendes GewÃ€sser, nicht stÃ€ndig Wasser fÃŒhrend'
+			EXPRESSION "2520"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 204 204
+				PATTERN 4.00 2.00 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	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
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 204 204
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	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
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 204 204
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+#		## gehÃ¶rt diese Klasse zu GewÃ€sser?  -> wird in Gem. Hille (GKZ430) und Kreis Minden (GKZ300) so verwendet 
+		CLASS
+		#	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
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 204 204
+				PATTERN 0.35 0.35 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME '{"Bach, nicht stÃ€ndig Wasser fÃŒhrend","Fleet, nicht stÃ€ndig Wasser fÃŒhrend","Graben, nicht stÃ€ndig Wasser fÃŒhrend","Teich, nicht stÃ€ndig Wasser fÃŒhrend","Untergeordnetes GewÃ€sser, nicht stÃ€ndig Wasser fÃŒhrend"}'
+			EXPRESSION "rn1572"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 204 204
+				PATTERN 4.00 2.00 END 
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME '{"Bach, trocken, versiegt","Fleet, trocken, versiegt","Graben, trocken, versiegt","Teich, trocken, versiegt","Untergeordnetes GewÃ€sser, trocken, versiegt"}'
+			EXPRESSION "rn1573"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 204 204
+				PATTERN 1.00 2.00 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+	END
+	
+	LAYER NAME "lw" # GewÃ€sser / Linien
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 5000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GewÃ€sser"
+			wms_title "Linien (GewÃ€sser)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		TYPE LINE
+		UNITS METERS
+		CLASS
+		#	NAME '{Lahnung,SchÃ¶pfwerk,"Sonstiges Bauwerk im GewÃ€sserbereich",Sperrwerk,Wehr}'
+		#-	NAME 'Bauwerk im GewÃ€sserbereich'
+			EXPRESSION "2003"
+			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 '{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
+			#	OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 0 204 204
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	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
+			#	OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 0 204 204
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				PATTERN 4.00 2.00 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME '{"Bach, trocken, versiegt","Fleet, trocken, versiegt","Graben, trocken, versiegt","Grabenkante links, trocken versiegt","Grabenkante rechts, trocken versiegt","Grabenmitte, trocken versiegt","Untergeordnetes GewÃ€sser, trocken, versiegt"}'
+		#	NAME "(2595)"
+			EXPRESSION "2595"
+			STYLE
+				COLOR 255 255 255
+			#	OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 0 204 204
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				PATTERN 1.00 2.00 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	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
+			#	OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 0 204 204
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				PATTERN 0.35 0.35 END
+				SIZE 0.18
+				WIDTH 0.18
+			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 "pw"	# GewÃ€sser / Punkte
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 5000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GewÃ€sser"
+			wms_title "Punkte (GewÃ€sser)"
+			wms_enable_request "!GetLegendGraphic"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+		CLASS
+		#- 	NAME "Unterirdisches FlieÃgewÃ€sser"
+			EXPRESSION "3619"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.2236
+				SYMBOL "norGIS_alkis3619_1"
+			END
+		END
+		CLASS
+		#- 	NAME "FlieÃgewÃ€sser"
+			EXPRESSION "3488"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.2236
+				SYMBOL "norGIS_alkis3488_1" # Pfeil
+		# FEHLER: Bei Drehung wird oben/unten abgeschnitten.
+		# Siehe: https://github.com/mapserver/mapserver/pull/5264
+		# http://freegis.org/pipermail/mapserver-de/2016-April/004793.html
+			END
+		END
+		CLASS
+		#	NAME "[3653]"
+			EXPRESSION "3653"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.2009
+				SYMBOL "norGIS_alkis3653_1"
+			END
+		END
+		CLASS
+		#- 	NAME "GewÃ€sser"
+			EXPRESSION "3490"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.3369
+				SYMBOL "norGIS_alkis3490_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Quelle"
+			EXPRESSION "3613"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.0197
+				SYMBOL "norGIS_alkis3613_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 "(3595)"
+			EXPRESSION "3595"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.2009
+				SYMBOL "norGIS_alkis3595_1"
+			END
+		END
+		CLASS
+		#	NAME "(3596)"
+			EXPRESSION "3596"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 1
+				SIZE 3.6936
+				SYMBOL "norGIS_alkis3596_1"
+			END
+		END
+		CLASS
+		#	NAME "(3592)"
+			EXPRESSION "3592"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.2009
+				SYMBOL "norGIS_alkis3592_1"
+			END
+		END
+		CLASS
+		#- 	NAME "FlieÃgewÃ€sser, nicht stÃ€ndig Wasser fÃŒhrend"
+			EXPRESSION "3621"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1.2236
+				SYMBOL "norGIS_alkis3621_1"
+			END
+		END
+	END
+	
+	## +++ 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.75 port=5432 user='ms7'"
+		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 '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='GewÃ€sser' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND point IS NOT 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:3034 EPSG:3857"
+			wms_layer_group	"/GewÃ€sser"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen Punkte (GewÃ€sser)"
+		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
+
+	# NEUER LAYER Jan. 2019
+	LAYER NAME "bwl"	# GewÃ€sser / Beschriftungen (Linien)
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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,st_offsetcurve(line,0.125*skalierung*grad_pt,'') 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 line IS NOT 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:3034 EPSG:3857"
+			wms_layer_group	"/GewÃ€sser"
+			wms_title "Beschriftungen Linien (GewÃ€sser)"
+		#	wms_title "Beschriftungen"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS INCHES
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE LINE  #Annotation
+		UNITS METERS
+		CLASS
+			LABEL
+				ANGLE FOLLOW
+				ANTIALIAS TRUE
+				FONT [font_umn]
+				SIZE [size_umn]
+				BUFFER 2
+				COLOR [color_umn]
+				FORCE TRUE
+			#	OFFSET 0 0
+				OUTLINECOLOR 255 255 255
+				POSITION CC
+				PRIORITY 10
+			#	SHADOWSIZE 0 0
+				TYPE TRUETYPE
+			END
+		END
+	END
+	
+
+	## Gruppe Industrie und Gewerbe
+	
+	LAYER NAME "gi" # Industrie und Gewerbe / Grenzen
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 10000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Industrie und Gewerbe"
+			wms_title "Grenzen (Industrie u. Gewerbe)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		TYPE POLYGON
+		UNITS METERS
+		CLASS
+		#	NAME "[2515]"
+			EXPRESSION "2515"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 153 153 153
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "KlÃ€rbecken"
+			EXPRESSION "rn1510"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 204 204
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME "(rn2504)"
+		#-  NAME '{"BandstraÃe, unter der ErdoberflÃ€che","BandstraÃe, unter der WasseroberflÃ€che","FÃ¶rderband, unter der ErdoberflÃ€che","FÃ¶rderband, unter der WasseroberflÃ€che"}'
+			EXPRESSION "rn2504"
+			STYLE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				PATTERN 0.35 0.35 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME '{"FÃ¶rderband, BandstraÃe",Tor}'
+		#-	NAME 'FÃ¶rderband, BandstraÃe, Tor'
+			EXPRESSION "rn2521"
+			STYLE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	NAME "VorratsbehÃ€lter, Speicherbauwerk unterirdisch"
+			EXPRESSION "rn1321"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				PATTERN 0.35 0.35 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME "[rn1501]"
+			EXPRESSION "rn1501"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				SIZE 0.35
+				WIDTH 0.35
+			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 "Mast"
+			EXPRESSION "rn1306"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				SIZE 0.18
+				WIDTH 0.18
+			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 "li"	# Industrie und Gewerbe / Linien
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 10000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Industrie und Gewerbe"
+			wms_title "Linien (Industrie u. Gewerbe)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		TYPE LINE
+		UNITS METERS
+		CLASS
+		#	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
+			#	OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 0 0 0
+				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
+			END
+		END
+	END
+	
+	LAYER NAME "pi"	# Industrie und Gewerbe / Punkte
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 10000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Industrie und Gewerbe"
+			wms_title "Punkte (Industrie u. Gewerbe)"
+			wms_enable_request "!GetLegendGraphic"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+		CLASS
+		#	NAME "(3402)"
+			EXPRESSION "3402"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 7.1603
+				SYMBOL "norGIS_alkis3402_1"
+			END
+		END
+		CLASS
+		#	NAME "(3503)"
+			EXPRESSION "3503"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.8008
+				SYMBOL "norGIS_alkis3503_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Tankstelle"
+			EXPRESSION "3401"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.2343
+				SYMBOL "norGIS_alkis3401_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Umformer"
+			EXPRESSION "3521"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.6935
+				SYMBOL "norGIS_alkis3521_1"
+			END
+		END
+		CLASS
+		#-	NAME "Drehkran"
+			EXPRESSION "3512"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 1
+				SIZE 5.1886
+				SYMBOL "norGIS_alkis3512_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Antenne / Funkmast"
+			EXPRESSION "3506"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 2
+				SIZE 5.2585
+				SYMBOL "norGIS_alkis3506_1"
+			END
+		END
+		CLASS
+		#- 	NAME "VorratsbehÃ€lter"
+			EXPRESSION "3522"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.1949
+				SYMBOL "norGIS_alkis3522_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Schornstein, Schlot, Esse"
+			EXPRESSION "3508"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.3763
+				SYMBOL "norGIS_alkis3508_1"
+			END
+		END
+		 CLASS
+		#-	NAME "Stollenmundloch"
+			EXPRESSION "3509"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.2856
+				SYMBOL "norGIS_alkis3509_1"
+			END
+		END
+		CLASS
+		#-	NAME "Solarzellen"
+			EXPRESSION "3502"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 4.3733
+				SYMBOL "norGIS_alkis3502_1"
+			END
+		END
+		CLASS
+		#-	NAME "Kraftwerk"
+			EXPRESSION "3403"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 7.3643
+				SYMBOL "norGIS_alkis3403_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Mast"
+			EXPRESSION "3504"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 2.1979
+				SYMBOL "norGIS_alkis3504_1"
+			END
+		END
+		CLASS
+		#-	NAME "Portalkran"
+			EXPRESSION "3513"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.189
+				SYMBOL "norGIS_alkis3513_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Windrad"
+			EXPRESSION "3501"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 3
+				SIZE 6.8565
+				SYMBOL "norGIS_alkis3501_1"
+			END
+		END
+		CLASS
+		#-	NAME "Pumpe"
+			EXPRESSION "3523"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 1
+				SIZE 4.6348
+				SYMBOL "norGIS_alkis3523_1"
+			END
+		END
+		CLASS
+		#-	NAME "SchachtÃ¶ffnung"
+			EXPRESSION "3510"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 2.6058
+				SYMBOL "norGIS_alkis3510_1"
+			END
+		END
+		CLASS
+		#-	NAME "Umspannstation"
+			EXPRESSION "3404"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 7.3643
+				SYMBOL "norGIS_alkis3404_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Laufkran, BrÃŒckenlaufkran"
+			EXPRESSION "3514"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 2
+				SIZE 5.235
+				SYMBOL "norGIS_alkis3514_1"
+			END
+		END
+		CLASS
+		#-	NAME "Kran"
+			EXPRESSION "3511"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 1 2
+				SIZE 5.142
+				SYMBOL "norGIS_alkis3511_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Torf"
+			EXPRESSION "3407"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 4.5092
+				SYMBOL "norGIS_alkis3407_1"
+			END
+		END
+		CLASS
+		#-	NAME "Einsteigeschacht"
+			EXPRESSION "3520"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.1949
+				SYMBOL "norGIS_alkis3520_1"
+			END
+		END
+		CLASS
+		#-	NAME "Oberflurhydrant"
+			EXPRESSION "3517"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 1
+				SIZE 4.1987
+				SYMBOL "norGIS_alkis3517_1"
+			END
+		END
+	END
+	
+	LAYER NAME "bi" # Industrie und Gewerbe / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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 '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='Industrie und Gewerbe' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND point IS NOT NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		EXTENT ..
+		LABELITEM "text"
+		MAXSCALEDENOM 10000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Industrie und Gewerbe"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen (Industrie u. Gewerbe)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS INCHES
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT # ANNOTATION
+		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
+	
+	
+	
+	## Gruppe Verkehr
+	
+	LAYER NAME "gv"	# Verkehr / Grenzen
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 5000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Verkehr"
+			wms_title "Grenzen (Verkehr)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		TYPE POLYGON
+		UNITS METERS
+		CLASS
 		#	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'
@@ -1148,4 +2767,15 @@
 		END
 		CLASS
+		#-	NAME '{Fischtreppe,Sicherheitstor,Sperrwerk,"Sonstiges Bauwerk im GewÃ€sserbereich","Sonstige StraÃenverkehrsanlage",Wehr}'
+			EXPRESSION "rn1548"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 153 153 153
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END 
+		CLASS
 		#-	NAME "Fahrbahn"
 			EXPRESSION "rn1540"
@@ -1208,4 +2838,5 @@
 		CLASS
 		#	NAME "(rn1536)"
+		#-	NAME '{"Sonstiges Bauwerk im Verkehrsbereich"}'
 			EXPRESSION "rn1536"
 			STYLE
@@ -1219,4 +2850,5 @@
 		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
@@ -1267,16 +2899,637 @@
 	END
 
+	LAYER NAME "lv"	# Verkehr / Linien 
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 5000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Verkehr"
+			wms_title "Linien (Verkehr)"
+			wms_enable_request "!GetLegendGraphic"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		TYPE LINE
+		UNITS METERS
+		CLASS
+		#	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
+				COLOR 255 255 255
+			#	OPACITY 0
+				WIDTH 0.3535
+			END
+			STYLE
+				COLOR 81 0 0
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				PATTERN 2.00 3.20 END
+				SIZE 0.35
+				WIDTH 0.35
+			END
+		END
+		CLASS
+		#	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
+			#	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 "{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
+			#	OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 153 153 153
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	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
+			#	OPACITY 0
+				WIDTH 0.505
+			END
+			STYLE
+				COLOR 127 127 127
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				SIZE 0.5
+				WIDTH 0.5
+			END
+		END
+		CLASS
+		#	NAME '{"Ausgabekopf - Trennlinie","Kabinenbahn, Umlaufseilbahn","Luftseilbahn, GroÃkabinenbahn",Materialseilbahn,Schwebebahn,Sessellift,"Skilift, Schlepplift"}'
+			EXPRESSION "2001"
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE END
+			STYLE 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 0.1818
+			END
+			STYLE
+				COLOR 0 0 0
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	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
+			#	OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 153 153 153
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				PATTERN 0.35 0.35 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#-	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
+			#	OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 127 127 127
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+	END
+	
+	LAYER NAME "pv"	# Verkehr / Punkte
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 5000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/Verkehr"
+			wms_title "Punkte (Verkehr)"
+			wms_enable_request "!GetLegendGraphic"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+		CLASS
+		#-	NAME "Kilometerstein"
+			EXPRESSION "3556"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 0
+				SIZE 3.1043
+				SYMBOL "norGIS_alkis3556_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Reitweg"
+			EXPRESSION "3430"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3430_1"
+			END
+		END
+		CLASS
+		#- 	NAME "FuÃweg"
+			EXPRESSION "3424"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3424_1"
+			END
+		END
+		CLASS
+		#-	NAME "Haltestelle"
+			EXPRESSION "3554"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.5062
+				SYMBOL "norGIS_alkis3554_1"
+			END
+		END
+		CLASS
+		#-	NAME "Hubschrauberlandeplatz"
+			EXPRESSION "3588"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 6.3672
+				SYMBOL "norGIS_alkis3588_1"
+			END
+		END
+		CLASS
+		#	NAME "(3643)"
+			EXPRESSION "3643"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 1
+				SYMBOL "norGIS_alkis3643_1"
+			END
+		END
+		CLASS
+		#-	NAME "Rastplatz"
+			EXPRESSION "3434"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.4836
+				SYMBOL "norGIS_alkis3434_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Haltepunkt"
+			EXPRESSION "3578"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.1949
+				SYMBOL "norGIS_alkis3578_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Parkplatz"
+			EXPRESSION "3432"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.4836
+				SYMBOL "norGIS_alkis3432_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Radweg"
+			EXPRESSION "3426"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3426_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Rad- und FuÃweg"
+			EXPRESSION "3428"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3428_1"
+			END
+		END
+		CLASS
+		#	NAME "(3574)"
+			EXPRESSION "3574"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.5062
+				SYMBOL "norGIS_alkis3574_1"
+			END
+		END
+		CLASS
+		#	NAME "(3587)"
+			EXPRESSION "3587"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 6.7751
+				SYMBOL "norGIS_alkis3587_1"
+			END
+		END
+	END
+	
+	LAYER NAME "bv" # Verkehr / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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:3034 EPSG:3857"
+			wms_layer_group	"/Verkehr"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen (Verkehr)"
+		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
+	
+	
+	
+	## Gruppe GebÃ€ude
+	
 	LAYER NAME "fg"	# GebÃ€ude / FlÃ€chen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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 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  ...
+		EXTENT ..
 		MAXSCALEDENOM 10000
 		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
 			wms_layer_group	"/GebÃ€ude"
-			wms_title "FlÃ€chen"
+			wms_title "FlÃ€chen (GebÃ€ude)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -1309,6 +3562,7 @@
 		END
 		CLASS
-		#	NAME '{"Historische Mauer","Mauerkante links,","Mauerkante rechts,","Mauermitte,","Sonstige historische Mauer",Stadtmauer,"StÃŒtzmauer links",StÃŒtzmauermitte,"StÃŒtzmauer rechts","Ufermauer, Kaimauer"}'
-			NAME 'Mauer'
+		##	NAME '{"Historische Mauer","Mauerkante links,","Mauerkante rechts,","Mauermitte,","Sonstige historische Mauer",Stadtmauer,"StÃŒtzmauer links",StÃŒtzmauermitte,"StÃŒtzmauer rechts","Ufermauer, Kaimauer"}'
+		#	NAME 'Mauer'
+			NAME "Mauer"
 			EXPRESSION "2510"
 			STYLE
@@ -1338,17 +3592,17 @@
 		END
 	END
-
+	
 	LAYER NAME "gg"	# GebÃ€ude / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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 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  ...
+		EXTENT ..
 		MAXSCALEDENOM 3500
 		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
 			wms_layer_group	"/GebÃ€ude"
-			wms_title "Grenzen"
+			wms_title "Grenzen (GebÃ€ude)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -1395,4 +3649,16 @@
 		END
 		CLASS
+		#-	NAME "GebÃ€ude"
+			EXPRESSION "2030"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				PATTERN 2.00 1.00 END
+				SIZE 0.5
+				WIDTH 0.5
+			END
+		END
+		CLASS
 		#	NAME '{"Befestigung (Burgruine)","Burg (Fliehburg, Ringwall)",Lager,Schanze}'
 			EXPRESSION "rn1317"
@@ -1486,4 +3752,15 @@
 		END
 		CLASS
+		#-	NAME "Hochhausbauteil"
+			EXPRESSION "2509"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				SIZE 0.5
+				WIDTH 0.5
+			END
+		END
+		CLASS
 		#-	NAME "Unterirdisch"
 			EXPRESSION "2513"
@@ -1520,4 +3797,16 @@
 		END
 		CLASS
+		#	NAME '{"Aussichtsturm, verfallen, zerstÃ¶rt","Bohrturm, verfallen, zerstÃ¶rt","Feuerwachturm, verfallen, zerstÃ¶rt","FÃ¶rderturm, verfallen, zerstÃ¶rt","Kirchturm, Glockenturm, verfallen, zestÃ¶rt","Kontrollturm, verfallen, zerstÃ¶rt","KÃŒhlturm, verfallen, zerstÃ¶rt","Leuchtturm, verfallen, zerstÃ¶rt","SchloÃ-, Burgturm, verfallen, zerstÃ¶rt","Sende-, Funkturm, Fernmeldeturm, verfallen, zerstÃ¶rt","Sonstiger Turm, verfallen, zerstÃ¶rt","Stadt-, Torturm, verfallen, zerstÃ¶rt","Turm, nach Quellenlage nicht zu spezifizieren, verfallen, zerstÃ¶rt","Wasserturm, verfallen, zerstÃ¶rt"}'
+			EXPRESSION "rn1502"
+			STYLE
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				PATTERN 2.00 1.00 END
+				SIZE 0.35
+				WIDTH 0.35
+			END
+		END	
+		CLASS
 		#	NAME '{Brunnen,"Springbrunnen, Zierbrunnen"}'
 			EXPRESSION "rn1525"
@@ -1531,16 +3820,804 @@
 		END
 	END
-
+	
+	LAYER NAME "lg" # GebÃ€ude / Linien
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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 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
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GebÃ€ude"
+			wms_title "Linien (GebÃ€ude)"
+			wms_enable_request "!GetLegendGraphic"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		TYPE LINE
+		UNITS METERS
+		CLASS
+		#-	NAME "Kanal, Im Bau"
+			EXPRESSION "2519"
+			STYLE
+				COLOR 255 255 255
+			#	OPACITY 0
+				WIDTH 0.1818
+			END
+			STYLE
+				COLOR 0 204 204
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				PATTERN 7.00 1.00 END
+				SIZE 0.18
+				WIDTH 0.18
+			END
+		END
+		CLASS
+		#	NAME "Zaun"
+			EXPRESSION "2002"
+			STYLE END
+			STYLE END
+			STYLE
+				COLOR 255 255 255
+			#	OPACITY 0
+				WIDTH 0.1818
+			END # STYLE
+			STYLE
+				COLOR 0 0 0
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				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
+			#	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 "Offene GebÃ€udelinie"
+			EXPRESSION "2305"
+			STYLE END
+			STYLE END
+			STYLE 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 0.1818
+			END
+			STYLE
+				COLOR 0 0 0
+				LINECAP SQUARE
+				LINEJOIN ROUND
+				PATTERN 2.00 1.00 END
+				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
+				WIDTH 0.18
+			END
+		END
+	END
+	
+	LAYER NAME "pg" # GebÃ€ude / Punkte    ALKIS: GebÃ€ude / Funktion / Punkte
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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 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
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GebÃ€ude"    
+			#wms_title "Punkte"
+			wms_title "Punkte Funktion (GebÃ€ude)"     #29.01.2019 Titel geÃ€ndert um Ã€hnlich ALKIS/QGIS zu sein) 
+			wms_enable_request "!GetLegendGraphic"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		UNITS METERS
+		CLASS
+		#- 	NAME "Umformer"
+			EXPRESSION "3521"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.6935
+				SYMBOL "norGIS_alkis3521_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Spielcasino"
+			EXPRESSION "3308"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.1437
+				SYMBOL "norGIS_alkis3308_1"
+			END
+		END
+		CLASS
+		#- 	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 "Moschee"
+			EXPRESSION "3319"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.189
+				SYMBOL "norGIS_alkis3319_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
+		CLASS
+		#- 	NAME "Polizei"
+			EXPRESSION "3324"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3324_1"
+			END
+		END
+		CLASS
+		#- 	NAME "Kapelle"
+			EXPRESSION "3318"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.0137
+				SYMBOL "norGIS_alkis3318_1"
+			END
+		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"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 5.0077
+				SYMBOL "norGIS_alkis3326_1"
+			END
+		END
+	END
+
+	# NEUER LAYER Jan. 2019 
+	LAYER NAME "pg2" # GebÃ€ude / Punkte     QGIS/ALKIS: GebÃ€ude / GebÃ€ude / Punkte
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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 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 point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		EXTENT ..
+		MAXSCALEDENOM 3500
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GebÃ€ude"
+			#wms_title "Punkte"
+			wms_title "Punkte (GebÃ€ude)" 
+			wms_enable_request "!GetLegendGraphic"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
+		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 "GroÃsteingrab (Dolmen), HÃŒnenbett"
+			EXPRESSION "3526"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.1043
+				SYMBOL "norGIS_alkis3526_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 "Ziehbrunnen"
+			EXPRESSION "3540"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 2
+				SIZE 6.2498
+				SYMBOL "norGIS_alkis3540_1"
+			END
+		END
+		CLASS
+		#-	NAME "Gipfel-/Wegekreuz"
+			EXPRESSION "3535"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 2
+				SIZE 4.0149
+				SYMBOL "norGIS_alkis3535_1"
+			END
+		END
+		CLASS
+		#	NAME "(3533)"
+			EXPRESSION "3533"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 1
+				SIZE 4.2
+				SYMBOL "norGIS_alkis3533_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 "Meilenstein, historischer Grenzstein"
+			EXPRESSION "3536"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 1
+				SIZE 2.8688
+				SYMBOL "norGIS_alkis3536_1"
+			END
+		END
+		CLASS
+		#-	NAME "Denkmal"
+			EXPRESSION "3532"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 2
+				SIZE 4.866
+				SYMBOL "norGIS_alkis3532_1"
+			END
+		END
+		CLASS
+		#-	NAME "Brunnen (Trinkwasserversorgung)"
+			EXPRESSION "3537"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.1949
+				SYMBOL "norGIS_alkis3537_1"
+			END
+		END
+		CLASS
+		#	NAME "(3528)"
+			EXPRESSION "3528"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+				SIZE 3.1043
+				SYMBOL "norGIS_alkis3528_1"
+			END
+		END
+		CLASS
+		#-	NAME "Bildstock"
+			EXPRESSION "3534"
+			STYLE
+				ANGLE [drehwinkel_grad]
+				MINSIZE 1
+			#	OFFSET 0 2
+				SIZE 4.2202
+				SYMBOL "norGIS_alkis3534_1"
+			END
+		END
+	END
+	
+	#	LAYER NAME "bg"	 # GebÃ€ude / Beschriftungen
+	LAYER NAME "bgh" # GebÃ€ude / Hausnummer (HauptgebÃ€ude)
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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 '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"
+		MAXSCALEDENOM 3500
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GebÃ€ude"
+		#	wms_title "Beschriftungen (Punkte)"
+		#	wms_title "Beschriftungen"
+			wms_title "Hausnummern (GebÃ€ude)"
+		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
+				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.75 port=5432 user='ms7'"
+		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:3034 EPSG:3857"
+			wms_layer_group	"/GebÃ€ude"
+			wms_title "NebengebÃ€ude lfd. Nr. (GebÃ€ude)" # "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
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		EXTENT ..
+		LABELITEM "text"
+		MAXSCALEDENOM 3500
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GebÃ€ude"
+ 			wms_title "Dachform (GebÃ€ude)"
+ 		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 "bgf" # GebÃ€ude / Funktion
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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_funktion','ax_bauteil_funktion','ax_turm_funktion')) AND point IS NOT 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:3034 EPSG:3857"
+			wms_layer_group	"/GebÃ€ude"
+ 			wms_title "Funktion (GebÃ€ude)"
+ 		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
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		EXTENT ..
+		LABELITEM "text"
+		MAXSCALEDENOM 3500
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GebÃ€ude"
+ 			wms_title "Geschosse (GebÃ€ude)"
+ 		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
+		END
+	END
+
+	LAYER NAME "bgz" # GebÃ€ude / Zustand
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		EXTENT ..
+		LABELITEM "text"
+		MAXSCALEDENOM 3500
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+			wms_layer_group	"/GebÃ€ude"
+ 			wms_title "Zustand (GebÃ€ude)"
+ 		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
+		END
+	END
+	
+	
+	## Gruppe Rechtliche Festlegungen
+	
 	LAYER NAME "gr"	# Rechtliche Festlegungen / Grenzen
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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"
-		#EXTENT  ...
+		EXTENT ..
 		MAXSCALEDENOM 25000
 		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
 			wms_layer_group	"/Rechtliche Festlegungen"
-			wms_title "Grenzen"
+			wms_title "Grenzen (Rechtl. Festlegungen)"
 			#wms_enable_request "GetMap GetFeatureInfo"
 		END
@@ -1569,849 +4646,56 @@
 		END
 	END
-
-	LAYER NAME "gff" # FlurstÃŒcke / FlÃ€chen / Grenzen
-		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+	
+	LAYER NAME "br" # Rechtliche Festlegungen / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 12000 # 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-		#	wms_layer_group	"/FlurstÃŒcke/FlÃ€chen"
-			wms_layer_group	"/FlurstÃŒcke"
-			wms_title "Grenzen"
+		#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"
+		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='Rechtliche Festlegungen' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND point IS NOT 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:3034 EPSG:3857"
+			wms_layer_group	"/Rechtliche Festlegungen"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen (Rechtl. Festlegungen)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
 		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
+		SIZEUNITS INCHES
 		STATUS OFF
-
-		HEADER   "/opt/gdi/alkisn/templates/alkisauskh.html" 
-		TEMPLATE "/opt/gdi/alkisn/templates/alkisausk.html" # gkz wird aus Mapfile-Name entnommen!
-		FOOTER   "/opt/gdi/alkisn/templates/footer.html"
-		TOLERANCEUNITS pixels TOLERANCE 1
-
-		TYPE POLYGON
+		SYMBOLSCALEDENOM 1000
+		TYPE POINT
 		UNITS METERS
 		CLASS
-		#-	NAME "FlurstÃŒcksgrenze"
-			EXPRESSION "2028"
-			STYLE
-				LINECAP SQUARE LINEJOIN ROUND
-				OUTLINECOLOR 0 0 0
-				SIZE 0.35 WIDTH 0.35
-			END
-		END
-	END
-
-	## Layer des Typs Linien
-
-	LAYER NAME "lt"	# Topographie / Linien
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 10000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Topographie"
-			wms_title "Linien"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		TYPE LINE
-		UNITS METERS
-		CLASS
-		#-	NAME "Damm, Wall, Deich, Graben, Knick, Wallkante"
-			EXPRESSION "2620"
-			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 '{"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='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"
-		#EXTENT  ...
-		MAXSCALEDENOM 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/GewÃ€sser"
-			wms_title "Linien"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		TYPE LINE
-		UNITS METERS
-		CLASS
-		#	NAME '{Lahnung,SchÃ¶pfwerk,"Sonstiges Bauwerk im GewÃ€sserbereich",Sperrwerk,Wehr}'
-		#-	NAME 'Bauwerk im GewÃ€sserbereich'
-			EXPRESSION "2003"
-			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 '{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
-			#	OPACITY 0
-				WIDTH 0.1818
-			END
-			STYLE
-				COLOR 0 204 204
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	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
-			#	OPACITY 0
-				WIDTH 0.1818
-			END
-			STYLE
-				COLOR 0 204 204
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				PATTERN 4.00 2.00 END
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	NAME "(2595)"
-			EXPRESSION "2595"
-			STYLE
-				COLOR 255 255 255
-			#	OPACITY 0
-				WIDTH 0.1818
-			END
-			STYLE
-				COLOR 0 204 204
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				PATTERN 1.00 2.00 END
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	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
-			#	OPACITY 0
-				WIDTH 0.1818
-			END
-			STYLE
-				COLOR 0 204 204
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				PATTERN 0.35 0.35 END
-				SIZE 0.18
-				WIDTH 0.18
-			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='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"
-		#EXTENT  ...
-		MAXSCALEDENOM 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Verkehr"
-			wms_title "Linien"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		TYPE LINE
-		UNITS METERS
-		CLASS
-		#	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
-				COLOR 255 255 255
-			#	OPACITY 0
-				WIDTH 0.3535
-			END
-			STYLE
-				COLOR 81 0 0
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				PATTERN 2.00 3.20 END
-				SIZE 0.35
-				WIDTH 0.35
-			END
-		END
-		CLASS
-		#	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
-			#	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 "{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
-			#	OPACITY 0
-				WIDTH 0.1818
-			END
-			STYLE
-				COLOR 153 153 153
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#	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
-			#	OPACITY 0
-				WIDTH 0.505
-			END
-			STYLE
-				COLOR 127 127 127
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				SIZE 0.5
-				WIDTH 0.5
-			END
-		END
-		CLASS
-		#	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
-			#	OPACITY 0
-				WIDTH 0.1818
-			END
-			STYLE
-				COLOR 153 153 153
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				PATTERN 0.35 0.35 END
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-		CLASS
-		#-	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
-			#	OPACITY 0
-				WIDTH 0.1818
-			END
-			STYLE
-				COLOR 127 127 127
-				LINECAP SQUARE
-				LINEJOIN ROUND
-				SIZE 0.18
-				WIDTH 0.18
-			END
-		END
-	END
-
-	LAYER NAME "li"	# Industrie und Gewerbe / Linien
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 10000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Industrie und Gewerbe"
-			wms_title "Linien"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		TYPE LINE
-		UNITS METERS
-		CLASS
-		#	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
-			#	OPACITY 0
-				WIDTH 0.1818
-			END
-			STYLE
-				COLOR 0 0 0
-				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
-			END
-		END
-	END
-
-	LAYER NAME "lg" # GebÃ€ude / Linien
-		CLASSITEM "signaturnummer"
-		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 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
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/GebÃ€ude"
-			wms_title "Linien"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		TYPE LINE
-		UNITS METERS
-		CLASS
-		#-	NAME "Kanal, Im Bau"
-			EXPRESSION "2519"
-			STYLE
-				COLOR 255 255 255
-			#	OPACITY 0
-				WIDTH 0.1818
-			END
-			STYLE
-				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
-			#	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 "{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
-				WIDTH 0.18
-			END
-		END
-	END
-
+			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
+	
+	
+	## Gruppe Politische Grenzen (enthÃ€lt nur 1 Layer)
+	
 	LAYER NAME "lp"	# Politische Grenzen / Linien
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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"
-		#EXTENT  ...
+#		#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"
+		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 (layer NOT LIKE 'ax_flurstueck%') AND NOT line IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
+		EXTENT ..
 		MAXSCALEDENOM 100000
 		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
 			wms_layer_group	"/Politische Grenzen"
-			wms_title "Linien"
+			wms_title "Linien (Polit. Grenzen)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -2705,16 +4989,136 @@
 		END
 	END
-
+	
+
+	## Gruppe mit den Lagebezeichnungen
+	
+	LAYER NAME "bl" # Lagebezeichnungen / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		#aus QGIS-Mapfile, fuehrt zu unschoener Lage der Beschriftung:
+		#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='Lagebezeichnungen' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND point IS NOT 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:3034 EPSG:3857"
+			wms_layer_group	"/Lagebezeichnungen"
+		#	wms_title "Beschriftungen (Punkte)"
+			wms_title "Beschriftungen Punkte (Lagebez.)"
+		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
+
+#	# NEUER LAYER Januar 2019:
+	LAYER NAME "bll" # Lagebezeichnungen / Beschriftungen (Linien)
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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,st_offsetcurve(line,0.125*skalierung*grad_pt,'') 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 line IS NOT 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:3034 EPSG:3857"
+			wms_layer_group	"/Lagebezeichnungen"
+			wms_title "Beschriftungen Linien (Lagebez.)"
+		#	wms_title "Beschriftungen"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS INCHES
+		STATUS OFF
+		SYMBOLSCALEDENOM 1000
+		TYPE LINE  #Annotation
+		UNITS METERS
+		CLASS
+			LABEL
+				ANGLE FOLLOW
+				ANTIALIAS TRUE
+				FONT [font_umn]
+				SIZE [size_umn]
+				BUFFER 2
+				COLOR [color_umn]
+				FORCE TRUE
+			#	OFFSET 0 0
+				OUTLINECOLOR 255 255 255
+				POSITION CC
+				PRIORITY 10
+			#	SHADOWSIZE 0 0
+				TYPE TRUETYPE
+			END
+		END
+	END
+		
+	
+	## Gruppe mit den FlurstÃŒcken
+	
+	LAYER NAME "gff" # FlurstÃŒcke / FlÃ€chen / Grenzen
+		CLASSITEM "signaturnummer"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
+		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"
+		EXTENT ..
+		MAXSCALEDENOM 12000 # 5000
+		METADATA
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
+		#	wms_layer_group	"/FlurstÃŒcke/FlÃ€chen"
+			wms_layer_group	"/FlurstÃŒcke"
+			wms_title "Grenzen (FlurstÃŒcke)"
+		END
+		PROCESSING "CLOSE_CONNECTION=DEFER"
+		PROJECTION "init=epsg:25832" END
+		SIZEUNITS METERS
+		STATUS OFF
+
+		HEADER   "/opt/gdi/alkisn/templates/alkisauskh.html" 
+		TEMPLATE "/opt/gdi/alkisn/templates/alkisausk.html" # gkz wird aus Mapfile-Name entnommen!
+		FOOTER   "/opt/gdi/alkisn/templates/footer.html"
+		TOLERANCEUNITS pixels TOLERANCE 1
+
+		TYPE POLYGON
+		UNITS METERS
+		CLASS
+		#-	NAME "FlurstÃŒcksgrenze"
+			EXPRESSION "2028"
+			STYLE
+				LINECAP SQUARE LINEJOIN ROUND
+				OUTLINECOLOR 0 0 0
+				SIZE 0.35 WIDTH 0.35
+			END
+		END
+	END
+	
 	LAYER NAME "lfn" # FlurstÃŒcke / Nummern / Linien
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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"
-		#EXTENT  ...
+		EXTENT ..
 		MAXSCALEDENOM 5000
 		REQUIRES "[bfn]" # Zuordnungspfeile nur zusammen mit den FlurstÃŒcksnummern
 		# Tipp: Im Client verstecken
 		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
 
 		#	wms_layer_group	"/FlurstÃŒcke/Nummern"
@@ -2726,5 +5130,5 @@
 
 			wms_layer_group	"/FlurstÃŒcke"
-			wms_title "Zuordnung"
+			wms_title "Zuordnung (FlurstÃŒcke)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -2792,14 +5196,14 @@
 	LAYER NAME "lff" # FlurstÃŒcke / FlÃ€chen / Linien
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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"
-		#EXTENT  ...
+		EXTENT ..
 		MAXSCALEDENOM 5000
 		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
 		#	wms_layer_group	"/FlurstÃŒcke/FlÃ€chen"
 			wms_layer_group	"/FlurstÃŒcke"
-			wms_title "Linien"
+			wms_title "Linien (FlurstÃŒcke)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -2862,19 +5266,17 @@
 		END
 	END
-
-	## Layer des Typs Punkte
-
+	
 	LAYER NAME "pff" # FlurstÃŒcke / FlÃ€chen / Punkte
 		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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"
-		#EXTENT  ...
+		EXTENT ..
 		MAXSCALEDENOM 5000
 		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
+			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
 		#	wms_layer_group	"/FlurstÃŒcke/FlÃ€chen"
 			wms_layer_group	"/FlurstÃŒcke"
-			wms_title "Punkte"
+			wms_title "Punkte (FlurstÃŒcke)"
 			wms_enable_request "!GetLegendGraphic" # Punkt-Layer komplett in Legende unterdrÃŒcken
 		END
@@ -2902,7 +5304,7 @@
 				ANGLE [drehwinkel_grad]
 				MINSIZE 1
-				#OFFSET 0 0
+			#	OFFSET 0 0
 				SIZE 1.5182
-				SYMBOL "norGIS_alkis3024_1" # NEU
+				SYMBOL "norGIS_alkis3024_1"
 			END
 		END
@@ -2923,5 +5325,5 @@
 				ANGLE [drehwinkel_grad]
 				MINSIZE 1
-				OFFSET 0 1
+			#	OFFSET 0 1
 				SIZE 2.2509
 				SYMBOL "norGIS_alkis3011_1"
@@ -2934,5 +5336,5 @@
 				ANGLE [drehwinkel_grad]
 				MINSIZE 1
-				OFFSET 0 1
+			#	OFFSET 0 1
 				SIZE 2.2509
 				SYMBOL "norGIS_alkis3010_1"
@@ -2951,915 +5353,19 @@
 		END
 	END
-
-	LAYER NAME "pg" # GebÃ€ude / Punkte
-		CLASSITEM "signaturnummer"
-		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.73 port=5432 user='ms6'"
+	
+	LAYER NAME "bfn" # FlurstÃŒcke / Nummern / Beschriftungen
+		CONNECTION "dbname='alkis0*gkz*' host=10.0.100.75 port=5432 user='ms7'"
 		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 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
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/GebÃ€ude"
-			wms_title "Punkte"
-			wms_enable_request "!GetLegendGraphic"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		SYMBOLSCALEDENOM 1000
-		TYPE POINT
-		UNITS METERS
-		CLASS
-		#- 	NAME "Umformer"
-			EXPRESSION "3521"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 3.6935
-				SYMBOL "norGIS_alkis3521_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Spielcasino"
-			EXPRESSION "3308"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.1437
-				SYMBOL "norGIS_alkis3308_1"
-			END
-		END
-		CLASS
-		#- 	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
-		CLASS
-		#- 	NAME "Polizei"
-			EXPRESSION "3324"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.0077
-				SYMBOL "norGIS_alkis3324_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Kapelle"
-			EXPRESSION "3318"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 3.0137
-				SYMBOL "norGIS_alkis3318_1"
-			END
-		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"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.0077
-				SYMBOL "norGIS_alkis3326_1"
-			END
-		END
-	END
-
-	LAYER NAME "pv"	# Verkehr / Punkte
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Verkehr"
-			wms_title "Punkte"
-			wms_enable_request "!GetLegendGraphic"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		SYMBOLSCALEDENOM 1000
-		TYPE POINT
-		UNITS METERS
-		CLASS
-		#- 	NAME "Reitweg"
-			EXPRESSION "3430"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.0077
-				SYMBOL "norGIS_alkis3430_1"
-			END
-		END
-		CLASS
-		#- 	NAME "FuÃweg"
-			EXPRESSION "3424"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.0077
-				SYMBOL "norGIS_alkis3424_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Haltepunkt"
-			EXPRESSION "3578"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 3.1949
-				SYMBOL "norGIS_alkis3578_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Parkplatz"
-			EXPRESSION "3432"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.4836
-				SYMBOL "norGIS_alkis3432_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Radweg"
-			EXPRESSION "3426"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.0077
-				SYMBOL "norGIS_alkis3426_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Rad- und FuÃweg"
-			EXPRESSION "3428"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.0077
-				SYMBOL "norGIS_alkis3428_1"
-			END
-		END
-	END
-
-	LAYER NAME "pe"	# Vegetation / Punkte
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Vegetation"
-			wms_title "Punkte"
-			wms_enable_request "!GetLegendGraphic"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		SYMBOLSCALEDENOM 1000
-		TYPE POINT
-		UNITS METERS
-		CLASS
-		#- 	NAME "Baumschule"
-			EXPRESSION "3446"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 4.192
-				SYMBOL "norGIS_alkis3446_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Sumpf"
-			EXPRESSION "3478"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 1.065
-				SYMBOL "norGIS_alkis3478_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Garten"
-			EXPRESSION "3421"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 1.8127
-				SYMBOL "norGIS_alkis3421_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Streuobstacker"
-			EXPRESSION "3440"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 4.192
-				SYMBOL "norGIS_alkis3440_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Quelle"
-			EXPRESSION "3613"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 1.0197
-				SYMBOL "norGIS_alkis3613_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Nadelbaum"
-			EXPRESSION "3597"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				OFFSET 0 2
-				SIZE 4.8638
-				SYMBOL "norGIS_alkis3597_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Obstbaumplantage"
-			EXPRESSION "3452"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 4.192
-				SYMBOL "norGIS_alkis3452_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Nadelwald"
-			EXPRESSION "3460"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 4.8491
-				SYMBOL "norGIS_alkis3460_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Unland"
-			EXPRESSION "3480"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 4.0107
-				SYMBOL "norGIS_alkis3480_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Mischwald"
-			EXPRESSION "3462"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.3703
-				SYMBOL "norGIS_alkis3462_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Gras"
-			EXPRESSION "3413"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 0.4305
-				SYMBOL "norGIS_alkis3413_1"
-			END
-		END
-		CLASS
-		#- 	NAME "ZierflÃ€che"
-			EXPRESSION "3605"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 2.4245
-				SYMBOL "norGIS_alkis3605_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Streuobstwiese"
-			EXPRESSION "3441"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 4.192
-				SYMBOL "norGIS_alkis3441_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Laubwald"
-			EXPRESSION "3458"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 3.3763
-				SYMBOL "norGIS_alkis3458_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Laubbaum"
-			EXPRESSION "3599"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				OFFSET 0 2
-				SIZE 4.567
-				SYMBOL "norGIS_alkis3599_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Heide"
-			EXPRESSION "3474"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 1.9261
-				SYMBOL "norGIS_alkis3474_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Mischwald"
-			EXPRESSION "3470"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 4.8718
-				SYMBOL "norGIS_alkis3470_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Busch, Hecke, Knick"
-			EXPRESSION "3601"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 1.4275
-				SYMBOL "norGIS_alkis3601_1"
-			END
-		END
-	END
-
-	LAYER NAME "pw"	# GewÃ€sser / Punkte
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/GewÃ€sser"
-			wms_title "Punkte"
-			wms_enable_request "!GetLegendGraphic"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		SYMBOLSCALEDENOM 1000
-		TYPE POINT
-		UNITS METERS
-		CLASS
-		#- 	NAME "Unterirdisches FlieÃgewÃ€sser"
-			EXPRESSION "3619"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 1.2236
-				SYMBOL "norGIS_alkis3619_1"
-			END
-		END
-		CLASS
-		#- 	NAME "FlieÃgewÃ€sser"
-			EXPRESSION "3488"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 1.2236
-				SYMBOL "norGIS_alkis3488_1" # Pfeil
-		# FEHLER: Bei Drehung wird oben/unten abgeschnitten.
-		# Siehe: https://github.com/mapserver/mapserver/pull/5264
-		# http://freegis.org/pipermail/mapserver-de/2016-April/004793.html
-			END
-		END
-		CLASS
-		#- 	NAME "GewÃ€sser"
-			EXPRESSION "3490"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 1.3369
-				SYMBOL "norGIS_alkis3490_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Quelle"
-			EXPRESSION "3613"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 1.0197
-				SYMBOL "norGIS_alkis3613_1"
-			END
-		END
-		CLASS
-		#	NAME "(3596)"
-			EXPRESSION "3596"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				OFFSET 0 1
-				SIZE 3.6936
-				SYMBOL "norGIS_alkis3596_1"
-			END
-		END
-		CLASS
-		#- 	NAME "FlieÃgewÃ€sser, nicht stÃ€ndig Wasser fÃŒhrend"
-			EXPRESSION "3621"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 1.2236
-				SYMBOL "norGIS_alkis3621_1"
-			END
-		END
-	END
-
-	LAYER NAME "pi"	# Industrie und Gewerbe / Punkte
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 10000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Industrie und Gewerbe"
-			wms_title "Punkte"
-			wms_enable_request "!GetLegendGraphic"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		SYMBOLSCALEDENOM 1000
-		TYPE POINT
-		UNITS METERS
-		CLASS
-		#- 	NAME "Tankstelle"
-			EXPRESSION "3401"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.2343
-				SYMBOL "norGIS_alkis3401_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Umformer"
-			EXPRESSION "3521"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 3.6935
-				SYMBOL "norGIS_alkis3521_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Antenne / Funkmast"
-			EXPRESSION "3506"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				OFFSET 0 2
-				SIZE 5.2585
-				SYMBOL "norGIS_alkis3506_1"
-			END
-		END
-		CLASS
-		#- 	NAME "VorratsbehÃ€lter"
-			EXPRESSION "3522"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 3.1949
-				SYMBOL "norGIS_alkis3522_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Schornstein, Schlot, Esse"
-			EXPRESSION "3508"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 3.3763
-				SYMBOL "norGIS_alkis3508_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Mast"
-			EXPRESSION "3504"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 2.1979
-				SYMBOL "norGIS_alkis3504_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Windrad"
-			EXPRESSION "3501"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				OFFSET 0 3
-				SIZE 6.8565
-				SYMBOL "norGIS_alkis3501_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Laufkran, BrÃŒckenlaufkran"
-			EXPRESSION "3514"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				OFFSET 0 2
-				SIZE 5.235
-				SYMBOL "norGIS_alkis3514_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Torf"
-			EXPRESSION "3407"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 4.5092
-				SYMBOL "norGIS_alkis3407_1"
-			END
-		END
-	END
-
-	LAYER NAME "ps"	# Sport und Freizeit / Punkte
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 10000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Sport und Freizeit"
-			wms_title "Punkte"
-			wms_enable_request "!GetLegendGraphic"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		SYMBOLSCALEDENOM 1000
-		TYPE POINT
-		UNITS METERS
-		CLASS
-		#- 	NAME "Spielplatz, Bolzplatz"
-			EXPRESSION "3423"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 7.3643
-				SYMBOL "norGIS_alkis3423_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Kleingarten"
-			EXPRESSION "3419"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 6.4126
-				SYMBOL "norGIS_alkis3419_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Garten"
-			EXPRESSION "3421"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 1.8127
-				SYMBOL "norGIS_alkis3421_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Rasen"
-			EXPRESSION "3413"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 0.4305
-				SYMBOL "norGIS_alkis3413_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Park"
-			EXPRESSION "3415"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.6648
-				SYMBOL "norGIS_alkis3415_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Campingplatz"
-			EXPRESSION "3412"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 7.7268
-				SYMBOL "norGIS_alkis3412_1"
-			END
-		END
-	END
-
-	LAYER NAME "pt"	# Topographie / Punkte
-		CLASSITEM "signaturnummer"
-		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"
-		#EXTENT  ...
-		MAXSCALEDENOM 10000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Topographie"
-			wms_title "Punkte"
-			wms_enable_request "!GetLegendGraphic"
-		END
-		PROCESSING "CLOSE_CONNECTION=DEFER"
-		PROJECTION "init=epsg:25832" END
-		SIZEUNITS METERS
-		STATUS OFF
-		SYMBOLSCALEDENOM 1000
-		TYPE POINT
-		UNITS METERS
-		CLASS
-		#- 	NAME "Felsen, Felsblock, Felsnadel"
-			EXPRESSION "3627"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 5.3476
-				SYMBOL "norGIS_alkis3627_1"
-			END
-		END
-		CLASS
-		#- 	NAME "Busch, Hecke, Knick"
-			EXPRESSION "3601"
-			STYLE
-				ANGLE [drehwinkel_grad]
-				MINSIZE 1
-				SIZE 1.4275
-				SYMBOL "norGIS_alkis3601_1"
-			END
-		END
-
-		# "Internal Server Error" wenn diese Class aktiv ist.
-		#  Tritt nur auf bei kleinen MaÃstÃ€ben (> 1000) und an manchen Stellen.
-	##	CLASS 
-	#	#- 	NAME "Busch, Hecke, Knick"
-	#		EXPRESSION "3632"
-	#		STYLE
-	#			ANGLE [drehwinkel_grad]
-	#			MINSIZE 1
-	#			SIZE 2.0
-	#			SYMBOL "norGIS_alkis3632_1"
-	#		END
-	##	END
-	END
-
-	## Layer des Typs  Beschriftungen
-
-	LAYER NAME "bfn" # FlurstÃŒcke / Nummern / 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='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"
-		#EXTENT  ...
+		#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"
+		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='FlurstÃŒcke' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND (layer IN ('ax_flurstueck_nummer','ax_flurstueck_zuordnung','ax_flurstueck_zuordnung_pfeil')) AND point IS NOT 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_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
 		#	wms_layer_group	"/FlurstÃŒcke/Nummern"
 			wms_layer_group	"/FlurstÃŒcke"
 		#	wms_title "Beschriftungen (Punkte)"
-			wms_title "Beschriftungen"
+			wms_title "Beschriftungen (FlurstÃŒcke)"
 		END
 		PROCESSING "CLOSE_CONNECTION=DEFER"
@@ -3887,578 +5393,5 @@
 		END
 	END
-
-#	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 '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"
-		MAXSCALEDENOM 3500
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/GebÃ€ude"
-		#	wms_title "Beschriftungen (Punkte)"
-		#	wms_title "Beschriftungen"
-			wms_title "Hausnummern"
-		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
-				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
-				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 # LABEL
-		END
-
-	END
-
-	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 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"
-		MAXSCALEDENOM 3500
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			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"
-		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='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='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"
-		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
-
-## +++ 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='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"
-		MAXSCALEDENOM 5000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/GewÃ€sser"
-		#	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 "bi" # Industrie und Gewerbe / 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='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"
-		MAXSCALEDENOM 10000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Industrie und Gewerbe"
-		#	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 # ANNOTATION
-		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 "bs"	# Sport und Freizeit / 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='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"
-		MAXSCALEDENOM 10000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Sport und Freizeit"
-		#	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 # ANNOTATION
-		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
-
-	# Dieser Laywer wurde 2017-10 aus alkis0300 NICHT generiert.
-	LAYER NAME "bb"	# WohnBauflÃ€chen / 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='WohnbauflÃ€chen' AND modell && ARRAY['DLKM','DKKM1000']::varchar[]  AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
-		#EXTENT  ...
-		LABELITEM "text"
-		MAXSCALEDENOM 10000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/WohnbauflÃ€chen"
-		#	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 # ANNOTATION
-		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 "bt" # Topographie / 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='Topographie' AND modell && ARRAY['DLKM','DKKM1000']::varchar[] AND NOT point IS NULL) AS foo USING UNIQUE ogc_fid USING SRID=25832"
-		#EXTENT  ...
-		LABELITEM "text"
-		MAXSCALEDENOM 10000
-		METADATA
-			wms_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:54004 EPSG:3034 EPSG:3857"
-			wms_layer_group	"/Topographie"
-		#	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 "copyright"
@@ -4470,5 +5403,5 @@
 	#		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_srs "EPSG:25832 EPSG:31467 EPSG:4326 EPSG:3034 EPSG:3857"
 	#	END
 	#	FEATURE
