PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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 2253 of file shp2pgsql-gui.c.

2254{
2255 gchar *schema, *table, *geo_col, *filename;
2256
2257 /* Grab the main values for this file */
2258 gtk_tree_model_get(GTK_TREE_MODEL(export_table_list_store), iter,
2259 EXPORT_SCHEMA_COLUMN, &schema,
2260 EXPORT_TABLE_COLUMN, &table,
2261 EXPORT_GEOMETRY_COLUMN, &geo_col,
2262 EXPORT_FILENAME_COLUMN, &filename,
2263 -1);
2264
2265 /* Update the schema */
2266 if (dumper_table_config->schema)
2267 free(dumper_table_config->schema);
2268
2269 dumper_table_config->schema = strdup(schema);
2270
2271 /* Update the table */
2272 if (dumper_table_config->table)
2273 free(dumper_table_config->table);
2274
2275 dumper_table_config->table = strdup(table);
2276
2277 /* Update the geometry column */
2278 if (dumper_table_config->geo_col_name)
2279 free(dumper_table_config->geo_col_name);
2280
2281 dumper_table_config->geo_col_name = strdup(geo_col);
2282
2283 /* Update the filename column (default to table name) */
2284 if (dumper_table_config->shp_file)
2285 free(dumper_table_config->shp_file);
2286
2287 dumper_table_config->shp_file = strdup(filename);
2288
2289 return;
2290}
void free(void *)
@ EXPORT_TABLE_COLUMN
@ EXPORT_SCHEMA_COLUMN
@ EXPORT_GEOMETRY_COLUMN
@ EXPORT_FILENAME_COLUMN
GtkListStore * export_table_list_store

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: