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

◆ update_loader_file_config_from_listview_iter()

static void update_loader_file_config_from_listview_iter ( GtkTreeIter *  iter,
SHPLOADERCONFIG loader_file_config 
)
static

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

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

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().

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