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

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