Definition at line 525 of file cu_raster_geometry.c.
References ovdump::band, cu_add_band(), cu_free_raster(), lwpoly_free(), PT_32BUI, rtpixdump::rast, raster_geometry_suite_setup(), rt_band_set_pixel(), rt_raster_new(), rt_raster_pixel_as_polygon(), pixval::x, and pixval::y.
Referenced by raster_geometry_suite_setup().
534 CU_ASSERT(rast != NULL);
537 CU_ASSERT(band != NULL);
539 for (x = 0; x < maxX; x++) {
540 for (y = 0; y < maxY; y++) {
564 CU_ASSERT(poly != NULL);
void cu_free_raster(rt_raster raster)
rt_band cu_add_band(rt_raster raster, rt_pixtype pixtype, int hasnodata, double nodataval)
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.