183 CU_ASSERT(raster != NULL);
185 CU_ASSERT(band != NULL);
187 CU_ASSERT(band != NULL);
195 CU_ASSERT(band != NULL);
199 CU_ASSERT(rband != NULL);
201 CU_ASSERT_DOUBLE_EQUAL(nodata, 1, DBL_EPSILON);
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
void * rtalloc(size_t size)
Wrappers used for managing memory.
void rt_band_destroy(rt_band band)
Destroy a raster band.
rt_errorstate rt_band_get_nodata(rt_band band, double *nodata)
Get NODATA value.
void cu_free_raster(rt_raster raster)
rt_band cu_add_band(rt_raster raster, rt_pixtype pixtype, int hasnodata, double nodataval)
void rt_band_set_ownsdata_flag(rt_band band, int flag)
rt_band rt_raster_get_band(rt_raster raster, int bandNum)
Return Nth band, or NULL if unavailable.
rt_band rt_raster_replace_band(rt_raster raster, rt_band band, int index)
Replace band at provided index with new band.
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.
rt_band rt_band_new_inline(uint16_t width, uint16_t height, rt_pixtype pixtype, uint32_t hasnodata, double nodataval, uint8_t *data)
Create an in-db rt_band with no data.
int rt_pixtype_size(rt_pixtype pixtype)
Return size in bytes of a value in the given pixtype.
uint16_t rt_raster_get_width(rt_raster raster)
uint16_t rt_raster_get_height(rt_raster raster)