[gdal-dev] GDAL DataType class
Luca Fasano
lucafasano at interfree.it
Wed Oct 28 12:19:28 EDT 2009
Hi all,
I need a way to retrieve a GDAL DataType (its code or its string name,
it's the same) starting from all information on it. Does it exist a
class or method to to this?
For example:
GdalDataType(nbits=32, float=True, Complex=True) -> gdal.GDT_CFloat32
I use Python bindings for GDAL.
I'd like to avoid building the string manually (i.e.
'GDT_'+'C'+'Float'+'32')
Thanks
More information about the gdal-dev
mailing list