PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
rt_errorstate rt_band_set_pixel_line | ( | rt_band | band, |
int | x, | ||
int | y, | ||
void * | vals, | ||
uint32_t | len | ||
) |
Set values of multiple pixels.
Unlike rt_band_set_pixel, values in vals are expected to be of the band's pixel type as this function uses memcpy.
It is important to be careful when using this function as the number of values being set may exceed a pixel "row". Remember that the band values are stored in a stream (1-D array) regardless of what the raster's width and height might be. So, setting a number of values may cross multiple pixel "rows".
band | : the band to set value to |
x | : pixel column (0-based) |
y | : pixel row (0-based) |
vals | : the pixel values to apply |
len | : # of elements in vals |
Unlike rt_band_set_pixel, values in vals are expected to be of the band's pixel type as this function uses memcpy.
It is important to be careful when using this function as the number of values being set may exceed a pixel "row". Remember that the band values are stored in a stream (1-D array) regardless of what the raster's width and height might be. So, setting a number of values may cross multiple pixel "rows".
band | : the band to set value to |
x | : X coordinate (0-based) |
y | : Y coordinate (0-based) |
vals | : the pixel values to apply |
len | : # of elements in vals |
Definition at line 853 of file rt_band.c.
References ovdump::band, ovdump::data, ES_ERROR, ES_NONE, PT_16BSI, PT_16BUI, PT_1BB, PT_2BUI, PT_32BF, PT_32BSI, PT_32BUI, PT_4BUI, PT_64BF, PT_8BSI, PT_8BUI, PT_END, RASTER_DEBUGF, rt_band_get_data(), rt_band_get_hasnodata_flag(), rt_band_get_pixel(), rt_band_set_isnodata_flag(), rt_pixtype_size(), rterror(), genraster::value, pixval::x, and pixval::y.
Referenced by RASTER_tile(), RASTER_union_transfn(), and rt_raster_from_gdal_dataset().