PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rtpg_assignHookGDALDataPath()

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

Definition at line 261 of file rtpostgis.c.

261  {
262  POSTGIS_RT_DEBUGF(4, "newpath = %s", newpath);
263  POSTGIS_RT_DEBUGF(4, "gdaldatapath = %s", gdal_datapath);
264 
265  /* clear finder cache */
266  CPLFinderClean();
267 
268  /* clear cached OSR */
269  OSRCleanup();
270 
271  /* set GDAL_DATA */
272  CPLSetConfigOption("GDAL_DATA", newpath);
273  POSTGIS_RT_DEBUGF(4, "GDAL_DATA = %s", CPLGetConfigOption("GDAL_DATA", ""));
274 }
static char * gdal_datapath
Definition: rtpostgis.c:247
#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: