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

◆ rt_util_gdal_driver_registered()

int rt_util_gdal_driver_registered ( const char *  drv)

Definition at line 366 of file rt_util.c.

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