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

Definition at line 259 of file raster2pgsql.py.

Referenced by wkblify().

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

Here is the caller graph for this function: