PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ pt2numpy()

def rtrowdump.pt2numpy (   pt)
Translate WKT Raster pixel type to NumPy data type

Definition at line 52 of file rtrowdump.py.

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