531 {
535 const uint32_t maxX = 10;
536 const uint32_t maxY = 10;
538
540 CU_ASSERT(rast != NULL);
541
543 CU_ASSERT(band != NULL);
544
545 for (x = 0;
x < maxX;
x++) {
546 for (y = 0;
y < maxY;
y++) {
548 }
549 }
550
568
570 CU_ASSERT(poly != NULL);
572
574}
void lwpoly_free(LWPOLY *poly)
LWPOLY * rt_raster_pixel_as_polygon(rt_raster raster, int x, int y)
Get a raster pixel as a polygon.
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_band cu_add_band(rt_raster raster, rt_pixtype pixtype, int hasnodata, double nodataval)
void cu_free_raster(rt_raster raster)