[gdal-dev] Reprojecting orthoimages and transparent borders

Neumann, Andreas a.neumann at carto.net
Thu Feb 25 05:46:15 PST 2016


Hi, 

When reprojecting RGB orthoimages with gdalwarp from one projection
system into another, there is often rotation involved and thus there
will be black pixels around the borders. My target format is TIFF with
JPEG compression. 

Is there a way to tell gdalwarp to set these nodata pixels transparent? 

I tried using -dstalpha but gdalwarp tells me this is incompatible with
"-co PHOTOMETRIC=YCBCR", becauses this only supports 3 bands. 

Thank you if you have any idea if there is some setting for RGB Geotiff
files to set nodata pixels to transparent. 

Andreas

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160225/6ca50844/attachment.html>


More information about the gdal-dev mailing list