PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void update_dumper_table_config_from_listview_iter ( GtkTreeIter *  iter,
SHPDUMPERCONFIG dumper_table_config 
)
static

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

References EXPORT_FILENAME_COLUMN, EXPORT_GEOMETRY_COLUMN, EXPORT_SCHEMA_COLUMN, EXPORT_TABLE_COLUMN, export_table_list_store, 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().

2243 {
2244  gchar *schema, *table, *geo_col, *filename;
2245 
2246  /* Grab the main values for this file */
2247  gtk_tree_model_get(GTK_TREE_MODEL(export_table_list_store), iter,
2248  EXPORT_SCHEMA_COLUMN, &schema,
2249  EXPORT_TABLE_COLUMN, &table,
2250  EXPORT_GEOMETRY_COLUMN, &geo_col,
2251  EXPORT_FILENAME_COLUMN, &filename,
2252  -1);
2253 
2254  /* Update the schema */
2255  if (dumper_table_config->schema)
2256  free(dumper_table_config->schema);
2257 
2258  dumper_table_config->schema = strdup(schema);
2259 
2260  /* Update the table */
2261  if (dumper_table_config->table)
2262  free(dumper_table_config->table);
2263 
2264  dumper_table_config->table = strdup(table);
2265 
2266  /* Update the geometry column */
2267  if (dumper_table_config->geo_col_name)
2268  free(dumper_table_config->geo_col_name);
2269 
2270  dumper_table_config->geo_col_name = strdup(geo_col);
2271 
2272  /* Update the filename column (default to table name) */
2273  if (dumper_table_config->shp_file)
2274  free(dumper_table_config->shp_file);
2275 
2276  dumper_table_config->shp_file = strdup(filename);
2277 
2278  return;
2279 }
GtkListStore * export_table_list_store
Definition: shp2pgsql-gui.c:82

Here is the caller graph for this function: