[ka-Map-users] Blank WMS Tiles

Jeffrey Johnson ortelius at gmail.com
Wed Aug 30 18:09:18 EDT 2006


Hello All,

I have a ka-map application up and running @
http://67.153.173.215/aisviewer/  It is using several shapefiles to
draw aeronautical features. I have run into one problem that I thought
someone on the list might be able to help me sort out. I have added
several WMS layers to the mapfile, but when the I turn these layers on
from the TOC, I get blank tiles. I have attached the mapfile for
anyones reference. Is there something wrong with the mapfile, or with
the way mapserver is acting as a WMS client?

Any help would be appreciated.

Thanks,

Jeff
-------------- next part --------------
MAP
	NAME aisviewer 
	STATUS ON
	SIZE 1000 800
	EXTENT -180.000000000 -90.000000000 180.000000000 90.000000000
	ANGLE 0
	UNITS DD
	PROJECTION
		"init=epsg:4326"
	END
	
	IMAGETYPE PNG 
	IMAGECOLOR 255 255 255
	TRANSPARENT ON 
	
	SHAPEPATH "/data/geodata/vector/aero/dafif_0601/avdafif"
	SYMBOLSET "symbols.sym"
	FONTSET "fontset.txt"
	
	OUTPUTFORMAT
		NAME png 
		DRIVER "GD/PNG"
		MIMETYPE "image/png"
		IMAGEMODE RGBA 
		EXTENSION "png"
		TRANSPARENT ON 
	END

	LEGEND
		OUTLINECOLOR 0 0 0
		KEYSIZE 26 24
		KEYSPACING 8 6
		TRANSPARENT TRUE
	END

	SCALEBAR
		UNITS kilometers
		TRANSPARENT TRUE
	END

	REFERENCE
		EXTENT -180 -90 180 90
		SIZE 241 121
		IMAGE /data/geodata/vector/aero/dafif_0601/avdafif/keymap.png
		COLOR -1 -1 -1
		OUTLINECOLOR 255 0 0
		MINBOXSIZE 8
	END
  
	##### ---- WMS LAYERS ---- #####


#	LAYER
#		NAME "blue marble"
#		TYPE RASTER
#		STATUS OFF 
#		CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?"
#		CONNECTIONTYPE WMS
#		GROUP "WMS_Blue_Marble"
#		METADATA
#			"wms_srs"				"EPSG:4326"
#			"wms_name"				"BMNG"
#			"wms_server_version"	"1.1.1"
#			"wms_format"			"image/png"
#		END
#	END
#	
	LAYER
		NAME "goesw"
		TYPE RASTER
		STATUS OFF
		CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/goes/west_ir.cgi?"
		CONNECTIONTYPE WMS
		GROUP "WMS_GOES"
		METADATA
			"wms_srs"				"EPSG:4326"
			"wms_name"				"west_ir_4km"
			"wms_server_version"	"1.1.1"
			"wms_format"			"image/png"
		END
	END

#	LAYER
#		NAME "goese"
#		TYPE RASTER
#		STATUS OFF
#		CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/goes/east_ir.cgi?"
#		CONNECTIONTYPE WMS
#		GROUP "WMS_GOES"
#		METADATA
#			"wms_srs"				"EPSG:4326"
#			"wms_name"				"east_ir_4km"
#			"wms_server_version"	"1.1.1"
#			"wms_format"			"image/png"
#		END
#	END
#	
#	LAYER
#		NAME "nexrad"
#		TYPE RASTER
#		STATUS OFF
#		CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?"
#		CONNECTIONTYPE WMS
#		GROUP "WMS_NEXRAD"
#	    METADATA
#			"wms_srs"				"EPSG:4326"
#			"wms_name"				"nexrad-n0r-m45m"
#			"wms_server_version"	"1.1.1"
#			"wms_format"			"image/gif"
#		END
#	END
#		
#	LAYER
#		NAME "landsat"
#		TYPE RASTER
#		STATUS ON 
#		CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?"
#		CONNECTIONTYPE WMS
#		GROUP "WMS_LANDSAT"
#		METADATA
#			"wms_srs"				"EPSG:4326"
#			"wms_name"				"global_mosaic"
#			"wms_server_version"	"1.1.1"
#			"wms_format"			"image/png"
#		END
#	END


	##### ---- BASE LAYERS ---- #####

	LAYER
		NAME "CTRY"
		TYPE polygon
		DATA CTY/country
		STATUS DEFAULT 
#		LABELITEM "CNTRY_NAME"
#		LABELITEM "na2_descri"
#		LABELCACHE on
#		TRANSPARENCY 30
		GROUP "COUNTRIES"
		CLASS
			NAME "National Boundaries"
			SYMBOL "circle"
#			COLOR 242 255 217
			OUTLINECOLOR 40 111 27
			SIZE 2
#			LABEL
#     			TYPE TRUETYPE
#   			SIZE 12
#   			FONT verdana
#  				COLOR 156 171 54
#  	  	  	    OUTLINECOLOR 0 0 0
#  				POSITION Auto
#  		  	    #BACKGROUNDCOLOR 255 255 168
#  				MINDISTANCE 1100
#  				Buffer 30
#  				ANTIALIAS true
#  				PARTIALS false
#		    END		
		END
	END		

	LAYER
		NAME "IR"
		TYPE polygon
		DATA IR/IRHP
		STATUS DEFAULT
		LABELITEM "NAME"
		GROUP "ICAO REGIONS"
		CLASS
			NAME "ICAO Regions"
			OUTLINECOLOR 150 111 255
			SIZE 1
#			LABEL
# 				TYPE TRUETYPE
# 				SIZE 12
#	 			FONT verdana
#				COLOR 156 171 54
#			    OUTLINECOLOR 0 0 0
#	 			POSITION Auto
#   			BACKGROUNDCOLOR 255 255 168
# 				MINDISTANCE 1100
# 				ANTIALIAS true
#		    END		
		END
	END
	

	##### ---- AERO LAYERS ---- #####

	LAYER
		NAME "BDRYH" 
		TYPE line 
		DATA BDRY/BDRYHP 
		STATUS DEFAULT
		MINSCALE 0
		MAXSCALE 25000001
		LABELITEM "NAME"
		LABELMINSCALE 0
		LABELMAXSCALE 1000001
		LABELCACHE on
		GROUP "Boundaries"
		CLASS
			NAME "Airspace"
			COLOR 0 13 159
			SYMBOL "BDRY"  
			SIZE 1
#			LABEL
#	  			TYPE TRUETYPE
# 				SIZE 10
#  				FONT verdana
#  				COLOR 0 0 0
#  				BACKGROUNDCOLOR 255 255 168
#  				MINDISTANCE 1100
#  				POSITION Auto
#  				ANGLE Auto
#  				ANTIALIAS true
# 			END 
		END
	END
	
	LAYER
		NAME "BDRYL" 
		TYPE line 
		DATA BDRY/BDRYLP 
		STATUS DEFAULT
		MINSCALE 0
		MAXSCALE 25000001
		LABELITEM "NAME"
		LABELMINSCALE 0
 		LABELMAXSCALE 1000001
		LABELCACHE on
		GROUP "Boundaries"
		CLASS
			NAME "Airspace"
			COLOR 0 13 159
			SYMBOL "BDRY"  
			SIZE 1
#			LABEL
# 				TYPE TRUETYPE
# 				SIZE 10
# 				FONT verdana
# 				COLOR 0 0 0
#				BACKGROUNDCOLOR 255 255 168
# 				MINDISTANCE 1100
# 				POSITION Auto
# 				ANGLE Auto
# 				ANTIALIAS true
#			END 
		END
	END

	LAYER
		NAME "BDRYL_E" 
		TYPE line 
		DATA BDRY/BDRYL_E 
		STATUS DEFAULT
		MINSCALE 0
		MAXSCALE 25000001
		LABELITEM "NAME"
		LABELMINSCALE 0
 		LABELMAXSCALE 1000001
		LABELCACHE on
		GROUP "Boundaries"
		CLASS
			NAME "Airspace"
			COLOR 0 13 159
			SYMBOL "BDRY"  
			SIZE 1
#			LABEL
#   				TYPE TRUETYPE
#   				SIZE 10
#   				FONT verdana
#   				COLOR 0 0 0
#   				BACKGROUNDCOLOR 255 255 168
#   				MINDISTANCE 1100
#   				POSITION Auto
#   				ANGLE Auto
#   				ANTIALIAS true
#  			END 
		END
	END
	
	LAYER
		NAME "BDRYH_E" 
		TYPE line  
		DATA BDRY/BDRYH_E 
		STATUS DEFAULT
		MINSCALE 0
		MAXSCALE 25000001
		LABELITEM "NAME"
		LABELMINSCALE 0
 		LABELMAXSCALE 1000001
		LABELCACHE on
		GROUP "Boundaries"
		CLASS
			NAME "Airspace"
			COLOR 0 13 159
			SYMBOL "BDRY"  
			SIZE 1
#		LABEL
# 				TYPE TRUETYPE
# 				SIZE 10
# 				FONT verdana
# 				COLOR 0 0 0
# 				#BACKGROUNDCOLOR 255 255 168
# 				MINDISTANCE 1100
# 				POSITION Auto
# 				ANGLE Auto
# 				ANTIALIAS true
#			END 
		END
	END

	LAYER
		NAME "SUASH" 
		TYPE line 
		DATA SUAS/SUASHP
		STATUS DEFAULT
		MINSCALE 0
		MAXSCALE 12000001
		LABELITEM "NAME"
		LABELMINSCALE 0
 		LABELMAXSCALE 1000001
		LABELCACHE on
		GROUP "Special_Use"
		CLASS
			NAME "Special Use Airspace"
			COLOR 12 119 207
			SYMBOL "SUAH"
			SIZE 1
#			LABEL
#				TYPE TRUETYPE
#				SIZE 10
#				FONT verdana
#				COLOR 12 119 207
#				OUTLINECOLOR 0 0 0
#				BACKGROUNDCOLOR 255 255 168
#   				MINDISTANCE 1100
#				POSITION Auto
#   				ANTIALIAS true
#			END		
		END
	END
	
	LAYER
		NAME "SUASL" 
		TYPE line 
		DATA SUAS/SUASLP 
		STATUS DEFAULT
		MINSCALE 0
		MAXSCALE 12000001
		LABELITEM "NAME"
		LABELMINSCALE 0
 		LABELMAXSCALE 1000001
		LABELCACHE on
		GROUP "Special_Use"
		CLASS
			NAME "Special Use Airspace"
			COLOR 12 119 207
			SYMBOL "SUAH"
			SIZE 1
