PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ pt2fmt()

def raster2pgsql.pt2fmt (   pt)
Returns binary data type specifier for given pixel type.

Definition at line 243 of file raster2pgsql.py.

243 def pt2fmt(pt):
244  """Returns binary data type specifier for given pixel type."""
245  fmttypes = {
246  4: 'B', # PT_8BUI
247  5: 'h', # PT_16BSI
248  6: 'H', # PT_16BUI
249  7: 'i', # PT_32BSI
250  8: 'I', # PT_32BUI
251  10: 'f', # PT_32BF
252  11: 'd' # PT_64BF
253  }
254  return fmttypes.get(pt, 'x')
255 
256 
def pt2fmt(pt)

Referenced by wkblify_band_header().

Here is the caller graph for this function: