[gdal-dev] Error: Unable to export GeoTIFF file with different datatypes per different bands. All bands should have the same types in TIFF.
Even Rouault
even.rouault at spatialys.com
Mon Oct 29 03:44:17 PDT 2018
Fabian,
>
> I just tried to convert a Cloudsat (2B-GEOPROF to be exact) to a TIFF. I
> try to do this using the Python bindings and creating a VRT [3] referencing
> the Subdatasets of the HDF 4 file.
I'd also note that you use different nodata value per band, which isn't
supported by the GTiff driver.
>
> When I try to do this, I get the following error:
>
> "Unable to export GeoTIFF file with different datatypes per different
> bands. All bands should have the same types in TIFF."
>
> The TIFF spec allows to define the dataset for each sample ([1] and [2]),
> but it seems that GDAL does not support it.
The limitation comes from libtiff itself. Would certainly be a significant
change in it and in the GDAL GTiff driver.
You can force all the bands on the highest bit depth.
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list