1777 char *output_shapefile, *orig_shapefile;
1781 int ret, success =
FALSE, i = 0;
1787 pgui_seterr(
_(
"ERROR: You haven't specified any tables to export"));
1797 pgui_seterr(
_(
"Unable to connect to the database - please check your connection settings"));
1827 pgui_logf(
"\n==============================");
1828 pgui_logf(
"Exporting with configuration: %s, %s, %s", dumper_table_config->
table, dumper_table_config->
schema, dumper_table_config->
shp_file);
1835 gtk_widget_set_sensitive(widget,
FALSE);
1838 while (gtk_events_pending())
1839 gtk_main_iteration();
1846 orig_shapefile = dumper_table_config->
shp_file;
1847 output_shapefile =
malloc(strlen(folder_path) + strlen(dumper_table_config->
shp_file) + 2);
1848 strcpy(output_shapefile, folder_path);
1849 strcat(output_shapefile, G_DIR_SEPARATOR_S);
1850 strcat(output_shapefile, dumper_table_config->
shp_file);
1852 dumper_table_config->
shp_file = output_shapefile;
1861 goto export_cleanup;
1866 gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(
progress), 0.0);
1881 goto export_cleanup;
1891 while (gtk_events_pending())
1892 gtk_main_iteration();
1911 goto export_cleanup;
1919 while (gtk_events_pending())
1920 gtk_main_iteration();
1948 dumper_table_config->
shp_file = orig_shapefile;
1962 gtk_widget_set_sensitive(widget,
TRUE);
1965 gtk_widget_hide(widget);
1966 gtk_widget_show(widget);
1972 while (gtk_events_pending())
1973 gtk_main_iteration();
int ShpDumperGetRecordCount(SHPDUMPERSTATE *state)
void ShpDumperDestroy(SHPDUMPERSTATE *state)
char * shapetypename(int num)
SHPDUMPERSTATE * ShpDumperCreate(SHPDUMPERCONFIG *config)
int ShpDumperConnectDatabase(SHPDUMPERSTATE *state)
int ShpLoaderGenerateShapeRow(SHPDUMPERSTATE *state)
int ShpDumperCloseTable(SHPDUMPERSTATE *state)
int ShpDumperOpenTable(SHPDUMPERSTATE *state)
static GtkWidget * label_progress
static GtkWidget * progress
static void static void static void static void pgui_seterr(const char *fmt,...) __attribute__((format(printf
static volatile int is_running
static void static void static void pgui_logf(const char *fmt,...) __attribute__((format(printf
static void pgui_raise_error_dialogue(void)
static void static void static void static void static void update_conn_ui_from_conn_config(void)
static GtkWidget * dialog_progress
static int connection_test(void)
GtkListStore * export_table_list_store
#define GUIMSG_LINE_MAXLEN
static GtkWidget * dialog_folderchooser
static SHPCONNECTIONCONFIG * conn
static GtkWidget * window_conn
SHPCONNECTIONCONFIG * conn
char message[SHPDUMPERMSGLEN]