#
# Start of map file
#
MAP
	DATAPATTERN "the_geom"

	NAME OK
	STATUS ON
	SIZE 500 400
	#EXTENT -103.0898 31.51149 -94.3205 39.1066 #DD OK
	EXTENT -104.18599 30.5621 -93.22438 40.055993 #DD OK
	UNITS DD
	SHAPEPATH "G:\data\OK"
	FONTSET fonts.list
	#IMAGECOLOR 255 255 255
	IMAGECOLOR 218 227 240
	SYMBOLSET "symbolset.list"

	IMAGETYPE png24
	OUTPUTFORMAT
	   NAME png
	   DRIVER "GD/PNG"
	   MIMETYPE "image/png"
	   IMAGEMODE RGBA
	   EXTENSION "png"
		#TRANSPARENT ON
	END


	PROJECTION #GEOGRAPHIC WGS84
		proj=longlat
		ellps=WGS84
		datum=WGS84 
		no_defs 
	END

	 WEB
		#IMAGEPATH "C:\Develop\WEBGIS\output\"
		#IMAGEURL "/webgis/output/"
		METADATA
		    WMS_TITLE "OK Counties WMS"
            WMS_ABSTRACT "I am just trying to get this to work"
            WMS_ACCESSCONSTRAINTS "none"
            WMS_ONLINERESOURCE "http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/OK_TEST/OK_COUNTIES.map&"
            WMS_SRS "EPSG:4326"
            WMS_ENABLE_REQUEST "GetMap GetFeatureInfo"
		END
		
	END
	
	LEGEND
		STATUS ON
		KEYSIZE 18 12
		TRANSPARENT OFF
		LABEL
			TYPE BITMAP
			SIZE MEDIUM
			COLOR 0 0 89
		END
	END

	##############
	### LAYERS ###
	##############


	
	### COUNTIES ###
	LAYER 
		NAME Counties
		#GROUP "Administrative Boundary"
		TYPE POLYGON
		STATUS DEFAULT
		DATA OKCounties
		PROJECTION #GEOGRAPHIC NAD83
			proj=longlat
			ellps=GRS80 
			no_defs 
		END
		METADATA
			id "20"
			'ows_title' 'Counties'
			"ows_enable_request" "GetCapabilities"
			WMS_SRS "EPSG:4326"
			#WMS_ENABLE_REQUEST "GetMap GetFeatureInfo"			
		END
		LABELITEM "NAME"
		CLASS
			MAXSCALE 8000000
			MINSCALE 3000000
    		COLOR 247 239 222
    		OUTLINECOLOR 173 158 140
		END
		CLASS
			MAXSCALE 3000000
			MINSCALE 847000
    		COLOR 247 239 222
    		OUTLINECOLOR 173 158 140
    		LABEL
				TYPE TRUETYPE
				COLOR 132 130 0
				FONT arial-bold
				SIZE 7
	    		POSITION cc
	    		PARTIALS FALSE
	    		BUFFER 0
			END 
		END
		CLASS
			MAXSCALE 847000
			MINSCALE 45700
    		COLOR 247 239 222
    		OUTLINECOLOR 200 200 200
    		LABEL
				TYPE TRUETYPE
				COLOR 132 130 0
				OUTLINECOLOR 255 255 255 
				FONT arial-bold
				SIZE 10
	    		POSITION cc
	    		PARTIALS FALSE
	    		BUFFER 0
			END 
		END
		CLASS
			MAXSCALE 45700
    		COLOR 247 239 222
    		OUTLINECOLOR 200 200 200
    		LABEL
				TYPE TRUETYPE
				COLOR 132 130 0
				OUTLINECOLOR 255 255 255 
				FONT arial-bold
				SIZE 12
	    		POSITION cc
	    		PARTIALS FALSE
	    		BUFFER 0
			END 
		END		
	END
END