PostGIS  2.5.1dev-r@@SVN_REVISION@@
raster2pgsql.c File Reference
#include "raster2pgsql.h"
#include "gdal_vrt.h"
#include "ogr_srs_api.h"
#include <assert.h>
Include dependency graph for raster2pgsql.c:

Go to the source code of this file.

Functions

static void loader_rt_error_handler (const char *fmt, va_list ap)
 
static void loader_rt_warning_handler (const char *fmt, va_list ap)
 
static void loader_rt_info_handler (const char *fmt, va_list ap)
 
static void rt_init_allocators (void)
 
static void raster_destroy (rt_raster raster)
 
static int array_range (int min, int max, int step, int **range, uint32_t *len)
 
static char * strreplace (const char *str, const char *oldstr, const char *newstr, int *count)
 
static char * strtolower (char *str)
 
static char ** strsplit (const char *str, const char *delimiter, uint32_t *n)
 
static char * trim (const char *input)
 
static char * chartrim (const char *input, char *remove)
 
static void usage ()
 
static void calc_tile_size (int dimX, int dimY, int *tileX, int *tileY)
 
static void init_rastinfo (RASTERINFO *info)
 
static void rtdealloc_rastinfo (RASTERINFO *info)
 
static int copy_rastinfo (RASTERINFO *dst, RASTERINFO *src)
 
static void diff_rastinfo (RASTERINFO *x, RASTERINFO *ref)
 
static void init_config (RTLOADERCFG *config)
 
static void rtdealloc_config (RTLOADERCFG *config)
 
static void init_stringbuffer (STRINGBUFFER *buffer)
 
static void rtdealloc_stringbuffer (STRINGBUFFER *buffer, int freebuffer)
 
static void dump_stringbuffer (STRINGBUFFER *buffer)
 
static void flush_stringbuffer (STRINGBUFFER *buffer)
 
static int append_stringbuffer (STRINGBUFFER *buffer, const char *str)
 
static int append_sql_to_buffer (STRINGBUFFER *buffer, const char *str)
 
static int copy_from (const char *schema, const char *table, const char *column, const char *filename, const char *file_column_name, STRINGBUFFER *buffer)
 
static int copy_from_end (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 drop_table (const char *schema, const char *table, STRINGBUFFER *buffer)
 
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)
 
static int create_index (const char *schema, const char *table, const char *column, const char *tablespace, STRINGBUFFER *buffer)
 
static int analyze_table (const char *schema, const char *table, STRINGBUFFER *buffer)
 
static int vacuum_table (const char *schema, const char *table, STRINGBUFFER *buffer)
 
static int add_raster_constraints (const char *schema, const char *table, const char *column, int regular_blocking, int max_extent, 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 build_overview (int idx, RTLOADERCFG *config, RASTERINFO *info, uint32_t ovx, STRINGBUFFER *tileset, STRINGBUFFER *buffer)
 
static int convert_raster (int idx, RTLOADERCFG *config, RASTERINFO *info, STRINGBUFFER *tileset, STRINGBUFFER *buffer)
 
static int process_rasters (RTLOADERCFG *config, STRINGBUFFER *buffer)
 
int main (int argc, char **argv)