109 CU_ASSERT(rast1 != NULL);
116 CU_ASSERT(band != NULL);
120 CU_ASSERT(rast2 != NULL);
125 CU_ASSERT_DOUBLE_EQUAL(gt[0], 0, DBL_EPSILON);
126 CU_ASSERT_DOUBLE_EQUAL(gt[1], 1, DBL_EPSILON);
127 CU_ASSERT_DOUBLE_EQUAL(gt[2], 0, DBL_EPSILON);
128 CU_ASSERT_DOUBLE_EQUAL(gt[3], 0, DBL_EPSILON);
129 CU_ASSERT_DOUBLE_EQUAL(gt[4], 0, DBL_EPSILON);
130 CU_ASSERT_DOUBLE_EQUAL(gt[5], -1, DBL_EPSILON);
136 CU_ASSERT(rast2 != NULL);
int rt_raster_get_num_bands(rt_raster raster)
void rt_raster_get_geotransform_matrix(rt_raster raster, double *gt)
Get 6-element array of raster geotransform matrix.
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_raster rt_raster_clone(rt_raster raster, uint8_t deep)
Clone an existing raster.
void rt_raster_set_offsets(rt_raster raster, double x, double y)
Set insertion points in projection units.
void rt_raster_set_srid(rt_raster raster, int32_t srid)
Set raster's SRID.
int32_t rt_raster_get_srid(rt_raster raster)
Get raster's SRID.
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.