PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ add_loader_file_config_to_list()

static void add_loader_file_config_to_list ( SHPLOADERCONFIG loader_file_config)
static

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

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