PostGIS 3.0.6dev-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 957 of file shp2pgsql-gui.c.

958{
959 GtkTreeIter iter;
960#define MAXLEN 16
961 char srid[MAXLEN+1];
962
963 /* Convert SRID into string */
964 if ( MAXLEN+1 <= snprintf(srid, MAXLEN+1, "%d", loader_file_config->sr_id) )
965 {
966 pgui_logf("Invalid SRID requiring more than %d digits: %d", MAXLEN, loader_file_config->sr_id);
968 srid[MAXLEN] = '\0';
969 }
970
971 gtk_list_store_insert_before(import_file_list_store, &iter, NULL);
972 gtk_list_store_set(import_file_list_store, &iter,
973 IMPORT_POINTER_COLUMN, loader_file_config,
974 IMPORT_FILENAME_COLUMN, loader_file_config->shp_file,
975 IMPORT_SCHEMA_COLUMN, loader_file_config->schema,
976 IMPORT_TABLE_COLUMN, loader_file_config->table,
977 IMPORT_GEOMETRY_COLUMN, loader_file_config->geo_col,
978 IMPORT_SRID_COLUMN, srid,
979 IMPORT_MODE_COLUMN, _("Create"),
980 -1);
981
982 /* Update the filename field width */
984
985 return;
986}
static void update_filename_field_width(void)
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
static void pgui_logf(const char *fmt,...)
#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: