PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rt_util_gdal_register_all()

int rt_util_gdal_register_all ( int  force_register_all)

Definition at line 334 of file rt_util.c.

References RASTER_DEBUG.

Referenced by RASTER_addBandOutDB(), RASTER_fromGDALRaster(), rt_band_load_offline_data(), rt_raster_gdal_drivers(), rt_raster_gdal_polygonize(), rt_raster_to_gdal(), rtpg_assignHookGDALEnabledDrivers(), and test_util_gdal_open().

334  {
335  static int registered = 0;
336 
337  if (registered && !force_register_all) {
338  RASTER_DEBUG(3, "Already called once... not calling GDALAllRegister");
339  return 0;
340  }
341 
342  RASTER_DEBUG(3, "Calling GDALAllRegister");
343  GDALAllRegister();
344  registered = 1;
345 
346  return 1;
347 }
#define RASTER_DEBUG(level, msg)
Definition: librtcore.h:295
Here is the caller graph for this function: