[MAPSERVER-USERS] transparency problem - unable to see raster under vector

Paul McCullough paul.mccullough at sfgov.org
Wed Feb 20 13:40:39 EST 2008


All,

I want to display a vector layer (roads) over a raster layer (orthophoto).
It seems that no matter what I try, the vector layer remains opaque 
and I cannot see the raster image in the background.
I have tried the following (some were in desperation):
 - various incantations in the map file (see below)
 - change layer order in map file (although last in map file comes out on
top)
 - tried calling out individual layers in URL
 - read lots of nabble entries

 
Here is my basic URL:
http://10.1.15.68/cgi-bin/mapserv.exe?
&map=/ms4w/maps/hybrid.test.map
&LAYERS=hybrid
&UNITS=dd
&PROJECTION=EPSG%3A4326
&SERVICE=WMS
&VERSION=1.1.1
&REQUEST=GetMap
&STYLES=
&EXCEPTIONS=application%2Fvnd.ogc.se_inimage
&FORMAT=image%2Fjpeg
&SRS=EPSG%3A4326
&BBOX=-122.48949990400003,37.752500096,-122.42699980800003,37.815000192
&WIDTH=256
&HEIGHT=256



Here is my map file:
MAP

	IMAGECOLOR 153 179 204
	#IMAGETYPE PNG24
	FONTSET fonts.list
	
	OUTPUTFORMAT
		NAME 'AGG'
		#NAME 'AGG_PNG24'
		DRIVER AGG/PNG
		IMAGEMODE RGBA
		#IMAGEMODE PC256
		TRANSPARENT ON
		#FORMATOPTION     "transparent=on" 
	END
		
	UNITS DD
	TRANSPARENT TRUE
	PROJECTION 
		"init=EPSG:4326"
	END

	WEB
		IMAGEPATH "/tmp/"
		IMAGEURL "tmp/"
		METADATA
			"wms_title" "a wms title"
			"wms_srs" "EPSG:4326"
		END
		LOG "C:/ms4w/logs/mapserver.log"
	END

	SYMBOL
		NAME "line_solid"
		TYPE ellipse
		POINTS 1 1 END
		FILLED true
	END 	
	
	LAYER
		NAME "level6"
		GROUP "hybrid"
		STATUS ON
		TILEINDEX "..\data\level6.shp"
		TILEITEM "Location"
		TYPE RASTER
		#TRANSPARENCY ALPHA
		#TRANSPARENCY 50
		OFFSITE 0 0 0
		CLASS
			MINSCALE 56001
			MAXSCALE 100000
		END
	END	

	LAYER
		NAME "roads_1"
		GROUP "hybrid"
		CONNECTIONTYPE postgis
		CONNECTION "user=postgres password=postgres dbname=postgis host=localhost
port=5432"
		DATA "the_geom from teleatlas_nw"
		FILTER "freeway = '1'"
		TYPE LINE
		STATUS DEFAULT
		TRANSPARENCY ALPHA
		PROJECTION
			"init=EPSG:102643"
		END
		LABELCACHE on
		LABELITEM "name"
		CLASS
			NAME 'roads_1'
			STYLE
				COLOR 182 151 52
				SYMBOL "line_solid"
				SIZE 8
			END
		END
	END
	
END

Thanks
Paul

-- 
View this message in context: http://www.nabble.com/transparency-problem---unable-to-see-raster-under-vector-tp15595301p15595301.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the mapserver-users mailing list