31 double gt[6] = {-128.604911499087763, 0.002424431085498, 0, 53.626968388905752, 0, -0.002424431085498};
34 CU_ASSERT(raster != NULL);
40 CU_ASSERT_DOUBLE_EQUAL(xw, gt[0], DBL_EPSILON);
41 CU_ASSERT_DOUBLE_EQUAL(yw, gt[3], DBL_EPSILON);
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
void rt_raster_set_geotransform_matrix(rt_raster raster, double *gt)
Set raster's geotransform using 6-element array.
void cu_free_raster(rt_raster raster)
rt_errorstate rt_raster_cell_to_geopoint(rt_raster raster, double xr, double yr, double *xw, double *yw, double *gt)
Convert an xr, yr raster point to an xw, yw point on map.
void rt_raster_set_srid(rt_raster raster, int32_t srid)
Set raster's SRID.
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.