PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ pt2fmt()

pixval.pt2fmt (   pt)

Definition at line 31 of file pixval.py.

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