PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ fmt2printfmt()

def raster2pgsql.fmt2printfmt (   fmt)
Returns printf-like formatter for given binary data type sepecifier.

Definition at line 258 of file raster2pgsql.py.

258 def fmt2printfmt(fmt):
259  """Returns printf-like formatter for given binary data type sepecifier."""
260  fmttypes = {
261  'B': '%d', # PT_8BUI
262  'h': '%d', # PT_16BSI
263  'H': '%d', # PT_16BUI
264  'i': '%d', # PT_32BSI
265  'I': '%d', # PT_32BUI
266  'f': '%.15f', # PT_32BF
267  'd': '%.15f', # PT_64BF
268  's': '%s'
269  }
270  return fmttypes.get(fmt, 'f')
271 
def fmt2printfmt(fmt)

Referenced by wkblify().

Here is the caller graph for this function: