4736 CU_ASSERT(rast1 != NULL);
4740 CU_ASSERT(rast2 != NULL);
4744 CU_ASSERT_EQUAL(rtn,
ES_NONE);
4745 CU_ASSERT_NOT_EQUAL(aligned, 0);
4749 CU_ASSERT_EQUAL(rtn,
ES_NONE);
4750 CU_ASSERT_EQUAL(aligned, 0);
4751 CU_ASSERT_STRING_EQUAL(reason,
"The rasters have different scales on the X axis");
4756 CU_ASSERT_EQUAL(rtn,
ES_NONE);
4757 CU_ASSERT_EQUAL(aligned, 0);
4758 CU_ASSERT_STRING_EQUAL(reason,
"The rasters have different skews on the X axis");
4763 CU_ASSERT_EQUAL(rtn,
ES_NONE);
4764 CU_ASSERT_NOT_EQUAL(aligned, 0);
4768 CU_ASSERT_EQUAL(rtn,
ES_NONE);
4769 CU_ASSERT_NOT_EQUAL(aligned, 0);
4773 CU_ASSERT_EQUAL(rtn,
ES_NONE);
4774 CU_ASSERT_EQUAL(aligned, 0);
4775 CU_ASSERT_STRING_EQUAL(reason,
"The rasters (pixel corner coordinates) are not aligned");
rt_errorstate rt_raster_same_alignment(rt_raster rast1, rt_raster rast2, int *aligned, char **reason)
void rt_raster_set_skews(rt_raster raster, double skewX, double skewY)
Set skews about the X and Y axis.
void cu_free_raster(rt_raster raster)
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.