PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
rt_errorstate rt_band_get_pixel_line | ( | rt_band | band, |
int | x, | ||
int | y, | ||
uint16_t | len, | ||
void ** | vals, | ||
uint16_t * | nvals | ||
) |
Get values of multiple pixels.
Unlike rt_band_get_pixel, values in vals are of the band's pixel type so cannot be assumed to be double. Function uses memcpy.
It is important to be careful when using this function as the number of values being fetched 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, getting a number of values may cross multiple pixel "rows".
band | : the band to get pixel value from |
x | : pixel column (0-based) |
y | : pixel row (0-based) |
len | : the number of pixels to get |
**vals | : the pixel values |
*nvals | : the number of pixel values being returned |
Definition at line 1137 of file rt_band.c.
References ovdump::band, ovdump::data, ES_ERROR, ES_NONE, RASTER_DEBUGF, rt_band_get_data(), rt_pixtype_size(), rtalloc(), rterror(), rtwarn(), pixval::x, and pixval::y.
Referenced by RASTER_tile(), RASTER_union_transfn(), and test_band_get_pixel_line().