PostGIS  3.2.2dev-r@@SVN_REVISION@@

◆ rtpg_assignHookGDALDataPath()

static void rtpg_assignHookGDALDataPath ( const char *  newpath,
void *  extra 
)
static

Definition at line 468 of file rtpostgis.c.

468  {
469  POSTGIS_RT_DEBUGF(4, "newpath = %s", newpath);
470  POSTGIS_RT_DEBUGF(4, "gdaldatapath = %s", gdal_datapath);
471 
472  /* clear finder cache */
473  CPLFinderClean();
474 
475  /* clear cached OSR */
476  OSRCleanup();
477 
478  /* set GDAL_DATA */
479  CPLSetConfigOption("GDAL_DATA", newpath);
480  POSTGIS_RT_DEBUGF(4, "GDAL_DATA = %s", CPLGetConfigOption("GDAL_DATA", ""));
481 }
static char * gdal_datapath
Definition: rtpostgis.c:453
#define POSTGIS_RT_DEBUGF(level, msg,...)
Definition: rtpostgis.h:65

References gdal_datapath, and POSTGIS_RT_DEBUGF.

Referenced by _PG_init().

Here is the caller graph for this function: