PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ update_dumper_table_config_from_listview_iter()

static void update_dumper_table_config_from_listview_iter ( GtkTreeIter *  iter,
SHPDUMPERCONFIG dumper_table_config 
)
static

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

2281 {
2282  gchar *schema, *table, *geo_col, *filename;
2283 
2284  /* Grab the main values for this file */
2285  gtk_tree_model_get(GTK_TREE_MODEL(export_table_list_store), iter,
2286  EXPORT_SCHEMA_COLUMN, &schema,
2287  EXPORT_TABLE_COLUMN, &table,
2288  EXPORT_GEOMETRY_COLUMN, &geo_col,
2289  EXPORT_FILENAME_COLUMN, &filename,
2290  -1);
2291 
2292  /* Update the schema */
2293  if (dumper_table_config->schema)
2294  free(dumper_table_config->schema);
2295 
2296  dumper_table_config->schema = strdup(schema);
2297 
2298  /* Update the table */
2299  if (dumper_table_config->table)
2300  free(dumper_table_config->table);
2301 
2302  dumper_table_config->table = strdup(table);
2303 
2304  /* Update the geometry column */
2305  if (dumper_table_config->geo_col_name)
2306  free(dumper_table_config->geo_col_name);
2307 
2308  dumper_table_config->geo_col_name = strdup(geo_col);
2309 
2310  /* Update the filename column (default to table name) */
2311  if (dumper_table_config->shp_file)
2312  free(dumper_table_config->shp_file);
2313 
2314  dumper_table_config->shp_file = strdup(filename);
2315 
2316  return;
2317 }
void free(void *)
GtkListStore * export_table_list_store
Definition: shp2pgsql-gui.c:82
@ EXPORT_TABLE_COLUMN
@ EXPORT_SCHEMA_COLUMN
@ EXPORT_GEOMETRY_COLUMN
@ EXPORT_FILENAME_COLUMN

References EXPORT_FILENAME_COLUMN, EXPORT_GEOMETRY_COLUMN, EXPORT_SCHEMA_COLUMN, EXPORT_TABLE_COLUMN, export_table_list_store, free(), shp_dumper_config::geo_col_name, shp_dumper_config::schema, shp_dumper_config::shp_file, and shp_dumper_config::table.

Referenced by pgui_action_handle_dumper_edit().

Here is the call graph for this function:
Here is the caller graph for this function: