[gdal-dev] gdalwarp -dstalpha does not create alpha band

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Mon Feb 10 01:26:41 PST 2020


Hi,

It does really work for others. I just verified with GDAL 3.1.0dev and 2.4.2
on Windows. Could you repeat the test carefully with the bare minimum

gdalwarp -dstalpha without_alpha.tif with_alpha.tif

If it does not work please arrange a reproducible test case for us by
telling how to get exactly same GDAL version as you have, and point same
source tiff file as input.

-Jukka Rahkonen-


Jack Glendening wrote
> For gdalwarp (GDAL 2.3.1), using -dstalpha (hoping to get transparent
> pixels outside the original image area) ala 
> 
>  gdalwarp -dstalpha -srcnodata 0 -t_srs EPSG:4326 in.tif out.tif 
> 
> for an input geotiff RGB image (created by gdal_translate) I get an RGB
> output image, not an RGBA as I expected. From googling, it appears
> -dstalpha works for others. This seems so simple, cannot understand
> what could be going wrong.
> 
> Jack 
> 
> 
> _______________________________________________
> gdal-dev mailing list

> gdal-dev at .osgeo

> https://lists.osgeo.org/mailman/listinfo/gdal-dev





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list