PostGIS  2.1.10dev-r@@SVN_REVISION@@
def rtrowdump.pt2gdt (   pt)
Translate WKT Raster pixel type to GDAL type

Definition at line 41 of file rtrowdump.py.

41 def pt2gdt(pt):
42  """Translate WKT Raster pixel type to GDAL type"""
43  pixtypes = {
44  '8BUI' : osgeo.gdalconst.GDT_Byte,
45  '16BSI' : osgeo.gdalconst.GDT_Int16,
46  '16BUI' : osgeo.gdalconst.GDT_UInt16,
47  '32BSI' : osgeo.gdalconst.GDT_Int32,
48  '32BUI' : osgeo.gdalconst.GDT_UInt32,
49  '32BF' : osgeo.gdalconst.GDT_Float32,
50  '64BF' : osgeo.gdalconst.GDT_Float64
51  }
52  return pixtypes.get(pt, 'UNKNOWN')
53 
def pt2gdt(pt)
Definition: rtrowdump.py:41