Index: /trunk/data/konvert/postnas_0.6/atkis_rp_rendering/rendering/atkis3.map
===================================================================
--- /trunk/data/konvert/postnas_0.6/atkis_rp_rendering/rendering/atkis3.map	(revision 175)
+++ /trunk/data/konvert/postnas_0.6/atkis_rp_rendering/rendering/atkis3.map	(revision 175)
@@ -0,0 +1,3839 @@
+MAP
+  NAME 'atkis1'
+  SIZE 600 600
+  UNITS meters
+  SYMBOLSET '../symbols/symbolsatkis_neu.sym'
+  FONTSET '../fonts/fonts.list'
+ # EXTENT 290000 5420000 466000 5648000
+  EXTENT 290000 5420000 466000 5648000
+  PROJECTION
+    'init=epsg:25832'
+  END
+
+  IMAGECOLOR 192 192 192
+  IMAGEQUALITY 86
+ # IMAGETYPE png24
+#  OUTPUTFORMAT
+#    NAME png
+#    DRIVER 'GD/PNG'
+#    MIMETYPE 'image/png'
+#    EXTENSION 'png'
+#  END
+#  OUTPUTFORMAT
+ #    NAME PNG24
+  #   DRIVER "GD/PNG"
+   #  MIMETYPE "image/png"
+    # EXTENSION PNG
+    # IMAGEMODE RGBA
+    # TRANSPARENT ON
+ # END
+
+#http://mgeospatial.wordpress.com/2010/01/16/how-to-produce-8bits-agg-homemade-colors-palette-with-mapserver/
+#OUTPUTFORMAT
+#   NAME "png8bitaggauto"
+#   DRIVER "AGG/PNG"
+#   MIMETYPE "image/png"
+#   IMAGEMODE "pc256"
+#   EXTENSION "png"
+#   FORMATOPTION "TRANSPARENT=ON"
+#   FORMATOPTION "INTERLACE=OFF"
+#   FORMATOPTION "QUANTIZE_FORCE=ON"
+#  FORMATOPTION "QUANTIZE_COLORS=256"
+#END
+
+
+
+#
+OUTPUTFORMAT
+  NAME png
+  DRIVER AGG/PNG
+#IMAGETYPE png24
+  MIMETYPE "image/png"
+  IMAGEMODE RGBA
+  EXTENSION "png"
+ FORMATOPTION "INTERLACE=OFF"
+END
+
+
+
+  LEGEND
+    IMAGECOLOR 255 255 255
+    STATUS ON
+    KEYSIZE 18 12
+    LABEL
+      TYPE BITMAP
+      SIZE MEDIUM
+      COLOR 0 0 0
+    END
+  END
+
+  WEB
+    IMAGEPATH '/data/umn/tmp/'
+    IMAGEURL '/data/umn/tmp/'
+    METADATA
+      'wms_title'           		'Karte RP'
+      'wms_abstract' 			'Digitales Landschaftsmodell'
+      'wms_onlineresource'  		'http://www.gdi-rp-dienste2.rlp.de/cgi-bin/mapserv.fcgi?map=/data/umn/geoportal/karte_rp/atkis3.map'
+#http://www.gdi-rp-dienste2.rlp.de/cgi-bin/mapserv.fcgi?map=/data/umn/geoportal/karte_rp/atkis3.map&REQUEST=GetCapabilities&VERSION=1.1.1&SERVICE=wms
+      'wms_srs'             		'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258 EPSG:900913'
+      'wms_extent' 			'290000 5420000 466000 5648000'
+      'ows_keywordlist' 		'DLM,Landschaftsmodell,Atkis'
+      'ows_fees' 			'none' #Gebuehren
+      'ows_accessconstraints' 		'none' #Zugriffsbeschraenkungen
+      'ows_addresstype' 		'postal'
+      'ows_address' 			'Ferdinand-Sauerbruch-Str. 15'
+      'ows_city' 			'Koblenz' 
+      'ows_stateorprovince' 		'RLP'
+      'ows_postcode' 			'56073' 
+      'ows_country' 			'Deutschland' 
+      'ows_contactperson' 		'Armin Retterath' 
+      'ows_contactinformation' 		''
+      'ows_contactorganization' 	'KGSt. GDI-RP'
+      'ows_contactposition' 		''
+      'ows_contactelectronicmailaddress''kontakt@geoportal.rlp.de'
+      'wms_contactfacsimiletelephone' 	'0261-492492'
+      'wms_contactvoicetelephone' 	'0261-492472'
+      'wms_enable_request'              '*'
+      'wms_encoding' 			'UTF-8'
+    END
+  END
+
+#----------------------------------------------------------------------
+#-- Landesflaeche NEU ab hier # GEKACHELT
+LAYER
+    NAME 'rlp_00'
+    GROUP 'Landesflaeche'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_landesflaeche_g0 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Land 0'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000'
+    END
+    STATUS ON
+    MINSCALEDENOM 10001
+    MAXSCALEDENOM 17500
+    CLASS
+       NAME 'Landesflaeche' 
+       STYLE
+         #OUTLINECOLOR 210 210 181
+         OUTLINECOLOR 255 255 225
+         COLOR 255 255 225
+      END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+LAYER
+    NAME 'rlp_01'
+    GROUP 'Landesflaeche'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_landesflaeche_g1 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Land 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000'
+    END
+    STATUS ON
+    MINSCALEDENOM 17501
+    MAXSCALEDENOM 50000
+    CLASS
+       NAME 'Landesflaeche' 
+       STYLE
+         #OUTLINECOLOR 210 210 181
+         OUTLINECOLOR 255 255 225
+         COLOR 255 255 225
+      END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'rlp_02'
+    GROUP 'Landesflaeche'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_landesflaeche_g2 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Land 2'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 50001
+    MAXSCALEDENOM 100000
+    CLASS
+       NAME 'Landesflaeche' 
+       STYLE
+         #OUTLINECOLOR 210 210 181
+         OUTLINECOLOR 255 255 225
+         COLOR 255 255 225
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'rlp_03'
+    GROUP 'Landesflaeche'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_landesflaeche_g3 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Land 3'
+      'wms_group_title' 'LandesflÃ€che'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 100001
+    MAXSCALEDENOM 400000
+    CLASS
+       NAME 'Landesflaeche' 
+       STYLE
+         #OUTLINECOLOR 210 210 181
+         OUTLINECOLOR 255 255 225
+         COLOR 255 255 225
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+#  LAYER
+#    NAME 'rlp_04'
+#    GROUP 'Landesflaeche'
+#    TYPE POLYGON
+#    CONNECTIONTYPE postgis
+#    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+#    DATA "wkb_geometry from map_landesflaeche_g4 USING UNIQUE gid USING SRID=25832"
+#    PROCESSING "CLOSE_CONNECTION=DEFER"
+#    METADATA
+#      'wms_title' 	'Land 4'
+#      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+#      'wms_abstract' 	'Digitales Landschaftsmodell'
+#      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+#      'wms_extent' 	'290000 5420000 466000 5648000' 
+#    END
+#    STATUS ON
+#    MINSCALEDENOM 750001
+#    CLASS
+#       NAME 'Landesflaeche' 
+#       STYLE
+#         #OUTLINECOLOR 210 210 181
+#         OUTLINECOLOR 255 255 225
+#         COLOR 255 255 225
+ #      END
+ #   END
+#  END
+
+#-- ENDE Landesflaeche
+#----------------------------------------------------------------------
+#
+# GRUENLAND - entfernt.
+#
+
+#-- WALD NEU AB HIER
+
+  LAYER
+    NAME 'wald_00'
+    GROUP 'Wald'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_wald_g0 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title'	'Wald 0'
+      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 10000
+    MAXSCALEDENOM 12000
+   CLASS
+      NAME 'Laubwald' 
+      EXPRESSION ( [widmung] = 1100 )
+      STYLE
+        SYMBOL "laubwald"
+		SIZE 18
+        #COLOR 204 222 173
+	#COLOR 131 185 142
+	BACKGROUNDCOLOR 165 210 165
+        COLOR 1 1 1
+      END
+    END
+    CLASS
+      NAME 'Nadelwald' 
+      EXPRESSION ( [widmung] = 1200 )
+      STYLE
+	SYMBOL "nadelwald"
+	SIZE 18
+ 	OUTLINECOLOR 167 185 153
+	#COLOR 131 185 142
+	BACKGROUNDCOLOR 131 185 142
+        COLOR 1 1 1
+      END
+    END
+    CLASS
+      NAME 'Mischwald' 
+      EXPRESSION ( [widmung] = 1300 )
+      STYLE
+	SYMBOL "mischwald"
+        #OUTLINECOLOR 167 185 153
+        COLOR 1 1 1
+	SIZE 18
+	BACKGROUNDCOLOR 165 210 165
+      END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'wald_01'
+    GROUP 'Wald'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_wald_g1 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title'	'Wald 1'
+      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 12001
+    MAXSCALEDENOM 17500
+    CLASS
+       NAME 'Wald' 
+       STYLE
+        #COLOR 204 222 173
+        #COLOR 164 202 158
+        #OUTLINECOLOR 164 202 158
+	COLOR 204 222 173
+        OUTLINECOLOR 204 222 173
+      END
+    END
+  END
+
+#----------------------------------------------------------------------  
+
+    LAYER
+    NAME 'wald_02'
+    GROUP 'Wald'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_wald_g2 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title'	'Wald 2'
+      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 17501
+    MAXSCALEDENOM 50000
+    CLASS
+       NAME 'Wald' 
+       STYLE
+        #COLOR 164 202 158
+        #OUTLINECOLOR 164 202 158
+	COLOR 204 222 173
+        OUTLINECOLOR 204 222 173
+       END
+    END
+  END
+
+#----------------------------------------------------------------------  
+ 
+    LAYER
+    NAME 'wald_03'
+    GROUP 'Wald'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_wald_g3 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title'	'Wald 3'
+      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END#-- WALD NEU AB HIER
+    STATUS ON
+    MINSCALEDENOM 50001
+    MAXSCALEDENOM 100000
+    CLASS
+      NAME 'Wald' 
+      STYLE
+        #COLOR 164 202 158
+        #OUTLINECOLOR 164 202 158
+	COLOR 204 222 173
+        OUTLINECOLOR 204 222 173
+      END
+    END
+  END
+
+#----------------------------------------------------------------------  
+ 
+    LAYER
+    NAME 'wald_04'
+    GROUP 'Wald'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_wald_g4 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title'	'Wald 4'
+      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 100001
+    MAXSCALEDENOM 400000
+    CLASS
+       NAME 'Wald' 
+       STYLE
+        #COLOR 164 202 158
+        #OUTLINECOLOR 164 202 158
+	COLOR 204 222 173
+        OUTLINECOLOR 204 222 173
+       END
+    END
+  END
+
+#----------------------------------------------------------------------  
+ 
+#    LAYER
+#    NAME 'wald_05'
+#    GROUP 'Wald'
+#    TYPE POLYGON
+#    CONNECTIONTYPE postgis
+#    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+#    DATA "wkb_geometry from map_wald_g5 USING UNIQUE gid USING SRID=25832"
+#    PROCESSING "CLOSE_CONNECTION=DEFER"
+#    METADATA
+#      'wms_title'	'Wald 5'
+#      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+#      'wms_abstract' 	'Digitales Landschaftsmodell'
+#      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+#      'wms_extent' 	'290000 5420000 466000 5648000' 
+#    END
+#    STATUS ON
+#    MINSCALEDENOM 300001
+#	MAXSCALEDENOM 750000
+#    CLASS
+#      NAME 'Wald' 
+#      STYLE
+#        #COLOR 164 202 158
+#        #OUTLINECOLOR 164 202 158
+#	COLOR 204 222 173
+#        OUTLINECOLOR 204 222 173
+#      END
+#    END
+#  END
+
+#----------------------------------------------------------------------  
+ 
+#    LAYER
+#    NAME 'wald_06'
+#    GROUP 'Wald'
+#    TYPE POLYGON
+#    CONNECTIONTYPE postgis
+#    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+#    DATA "wkb_geometry from map_wald_g6 USING UNIQUE gid USING SRID=25832"
+#    PROCESSING "CLOSE_CONNECTION=DEFER"
+#    METADATA
+#      'wms_title'	'Wald 6'
+#      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+##      'wms_abstract' 	'Digitales Landschaftsmodell'
+#      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+#      'wms_extent' 	'290000 5420000 466000 5648000' 
+#    END
+#    STATUS ON
+#    MINSCALEDENOM 750001
+#    CLASS
+#      NAME 'Wald' 
+#      STYLE
+#        #COLOR 164 202 158
+#        #OUTLINECOLOR 164 202 158
+#	COLOR 204 222 173
+#        OUTLINECOLOR 204 222 173
+#      END
+#    END
+#  END
+#-- ENDE WALD NEU
+#----------------------------------------------------------------------  
+#-- Sonderkulturen NEU ab hier
+    LAYER
+    NAME 'sonderkultur_00'
+    GROUP 'Sonderkultur'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_sonderkultur_g0 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title'	'Sonderkultur 0'
+      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 10000
+    MAXSCALEDENOM 12000
+#    CLASS
+#      NAME 'Hopfen' 
+#      EXPRESSION ( [widmung] = 1012 )
+#      STYLE
+#        #OUTLINECOLOR 204 222 173
+#        COLOR 255 230 240
+#      END
+#    END
+#    CLASS
+#      NAME 'Baumschule' 
+#      EXPRESSION ( [widmung] = 1031 )
+#      STYLE
+#        #OUTLINECOLOR 141 159 127
+#        COLOR 255 230 240
+#      END
+#    END
+    CLASS
+      NAME 'Weingarten' 
+      EXPRESSION ( [widmung] = 1040 )
+      STYLE
+        SYMBOL "weingarten"
+		SIZE 18
+		#OUTLINECOLOR 167 185 153
+        #COLOR 255 230 240
+		COLOR 18 165 35 
+		BACKGROUNDCOLOR 255 230 240
+      END
+    END
+	CLASS
+      NAME 'Obstplantage' 
+      EXPRESSION ( [widmung] = 1050 )
+      STYLE
+        SYMBOL "obstplantage"
+		SIZE 18
+		#OUTLINECOLOR 167 185 153
+        #COLOR 255 230 240
+		COLOR 18 18 18 
+		BACKGROUNDCOLOR 255 230 240
+      END
+    END
+    CLASS
+      NAME 'Sonstige Sonderkultur'
+      STYLE
+        COLOR 255 230 240
+      END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'sonderkultur_01'
+    GROUP 'Sonderkultur'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_sonderkultur_g1 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title'	'Sonderkultur 1'
+      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+	MINSCALEDENOM 12001
+    MAXSCALEDENOM 17500
+    CLASS
+      NAME 'Weingarten' 
+      EXPRESSION ( [widmung] = 1040 )
+      STYLE
+        SYMBOL "weingarten"
+		SIZE 13
+		#OUTLINECOLOR 167 185 153
+        #COLOR 255 230 240
+		COLOR 18 165 35 
+		BACKGROUNDCOLOR 255 230 240
+      END
+    END
+	CLASS
+      NAME 'Obstplantage' 
+      EXPRESSION ( [widmung] = 1050 )
+      STYLE
+        SYMBOL "obstplantage"
+		SIZE 13
+		#OUTLINECOLOR 167 185 153
+        #COLOR 255 230 240
+		COLOR 18 18 18 
+		BACKGROUNDCOLOR 255 230 240
+      END
+    END
+    CLASS
+      NAME 'Sonstige Sonderkultur'
+      STYLE
+        COLOR 255 230 240
+      END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'sonderkultur_02'
+    GROUP 'Sonderkultur'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_sonderkultur_g2 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title'	'Sonderkultur 2'
+      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+	MINSCALEDENOM 17501
+    MAXSCALEDENOM 50000
+    CLASS
+      NAME 'Weingarten' 
+      EXPRESSION ( [widmung] = 1040 )
+      STYLE
+        SYMBOL "weingarten"
+		SIZE 11
+		#OUTLINECOLOR 167 185 153
+        #COLOR 255 230 240
+		COLOR 18 165 35 
+		BACKGROUNDCOLOR 255 230 240
+      END
+    END
+	CLASS
+      NAME 'Obstplantage' 
+      EXPRESSION ( [widmung] = 1050 )
+      STYLE
+        SYMBOL "obstplantage"
+		SIZE 11
+		#OUTLINECOLOR 167 185 153
+        #COLOR 255 230 240
+		COLOR 18 18 18 
+		BACKGROUNDCOLOR 255 230 240
+      END
+    END
+    CLASS
+      NAME 'Sonstige Sonderkultur'
+      STYLE
+        COLOR 255 230 240
+      END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'sonderkultur_03'
+    GROUP 'Sonderkultur'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from  map_sonderkultur_g3 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title'	'Sonderkultur 3'
+      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+	MINSCALEDENOM 50001
+    MAXSCALEDENOM 100000
+    CLASS
+      NAME 'Weingarten' 
+      EXPRESSION ( [widmung] = 1040 )
+      STYLE
+        SYMBOL "weingarten"
+		SIZE 9
+		#OUTLINECOLOR 167 185 153
+        #COLOR 255 230 240
+		COLOR 18 165 35 
+		BACKGROUNDCOLOR 255 230 240
+      END
+    END
+	CLASS
+      NAME 'Obstplantage' 
+      EXPRESSION ( [widmung] = 1050 )
+      STYLE
+        SYMBOL "obstplantage"
+		SIZE 9
+		#OUTLINECOLOR 167 185 153
+        #COLOR 255 230 240
+		COLOR 18 18 18 
+		BACKGROUNDCOLOR 255 230 240
+      END
+    END
+    CLASS
+      NAME 'Sonstige Sonderkultur'
+      STYLE
+        COLOR 255 230 240
+      END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'sonderkultur_04'
+    GROUP 'Sonderkultur'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_sonderkultur_g4 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title'	'Sonderkultur 4'
+      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+	MINSCALEDENOM 100001
+    MAXSCALEDENOM 120000
+#    CLASS
+#      NAME 'Weingarten' 
+#      EXPRESSION ( [widmung] = 1040 )
+#      STYLE
+#        SYMBOL "weingarten"
+#		SIZE 6
+#		#OUTLINECOLOR 167 185 153
+#        #COLOR 255 230 240
+#		COLOR 18 165 35 
+#		BACKGROUNDCOLOR 255 230 240
+#      END
+#    END
+#	CLASS
+#      NAME 'Obstplantage' 
+#      EXPRESSION ( [widmung] = 1050 )
+#      STYLE
+#        SYMBOL "obstplantage"
+#		SIZE 6
+#		#OUTLINECOLOR 167 185 153
+#        #COLOR 255 230 240
+#		COLOR 18 18 18 
+#		BACKGROUNDCOLOR 255 230 240
+#      END
+#    END
+    CLASS
+      NAME 'Sonderkulturen'
+      STYLE
+        COLOR 255 230 240
+      END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+#  LAYER
+#    NAME 'sonderkultur_05'
+#    GROUP 'Sonderkultur'
+#    TYPE POLYGON
+#    CONNECTIONTYPE postgis
+#    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+#    DATA "wkb_geometry from map_sonderkultur_g5 USING UNIQUE gid USING SRID=25832"
+#    PROCESSING "CLOSE_CONNECTION=DEFER"
+#    METADATA
+#      'wms_title'	'Sonderkultur 5'
+#      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+#      'wms_abstract' 	'Digitales Landschaftsmodell'
+#      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+#      'wms_extent' 	'290000 5420000 466000 5648000' 
+#    END
+#    STATUS ON
+#	MINSCALEDENOM 300001
+#    MAXSCALEDENOM 750000
+#    CLASS
+#      NAME 'Sonderkulturen'
+#      STYLE
+#        COLOR 255 230 240
+#      END
+#    END
+#  END
+
+#----------------------------------------------------------------------
+
+#  LAYER
+#    NAME 'sonderkultur_06'
+#    GROUP 'Sonderkultur'
+#    TYPE POLYGON
+#    CONNECTIONTYPE postgis
+#    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+#    DATA "wkb_geometry from map_sonderkultur_g6 USING UNIQUE gid USING SRID=25832"
+#    PROCESSING "CLOSE_CONNECTION=DEFER"
+#    METADATA
+#      'wms_title'	'Sonderkultur 6'
+#      'wms_srs'  	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+#      'wms_abstract' 	'Digitales Landschaftsmodell'
+#      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+#      'wms_extent' 	'290000 5420000 466000 5648000' 
+#    END
+#    STATUS ON
+#	MINSCALEDENOM 750001
+#    CLASS
+#      NAME 'Sonderkulturen'
+#      STYLE
+#        COLOR 255 230 240
+#      END
+#    END
+#  END
+
+#-- Ende Sonderkultur
+#----------------------------------------------------------------------
+#-- ORTSNAMEN UND ORTSLAGE NEU AB HIER
+
+LAYER
+    NAME 'ortslage_000'
+    GROUP 'Ortslage'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_ortslage_g0 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Ortslage 00'
+      'wms_group_title' 'Ortslage'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 0
+    MAXSCALEDENOM 10000
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'Ortslage' 
+       #STYLE
+       #  COLOR 230 228 223
+       #END
+       LABEL
+         ENCODING 'UTF8'
+	 TYPE truetype
+         FONT timesbold
+         SIZE 12
+         COLOR 50 50 50
+         OUTLINECOLOR 255 255 254
+         POSITION cr
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+LAYER
+    NAME 'ortslage_00'
+    GROUP 'Ortslage'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_ortslage_g0 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Ortslage 0'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 10000
+    MAXSCALEDENOM 12000
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'Ortslage' 
+       STYLE
+         COLOR 230 228 223
+       END
+       LABEL
+         ENCODING 'UTF8'
+	 TYPE truetype
+         FONT verdana
+         SIZE 10
+         COLOR 50 50 50
+         OUTLINECOLOR 255 255 254
+         POSITION cr
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+LAYER
+    NAME 'ortslage_01'
+    GROUP 'Ortslage'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_ortslage_g1 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Ortslage 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 12001
+    MAXSCALEDENOM 17500
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'Ortslage' 
+       STYLE
+         COLOR 230 228 223
+       END
+       LABEL
+         ENCODING 'UTF8'
+         TYPE truetype
+         FONT verdana
+         SIZE 10
+         COLOR 50 50 50
+         OUTLINECOLOR 255 255 254
+         POSITION cr
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'ortslage_02'
+    GROUP 'Ortslage'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_ortslage_g2 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Ortslage 2'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 17501
+	MAXSCALEDENOM 50000
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'Ortslage' 
+       STYLE
+         COLOR 230 228 223
+       END
+       LABEL
+         ENCODING 'UTF8'
+	 TYPE truetype
+         FONT verdana
+         SIZE 10
+         COLOR 50 50 50
+         OUTLINECOLOR 255 255 254
+         POSITION cr
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'ortslage_03'
+    GROUP 'Ortslage'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_ortslage_g3 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Ortslage 3'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 50001
+	MAXSCALEDENOM 100000
+    CLASS
+       NAME 'Ortslage' 
+       STYLE
+         COLOR 230 228 223
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'ortslage_04'
+    GROUP 'Ortslage'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_ortslage_g4 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Ortslage 4'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 100001
+	MAXSCALEDENOM 200000
+    CLASS
+       NAME 'Ortslage' 
+       STYLE
+         COLOR 230 228 223
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+#  LAYER
+#    NAME 'ortslage_05'
+#    GROUP 'Ortslage'
+#    TYPE POLYGON
+#    CONNECTIONTYPE postgis
+#    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+#    DATA "wkb_geometry from map_ortslage_g5 USING UNIQUE gid USING SRID=25832"
+#    PROCESSING "CLOSE_CONNECTION=DEFER"
+#    METADATA
+#      'wms_title' 	'Ortslage 5'
+#      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+#      'wms_abstract' 	'Digitales Landschaftsmodell'
+#      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+#      'wms_extent' 	'290000 5420000 466000 5648000' 
+#    END
+#    STATUS ON
+#    MINSCALEDENOM 300001
+#	MAXSCALEDENOM 750000
+#    CLASS
+#       NAME 'Ortslage' 
+#       STYLE
+#         COLOR 230 228 223
+#       END
+#    END
+#  END
+
+#----------------------------------------------------------------------
+
+#  LAYER
+#    NAME 'ortslage_06'
+#    GROUP 'Ortslage'
+#    TYPE POLYGON
+#    CONNECTIONTYPE postgis
+#    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+#    DATA "wkb_geometry from map_ortslage_g6 USING UNIQUE gid USING SRID=25832"
+#    PROCESSING "CLOSE_CONNECTION=DEFER"
+#    METADATA
+#      'wms_title' 	'Ortslage 6'
+#      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+#      'wms_abstract' 	'Digitales Landschaftsmodell'
+#      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+#      'wms_extent' 	'290000 5420000 466000 5648000' 
+#    END
+#    STATUS ON
+#    MINSCALEDENOM 750001
+#    MAXSCALEDENOM 1000000
+#    CLASS
+#       NAME 'Ortslage' 
+#       STYLE
+#         COLOR 230 228 223
+#       END
+#    END
+#  END
+
+#----------------------------------------------------------------------
+#-- Ende der Ortslagen
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
+#-- Industrie NEU ab hier 
+# keine Differenzierung nach Art, wg Fehler ATKIS-Datenmodell (NULL-Werte)
+
+  LAYER
+    NAME 'industrie_00'
+    GROUP 'Industrie'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_industrie_g0 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Industrie 0'
+      'wms_group_title' 'IndustrieflÃ€chen'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 10000
+    MAXSCALEDENOM 12000
+    CLASS
+       NAME 'Industrie' 
+       STYLE
+         COLOR 215 195 225
+       END
+    END
+  END
+
+#-------------------------------------------------------------------------
+
+  LAYER
+    NAME 'industrie_01'
+    GROUP 'Industrie'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_industrie_g1 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Industrie 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+	MINSCALEDENOM 12001
+    MAXSCALEDENOM 17500
+    CLASS
+       NAME 'Industrie' 
+       STYLE
+         COLOR 215 195 225
+       END
+    END
+  END
+
+#-------------------------------------------------------------------------
+
+  LAYER
+    NAME 'industrie_02'
+    GROUP 'Industrie'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_industrie_g2 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Industrie 2'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 17501
+    MAXSCALEDENOM 50000
+    CLASS
+       NAME 'Industrie' 
+       STYLE
+         COLOR 215 195 225
+       END
+    END
+  END
+
+#-------------------------------------------------------------------------
+
+  LAYER
+    NAME 'industrie_03'
+    GROUP 'Industrie'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_industrie_g3 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Industrie 3'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 50001
+    MAXSCALEDENOM 100000
+    CLASS
+       NAME 'Industrie' 
+       STYLE
+         COLOR 215 195 225
+       END
+    END
+  END
+
+#-------------------------------------------------------------------------
+
+  LAYER
+    NAME 'industrie_04'
+    GROUP 'Industrie'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_industrie_g4 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Industrie 4'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 100001
+    MAXSCALEDENOM 200000
+    CLASS
+       NAME 'Industrie' 
+       STYLE
+         COLOR 215 195 225
+       END
+    END
+  END
+
+#-------------------------------------------------------------------------
+
+#  LAYER
+#    NAME 'industrie_05'
+#    GROUP 'Industrie'
+#    TYPE POLYGON
+#    CONNECTIONTYPE postgis
+#    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+#    DATA "wkb_geometry from map_industrie_g5 USING UNIQUE gid USING SRID=25832"
+#    PROCESSING "CLOSE_CONNECTION=DEFER"
+#    METADATA
+#      'wms_title' 	'Industrie 5'
+#      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+#      'wms_abstract' 	'Digitales Landschaftsmodell'
+#      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+#      'wms_extent' 	'290000 5420000 466000 5648000' 
+#    END
+#    STATUS ON
+#    MINSCALEDENOM 300001
+#    MAXSCALEDENOM 750000
+#    CLASS
+#       NAME 'Industrie' 
+#       STYLE
+#         COLOR 215 195 225
+#       END
+#    END
+#  END
+
+#-------------------------------------------------------------------------
+#  LAYER
+#   NAME 'industrie_06'
+#    GROUP 'Industrie'
+#    TYPE POLYGON
+#    CONNECTIONTYPE postgis
+#    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+#    DATA "wkb_geometry from map_industrie_g6 USING UNIQUE gid USING SRID=25832"
+#    PROCESSING "CLOSE_CONNECTION=DEFER"
+#    METADATA
+#      'wms_title' 	'Industrie 6'
+#      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+#      'wms_abstract' 	'Digitales Landschaftsmodell'
+#      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+#      'wms_extent' 	'290000 5420000 466000 5648000' 
+#    END
+#    STATUS ON
+#    MINSCALEDENOM 750001
+#    MAXSCALEDENOM 1000000
+#    CLASS
+#      NAME 'Industrie' 
+#       STYLE
+#         COLOR 215 195 225
+#       END
+#    END
+#  END
+
+#-- ENDE Industrie
+#-------------------------------------------------------------------------
+  LAYER
+    NAME 'tagebau_0'
+    GROUP 'Industrie'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from ax_tagebaugrubesteinbruch USING UNIQUE ogc_fid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Tagebau 0'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    #MINSCALEDENOM 7500
+    MAXSCALEDENOM 7500
+    CLASS
+       NAME 'Tagebau/Grube/Steinbruch' 
+       STYLE
+	SYMBOL "bergbau"
+        OUTLINECOLOR 1 1 1
+        COLOR 220 220 220
+	SIZE 25
+	#BACKGROUNDCOLOR 200 200 200
+	  #OUTLINECOLOR 1 1 1
+         #COLOR 215 195 225
+       END
+       STYLE
+          OUTLINECOLOR 220 220 220
+          WIDTH 2
+       END
+       STYLE 
+          SYMBOL 'schraffur'
+          COLOR 220 220 220
+	  ANGLE 45
+	  SIZE 10
+       END
+
+    END
+  END
+
+#-------------------------------------------------------------------------
+  LAYER
+    NAME 'tagebau_1'
+    GROUP 'Industrie'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from ax_tagebaugrubesteinbruch USING UNIQUE ogc_fid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Tagebau 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 7500
+    MAXSCALEDENOM 120000
+    CLASS
+       NAME 'Tagebau/Grube/Steinbruch' 
+       STYLE
+	SYMBOL "bergbau"
+        #OUTLINECOLOR 1 1 1
+        COLOR 1 1 1
+	SIZE 15
+	BACKGROUNDCOLOR  251 219 136
+	  #OUTLINECOLOR 1 1 1
+         #COLOR 215 195 225
+       END
+       #STYLE
+        # COLOR 195 175 205
+       #END
+    END
+  END
+
+#-- ENDE Tagebau
+#-------------------------------------------------------------------------
+#-------------------------------------------------------------------------
+#-------------------------------------------------------------------------
+  LAYER
+    NAME 'ax_friedhof_0'
+    GROUP 'Ortslage'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from ax_friedhof USING UNIQUE ogc_fid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Friedhof 0'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    #MINSCALEDENOM 7500
+    MAXSCALEDENOM 10000
+    CLASS
+       NAME 'Friedhof' 
+       STYLE
+	SYMBOL "friedhof"
+        #OUTLINECOLOR 1 1 1
+        COLOR 220 220 220
+	SIZE 18
+	#BACKGROUNDCOLOR 200 200 200
+	  OUTLINECOLOR 1 1 1
+         #COLOR 215 195 225
+       END
+    STYLE
+      OUTLINECOLOR 220 220 220
+      WIDTH 2
+END
+#STYLE 
+#SYMBOL 'schraffur'
+#COLOR 220 220 220
+#ANGLE 45
+#SIZE 10
+#END
+
+    END
+  END
+
+#-------------------------------------------------------------------------
+  LAYER
+    NAME 'ax_friedhof_1'
+    GROUP 'Ortslage'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from ax_friedhof USING UNIQUE ogc_fid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Friedhof'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 10001
+    MAXSCALEDENOM 20000
+    CLASS
+       NAME 'Friedhof' 
+       STYLE
+	SYMBOL "friedhof"
+        #OUTLINECOLOR 1 1 1
+        COLOR 1 1 1
+	SIZE 18
+	BACKGROUNDCOLOR 200 200 200
+       END
+    END
+  END
+#
+
+#-------------------------------------------------------------------------
+#-- ENDE Industrie
+#-------------------------------------------------------------------------
+
+  LAYER
+    NAME 'baeche_0'
+    GROUP 'Fluesse'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid ,wkb_geometry, widmung FROM map_baeche_g0) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Baeche 0'
+      'wms_group_title' 'FlÃŒsse'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MAXSCALEDENOM 24500
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'Fluss' 
+       STYLE
+         COLOR 101 157 185
+         WIDTH 1
+        END
+	LABEL
+         ENCODING 'UTF8'
+	 TYPE truetype
+         FONT verdana
+         SIZE 7
+         COLOR 68 121 189
+         OUTLINECOLOR 255 255 254
+	 ANGLE follow
+	 MINDISTANCE 200
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'baeche_1'
+    GROUP 'Fluesse'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, wkb_geometry FROM map_baeche_g1) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Baeche 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 24500
+    MAXSCALEDENOM 50000
+    CLASS
+       NAME 'Fluss' 
+       STYLE
+         COLOR 68 121 189
+         WIDTH 1
+       END
+	LABEL
+         ENCODING 'UTF8'
+	 TYPE truetype
+         FONT verdana
+         SIZE 7
+         COLOR 68 121 189
+         OUTLINECOLOR 255 255 254
+	 ANGLE follow
+	 MINDISTANCE 200
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'fluss_00'
+    GROUP 'Fluesse'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM map_fluesse_g0 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Fluesse 0'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MAXSCALEDENOM 7500
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'Fluss' 
+       STYLE
+         COLOR 164 198 238
+	 OUTLINECOLOR 164 198 238
+         WIDTH 1
+       END
+       LABEL				#VERSUCH flussnamen
+         TYPE truetype
+         FONT tahomabold
+         SIZE 8
+         COLOR 68 121 189
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+	 MINDISTANCE 200 
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'fluss_01'
+    GROUP 'Fluesse'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM map_fluesse_g1 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Fluesse 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 7501
+    MAXSCALEDENOM 17500
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'Fluss' 
+       STYLE
+         COLOR 164 198 238
+	 OUTLINECOLOR 164 198 238
+         WIDTH 1
+       END
+       LABEL				#VERSUCH flussnamen
+         TYPE truetype
+         FONT tahomabold
+         SIZE 8
+         COLOR 68 121 189
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+	 MINDISTANCE 200 
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'fluss_02'
+    GROUP 'Fluesse'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM map_fluesse_g2 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Fluesse 2'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 17501
+    MAXSCALEDENOM 50000
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'Fluss' 
+       STYLE
+         COLOR 164 198 238
+	 OUTLINECOLOR 164 198 238
+         WIDTH 1
+       END
+       LABEL				#VERSUCH flussnamen
+         TYPE truetype
+         FONT tahomabold
+         SIZE 8
+         COLOR 68 121 189
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+	 MINDISTANCE 200 
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'fluss_03'
+    GROUP 'Fluesse'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM map_fluesse_g3 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Fluesse 3'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 50001
+    MAXSCALEDENOM 100000
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'Fluss' 
+       STYLE
+         COLOR 164 198 238
+	 OUTLINECOLOR 164 198 238
+         WIDTH 1
+       END
+       LABEL				#VERSUCH flussnamen
+         TYPE truetype
+         FONT tahomabold
+         SIZE 8
+         COLOR 68 121 189
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+	 MINDISTANCE 200 
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'fluss_04'
+    GROUP 'Fluesse'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM map_fluesse_g4 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Fluesse 4'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 100001
+    MAXSCALEDENOM 300000
+    #LABELITEM 'widmung'
+    CLASS
+       NAME 'Fluss' 
+       STYLE
+         COLOR 164 198 238
+         OUTLINECOLOR 164 198 238
+         WIDTH 1
+       END
+       #LABEL				#VERSUCH flussnamen
+       #  TYPE truetype
+       #  FONT tahomabold
+       #  SIZE 8
+       #  COLOR 68 121 189
+       #  OUTLINECOLOR 255 255 254
+       #  POSITION auto
+       #  MINDISTANCE 200 
+       #END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'fluss_05'
+    GROUP 'Fluesse'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM map_fluesse_g5 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Fluesse 5'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 300001
+    MAXSCALEDENOM 750000
+    #LABELITEM 'widmung'
+    CLASS
+       NAME 'Fluss' 
+       STYLE
+         COLOR 164 198 238
+         OUTLINECOLOR 164 198 238
+         WIDTH 1
+       END
+       #LABEL				#VERSUCH flussnamen
+       #  TYPE truetype
+       #  FONT tahomabold
+       #  SIZE 8
+       #  COLOR 68 121 189
+       #  OUTLINECOLOR 255 255 254
+       #  POSITION auto
+       #  MINDISTANCE 200 
+       #END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'fluss_06'
+    GROUP 'Fluesse'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM map_fluesse_g6 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Fluesse 6'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 750001
+    #LABELITEM 'widmung'
+    CLASS
+       NAME 'Fluss' 
+       STYLE
+         COLOR 164 198 238
+         OUTLINECOLOR 164 198 238
+         WIDTH 1
+       END
+       #LABEL				#VERSUCH flussnamen
+       #  TYPE truetype
+       #  FONT tahomabold
+       #  SIZE 8
+       #  COLOR 68 121 189
+       #  OUTLINECOLOR 255 255 254
+       #  POSITION auto
+       #  MINDISTANCE 200 
+       #END
+    END
+  END
+
+#----------------------------------------------------------------------
+#-- Seen NEU ab hier
+  LAYER
+    NAME 'see_00'
+    GROUP 'Seen'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_stehendesgewaesser_g0 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Seen 0'
+      'wms_group_title' 'Seen'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    
+    MAXSCALEDENOM 10000
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'See' 
+      # STYLE
+         #COLOR 164 198 238			#ORIGINAL
+         #OUTLINECOLOR 68 121 189	#   "
+         #COLOR 48 166 225			#gesÃ€ttigt
+         #OUTLINECOLOR 0 100 150	#	"
+         #COLOR 124 191 225
+        # OUTLINECOLOR 101 157 185
+        # WIDTH 1
+       #END
+       LABEL				#VERSUCH seenamen
+         TYPE truetype
+         FONT verdana
+         SIZE 8
+         COLOR 68 121 189
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+#-- Seen NEU ab hier
+  LAYER
+    NAME 'see_0'
+    GROUP 'Seen'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_stehendesgewaesser_g0 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Seen 0'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MAXSCALEDENOM 12000
+    MINSCALEDENOM 10001
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'See' 
+       STYLE
+         #COLOR 164 198 238			#ORIGINAL
+         #OUTLINECOLOR 68 121 189	#   "
+         #COLOR 48 166 225			#gesÃ€ttigt
+         #OUTLINECOLOR 0 100 150	#	"
+         COLOR 124 191 225
+         OUTLINECOLOR 101 157 185
+         WIDTH 1
+       END
+       LABEL				#VERSUCH seenamen
+         TYPE truetype
+         FONT verdana
+         SIZE 8
+         COLOR 68 121 189
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'see_1'
+    GROUP 'Seen'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_stehendesgewaesser_g1 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Seen 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 12001
+    MAXSCALEDENOM 17500
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'See' 
+       STYLE
+         COLOR 124 191 225
+         OUTLINECOLOR 101 157 185
+         WIDTH 1
+       END
+       LABEL				#VERSUCH seenamen
+         TYPE truetype
+         FONT verdana
+         SIZE 8
+         COLOR 68 121 189
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'see_2'
+    GROUP 'Seen'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_stehendesgewaesser_g2 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Seen 2'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 17501
+    MAXSCALEDENOM 50000
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'See' 
+       STYLE
+         COLOR 124 191 225
+         OUTLINECOLOR 101 157 185
+         WIDTH 1
+       END
+       LABEL				#VERSUCH seenamen
+         TYPE truetype
+         FONT verdana
+         SIZE 8
+         COLOR 68 121 189
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'see_3'
+    GROUP 'Seen'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_stehendesgewaesser_g3 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Seen 3'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 50001
+    MAXSCALEDENOM 100000
+    LABELITEM 'widmung'
+    
+    CLASS
+       NAME 'See' 
+       STYLE
+         COLOR 124 191 225
+         OUTLINECOLOR 101 157 185
+         WIDTH 1
+       END
+       LABEL				#VERSUCH seenamen
+         TYPE truetype
+         FONT verdana
+         SIZE 8
+         COLOR 68 121 189
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'see_4'
+    GROUP 'Seen'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_stehendesgewaesser_g4 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Seen 4'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 100001
+    MAXSCALEDENOM 300000
+    CLASS
+       NAME 'See' 
+       STYLE
+         COLOR 124 191 225
+         #OUTLINECOLOR 101 157 185
+         WIDTH 1
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'see_5'
+    GROUP 'Seen'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_stehendesgewaesser_g5 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Seen 5'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 300001
+    MAXSCALEDENOM 750000
+    CLASS
+       NAME 'See' 
+       STYLE
+         COLOR 124 191 225
+         #OUTLINECOLOR 101 157 185
+         WIDTH 1
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'see_6'
+    GROUP 'Seen'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_stehendesgewaesser_g6 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Seen 6'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 750001
+    LABELITEM 'widmung'
+    CLASS
+       NAME 'See' 
+       STYLE
+         COLOR 124 191 225
+         #OUTLINECOLOR 101 157 185
+         WIDTH 1
+       END
+    END
+  END
+
+#-- ENDE Seen
+#----------------------------------------------------------------------
+
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'weg_0'
+    GROUP 'Wege'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_wege_g0 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Wege 0'
+      'wms_group_title' 'Wege'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+     
+    MAXSCALEDENOM 10000
+
+    CLASS
+       NAME 'Weg' 
+       STYLE
+        COLOR 255 255 254
+        WIDTH 3
+       END
+       STYLE
+	 SYMBOL 'gestrichelt'
+         COLOR 153 103 2
+         PATTERN 5 2 END
+         WIDTH 1
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'weg_0_fuss'
+    GROUP 'Wege'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from ax_wegpfadsteig USING UNIQUE ogc_fid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Wege 0 Fuss'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+     
+    MAXSCALEDENOM 10000
+
+    CLASS
+       NAME 'FuÃweg' 
+       STYLE
+        COLOR 255 255 254
+        WIDTH 3
+       END
+       STYLE
+	 #SYMBOL 'gestrichelt'
+         COLOR 153 103 2
+         #PATTERN 5 2 END
+         WIDTH 1
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'weg_1'
+    GROUP 'Wege'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_wege_g1 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Wege 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 10000
+    MAXSCALEDENOM 25000
+    CLASS
+       NAME 'Weg/Pfad/Steig' 
+       STYLE
+        COLOR 255 255 254
+        WIDTH 3
+       END
+       STYLE
+	 SYMBOL 'gestrichelt'
+         COLOR 153 103 2
+         PATTERN 5 2 END
+         WIDTH 1
+       END
+    END
+  END
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Fahrbahn'
+    GROUP 'Wege'
+    TYPE LINE
+    TRANSPARENCY ALPHA
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA " wkb_geometry FROM ax_fahrbahnachse USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Fahrbahnachse'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    
+    
+    MAXSCALEDENOM 3500
+    CLASS
+       NAME 'Fahrbahnachse'
+       STYLE
+	 #OPACITY 30
+         COLOR 200 200 200
+         WIDTH 2
+       END
+      # STYLE
+	# #OPACITY 30
+       #  COLOR 250 127 113#182 85 39
+       #  WIDTH 9
+      # END
+    END
+  END
+
+#----------------------------------------------------------------------
+#-- ALKIS Gebaeude
+
+LAYER
+    NAME 'ax_gebaeude'
+    GROUP 'Bauwerke'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=alkis2 host=localhost port=5434"
+    DATA "wkb_geometry from ax_gebaeude USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'GebÃ€ude'
+      'wms_group_title' 'Bauwerke'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'Alkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 0
+    MAXSCALEDENOM 10000
+   # LABELITEM 'name'
+    CLASSITEM 'gebaeudefunktion'
+    CLASS
+       NAME 'Wohngebaeude'     
+       EXPRESSION ( [gebaeudefunktion] >= 1000)
+       STYLE
+         OUTLINECOLOR 180 180 180 
+       END
+       #STYLE 
+       ##   SYMBOL 'schraffur'
+       #   COLOR 180 180 180 
+	#  ANGLE 45
+	#  SIZE 7
+      # END
+      LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 6
+         COLOR 0 0 0
+         OUTLINECOLOR 255 255 254
+       END
+    END
+#    CLASS
+#       NAME 'Wirtschaftsgebauede' 
+#       EXPRESSION '2000'
+#       STYLE
+ #        OUTLINECOLOR 180 180 180
+ #      END
+  #     STYLE 
+  #        SYMBOL 'schraffur'
+  #        COLOR 180 180 180
+#	  ANGLE 0
+#	  SIZE 7
+ #      END
+  #     LABEL
+   #      TYPE truetype
+   #      FONT verdana
+   #      SIZE 6
+    #     COLOR 0 0 0
+    #     OUTLINECOLOR 255 255 254
+    #  END
+   # END
+   #CLASS
+      # NAME 'Gotteshaus' 
+      # EXPRESSION '3041'
+       #STYLE
+       #  OUTLINECOLOR 0 0 240
+       #END
+       #STYLE 
+       #   SYMBOL 'schraffur'
+        #  COLOR 0 0 240
+	#  ANGLE 45
+  	#  SIZE 7
+       #END
+      # LABEL
+       #  TYPE truetype
+       #  FONT verdana
+       #  SIZE 6
+        # COLOR 0 0 0
+        # OUTLINECOLOR 255 255 254
+     # END
+   # END
+  END
+
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
+#-- Turm
+
+LAYER
+    NAME 'ax_turm'
+    GROUP 'Bauwerke'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=alkis2 host=localhost port=5434"
+    DATA "wkb_geometry from ax_turm USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Turm'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Liegenschaftskataster, AX_Turm Objekte'
+      'ows_keywordlist' 'Alkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 0
+    MAXSCALEDENOM 10000
+   # LABELITEM 'widmung'
+    CLASS
+       NAME 'Turm' 
+       STYLE
+         OUTLINECOLOR 180 18 62 
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
+#-- VorratsbehÃ€lter
+
+LAYER
+    NAME 'ax_vorratsb'
+    GROUP 'Bauwerke'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=alkis2 host=localhost port=5434"
+    DATA "wkb_geometry from ax_vorratsbehaelterspeicherbauwerk USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'VorratsbehÃ€lter/Speicher'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Liegenschaftskataster, AX_VorratsBehaelterspeicher Objekte'
+      'ows_keywordlist' 'Alkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 0
+    MAXSCALEDENOM 10000
+   # LABELITEM 'widmung'
+    CLASS
+       NAME 'Vorratsbehaelter/Speicher' 
+       STYLE
+         OUTLINECOLOR 18 180 158
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
+#-- sonstigesbauwerkodersonstigeeinrichtung
+
+LAYER
+    NAME 'ax_sonstigesbw'
+    GROUP 'Bauwerke'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=alkis2 host=localhost port=5434"
+    DATA "wkb_geometry from ax_sonstigesbauwerkodersonstigeeinrichtung USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Sonstiges Bauwerk'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Liegenschaftskataster, AX_VorratsBehaelterspeicher Objekte'
+      'ows_keywordlist' 'Alkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 0
+    MAXSCALEDENOM 10000
+   # LABELITEM 'widmung'
+    CLASS
+       NAME 'Sonstiges Bauwerk' 
+       STYLE
+         OUTLINECOLOR 180 180 18 
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
+#-- 
+#bauwerkoderanlagefuersportfreizeitunderholung
+LAYER
+    NAME 'ax_bw_sfe'
+    GROUP 'Bauwerke'
+    TYPE POLYGON
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=alkis2 host=localhost port=5434"
+    DATA "wkb_geometry from ax_bauwerkoderanlagefuersportfreizeitunderholung USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Sport/Freizeit/Erholung'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Liegenschaftskataster, ax_bauwerkoderanlagefuersportfreizeitunderholung Objekte'
+      'ows_keywordlist' 'Alkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 0
+    MAXSCALEDENOM 10000
+   # LABELITEM 'widmung'
+    CLASS
+       NAME 'Sport/Freizeit/Erholung' 
+       STYLE
+         OUTLINECOLOR 180 95 18
+       END
+       STYLE 
+          SYMBOL 'schraffur'
+          COLOR 180 95 18
+	  ANGLE 45
+	  SIZE 7
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Gemeindestrasse_0'
+    GROUP 'Gemeindestrassen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_, bezeichnung, wkb_geometry FROM map_strasse_g0 WHERE widmung=1307) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Gemeindestrassen 0'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MAXSCALEDENOM 5000
+    LABELITEM 'name_'
+    LABELMAXSCALEDENOM 5000
+    CLASS
+       NAME 'Gemeindestrasse'
+       STYLE
+	#OPACITY 30
+        COLOR 100 100 100
+        WIDTH 7
+       END
+       STYLE
+	#OPACITY 40
+        COLOR 255 255 254
+        WIDTH 6
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 8
+         COLOR 0 0 0
+         OUTLINECOLOR 255 255 254
+         ANGLE follow
+	 MINDISTANCE 150
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Gemeindestrasse_1'
+    GROUP 'Gemeindestrassen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+   DATA "wkb_geometry FROM (SELECT gid, name_,bezeichnung, wkb_geometry FROM map_strasse_g1 where widmung=1307) AS foo USING UNIQUE gid USING SRID=25832"
+   PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Gemeindestrassen 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MAXSCALEDENOM 50000
+    MINSCALEDENOM 5000
+    CLASS
+       NAME 'Gemeindestrasse'
+       STYLE
+         COLOR 150 150 150
+         WIDTH 3
+       END
+       STYLE
+         COLOR 255 255 254
+         WIDTH 1
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 8
+         COLOR 0 0 0
+         OUTLINECOLOR 255 255 254
+         ANGLE follow
+	 MINDISTANCE 150
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Kreisstrasse_0'
+    GROUP 'Kreisstrassen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_, bezeichnung, wkb_geometry FROM map_strasse_g0 WHERE widmung=1306) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Kreisstrassen 0'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+   # LABELITEM 'name_'
+    MAXSCALEDENOM 5000
+    CLASS
+       NAME 'Kreisstrasse'
+       STYLE
+	 #OPACITY 30
+         COLOR 150 150 150
+         WIDTH 8
+       END
+       STYLE
+	 #OPACITY 40
+         COLOR 255 255 254
+         WIDTH 7
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 8
+         COLOR 0 0 0
+         OUTLINECOLOR 255 255 254
+         ANGLE follow
+	 MINDISTANCE 150
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Kreisstrasse_1'
+    GROUP 'Kreisstrassen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_, bezeichnung, wkb_geometry FROM map_strasse_g1 where widmung=1306) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Kreisstrassen 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+   # LABELITEM 'bezeichnung'
+   # LABELMAXSCALEDENOM 20000
+    MAXSCALEDENOM 40000
+    MINSCALEDENOM 5000
+    CLASS
+       NAME 'Kreisstrasse'
+       STYLE
+         COLOR 150 150 150
+         WIDTH 5
+       END
+       STYLE
+         COLOR 255 255 254
+         WIDTH 3
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 8
+         COLOR 0 0 0
+         OUTLINECOLOR 255 255 254
+         ANGLE follow
+	 MINDISTANCE 150
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Kreisstrasse_2'
+    GROUP 'Kreisstrassen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_, bezeichnung,wkb_geometry FROM map_strasse_g3 where widmung=1306) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Kreisstrassen 2'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 40000
+    MAXSCALEDENOM 200000
+  #  LABELITEM 'bezeichnung'
+    CLASS
+       NAME 'Kreisstrasse'
+       STYLE
+         COLOR 150 150 150
+         WIDTH 4
+       END
+       STYLE
+         SYMBOL "punkt"
+         COLOR 255 255 254
+         WIDTH 2
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 8
+         COLOR 0 0 0
+         OUTLINECOLOR 255 255 254
+         ANGLE follow
+	 MINDISTANCE 150
+       END
+    END
+    
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Landesstrasse_0'
+    GROUP 'Landesstrassen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_, bezeichnung, wkb_geometry FROM map_strasse_g0 WHERE widmung=1305) AS foo  USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Landesstrassen 0'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+  #  LABELITEM 'bezeichnung'
+    MAXSCALEDENOM 5000
+    CLASS
+       NAME 'Landesstrasse'
+       STYLE
+	 #OPACITY 30
+         COLOR 80 80 80
+         WIDTH 11
+       END
+       STYLE
+	 #OPACITY 40
+         COLOR 255 255 254
+         WIDTH 10
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 8
+         COLOR 0 0 0
+         OUTLINECOLOR 255 255 254
+         ANGLE follow
+	 MINDISTANCE 150
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Landesstrasse_1'
+    GROUP 'Landesstrassen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_,bezeichnung, wkb_geometry FROM map_strasse_g1 where widmung=1305) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Landesstrassen 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+ #   LABELITEM 'bezeichnung'
+  #  LABELMAXSCALEDENOM 15000
+    MAXSCALEDENOM 50000
+    MINSCALEDENOM 5000
+    CLASS
+       NAME 'Landesstrasse'
+       STYLE
+         COLOR 80 80 80
+         WIDTH 5
+       END
+       STYLE
+         COLOR 255 255 254
+         WIDTH 3
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 8
+         COLOR 0 0 0
+         OUTLINECOLOR 255 255 254
+         ANGLE follow
+         MINDISTANCE 120
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Landesstrasse_2'
+    GROUP 'Landesstrassen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_,bezeichnung, wkb_geometry FROM map_strasse_g2 where widmung=1305) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Landesstrassen 2'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 50000
+    MAXSCALEDENOM 300000
+    CLASS
+       NAME 'Landesstrasse'
+       STYLE
+         COLOR 80 80 80
+         WIDTH 4
+       END
+       STYLE
+         COLOR 255 255 254
+         WIDTH 2
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Landesstrasse_3'
+    GROUP 'Landesstrassen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_,bezeichnung, wkb_geometry FROM map_strasse_g3 where widmung=1305) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Landesstrassen 3'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 300000
+    MAXSCALEDENOM 500000
+    CLASS
+       NAME 'Landesstrasse'
+       STYLE
+         COLOR 80 80 80
+         WIDTH 4
+       END
+       STYLE
+         COLOR 255 255 254
+         WIDTH 2
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Bundesstrasse_0'
+    GROUP 'Bundesstrassen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_, bezeichnung, wkb_geometry FROM map_strasse_g0 WHERE widmung=1303) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Bundesstrassen 0'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    LABELITEM 'bezeichnung'
+    MAXSCALEDENOM 5000
+    CLASS
+       NAME 'Bundesstrasse'
+       STYLE
+	 #OPACITY 30
+         COLOR 80 80 80
+         WIDTH 11
+       END
+       STYLE
+	 #OPACITY 40
+         COLOR 246 245 125
+         WIDTH 10
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 7
+         COLOR 80 80 80
+         BUFFER 1
+         ANGLE follow
+	 MINDISTANCE 200
+       END
+    END
+  END
+
+
+
+  LAYER
+    NAME 'Bundesstrasse_1'
+    GROUP 'Bundesstrassen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_, bezeichnung, wkb_geometry FROM map_strasse_g1 where widmung=1303) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Bundesstrassen 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+  #  LABELITEM 'bezeichnung'
+  #  LABELMAXSCALEDENOM 50000
+    MINSCALEDENOM 5000
+    MAXSCALEDENOM 50000
+    CLASS
+       NAME 'Bundesstrasse'
+       STYLE
+         COLOR 197 186 161
+         WIDTH 5
+       END
+       STYLE
+         COLOR 246 245 125
+         WIDTH 3
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 7
+         COLOR 80 80 80 
+         BUFFER 1
+	 MINDISTANCE 200
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Bundesstrasse_2'
+    GROUP 'Bundesstrassen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_, bezeichnung, wkb_geometry FROM map_strasse_g2 where widmung=1303) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Bundesstrassen 2'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+ #   LABELITEM 'bezeichnung'
+ #   LABELMAXSCALEDENOM 200000
+    MINSCALEDENOM 50000
+    MAXSCALEDENOM 300000
+    CLASS
+       NAME 'Bundesstrasse'
+       STYLE
+         COLOR 197 186 161
+         WIDTH 5
+       END
+       STYLE
+         COLOR 246 245 125
+         WIDTH 3
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 7
+         COLOR 80 80 80 
+         BUFFER 1
+	 MINDISTANCE 200
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Bundesstrasse_3'
+    GROUP 'Bundesstrassen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+   # DATA "wkb_geometry FROM (SELECT gid, name_, regexp_replace(bezeichnung , '.[*:].', '') as bezeichnung, wkb_geometry FROM map_strasse_g3 where widmung=1303) AS foo USING UNIQUE gid USING SRID=25832"
+ DATA "wkb_geometry FROM (SELECT gid, name_, bezeichnung, wkb_geometry FROM map_strasse_g3 where widmung=1303) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Bundesstrassen 3'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+   # LABELITEM 'bezeichnung'
+    STATUS ON
+    MINSCALEDENOM 300000
+    MAXSCALEDENOM 1400000
+    CLASS
+       NAME 'Bundesstrasse'
+       STYLE
+         COLOR 197 186 161
+         WIDTH 4
+       END
+       STYLE
+         COLOR 246 245 125
+         WIDTH 2
+       END
+       #LABEL
+       #  TYPE truetype
+       #  FONT verdana
+       #  SIZE 6
+       #  COLOR 0 0 0
+	# BACKGROUNDCOLOR 246 245 125
+	# BACKGROUNDSHADOWCOLOR 197 186 161
+        # BUFFER 1
+	# MINDISTANCE 400
+      # END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Autobahn_0'
+    GROUP 'Autobahnen'
+    TYPE LINE
+    TRANSPARENCY ALPHA
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_, bezeichnung, wkb_geometry FROM map_strasse_g0 WHERE widmung=1301) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Autobahnen 0'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    LABELITEM 'bezeichnung'
+    #LABELMAXSCALEDENOM 500000
+    MAXSCALEDENOM 5000
+    CLASS
+       NAME 'Autobahn'
+       STYLE
+	 #OPACITY 30
+         COLOR 182 85 39
+         WIDTH 10
+       END
+       STYLE
+	 #OPACITY 30
+         COLOR 250 127 113
+         WIDTH 9
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 7
+         COLOR 255 255 254
+	 BACKGROUNDCOLOR 0 0 255
+	 BACKGROUNDSHADOWCOLOR 254 254 254
+         BUFFER 1
+	 MINDISTANCE 200
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Autobahn_1'
+    GROUP 'Autobahnen'
+    TYPE LINE
+    TRANSPARENCY ALPHA
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_, bezeichnung, wkb_geometry FROM map_strasse_g1 WHERE widmung=1301) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Autobahnen 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    LABELITEM 'bezeichnung'
+  #  LABELMAXSCALEDENOM 500000
+    MINSCALEDENOM 5000
+    MAXSCALEDENOM 50000
+    CLASS
+       NAME 'Autobahn'
+       STYLE
+         COLOR 182 85 39
+         WIDTH 8
+#         ANTIALIAS true
+       END
+       STYLE
+         COLOR 250 127 113
+         WIDTH 6
+#         ANTIALIAS true
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 7
+         COLOR 255 255 254
+       #  BACKGROUNDCOLOR 250 127 113 
+         BACKGROUNDCOLOR 0 0 255
+	 BACKGROUNDSHADOWCOLOR 254 254 254
+         BUFFER 1
+	 MINDISTANCE 200
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Autobahn_2'
+    GROUP 'Autobahnen'
+    TYPE LINE
+    TRANSPARENCY ALPHA
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_, bezeichnung, wkb_geometry FROM map_strasse_g2 where widmung=1301) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Autobahnen 2'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    LABELITEM 'bezeichnung'
+  #  LABELMAXSCALEDENOM 500000
+    MINSCALEDENOM 50000
+    MAXSCALEDENOM 300000
+    CLASS
+       NAME 'Autobahn'
+       STYLE
+         COLOR 182 85 39
+         WIDTH 6
+#         ANTIALIAS true
+       END
+       STYLE
+         COLOR 250 127 113
+         WIDTH 4
+#         ANTIALIAS true
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 7
+         COLOR 255 255 254
+	 BACKGROUNDCOLOR 0 0 255
+	 BACKGROUNDSHADOWCOLOR 254 254 254
+      #   BACKGROUNDCOLOR 250 127 113
+	 BUFFER 1
+	 MINDISTANCE 200
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'Autobahn_3'
+    GROUP 'Autobahnen'
+    TYPE LINE
+    TRANSPARENCY ALPHA
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry FROM (SELECT gid, name_, bezeichnung, wkb_geometry FROM map_strasse_g3 where widmung=1301) AS foo USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Autobahnen 3'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    LABELITEM 'bezeichnung'
+    LABELMAXSCALEDENOM 1000000
+    MINSCALEDENOM 300000
+    MAXSCALEDENOM 4000000
+    CLASS
+       NAME 'Autobahn'
+       STYLE
+         COLOR 182 85 39
+         WIDTH 4
+#         ANTIALIAS true
+       END
+       STYLE
+         COLOR 250 127 113
+         WIDTH 2
+#         ANTIALIAS true
+       END
+       LABEL
+         TYPE truetype
+         FONT verdana
+         SIZE 7
+#ANTIALIAS true
+         COLOR 255 255 254
+	 BACKGROUNDCOLOR 0 0 255
+	 BACKGROUNDSHADOWCOLOR 254 254 254
+         BUFFER 1
+	 MINDISTANCE 200
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'bahn_00'
+    GROUP 'Bahn'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_bahn_g0 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Bahn 0'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MAXSCALEDENOM 5000
+   # CLASS
+    #   NAME 'Bahn' 
+     #  STYLE
+CLASS
+NAME 'Bahn'
+  STYLE
+    #COLOR 102 102 102
+    COLOR 0 0 0
+    SYMBOL 'punkt'
+    SIZE 4
+  END
+  STYLE
+    COLOR 255 255 255
+    SYMBOL 'bahn'
+    SIZE 2
+  END
+END
+
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'bahn_01'
+    GROUP 'Bahn'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_bahn_g1 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Bahn 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 5000
+    MAXSCALEDENOM 50000
+   # CLASS
+   #    NAME 'Bahn' 
+    #   STYLE
+    #     SYMBOL "punkt"
+    #     SIZE 2
+     #    COLOR 50 50 50
+     #    WIDTH 2
+     #  END
+   # END
+CLASS
+NAME 'Bahn'
+  STYLE
+    #COLOR 102 102 102
+    COLOR 0 0 0
+    SYMBOL 'punkt'
+    SIZE 4
+  END
+  STYLE
+    COLOR 255 255 255
+    SYMBOL 'bahn'
+    SIZE 2
+  END
+END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'bahn_02'
+    GROUP 'Bahn'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from map_bahn_g2 USING UNIQUE gid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Bahn 2'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 50000
+    MAXSCALEDENOM 300000
+    CLASS
+      NAME 'Bahn'
+      STYLE
+        COLOR 102 102 102
+        SYMBOL 'punkt'
+        SIZE 4
+      END
+      STYLE
+        COLOR 255 255 255
+        SYMBOL 'bahn'
+        SIZE 2
+      END
+    END
+  END
+
+
+  
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'orte_1'
+    GROUP 'Ortschaften'
+    TYPE POINT
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=geoportal_latin host=localhost port=5432"
+    DATA" the_geom FROM (SELECT gid,name_gn,the_geom,att_ewz_int FROM gemeinde_punkte where att_ewz_int<1000) AS foos USING UNIQUE gid USING SRID=31466"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Orte 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+ PROJECTION
+    'init=epsg:31466'
+  END
+    STATUS ON
+    MINSCALEDENOM 50000
+    MAXSCALEDENOM 150000
+    LABELMINSCALEDENOM 50000
+    LABELITEM 'name_gn'
+    CLASS
+       NAME '<1000 EW' 
+       STYLE
+         SYMBOL 'punkt'
+         SIZE 7
+         COLOR 255 255 254
+         OUTLINECOLOR 0 0 0
+       END
+       LABEL
+         ENCODING 'UTF8'
+         TYPE truetype
+         FONT verdana
+         SIZE 8
+         COLOR 50 50 50
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+         MINDISTANCE 80
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'orte_2'
+    GROUP 'Ortschaften'
+    TYPE POINT
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=geoportal_latin host=localhost  port=5432"
+    DATA" the_geom FROM (SELECT gid,name_gn,the_geom,att_ewz_int FROM gemeinde_punkte where att_ewz_int>999 and att_ewz_int<5000) AS foos USING UNIQUE gid USING SRID=31466"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Orte 2'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+PROJECTION
+    'init=epsg:31466'
+  END
+    STATUS ON
+    MINSCALEDENOM 50000
+    MAXSCALEDENOM 300000
+    LABELMINSCALEDENOM 50000
+    LABELITEM 'name_gn'
+    CLASS
+       NAME '1000 - <5000 EW' 
+       STYLE
+         SYMBOL 'punkt'
+         SIZE 7
+         COLOR 255 255 254
+         OUTLINECOLOR 0 0 0
+       END
+       LABEL
+	ENCODING 'UTF8'
+	 TYPE truetype
+         FONT verdana
+         SIZE 8
+
+ #ENCODING 'UTF8'
+      #   TYPE BITMAP
+      #   SIZE SMALL
+         COLOR 50 50 50
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+	 MINDISTANCE 80
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'orte_3'
+    GROUP 'Ortschaften'
+    TYPE POINT
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=geoportal_latin host=localhost  port=5432" #Daten aus Postgis-Datenbank
+    DATA" the_geom FROM (SELECT gid, name_gn, the_geom, att_ewz_int FROM gemeinde_punkte where att_ewz_int>4999 and att_ewz_int<10000) AS foos USING UNIQUE gid USING SRID=31466"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Orte 3'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+PROJECTION
+    'init=epsg:31466'
+  END
+    STATUS ON
+    MINSCALEDENOM 50000
+    MAXSCALEDENOM 600000
+    LABELITEM 'name_gn'
+    LABELMINSCALEDENOM 50000
+    CLASS
+       NAME '5000 - <10000 EW' 
+       STYLE
+         SYMBOL 'punkt'
+         SIZE 7
+         COLOR 200 50 50
+         OUTLINECOLOR 0 0 0
+       END
+       LABEL
+	 ENCODING 'UTF8'
+	 TYPE truetype
+         FONT verdana
+         SIZE 9
+#ENCODING 'UTF8'
+        # TYPE BITMAP
+        # SIZE MEDIUM
+         COLOR 50 50 50
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+	 MINDISTANCE 80
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'orte_4'
+    GROUP 'Ortschaften'
+    TYPE POINT
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=geoportal_latin host=localhost  port=5432"
+    DATA" the_geom FROM (SELECT gid, name_gn, the_geom, att_ewz_int FROM gemeinde_punkte where att_ewz_int>9999 and att_ewz_int<25000) AS foos USING UNIQUE gid USING SRID=31466"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Orte 4'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+PROJECTION
+    'init=epsg:31466'
+  END
+    STATUS ON
+    MINSCALEDENOM 50000
+    MAXSCALEDENOM 800000
+    LABELITEM 'name_gn'
+    LABELMINSCALEDENOM 50000
+    CLASS
+       NAME '10000 - <25000 EW' 
+       STYLE
+         SYMBOL 'punkt'
+         SIZE 10
+         COLOR 200 0 0
+         OUTLINECOLOR 0 0 0
+       END
+       LABEL
+	 ENCODING 'UTF8'
+	 TYPE truetype
+         FONT verdana
+         SIZE 10
+#ENCODING 'UTF8'
+        # TYPE BITMAP
+        # SIZE MEDIUM
+         COLOR 50 50 50
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+	 ANTIALIAS true
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'orte_5'
+    GROUP 'Ortschaften'
+    TYPE POINT
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=geoportal_latin host=localhost port=5432 "
+    DATA" the_geom FROM (SELECT gid, name_gn, the_geom, att_ewz_int FROM gemeinde_punkte where att_ewz_int>24999 and att_ewz_int<50000) AS foos USING UNIQUE gid USING SRID=31466"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Orte 5'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+PROJECTION
+    'init=epsg:31466'
+  END
+    STATUS ON
+    MINSCALEDENOM 50000
+    MAXSCALEDENOM 1500000
+    LABELITEM 'name_gn'
+    LABELMINSCALEDENOM 50000
+    CLASS
+       NAME '25000 - <50000 EW' 
+       STYLE
+         SYMBOL 'punkt'
+         SIZE 12
+         COLOR 200 0 0
+         OUTLINECOLOR 0 0 0
+       END
+       STYLE
+         SYMBOL 'punkt'
+         SIZE 5
+         COLOR 0 0 0
+       END
+       LABEL
+ANTIALIAS true
+	 #ENCODING 'UTF8'
+         #TYPE BITMAP
+         #SIZE MEDIUM
+ENCODING 'UTF8'
+	 TYPE truetype
+         FONT tahomabold
+         SIZE 9
+         COLOR 50 50 50
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'orte_6'
+    GROUP 'Ortschaften'
+    TYPE POINT
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=geoportal_latin host=localhost port=5432"
+    DATA" the_geom FROM (SELECT gid, name_gn, the_geom, att_ewz_int FROM gemeinde_punkte where att_ewz_int>49999 and att_ewz_int<85000) AS foos USING UNIQUE gid USING SRID=31466"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Orte 6'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+PROJECTION
+    'init=epsg:31466'
+  END
+    STATUS ON
+    MINSCALEDENOM 40000
+    MAXSCALEDENOM 1500000
+    LABELITEM 'name_gn'
+    LABELMINSCALEDENOM 50000
+    CLASS
+       NAME '50000 - <85000 EW' 
+       STYLE
+         SYMBOL 'quadrat'
+         SIZE 10
+         COLOR 200 0 0
+         OUTLINECOLOR 0 0 0
+       END
+       LABEL
+ANTIALIAS true
+ENCODING 'UTF8'
+	 TYPE truetype
+         FONT tahomabold
+         SIZE 10
+	 #ENCODING 'UTF8'
+         #TYPE BITMAP
+         #SIZE MEDIUM
+         COLOR 50 50 50
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'orte_7'
+    GROUP 'Ortschaften'
+    TYPE POINT
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=geoportal_latin host=localhost"
+    DATA" the_geom FROM (SELECT gid,name_gn,the_geom,att_ewz_int FROM gemeinde_punkte where att_ewz_int>84999) AS foos USING UNIQUE gid USING SRID=31466"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Orte 7'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+PROJECTION
+    'init=epsg:31466'
+  END
+    STATUS ON
+    MINSCALEDENOM 50000
+    LABELITEM 'name_gn'
+    LABELMINSCALEDENOM 40000
+    CLASS
+       NAME '>85000 EW' 
+       STYLE
+         SYMBOL 'quadrat'
+         SIZE 13
+         COLOR 200 0 0
+         OUTLINECOLOR 0 0 0
+       END
+       STYLE
+         SYMBOL 'quadrat'
+         SIZE 5
+         COLOR 0 0 0
+       END
+       LABEL
+	ANTIALIAS true
+	 ENCODING 'UTF8'
+	 TYPE truetype
+         FONT tahomabold
+         SIZE 11
+         COLOR 50 50 50
+         OUTLINECOLOR 255 255 254
+         POSITION auto
+       END
+    END
+  END
+
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'schutzhuette_0'
+    GROUP 'Ortschaften'
+    TYPE POINT
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from (select wkb_geometry, ogc_fid from ax_gebaeude where gebaeudefunktion=3281) as foo USING UNIQUE ogc_fid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Schutzhuetten 0'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    #MINSCALEDENOM 10001
+    MAXSCALEDENOM 10001
+    CLASS
+      NAME 'Schutzhuette'
+      STYLE
+       SYMBOL "schutzhuette"
+       COLOR 220 220 220
+       OUTLINECOLOR 1 1 1
+       #WIDTH 4
+       SIZE 25
+      END
+END
+  END
+
+
+
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'schutzhuette_1'
+    GROUP 'Ortschaften'
+    TYPE POINT
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from (select wkb_geometry, ogc_fid from ax_gebaeude where gebaeudefunktion=3281) as foo USING UNIQUE ogc_fid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Schutzhuetten 1'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MINSCALEDENOM 10001
+    MAXSCALEDENOM 35000
+    CLASS
+      NAME 'Schutzhuette'
+      STYLE
+       SYMBOL "schutzhuette"
+       COLOR 1 1 1
+       #OUTLINECOLOR 1 1 1
+       #WIDTH 4
+       SIZE 18
+      END
+END
+  END
+
+
+
+#----------------------------------------------------------------------
+
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'ax_leitung'
+    GROUP 'Leitungen'
+    TYPE LINE
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from (select wkb_geometry, ogc_fid from ax_leitung) as foo USING UNIQUE ogc_fid USING SRID=25832"
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Leitungen'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+  
+    MAXSCALEDENOM 50000
+    CLASS
+      NAME 'Leitungen'
+      STYLE
+       COLOR 150 150 150
+       #OUTLINECOLOR 1 1 1
+       WIDTH 1
+      END
+END
+  END
+
+
+
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
+
+  LAYER
+    NAME 'leitungsmasten'
+    GROUP 'Leitungen'
+    TYPE POINT
+    CONNECTIONTYPE postgis
+    CONNECTION "user=postgres dbname=atkis2 host=localhost port=5434"
+    DATA "wkb_geometry from (select wkb_geometry, ogc_fid from ax_bauwerkoderanlagefuerindustrieundgewerbe where bauwerksfunktion=1251) as foo USING UNIQUE ogc_fid USING SRID=25832"
+    #TODO set index!
+    PROCESSING "CLOSE_CONNECTION=DEFER"
+    METADATA
+      'wms_title' 	'Oberleitungsmast'
+      'wms_srs'   	'EPSG:31466 EPSG:31467 EPSG:25832 EPSG:4326 EPSG:4258'
+      'wms_abstract' 	'Digitales Landschaftsmodell'
+      'ows_keywordlist' 'DLM,Landschaftsmodell,Atkis'
+      'wms_extent' 	'290000 5420000 466000 5648000' 
+    END
+    STATUS ON
+    MAXSCALEDENOM 50000
+    CLASS
+      NAME 'Leitungsmast'
+      STYLE
+       SYMBOL "strommast"
+       COLOR 150 150 150
+       #OUTLINECOLOR 1 1 1
+       #WIDTH 4
+       SIZE 10
+      END
+    END
+  END
+
+
+
+#----------------------------------------------------------------------
+
+
+#----------------------------------------------------------------------
+#----------------------------------------------------------------------
+
+END
