PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ add_loader_file_config_to_list()

static void add_loader_file_config_to_list ( SHPLOADERCONFIG loader_file_config)
static

Definition at line 972 of file shp2pgsql-gui.c.

973{
974 GtkTreeIter iter;
975#define MAXLEN 16
976 char srid[MAXLEN+1];
977
978 /* Convert SRID into string */
979 if ( MAXLEN+1 <= snprintf(srid, MAXLEN+1, "%d", loader_file_config->sr_id) )
980 {
981 pgui_logf("Invalid SRID requiring more than %d digits: %d", MAXLEN, loader_file_config->sr_id);
983 srid[MAXLEN] = '\0';
984 }
985
986 gtk_list_store_insert_before(import_file_list_store, &iter, NULL);
987 gtk_list_store_set(import_file_list_store, &iter,
988 IMPORT_POINTER_COLUMN, loader_file_config,
989 IMPORT_FILENAME_COLUMN, loader_file_config->shp_file,
990 IMPORT_SCHEMA_COLUMN, loader_file_config->schema,
991 IMPORT_TABLE_COLUMN, loader_file_config->table,
992 IMPORT_GEOMETRY_COLUMN, loader_file_config->geo_col,
993 IMPORT_SRID_COLUMN, srid,
994 IMPORT_MODE_COLUMN, _("Create"),
995 -1);
996
997 /* Update the filename field width */
999
1000 return;
1001}
static void update_filename_field_width(void)
static void static void static void pgui_logf(const char *fmt,...) __attribute__((format(printf
static void pgui_raise_error_dialogue(void)
@ IMPORT_TABLE_COLUMN
@ IMPORT_MODE_COLUMN
@ IMPORT_FILENAME_COLUMN
@ IMPORT_POINTER_COLUMN
@ IMPORT_GEOMETRY_COLUMN
@ IMPORT_SCHEMA_COLUMN
@ IMPORT_SRID_COLUMN
GtkListStore * import_file_list_store
#define MAXLEN
#define _(String)
Definition shpcommon.h:24

References _, shp_loader_config::geo_col, import_file_list_store, IMPORT_FILENAME_COLUMN, IMPORT_GEOMETRY_COLUMN, IMPORT_MODE_COLUMN, IMPORT_POINTER_COLUMN, IMPORT_SCHEMA_COLUMN, IMPORT_SRID_COLUMN, IMPORT_TABLE_COLUMN, MAXLEN, pgui_logf(), pgui_raise_error_dialogue(), shp_loader_config::schema, shp_loader_config::shp_file, shp_loader_config::sr_id, shp_loader_config::table, and update_filename_field_width().

Referenced by pgui_action_open_file_dialog(), and process_single_uri().

Here is the call graph for this function:
Here is the caller graph for this function: