PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ rt_util_gdal_driver_registered()

int rt_util_gdal_driver_registered ( const char *  drv)

Definition at line 358 of file rt_util.c.

358  {
359  int count = GDALGetDriverCount();
360  int i = 0;
361  GDALDriverH hdrv = NULL;
362 
363  if (drv == NULL || !strlen(drv) || count < 1)
364  return 0;
365 
366  for (i = 0; i < count; i++) {
367  hdrv = GDALGetDriver(i);
368  if (hdrv == NULL) continue;
369 
370  if (strcmp(drv, GDALGetDriverShortName(hdrv)) == 0)
371  return 1;
372  }
373 
374  return 0;
375 }
int count
Definition: genraster.py:57

References genraster::count.

Referenced by rt_raster_gdal_rasterize(), rt_raster_gdal_warp(), rt_raster_to_gdal_mem(), and test_util_gdal_open().

Here is the caller graph for this function: