PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ test_raster_new()

static void test_raster_new ( )
static

Definition at line 27 of file cu_raster_basics.c.

27  {
28  rt_raster raster = NULL;
29 
30  raster = rt_raster_new(0, 0);
31  CU_ASSERT(raster != NULL);
33 
34  raster = rt_raster_new(1, 1);
35  CU_ASSERT(raster != NULL);
37 
38  raster = rt_raster_new(10, 10);
39  CU_ASSERT(raster != NULL);
41 }
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.
Definition: rt_raster.c:48
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)

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

Referenced by raster_basics_suite_setup().

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