Re: WarpedVRT and mixed data types


Even Rouault
 


In the second case I am surprised that the same exception is not raised. It may be because GDALCreateWarpedVRT (called by rasterio's WarpedVRT constructor) makes a mistake in determining the data types of the source bands and assigns "int32" to all of them.

The warping kernel only supports one single working data type for all bands. TheĀ  GDALWarpResolveWorkingDataType() function

https://github.com/OSGeo/gdal/blob/c6f0ea7d8a4da08e0d633eb381677c23f3934be3/gdal/alg/gdalwarper.cpp#L1439

will select the "largest" data type from input bands.

Even

--

http://www.spatialys.com
My software is free, but my time generally not.

Join main@rasterio.groups.io to automatically receive all group messages.