PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ rt_util_gdal_driver_registered()

int rt_util_gdal_driver_registered ( const char *  drv)

Definition at line 463 of file rt_util.c.

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

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: