[gdal-dev] GDAL DataType class

Frank Warmerdam warmerdam at pobox.com
Wed Oct 28 12:35:55 EDT 2009


Luca Fasano wrote:
> 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 

Luca,

No such function exists.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list