PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ rt_util_gdal_driver_registered()

int rt_util_gdal_driver_registered ( const char *  drv)

Definition at line 361 of file rt_util.c.

361  {
362  int count = GDALGetDriverCount();
363  int i = 0;
364  GDALDriverH hdrv = NULL;
365 
366  if (drv == NULL || !strlen(drv) || count < 1)
367  return 0;
368 
369  for (i = 0; i < count; i++) {
370  hdrv = GDALGetDriver(i);
371  if (hdrv == NULL) continue;
372 
373  if (strcmp(drv, GDALGetDriverShortName(hdrv)) == 0)
374  return 1;
375  }
376 
377  return 0;
378 }
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: