PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ fmt2printfmt()

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

Definition at line 257 of file raster2pgsql.py.

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

Referenced by wkblify().

Here is the caller graph for this function: