PostGIS
2.4.9dev-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 1004 of file rt_band.c.
References ovdump::data, ES_ERROR, ES_NONE, rt_band_t::height, rt_band_t::pixtype, RASTER_DEBUGF, rt_band_get_data(), rt_pixtype_size(), rtalloc(), rterror(), rtwarn(), and rt_band_t::width.
Referenced by RASTER_tile(), RASTER_union_transfn(), and test_band_get_pixel_line().