[Mapserver-users] 24 bit raster support

Tyler Mitchell tjmitchell at riverside.bc.ca
Fri Jul 16 11:40:14 EDT 2004


Yes and yes.

> Does MapServer 4.2 support 24 bit raster imagery right 'out of the box'? 


Most likely, the version have does support it.

> I'm displaying a 24 bit raster on my site, but the color quality is 
> quite poor. 
> I'm relatively inexperienced with mapserver, but do I have to 
> specify something in my .map file for mapserver to treat it as 24 bit? 

Yes, you need to be explicit.
Adding something like this after the WEB section will get you started:

---------
IMAGETYPE png

OUTPUTFORMAT
  NAME png
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE RGB #PC256
  EXTENSION "png"
END
---------

> LAYER 
>     NAME "Oakville Raster" 
>     STATUS OFF 
>     DATA "./images/ORTH176080481102002FBS.tif" 
>     TYPE RASTER 
>     UNITS METERS 
>     SIZEUNITS PIXELS 
>     PROJECTION 
>       "init=epsg:26917"      #UTM Zone 17N NAD 83 
>     END 
> END 
> 
> Any ideas? 
> 
> Kevin



More information about the mapserver-users mailing list