PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ test_raster_new()

static void test_raster_new ( )
static

Definition at line 27 of file cu_raster_basics.c.

References cu_free_raster(), rtrowdump::raster, and rt_raster_new().

Referenced by raster_basics_suite_setup().

27  {
28  rt_raster raster = NULL;
29 
30  raster = rt_raster_new(0, 0);
31  CU_ASSERT(raster != NULL);
32  cu_free_raster(raster);
33 
34  raster = rt_raster_new(1, 1);
35  CU_ASSERT(raster != NULL);
36  cu_free_raster(raster);
37 
38  raster = rt_raster_new(10, 10);
39  CU_ASSERT(raster != NULL);
40  cu_free_raster(raster);
41 }
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
Definition: rtrowdump.py:121
void cu_free_raster(rt_raster raster)
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.
Definition: rt_raster.c:48
Here is the call graph for this function:
Here is the caller graph for this function: