Re: [gdal-dev] Create dummy internal mask

2018-09-03 Thread Even Rouault
On dimanche 2 septembre 2018 21:43:51 CEST Denis Rykov wrote: > Hi, > > I need to add dummy internal mask to 1-band GeoTIFF for further processing. > The drawback of the following approach is that it mask legitimate 0 pixels: > > gdal_translate --config GDAL_TIFF_INTERNAL_MASK YES -mask 1 nomask.

[gdal-dev] Create dummy internal mask

2018-09-02 Thread Denis Rykov
Hi, I need to add dummy internal mask to 1-band GeoTIFF for further processing. The drawback of the following approach is that it mask legitimate 0 pixels: gdal_translate --config GDAL_TIFF_INTERNAL_MASK YES -mask 1 nomask.tif > mask.tif The workaround to come over this issue looks like: gdal_