PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rt_util_gdal_driver_registered()

int rt_util_gdal_driver_registered ( const char *  drv)

Definition at line 355 of file rt_util.c.

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

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: