PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ test_gdal_drivers()

static void test_gdal_drivers ( )
static

Definition at line 31 of file cu_gdal.c.

References rt_raster_gdal_drivers(), and rtdealloc().

Referenced by gdal_suite_setup().

31  {
32  int i;
33  uint32_t size;
34  rt_gdaldriver drv = NULL;
35 
36  drv = (rt_gdaldriver) rt_raster_gdal_drivers(&size, 1);
37  CU_ASSERT(drv != NULL);
38 
39  for (i = 0; i < size; i++) {
40  CU_ASSERT(strlen(drv[i].short_name));
41  rtdealloc(drv[i].short_name);
42  rtdealloc(drv[i].long_name);
43  rtdealloc(drv[i].create_options);
44  }
45 
46  rtdealloc(drv);
47 }
struct rt_gdaldriver_t * rt_gdaldriver
Definition: librtcore.h:154
unsigned int uint32_t
Definition: uthash.h:78
void rtdealloc(void *mem)
Definition: rt_context.c:186
rt_gdaldriver rt_raster_gdal_drivers(uint32_t *drv_count, uint8_t cancc)
Returns a set of available GDAL drivers.
Definition: rt_raster.c:1705
Here is the call graph for this function:
Here is the caller graph for this function: