PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ update_loader_file_config_from_listview_iter()

static void update_loader_file_config_from_listview_iter ( GtkTreeIter *  iter,
SHPLOADERCONFIG loader_file_config 
)
static

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

References free(), shp_loader_config::geo_col, import_file_list_store, IMPORT_GEOMETRY_COLUMN, IMPORT_SCHEMA_COLUMN, IMPORT_SRID_COLUMN, IMPORT_TABLE_COLUMN, shp_loader_config::schema, shp_loader_config::sr_id, and shp_loader_config::table.

Referenced by pgui_action_handle_loader_edit().

2012 {
2013  gchar *schema, *table, *geo_col, *srid;
2014 
2015  /* Grab the main values for this file */
2016  gtk_tree_model_get(GTK_TREE_MODEL(import_file_list_store), iter,
2017  IMPORT_SCHEMA_COLUMN, &schema,
2018  IMPORT_TABLE_COLUMN, &table,
2019  IMPORT_GEOMETRY_COLUMN, &geo_col,
2020  IMPORT_SRID_COLUMN, &srid,
2021  -1);
2022 
2023  /* Update the schema */
2024  if (loader_file_config->schema)
2025  free(loader_file_config->schema);
2026 
2027  loader_file_config->schema = strdup(schema);
2028 
2029  /* Update the table */
2030  if (loader_file_config->table)
2031  free(loader_file_config->table);
2032 
2033  loader_file_config->table = strdup(table);
2034 
2035  /* Update the geo column */
2036  if (loader_file_config->geo_col)
2037  free(loader_file_config->geo_col);
2038 
2039  loader_file_config->geo_col = strdup(geo_col);
2040 
2041  /* Update the SRID */
2042  loader_file_config->sr_id = atoi(srid);
2043 
2044  /* Free the values */
2045  return;
2046 }
GtkListStore * import_file_list_store
Definition: shp2pgsql-gui.c:56
void free(void *)
Here is the call graph for this function:
Here is the caller graph for this function: