513 CU_ASSERT(rast1 != NULL);
519 CU_ASSERT(
band != NULL);
521 for (
y = 0;
y < maxY;
y++) {
522 for (
x = 0;
x < maxX;
x++) {
528 CU_ASSERT(rast2 != NULL);
534 CU_ASSERT(
band != NULL);
536 for (
y = 0;
y < maxY;
y++) {
537 for (
x = 0;
x < maxX;
x++) {
543 CU_ASSERT(rast3 != NULL);
550 CU_ASSERT(userargs != NULL);
554 CU_ASSERT(itrset != NULL);
578 CU_ASSERT_EQUAL(noerr,
ES_NONE);
608 CU_ASSERT_EQUAL(noerr,
ES_NONE);
638 CU_ASSERT_EQUAL(noerr,
ES_NONE);
664 CU_ASSERT_EQUAL(noerr,
ES_NONE);
690 CU_ASSERT_EQUAL(noerr,
ES_NONE);
716 CU_ASSERT_EQUAL(noerr,
ES_NONE);
742 CU_ASSERT_EQUAL(noerr,
ES_NONE);
772 CU_ASSERT_EQUAL(noerr,
ES_NONE);
static int testRasterIterator5_callback(rt_iterator_arg arg, void *userarg, double *value, int *nodata)
static int testRasterIterator7_callback(rt_iterator_arg arg, void *userarg, double *value, int *nodata)
static int testRasterIterator2_callback(rt_iterator_arg arg, void *userarg, double *value, int *nodata)
static int testRasterIterator1_callback(rt_iterator_arg arg, void *userarg, double *value, int *nodata)
static int testRasterIterator3_callback(rt_iterator_arg arg, void *userarg, double *value, int *nodata)
static int testRasterIterator4_callback(rt_iterator_arg arg, void *userarg, double *value, int *nodata)
static int testRasterIterator6_callback(rt_iterator_arg arg, void *userarg, double *value, int *nodata)
void * rtalloc(size_t size)
Wrappers used for managing memory.
int32_t rt_raster_get_srid(rt_raster raster)
Get raster's SRID.
double rt_raster_get_x_skew(rt_raster raster)
Get skew about the X axis.
double rt_raster_get_x_offset(rt_raster raster)
Get raster x offset, in projection units.
void rt_raster_set_scale(rt_raster raster, double scaleX, double scaleY)
Set scale in projection units.
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.
double rt_raster_get_x_scale(rt_raster raster)
Get scale X in projection units.
rt_errorstate rt_band_set_pixel(rt_band band, int x, int y, double val, int *converted)
Set single pixel's value.
uint16_t rt_raster_get_height(rt_raster raster)
rt_errorstate rt_raster_iterator(rt_iterator itrset, uint16_t itrcount, rt_extenttype extenttype, rt_raster customextent, rt_pixtype pixtype, uint8_t hasnodata, double nodataval, uint16_t distancex, uint16_t distancey, rt_mask mask, void *userarg, int(*callback)(rt_iterator_arg arg, void *userarg, double *value, int *nodata), rt_raster *rtnraster)
n-raster iterator.
uint16_t rt_raster_get_width(rt_raster raster)
void rtdealloc(void *mem)
double rt_raster_get_y_scale(rt_raster raster)
Get scale Y in projection units.
double rt_raster_get_y_skew(rt_raster raster)
Get skew about the Y axis.
void rt_raster_set_offsets(rt_raster raster, double x, double y)
Set insertion points in projection units.
double rt_raster_get_y_offset(rt_raster raster)
Get raster y offset, in projection units.
rt_band cu_add_band(rt_raster raster, rt_pixtype pixtype, int hasnodata, double nodataval)
void cu_free_raster(rt_raster raster)