2631 CU_ASSERT(rast1 != NULL);
2636 CU_ASSERT(band1 != NULL);
2644 CU_ASSERT_EQUAL(nodata, 0);
2651 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2652 CU_ASSERT_EQUAL(result, 1);
2666 CU_ASSERT(rast2 != NULL);
2670 CU_ASSERT(band2 != NULL);
2678 CU_ASSERT_EQUAL(nodata, 0);
2685 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2686 CU_ASSERT_NOT_EQUAL(result, 1);
2693 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2694 CU_ASSERT_NOT_EQUAL(result, 1);
2714 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2715 CU_ASSERT_NOT_EQUAL(result, 1);
2736 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2737 CU_ASSERT_NOT_EQUAL(result, 1);
2759 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2760 CU_ASSERT_NOT_EQUAL(result, 1);
2783 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2784 CU_ASSERT_NOT_EQUAL(result, 1);
2809 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2810 CU_ASSERT_NOT_EQUAL(result, 1);
2835 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2836 CU_ASSERT_NOT_EQUAL(result, 1);
2861 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2862 CU_ASSERT_NOT_EQUAL(result, 1);
2888 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2889 CU_ASSERT_EQUAL(result, 1);
2909 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2910 CU_ASSERT_EQUAL(result, 1);
2928 CU_ASSERT(rast2 != NULL);
2932 CU_ASSERT(band2 != NULL);
2945 CU_ASSERT_EQUAL(nodata, 0);
2952 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2953 CU_ASSERT_NOT_EQUAL(result, 1);
2985 CU_ASSERT_EQUAL(rtn,
ES_NONE);
2986 CU_ASSERT_NOT_EQUAL(result, 1);
3016 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3017 CU_ASSERT_NOT_EQUAL(result, 1);
3047 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3048 CU_ASSERT_NOT_EQUAL(result, 1);
3078 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3079 CU_ASSERT_NOT_EQUAL(result, 1);
3086 CU_ASSERT(rast2 != NULL);
3091 CU_ASSERT(band2 != NULL);
3108 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3109 CU_ASSERT_NOT_EQUAL(result, 1);
3119 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3120 CU_ASSERT_NOT_EQUAL(result, 1);
3130 CU_ASSERT_EQUAL(rtn,
ES_NONE);
3131 CU_ASSERT_NOT_EQUAL(result, 1);
void rt_raster_set_scale(rt_raster raster, double scaleX, double scaleY)
Set scale in projection units.
void rt_raster_set_skews(rt_raster raster, double skewX, double skewY)
Set skews about the X and Y axis.
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.
rt_errorstate rt_raster_coveredby(rt_raster rast1, int nband1, rt_raster rast2, int nband2, int *coveredby)
Return ES_ERROR if error occurred in function.
rt_errorstate rt_band_set_nodata(rt_band band, double val, int *converted)
Set nodata value.
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_band_get_nodata(rt_band band, double *nodata)
Get NODATA value.
void rt_raster_set_offsets(rt_raster raster, double x, double y)
Set insertion points 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)