PostGIS  2.1.10dev-r@@SVN_REVISION@@
def rtrowdump.pt2numpy (   pt)
Translate WKT Raster pixel type to NumPy data type

Definition at line 54 of file rtrowdump.py.

54 def pt2numpy(pt):
55  """Translate WKT Raster pixel type to NumPy data type"""
56  numpytypes = {
57  '8BUI' : numpy.uint8,
58  '16BSI' : numpy.int16,
59  '16BUI' : numpy.uint16,
60  '32BSI' : numpy.int32,
61  '32BUI' : numpy.uint32,
62  '32BF' : numpy.float32,
63  '64BF' : numpy.float64
64  }
65  return numpytypes.get(pt, numpy.uint8)
66 
def pt2numpy(pt)
Definition: rtrowdump.py:54