PostGIS  2.2.7dev-r@@SVN_REVISION@@
static void update_loader_file_config_from_listview_iter ( GtkTreeIter *  iter,
SHPLOADERCONFIG loader_file_config 
)
static

Definition at line 2010 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().

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

Here is the call graph for this function:

Here is the caller graph for this function: