3158 CU_ASSERT(rast1 != NULL);
3163 CU_ASSERT(band1 != NULL);
3171 CU_ASSERT_EQUAL(nodata, 0);
3179 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3180 CU_ASSERT_EQUAL(result, 1);
3188 CU_ASSERT_NOT_EQUAL(rtn,
ES_NONE);
3202 CU_ASSERT(rast2 != NULL);
3206 CU_ASSERT(band2 != NULL);
3214 CU_ASSERT_EQUAL(nodata, 0);
3222 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3223 CU_ASSERT_EQUAL(result, 1);
3231 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3232 CU_ASSERT_EQUAL(result, 1);
3240 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3241 CU_ASSERT_EQUAL(result, 1);
3262 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3263 CU_ASSERT_EQUAL(result, 1);
3285 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3286 CU_ASSERT_EQUAL(result, 1);
3309 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3310 CU_ASSERT_EQUAL(result, 1);
3334 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3335 CU_ASSERT_NOT_EQUAL(result, 1);
3361 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3362 CU_ASSERT_NOT_EQUAL(result, 1);
3370 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3371 CU_ASSERT_EQUAL(result, 1);
3398 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3399 CU_ASSERT_EQUAL(result, 1);
3420 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3421 CU_ASSERT_EQUAL(result, 1);
3439 CU_ASSERT(rast2 != NULL);
3443 CU_ASSERT(band2 != NULL);
3456 CU_ASSERT_EQUAL(nodata, 0);
3464 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3465 CU_ASSERT_EQUAL(result, 1);
3498 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3499 CU_ASSERT_EQUAL(result, 1);
3530 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3531 CU_ASSERT_EQUAL(result, 1);
3562 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3563 CU_ASSERT_EQUAL(result, 1);
3594 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3595 CU_ASSERT_EQUAL(result, 1);
3628 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3629 CU_ASSERT_NOT_EQUAL(result, 1);
3637 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3638 CU_ASSERT_EQUAL(result, 1);
3645 CU_ASSERT(rast2 != NULL);
3650 CU_ASSERT(band2 != NULL);
3668 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3669 CU_ASSERT_EQUAL(result, 1);
3680 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3681 CU_ASSERT_EQUAL(result, 1);
3692 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3693 CU_ASSERT_EQUAL(result, 1);
void rt_raster_set_skews(rt_raster raster, double skewX, double skewY)
Set skews about the X and Y axis.
rt_errorstate rt_band_set_nodata(rt_band band, double val, int *converted)
Set nodata value.
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_raster_set_scale(rt_raster raster, double scaleX, double scaleY)
Set scale in projection units.
void rt_raster_set_offsets(rt_raster raster, double x, double y)
Set insertion points in projection units.
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.
rt_errorstate rt_band_set_pixel(rt_band band, int x, int y, double val, int *converted)
Set single pixel's value.
rt_errorstate rt_raster_within_distance(rt_raster rast1, int nband1, rt_raster rast2, int nband2, double distance, int *dwithin)
Return ES_ERROR if error occurred in function.