904 char *table_start, *table_end;
918 loader_file_config->
shp_file = strdup(filename);
921 table_start = loader_file_config->
shp_file + strlen(loader_file_config->
shp_file);
922 while (*table_start !=
'/' && *table_start !=
'\\' && table_start > loader_file_config->
shp_file)
929 table_end = loader_file_config->
shp_file + strlen(loader_file_config->
shp_file);
930 while (*table_end !=
'.' && table_end > loader_file_config->
shp_file && table_end > table_start )
934 loader_file_config->
table =
malloc(table_end - table_start + 1);
935 memcpy(loader_file_config->
table, table_start, table_end - table_start);
936 loader_file_config->
table[table_end - table_start] =
'\0';
939 for (i = 0; i < table_end - table_start; i++)
941 if (isupper(loader_file_config->
table[i]) != 0)
942 loader_file_config->
table[i] = tolower(loader_file_config->
table[i]);
946 loader_file_config->
schema = strdup(
"public");
954 return loader_file_config;
#define GEOGRAPHY_DEFAULT
static SHPLOADERCONFIG * global_loader_config