PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ pt2fmt()

def pixval.pt2fmt (   pt)

Definition at line 30 of file pixval.py.

30 def pt2fmt(pt):
31  fmttypes = {
32  gdalc.GDT_Byte: 'B',
33  gdalc.GDT_Int16: 'h',
34  gdalc.GDT_UInt16: 'H',
35  gdalc.GDT_Int32: 'i',
36  gdalc.GDT_UInt32: 'I',
37  gdalc.GDT_Float32: 'f',
38  gdalc.GDT_Float64: 'f'
39  }
40  return fmttypes.get(pt, 'x')
41 
def pt2fmt(pt)
Definition: pixval.py:30