2006 assert(config != NULL);
2007 assert(config->
table != NULL);
2012 rterror(
_(
"process_rasters: Could not add BEGIN statement to string buffer"));
2018 if (config->
opt ==
'd') {
2020 rterror(
_(
"process_rasters: Could not add DROP TABLE statement to string buffer"));
2027 rterror(
_(
"process_rasters: Could not add an overview's DROP TABLE statement to string buffer"));
2035 if (config->
opt !=
'a') {
2042 rterror(
_(
"process_rasters: Could not add CREATE TABLE statement to string buffer"));
2054 rterror(
_(
"process_rasters: Could not add an overview's CREATE TABLE statement to string buffer"));
2062 if (config->
opt !=
'p') {
2078 rterror(
_(
"process_rasters: Could not process raster: %s"), config->
rt_file[i]);
2092 rterror(
_(
"process_rasters: Could not convert raster tiles into INSERT or COPY statements"));
2109 if (!
build_overview(i, config, &rastinfo, j, &tileset, buffer)) {
2110 rterror(
_(
"process_rasters: Could not create overview of factor %d for raster %s"), config->
overview[j], config->
rt_file[i]);
2122 rterror(
_(
"process_rasters: Could not convert overview tiles into INSERT or COPY statements"));
2157 rterror(
_(
"process_rasters: Could not add CREATE INDEX statement to string buffer"));
2162 if (config->
opt !=
'p') {
2167 rterror(
_(
"process_rasters: Could not add ANALYZE statement to string buffer"));
2180 rterror(
_(
"process_rasters: Could not add an overview's CREATE INDEX statement to string buffer"));
2185 if (config->
opt !=
'p') {
2190 rterror(
_(
"process_rasters: Could not add an overview's ANALYZE statement to string buffer"));
2205 rterror(
_(
"process:rasters: Could not add AddRasterConstraints statement to string buffer"));
2216 rterror(
_(
"process_rasters: Could not add an overview's AddRasterConstraints statement to string buffer"));
2232 rterror(
_(
"process_rasters: Could not add an overview's AddOverviewConstraints statement to string buffer"));
2240 rterror(
_(
"process_rasters: Could not add END statement to string buffer"));
2251 rterror(
_(
"process_rasters: Could not add VACUUM statement to string buffer"));
2261 rterror(
_(
"process_rasters: Could not add an overview's VACUUM statement to string buffer"));
static void flush_stringbuffer(STRINGBUFFER *buffer)
static int add_overview_constraints(const char *ovschema, const char *ovtable, const char *ovcolumn, const char *schema, const char *table, const char *column, const int factor, STRINGBUFFER *buffer)
static int analyze_table(const char *schema, const char *table, STRINGBUFFER *buffer)
static void init_rastinfo(RASTERINFO *info)
static void rtdealloc_stringbuffer(STRINGBUFFER *buffer, int freebuffer)
static int create_index(const char *schema, const char *table, const char *column, const char *tablespace, STRINGBUFFER *buffer)
static void diff_rastinfo(RASTERINFO *x, RASTERINFO *ref)
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
static int add_raster_constraints(const char *schema, const char *table, const char *column, int regular_blocking, int max_extent, STRINGBUFFER *buffer)
static int drop_table(const char *schema, const char *table, STRINGBUFFER *buffer)
static int vacuum_table(const char *schema, const char *table, STRINGBUFFER *buffer)
static int insert_records(const char *schema, const char *table, const char *column, const char *filename, const char *file_column_name, int copy_statements, int out_srid, STRINGBUFFER *tileset, STRINGBUFFER *buffer)
static int append_sql_to_buffer(STRINGBUFFER *buffer, const char *str)
static void rtdealloc_rastinfo(RASTERINFO *info)
static void init_stringbuffer(STRINGBUFFER *buffer)
static int build_overview(int idx, RTLOADERCFG *config, RASTERINFO *info, int ovx, STRINGBUFFER *tileset, STRINGBUFFER *buffer)
static int convert_raster(int idx, RTLOADERCFG *config, RASTERINFO *info, STRINGBUFFER *tileset, STRINGBUFFER *buffer)
static int copy_rastinfo(RASTERINFO *dst, RASTERINFO *src)
static int create_table(const char *schema, const char *table, const char *column, const int file_column, const char *file_column_name, const char *tablespace, const char *idx_tablespace, STRINGBUFFER *buffer)