PostGIS 3.6.2dev-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 2255 of file shp2pgsql-gui.c.

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