[Mapserver-users] raster transparent color

Dean Gadoury gadoury at dmsolutions.ca
Mon Jan 6 16:29:51 EST 2003


--------------040306020206060507070608
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

You can use OFFSITE for this. Example:

  LAYER
    NAME "raster_image"
    DATA "../data/image.tif"
    TYPE RASTER
    STATUS ON
    OFFSITE 0
  END

Pixels with a value of 0 will not be drawn, or will be drawn transparent 
depending on how you look at it.

Aaron D. Hunt wrote:

> Is there a way to make a color on a raster to be transparent? I have 
> some georef images of interpolated fields with a white fill out side 
> the field boundary. I want to overlay the interpolated fields with 
> ortho backgrounds.
>  
> Thank you for any help
>  
> Aaron D. Hunt


--------------040306020206060507070608
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body>
You can use OFFSITE for this. Example:<br>
<br>
&nbsp; LAYER<br>
&nbsp;&nbsp;&nbsp; NAME "raster_image"<br>
&nbsp;&nbsp;&nbsp; DATA "../data/image.tif"<br>
&nbsp;&nbsp;&nbsp; TYPE RASTER<br>
&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp; OFFSITE 0<br>
&nbsp; END<br>
<br>
Pixels with a value of 0 will not be drawn, or will be drawn transparent
depending on how you look at it.<br>
<br>
Aaron D. Hunt wrote:<br>
<blockquote type="cite"
 cite="mid008901c2b5c9$ded5e950$1805000a at zedxinc.com">  
  <meta http-equiv="Content-Type" content="text/html; ">
 
  <meta content="MSHTML 5.50.4919.2200" name="GENERATOR">
 
  <style></style>  
  <div><font face="Arial" size="2">Is there a way to make a color on a raster
to be  transparent? I have some georef images of interpolated fields with
a white fill  out side the field boundary. I want to overlay the interpolated
fields with  ortho backgrounds. </font></div>
 
  <div>&nbsp;</div>
 
  <div><font face="Arial" size="2">Thank you for any help</font></div>
 
  <div>&nbsp;</div>
 
  <div><font face="Arial" size="2">Aaron D. Hunt<br>
  </font></div>
</blockquote>
</body>
</html>

--------------040306020206060507070608--





More information about the mapserver-users mailing list