Translate GDAL data type to WKT Raster pixel type.
Definition at line 212 of file raster2pgsql.py.
Referenced by collect_pixel_types(), and wkblify_band_header().
213 """Translate GDAL data type to WKT Raster pixel type.""" 215 gdalc.GDT_Byte : {
'name':
'PT_8BUI',
'id': 4 },
216 gdalc.GDT_Int16 : {
'name':
'PT_16BSI',
'id': 5 },
217 gdalc.GDT_UInt16 : {
'name':
'PT_16BUI',
'id': 6 },
218 gdalc.GDT_Int32 : {
'name':
'PT_32BSI',
'id': 7 },
219 gdalc.GDT_UInt32 : {
'name':
'PT_32BUI',
'id': 8 },
220 gdalc.GDT_Float32 : {
'name':
'PT_32BF',
'id': 10 },
221 gdalc.GDT_Float64 : {
'name':
'PT_64BF',
'id': 11 }
228 return pixtypes.get(gdt, 13)