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

◆ rt_util_gdal_driver_registered()

int rt_util_gdal_driver_registered ( const char *  drv)

Definition at line 357 of file rt_util.c.

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