PostGIS  3.7.0dev-r@@SVN_REVISION@@

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

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

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: