PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ pt2fmt()

def pixval.pt2fmt (   pt)

Definition at line 31 of file pixval.py.

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