[Mapserver-users] 24 bit raster support

kgrootendorst at baird.com kgrootendorst at baird.com
Fri Jul 16 08:45:18 PDT 2004


This is a multipart message in MIME format.
--=_alternative 00568E2585256ED3_=
Content-Type: text/plain; charset="US-ASCII"

Awesome.  Thanks Tyler.

Kevin




Tyler Mitchell <tjmitchell at riverside.bc.ca> 
07/16/2004 11:40 AM

To
kgrootendorst at baird.com
cc
mapserver-users at lists.gis.umn.edu
Subject
[SPAM] - Re: [Mapserver-users] 24 bit raster support - Email found in 
subject






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


--=_alternative 00568E2585256ED3_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Awesome.  Thanks Tyler.<br>
</font>
<br><font size=2 face="sans-serif">Kevin</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Tyler Mitchell <tjmitchell at riverside.bc.ca></b>
</font>
<p><font size=1 face="sans-serif">07/16/2004 11:40 AM</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">kgrootendorst at baird.com</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top><font size=1 face="sans-serif">mapserver-users at lists.gis.umn.edu</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">[SPAM] - Re: [Mapserver-users]
24 bit raster support - Email found in subject</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Yes and yes.<br>
<br>
> Does MapServer 4.2 support 24 bit raster imagery right 'out of the
box'? <br>
<br>
<br>
Most likely, the version have does support it.<br>
<br>
> I'm displaying a 24 bit raster on my site, but the color quality is
<br>
> quite poor. <br>
> I'm relatively inexperienced with mapserver, but do I have to <br>
> specify something in my .map file for mapserver to treat it as 24
bit? <br>
<br>
Yes, you need to be explicit.<br>
Adding something like this after the WEB section will get you started:<br>
<br>
---------<br>
IMAGETYPE png<br>
<br>
OUTPUTFORMAT<br>
  NAME png<br>
  DRIVER "GD/PNG"<br>
  MIMETYPE "image/png"<br>
  IMAGEMODE RGB #PC256<br>
  EXTENSION "png"<br>
END<br>
---------<br>
<br>
> LAYER <br>
>     NAME "Oakville Raster" <br>
>     STATUS OFF <br>
>     DATA "./images/ORTH176080481102002FBS.tif"
<br>
>     TYPE RASTER <br>
>     UNITS METERS <br>
>     SIZEUNITS PIXELS <br>
>     PROJECTION <br>
>       "init=epsg:26917"      #UTM
Zone 17N NAD 83 <br>
>     END <br>
> END <br>
> <br>
> Any ideas? <br>
> <br>
> Kevin<br>
</tt></font>
<br>
--=_alternative 00568E2585256ED3_=--



More information about the MapServer-users mailing list