Definition at line 531 of file rt_mapalgebra.c.
540 _param->
count = itrcount;
563 _param->
width == NULL ||
572 rterror(
"_rti_iterator_arg_populate: Could not allocate memory for children of _rti_iterator_arg");
584 for (i = 0; i < itrcount; i++) {
588 _param->
width[i] = 0;
600 if (itrset[i].
raster == NULL) {
619 if (!itrset[i].nbnodata) {
620 rterror(
"_rti_iterator_arg_populate: Band %d not found for raster %d", itrset[i].
nband, i);
624 RASTER_DEBUGF(4,
"Band %d not found for raster %d. Using NODATA", itrset[i].
nband, i);
632 rterror(
"_rti_iterator_arg_populate: Could not get band %d for raster %d", itrset[i].
nband, i);
660 if (_param->
offset[i] == NULL) {
661 rterror(
"_rti_iterator_arg_populate: Could not allocate memory for offsets");
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
void * rtalloc(size_t size)
Wrappers used for managing memory.
#define RASTER_DEBUGF(level, msg,...)
int rt_band_get_hasnodata_flag(rt_band band)
Get hasnodata flag value.
int rt_band_get_isnodata_flag(rt_band band)
Get isnodata flag value.
int rt_raster_has_band(rt_raster raster, int nband)
Return TRUE if the raster has a band of this number.
double rt_band_get_min_value(rt_band band)
Returns the minimal possible value for the band according to the pixel type.
uint16_t rt_raster_get_height(rt_raster raster)
rt_errorstate rt_band_get_nodata(rt_band band, double *nodata)
Get NODATA value.
uint16_t rt_raster_get_width(rt_raster raster)
int rt_raster_is_empty(rt_raster raster)
Return TRUE if the raster is empty.
rt_band rt_raster_get_band(rt_raster raster, int bandNum)
Return Nth band, or NULL if unavailable.
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
struct _rti_iterator_arg_t::@10 band
struct _rti_iterator_arg_t::@11 distance
struct _rti_iterator_arg_t::@12 dimension
References _rti_iterator_arg_t::band, _rti_iterator_arg_t::columns, _rti_iterator_arg_t::count, _rti_iterator_arg_t::dimension, _rti_iterator_arg_t::distance, _rti_iterator_arg_t::hasnodata, _rti_iterator_arg_t::height, _rti_iterator_arg_t::isempty, _rti_iterator_arg_t::isnodata, _rti_iterator_arg_t::minval, pixval::nband, _rti_iterator_arg_t::nodataval, _rti_iterator_arg_t::offset, rt_iterator_t::raster, _rti_iterator_arg_t::raster, rtrowdump::raster, RASTER_DEBUGF, _rti_iterator_arg_t::rows, rt_band_get_hasnodata_flag(), rt_band_get_isnodata_flag(), rt_band_get_min_value(), rt_band_get_nodata(), rt_raster_get_band(), rt_raster_get_height(), rt_raster_get_width(), rt_raster_has_band(), rt_raster_is_empty(), rtalloc(), _rti_iterator_arg_t::rtband, rterror(), _rti_iterator_arg_t::width, _rti_iterator_arg_t::x, and _rti_iterator_arg_t::y.
Referenced by rt_raster_iterator().