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

2043 {
2044  gchar *schema, *table, *geo_col, *srid;
2045 
2046  /* Grab the main values for this file */
2047  gtk_tree_model_get(GTK_TREE_MODEL(import_file_list_store), iter,
2048  IMPORT_SCHEMA_COLUMN, &schema,
2049  IMPORT_TABLE_COLUMN, &table,
2050  IMPORT_GEOMETRY_COLUMN, &geo_col,
2051  IMPORT_SRID_COLUMN, &srid,
2052  -1);
2053 
2054  /* Update the schema */
2055  if (loader_file_config->schema)
2056  free(loader_file_config->schema);
2057 
2058  loader_file_config->schema = strdup(schema);
2059 
2060  /* Update the table */
2061  if (loader_file_config->table)
2062  free(loader_file_config->table);
2063 
2064  loader_file_config->table = strdup(table);
2065 
2066  /* Update the geo column */
2067  if (loader_file_config->geo_col)
2068  free(loader_file_config->geo_col);
2069 
2070  loader_file_config->geo_col = strdup(geo_col);
2071 
2072  /* Update the SRID */
2073  loader_file_config->sr_id = atoi(srid);
2074 
2075  /* Free the values */
2076  return;
2077 }
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: