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

◆ 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);
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}
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.
Definition rt_raster.c:52
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
Definition rtrowdump.py:125
void cu_free_raster(rt_raster raster)

References cu_free_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: