22 #ifndef otbGdalDataTypeBridge_h
23 #define otbGdalDataTypeBridge_h
32 namespace GdalDataTypeBridge
38 if (
typeid(Type) ==
typeid(
char))
42 else if (
typeid(Type) ==
typeid(
unsigned char))
46 else if (
typeid(Type) ==
typeid(
unsigned short))
50 else if (
typeid(Type) ==
typeid(
short))
54 else if (
typeid(Type) ==
typeid(
int))
58 else if (
typeid(Type) ==
typeid(
unsigned int))
62 else if (
typeid(Type) ==
typeid(
long))
64 if (
sizeof(
long) == 8)
70 else if (
typeid(Type) ==
typeid(
unsigned long))
72 if (
sizeof(
unsigned long) == 8)
78 else if (
typeid(Type) ==
typeid(
float))
82 else if (
typeid(Type) ==
typeid(
double))
GDALDataType GetGDALDataType()
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.