<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Sven,<br>
<br>
It's not the role of gdalwarp to tell the color to be rendered with no
data values.<br>
In your example, gdalwarp tells the renderer to display the pixels with
values equal to 255 with a color specified by the renderer.<br>
It only adds in the tif files a tag that set the white color as
transparent.<br>
<br>
For example, with Mapserver as a renderer, you will set in the mapfile
the background color as white (IMAGECOLOR 255 255 255).<br>
<br>
What software are you using to view your files ?<br>
What is the color in the source file that you want as transparent /
white ?<br>
<br>
Regards,<br>
<br>
Beno&icirc;t<br>
<br>
<br>
Le 28/05/2010 11:05, Sven Schroeter a &eacute;crit&nbsp;:
<blockquote cite="mid:68372501509947DABEB1C8857717FFCE@SVEN" type="cite">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <meta name="GENERATOR" content="MSHTML 8.00.6001.18904">
  <style></style>
  <div>Hi,<br>
I use the gdalwarp utility to transform geotifs:<br>
  <br>
gdalwarp -co compress=lzw -s_srs "+proj=tmerc +lat_0=0 +lon_0=6
+k=1.000000 <br>
+x_0=2500000+y_0=0 +ellps=bessel +units=m <br>
+towgs84=590.1181,99.6226,340.1890,1.185095,-1.334952,-2.904521,16.51559"
-t_srs <br>
"+proj=utm +ellps=GRS80 +datum=WGS84 +zone=32" -dstnodata 255 <br>
bbp07231053_2559-wla_0053-1a.tif out/bbp07231053_2559-wla_0053-1a.tif<br>
  <br>
I want to convert the new "nodata-areas" to be displayed in white (255
255 <br>
255)<br>
if I try -dstnodata 255&nbsp; or -dstnodata "255 255 255" in every picture
the no <br>
data areas have other colors but not white. What can I do?<br>
  <br>
Thanks<br>
Sven </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
</body>
</html>