[gdal-dev] Fwd: NBITS=1 not preserved from vrt to tiff in multilayer tiff

Ritchie, Andrew aritchie at usgs.gov
Thu Jun 22 11:00:26 PDT 2017


From: Ritchie, Andrew <aritchie at usgs.gov>
Date: Thu, Jun 22, 2017 at 10:30 AM
Subject: NBITS=1 not preserved from vrt to tiff in multilayer tiff
To: gdal-dev at lists.osgeo.org


We are building TIFFs with fourteen layers, four of which are byte, and the
remainder being binary. We are able to generate binary tiffs with NBITS=1
and stack them with gdalbuildvrt -separate, but when muiltilayer tiffs are
created with gdal_translate or gdal_merge -separate, the NBITS metadata are
ignored and the resulting tiff has the same bit depth (byte) for all
fourteen layers.

Is there a way to force NBITS per band with a -co NBITS=1 option when using
gdal_merge with the -separate flag? alternatively, is there a way to force
gdal_translate to honor the NBITS of the source layers in a VRT?

Andy

-- 
====================================
Andy Ritchie
U.S. Geological Survey
Pacific Coastal and Marine Science Center
2885 Mission St.
Santa Cruz, CA 95060
Office (831) 460-7454
Cell (360) 460-9453
aritchie at usgs.gov
---------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170622/84ad2c75/attachment.html>


More information about the gdal-dev mailing list