PostGIS  2.1.10dev-r@@SVN_REVISION@@
int rt_util_gdal_driver_registered ( const char *  drv)

Definition at line 461 of file rt_api.c.

References genraster::count.

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

461  {
462  int count = GDALGetDriverCount();
463  int i = 0;
464  GDALDriverH hdrv = NULL;
465 
466  if (drv == NULL || !strlen(drv) || count < 1)
467  return 0;
468 
469  for (i = 0; i < count; i++) {
470  hdrv = GDALGetDriver(i);
471  if (hdrv == NULL) continue;
472 
473  if (strcmp(drv, GDALGetDriverShortName(hdrv)) == 0)
474  return 1;
475  }
476 
477  return 0;
478 }
int count
Definition: genraster.py:57

Here is the caller graph for this function: