PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ rtpg_assignHookGDALDataPath()

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

Definition at line 476 of file rtpostgis.c.

476 {
477 POSTGIS_RT_DEBUGF(4, "newpath = %s", newpath);
478 POSTGIS_RT_DEBUGF(4, "gdaldatapath = %s", gdal_datapath);
479
480 /* clear finder cache */
481 CPLFinderClean();
482
483 /* clear cached OSR */
484 OSRCleanup();
485
486 /* set GDAL_DATA */
487 CPLSetConfigOption("GDAL_DATA", newpath);
488 POSTGIS_RT_DEBUGF(4, "GDAL_DATA = %s", CPLGetConfigOption("GDAL_DATA", ""));
489}
static char * gdal_datapath
Definition rtpostgis.c:460
#define POSTGIS_RT_DEBUGF(level, msg,...)
Definition rtpostgis.h:69

References gdal_datapath, and POSTGIS_RT_DEBUGF.

Referenced by _PG_init().

Here is the caller graph for this function: