1225 CU_ASSERT(rast != NULL);
1230 CU_ASSERT(band != NULL);
1232 for (y = 0; y < maxY; y++) {
1233 for (x = 0; x < maxX; x++)
1238 CU_ASSERT_EQUAL(err,
ES_NONE);
1239 CU_ASSERT_EQUAL(nvals, maxX);
1240 CU_ASSERT_EQUAL(((int8_t *) vals)[3], 3);
1244 CU_ASSERT_EQUAL(err,
ES_NONE);
1245 CU_ASSERT_EQUAL(nvals, 1);
1246 CU_ASSERT_EQUAL(((int8_t *) vals)[0], 24);
1250 CU_ASSERT_NOT_EQUAL(err,
ES_NONE);
void cu_free_raster(rt_raster raster)
rt_band cu_add_band(rt_raster raster, rt_pixtype pixtype, int hasnodata, double nodataval)
void rt_raster_set_scale(rt_raster raster, double scaleX, double scaleY)
Set scale in projection units.
rt_errorstate rt_band_get_pixel_line(rt_band band, int x, int y, uint16_t len, void **vals, uint16_t *nvals)
Get values of multiple pixels.
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.
void rtdealloc(void *mem)
rt_errorstate rt_band_set_pixel(rt_band band, int x, int y, double val, int *converted)
Set single pixel's value.