#			LABEL
#	 			TYPE TRUETYPE
#   			SIZE 10
#   			FONT verdana
#   			COLOR 12 119 207
#				OUTLINECOLOR 0 0 0
#  				BACKGROUNDCOLOR 255 255 168
#				MINDISTANCE 1100
#				POSITION Auto
#  				ANTIALIAS true
#  			END		
		END
	END
	
	LAYER
		NAME "ATSH" 
		TYPE line 
		DATA ATS/ATSH 
		STATUS DEFAULT
		MINSCALE 0
		MAXSCALE 7500001
		LABELITEM "ATS_IDENT"
		LABELMINSCALE 0
 		LABELMAXSCALE 1000001
		LABELCACHE on
		GROUP "ATS_Routes"
		CLASS
			NAME "Airways"
			COLOR 0 145 0 
			SYMBOL "ATSH"
			SIZE 1
			LABEL
	 			TYPE TRUETYPE
  				SIZE 10
				FONT verdana
				COLOR 24 250 0
	 			OUTLINECOLOR 0 0 0
	 			BACKGROUNDCOLOR 255 255 168
	 			MINDISTANCE 1100
  				POSITION Auto
	 			ANGLE Auto
  				ANTIALIAS true
  			END
		END
	END
	
	LAYER
		NAME "ATSL" 
		TYPE line 
		DATA ATS/ATSL 
		STATUS DEFAULT
		MINSCALE 0
		MAXSCALE 7500001
		LABELITEM "ATS_IDENT"
		LABELMINSCALE 0
 		LABELMAXSCALE 1000001
		LABELCACHE on
		GROUP "ATS_Routes"
		CLASS
			NAME "Airways"
			COLOR 0 145 0 
			SYMBOL "ATSH"
			SIZE 1
			LABEL
	  			TYPE TRUETYPE
				SIZE 10
	 			FONT verdana
	  			COLOR 24 250 0
	  			OUTLINECOLOR 0 0 0
	 			BACKGROUNDCOLOR 255 255 168
	 			MINDISTANCE 1100
	 			POSITION Auto
	 			ANGLE Auto
	  			ANTIALIAS true
 			END
		END
	END
	
	LAYER
		NAME "WPT" 
		TYPE point 
		DATA WPT/WPTH_P
		STATUS DEFAULT
		MINSCALE 0
		MAXSCALE 7500001
		LABELITEM "WPT_IDENT"
		LABELMINSCALE 0
 		LABELMAXSCALE 1000001
 		LABELCACHE ON
		GROUP "Waypoints"
		CLASS
			NAME "Reporting Points"
			SYMBOL "WPT" 
			COLOR 0 0 0 
			SIZE 8
			LABEL
  				TYPE TRUETYPE
  				SIZE 10
  				FONT verdana
  				COLOR 233 25 25
  				OUTLINECOLOR 0 0 0
  				BACKGROUNDCOLOR 255 255 168
  				ANGLE Auto
  				MINDISTANCE 1100
  				POSITION Auto
  				ANTIALIAS true
  			END 
		END
	END
	
	LAYER
		NAME "NAV" 
		TYPE point 
		DATA NAV/NAVL
		STATUS DEFAULT
		MINSCALE 0
		MAXSCALE 7500001
		LABELMINSCALE 0
 		LABELMAXSCALE 1000001
 		LABELCACHE ON
		LABELITEM "NAV_IDENT"
		CLASSITEM "TYPE"
		GROUP "Waypoints"
		CLASS
			NAME "TACAN"
			EXPRESSION ('[TYPE]' eq '3')	 
			STYLE
   				SYMBOL "NAVH_TACAN"
  				SIZE 16
   				COLOR 88 144 0 
   				OUTLINECOLOR -1 -1 -1
 			END
			LABEL
   			TYPE TRUETYPE
	 			SIZE 10
  			FONT verdana
	 			COLOR 0 0 0
  			OUTLINECOLOR 193 211 65
  			MINDISTANCE 1100
				POSITION Auto
				ANTIALIAS true
 			END
		END
		CLASS
			NAME "VORTAC"
			EXPRESSION ('[TYPE]' eq '2')
			STYLE
   				SYMBOL "NAVH_VORTAC" 
   				SIZE 16
   				COLOR 0 0 0
   				OUTLINECOLOR -1 -1 -1
	  		END
  			LABEL
	  			TYPE TRUETYPE
	 				SIZE 10
	 				FONT verdana
	 				COLOR 0 0 0
	 				OUTLINECOLOR 193 211 65
					MINDISTANCE 1100
					POSITION Auto
   				ANTIALIAS true
			END
		END
		CLASS
			NAME "VOR"
			EXPRESSION ('[TYPE]' eq '1')
			STYLE
      		SYMBOL "NAVH_VOR" 
					COLOR 88 144 0 
					SIZE 16
					OUTLINECOLOR -1 -1 -1
  			END
 			LABEL
					TYPE TRUETYPE
	 				SIZE 10
	 				FONT verdana
	 				COLOR 0 0 0
	  			OUTLINECOLOR 193 211 65
	 				MINDISTANCE 1100
	 				POSITION Auto
	 				ANTIALIAS true
			END
		END
		CLASS
			NAME "VOR-DME"
			EXPRESSION ('[TYPE]' eq '4')
			STYLE
   				SYMBOL "NAVH_VOR-DME"
   				SIZE 16
   				COLOR 0 0 0
   				OUTLINECOLOR -1 -1 -1
  			END
			LABEL
   				TYPE TRUETYPE
   				SIZE 10
   				FONT verdana
   				COLOR 0 0 0
   				OUTLINECOLOR 193 211 65
	 			MINDISTANCE 1100
				POSITION Auto
   				ANTIALIAS true
  			END
		END 
		CLASS
			NAME "NDB"
			EXPRESSION ('[TYPE]' eq '5')
			STYLE
   				SYMBOL "NAVH_NDB"
   				SIZE 16
   				COLOR 0 0 0
   				OUTLINECOLOR -1 -1 -1
  			END
			LABEL
   				TYPE TRUETYPE
   				SIZE 10
   				FONT verdana
   				COLOR 0 0 0
   				OUTLINECOLOR 193 211 65
	 			MINDISTANCE 1100
				POSITION Auto
   				ANTIALIAS true
  			END
		END
		CLASS
			NAME "NDB-DME"
			EXPRESSION ('[TYPE]' eq '7')
			STYLE
   				SYMBOL "NAVH_NDB-DME"
   				SIZE 16
   				COLOR 0 0 0
   				OUTLINECOLOR -1 -1 -1
  			END
			LABEL
   				TYPE TRUETYPE
   				SIZE 10
   				FONT verdana
   				COLOR 0 0 0
   				OUTLINECOLOR 193 211 65
	 			MINDISTANCE 1100
				POSITION Auto
   				ANTIALIAS true
  			END
		END  
		CLASS
			NAME "DME (EXCLUDING ILS-DME)"
			EXPRESSION ('[TYPE]' eq '9')
			STYLE
   				SYMBOL "NAVH_DME"
   				SIZE 16
   				COLOR 0 0 0
   				OUTLINECOLOR -1 -1 -1
  			END
			LABEL
   				TYPE TRUETYPE
   				SIZE 10
   				FONT verdana
   				COLOR 0 0 0
   				OUTLINECOLOR 193 211 65
	 			MINDISTANCE 1100
				POSITION Auto
   				ANTIALIAS true
  			END
		END
	END   
	
	LAYER
		NAME "ARPT" 
		TYPE point 
		DATA ARPT/ARPT 
		STATUS DEFAULT
		MINSCALE 0
		MAXSCALE 3000001
		CLASSITEM "TYPE"
		LABELITEM "ICAO"
		LABELMINSCALE 0
 		LABELMAXSCALE 1000001
 		LABELCACHE ON
		GROUP "Airports"
		CLASS
			NAME "Active Civil Airports"
			EXPRESSION ('[TYPE]' eq 'A')	 
			STYLE
   				SYMBOL "ARPT_A"
  				SIZE 16
   				COLOR 0 13 159 
   				OUTLINECOLOR -1 -1 -1
  			END
			LABEL
   				TYPE TRUETYPE
   				SIZE 10
   				FONT verdana
   				COLOR 0 0 0
	  			#BACKGROUNDCOLOR 255 255 168
					MINDISTANCE 1100
  				POSITION Auto
   				ANTIALIAS true
	  		END
		END
		CLASS
			NAME "Active Joint (Civil and Military)"
			EXPRESSION ('[TYPE]' eq 'B')	 
			STYLE
   				SYMBOL "ARPT_B"
  				SIZE 18
   				COLOR 0 13 159 
   				OUTLINECOLOR -1 -1 -1
  			END
			LABEL
   				TYPE TRUETYPE
   				SIZE 10
   				FONT verdana
   				COLOR 0 0 0
	  			BACKGROUNDCOLOR 255 255 168
  				POSITION Auto
   				ANTIALIAS true
  			END
		END
		CLASS
			NAME "Military"
			EXPRESSION ('[TYPE]' eq 'C')	 
			STYLE
   				SYMBOL "ARPT_C"
  				SIZE 16
   				COLOR 0 143 0  
   				OUTLINECOLOR -1 -1 -1
  			END
			LABEL
	 			TYPE TRUETYPE
   				SIZE 10
	  			FONT verdana
				COLOR 0 0 0
	 			BACKGROUNDCOLOR 255 255 168
	 			POSITION Auto
	 			ANTIALIAS true
  			END
		END
		CLASS
			NAME "Active Other"
			EXPRESSION ('[TYPE]' eq 'D')	 
			STYLE
   				SYMBOL "ARPT_A"
  				SIZE 16
   				COLOR 135 155 0 
   				OUTLINECOLOR -1 -1 -1
  			END
			LABEL
   				TYPE TRUETYPE
   				SIZE 10
   				FONT verdana
   				COLOR 0 0 0
	  			BACKGROUNDCOLOR 255 255 168
  				POSITION Auto
   				ANTIALIAS true
  			END
		END
	END
	
	LAYER
		NAME "RWY" 
		TYPE polygon 
		DATA RWY/RUNWAY
		STATUS DEFAULT
		MINSCALE 0
		MAXSCALE 100001
		LABELITEM "HIGH_IDENT"
		LABELMINSCALE 0
 		LABELMAXSCALE 1000001
 		LABELCACHE ON
		GROUP "Runways"
		CLASS
			NAME "Runway"
			COLOR 150 0 0
			OUTLINECOLOR 150 0 0 
			SIZE 1
			LABEL
   				TYPE TRUETYPE
   				SIZE 10
   				FONT verdana
   				COLOR 233 25 25
   				OUTLINECOLOR 0 0 0
   				BACKGROUNDCOLOR 255 255 168
   				MINDISTANCE 1100
   				POSITION Auto
   				ANTIALIAS true
	  		END 
		END
	END
	
	LAYER
		NAME "HLPT" 
		TYPE point 
		DATA HLPT/HLPT
		STATUS DEFAULT
		MINSCALE 0
		MAXSCALE 3000001
		LABELITEM "ICAO"
		LABELMINSCALE 0
 		LABELMAXSCALE 1000001
 		LABELCACHE ON
		GROUP "Heliports"
		CLASS
			NAME "Heliports"
			SYMBOL "HLPT" 
			COLOR 0 0 0 
			SIZE 16
			LABEL
   				TYPE TRUETYPE
   				SIZE 10
   				FONT verdana
   				COLOR 233 25 25
   				MINDISTANCE 1100
   				POSITION Auto
   				ANTIALIAS true
	  		END 
		END
	END

#	LAYER
#		NAME "md"
#		TYPE point
#		DATA NAV/NAVH
#		STATUS DEFAULT
#		MINSCALE 0
#		MAXSCALE 1000001
#		LABELCACHE ON
#		CLASS
#			NAME "MAGNETIC DECLINATION"
#			STYLE
#				COLOR 95 91 47
#				SYMBOL "MD2"  
#				SIZE 49
#				ANGLEITEM "MAG_VAR" 
#			END	
#		END	
#	END
#	
#	LAYER
#		NAME "md2"
#		TYPE point
#		DATA NAV/NAVH
#		STATUS DEFAULT
#		MINSCALE 0
#		MAXSCALE 1000001
#		LABELCACHE ON
#   	CLASS
#			NAME "MAGNETIC DECLINATION" 
#			STYLE
#				COLOR 95 91 47
#				SYMBOL "MD"  
#				SIZE 49
#				ANGLEITEM "MAG_VAR" 
#			END	
#		END	
#	END
	
END


More information about the ka-Map-users mailing list