PostGIS  2.2.7dev-r@@SVN_REVISION@@
def raster2pgsql.fmt2printfmt (   fmt)
Returns printf-like formatter for given binary data type sepecifier.

Definition at line 257 of file raster2pgsql.py.

Referenced by wkblify().

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)

Here is the caller graph for this function: