PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ process_single_uri()

static void process_single_uri ( char *  uri)
static

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

1982 {
1983  SHPLOADERCONFIG *loader_file_config;
1984  char *filename = NULL;
1985  char *hostname;
1986  GError *error = NULL;
1987 
1988  if (uri == NULL)
1989  {
1990  pgui_logf(_("Unable to process drag URI."));
1991  return;
1992  }
1993 
1994  filename = g_filename_from_uri(uri, &hostname, &error);
1995  g_free(uri);
1996 
1997  if (filename == NULL)
1998  {
1999  pgui_logf(_("Unable to process filename: %s\n"), error->message);
2000  g_error_free(error);
2001  return;
2002  }
2003 
2004  /* Create a new row in the listview */
2005  loader_file_config = create_new_file_config(filename);
2006  add_loader_file_config_to_list(loader_file_config);
2007 
2008  g_free(filename);
2009  g_free(hostname);
2010 
2011 }
static SHPLOADERCONFIG * create_new_file_config(const char *filename)
static void add_loader_file_config_to_list(SHPLOADERCONFIG *loader_file_config)
static void pgui_logf(const char *fmt,...)
#define _(String)
Definition: shpcommon.h:24

References _, add_loader_file_config_to_list(), create_new_file_config(), and pgui_logf().

Referenced by pgui_action_handle_file_drop().

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