PostGIS  2.1.10dev-r@@SVN_REVISION@@
def raster2pgsql.make_sql_insert_raster (   table,
  rast,
  hexwkb,
  insert_filename,
  file 
)

Definition at line 424 of file raster2pgsql.py.

References make_sql_full_table_name().

Referenced by wkblify_raster_level().

424 def make_sql_insert_raster(table, rast, hexwkb, insert_filename, file):
425  if insert_filename:
426  assert file is not None, "Missing filename, but insert_filename requested"
427  sql = "INSERT INTO %s ( filename, %s ) VALUES ( (\'%s\')::text, (\'%s\')::raster );\n" \
428  % (make_sql_full_table_name(table), rast, file, hexwkb)
429  else:
430  sql = "INSERT INTO %s ( %s ) VALUES ( (\'%s\')::raster );\n" \
431  % (make_sql_full_table_name(table), rast, hexwkb)
432 
433  # NOTE: Usually, no need for such detailed verbosity
434  #logit("SQL: %s" % sql)
435  return sql
436 
def make_sql_full_table_name(schema_table)
def make_sql_insert_raster(table, rast, hexwkb, insert_filename, file)

Here is the call graph for this function:

Here is the caller graph for this function: