[gdal-dev] Best way to mosaic and compress lots of tiff Black/white?

jr.morreale at enoreth.net jr.morreale at enoreth.net
Tue Nov 13 08:32:55 PST 2012


Hi,

You could start by merging all your tiff in a VRT then do 
gdal_translate -of Gtiff -co SPARSE_OK=TRUE -a_nodata 0 -co NBITS=1 -co 
"TILED=YES" -co "COMPRESS=CCITTFAX4" -co "INTERLEAVE=BAND" "example.vrt" 
"example.tif"

Le 2012-11-13 17:14, Pietro Rossin a écrit :
> Hello all
> I have ~1000 tiff/tfw RGB but with only 0 or 255 color value in all 
> bands
> (black/white).
> I want to mosaic them in a single image to be used in qgis and other 
> gis
> software.
>
> Which is the best way to do this? And to compress the resulting 
> image? May
> be Tiff?? Single band??
> Another problem is that I must apply a formula to input images to 
> transform
> 255 value to null, because of some white portion of each image that 
> overlap
> to black portion of the adiacent one..
>
> Thanks
> Pietro

Le 2012-11-13 17:14, Pietro Rossin a écrit :
> Hello all
> I have ~1000 tiff/tfw RGB but with only 0 or 255 color value in all 
> bands
> (black/white).
> I want to mosaic them in a single image to be used in qgis and other 
> gis
> software.
>
> Which is the best way to do this? And to compress the resulting 
> image? May
> be Tiff?? Single band??
> Another problem is that I must apply a formula to input images to 
> transform
> 255 value to null, because of some white portion of each image that 
> overlap
> to black portion of the adiacent one..
>
> Thanks
> Pietro


More information about the gdal-dev mailing list