PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ rtpg_assignHookGDALDataPath()

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

Definition at line 469 of file rtpostgis.c.

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

References gdal_datapath, and POSTGIS_RT_DEBUGF.

Referenced by _PG_init().

Here is the caller graph for this function: