PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ make_sql_insert_raster()

def raster2pgsql.make_sql_insert_raster (   table,
  rast,
  hexwkb,
  insert_filename,
  file 
)

Definition at line 422 of file raster2pgsql.py.

References make_sql_full_table_name().

Referenced by wkblify_raster_level().

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