[gdal-dev] Raster Band Support Info
even.rouault at spatialys.com
Wed Sep 7 15:46:55 PDT 2016
Le jeudi 08 septembre 2016 00:29:54, Andrew Bell a écrit :
> I assume that there are limits to the number of raster bands supported by
> various drivers that support raster creation.
> Is there a call I can make
> to determine this limit?
Some drivers have a test when the format has a limitation and will error out
cleanly if you call Create() with too many bands. Other drivers don't have a
clear limitation (thinking of raw formats), but if you call them with
something crazy like INT_MAX then you might crash the process due to out of
Driver metadata to document dimensions and band count limitations might be
indeed useful, if someone wants to tackle that.
Spatialys - Geospatial professional services
More information about the gdal-dev