PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ test_gdal_drivers()

static void test_gdal_drivers ( )
static

Definition at line 31 of file cu_gdal.c.

31  {
32  uint32_t 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 }
rt_gdaldriver rt_raster_gdal_drivers(uint32_t *drv_count, uint8_t cancc)
Returns a set of available GDAL drivers.
Definition: rt_raster.c:1716
struct rt_gdaldriver_t * rt_gdaldriver
Definition: librtcore.h:154
void rtdealloc(void *mem)
Definition: rt_context.c:186
unsigned int uint32_t
Definition: uthash.h:78

References rt_raster_gdal_drivers(), and rtdealloc().

Referenced by gdal_suite_setup().

Here is the call graph for this function:
Here is the caller graph for this function: