PostGIS  2.1.10dev-r@@SVN_REVISION@@
static _rti_iterator_arg _rti_iterator_arg_init ( )
static

Definition at line 13538 of file rt_api.c.

References _rti_iterator_arg_t::arg, _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::empty, _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, _rti_iterator_arg_t::nodata, _rti_iterator_arg_t::nodataval, _rti_iterator_arg_t::offset, _rti_iterator_arg_t::raster, _rti_iterator_arg_t::rows, rtalloc(), _rti_iterator_arg_t::rtband, rterror(), _rti_iterator_arg_t::values, _rti_iterator_arg_t::width, _rti_iterator_arg_t::x, and _rti_iterator_arg_t::y.

Referenced by rt_raster_iterator().

13538  {
13539  _rti_iterator_arg _param;
13540 
13541  _param = rtalloc(sizeof(struct _rti_iterator_arg_t));
13542  if (_param == NULL) {
13543  rterror("_rti_iterator_arg_init: Could not allocate memory for _rti_iterator_arg");
13544  return NULL;
13545  }
13546 
13547  _param->count = 0;
13548 
13549  _param->raster = NULL;
13550  _param->isempty = NULL;
13551  _param->offset = NULL;
13552  _param->width = NULL;
13553  _param->height = NULL;
13554 
13555  _param->band.rtband = NULL;
13556  _param->band.hasnodata = NULL;
13557  _param->band.isnodata = NULL;
13558  _param->band.nodataval = NULL;
13559  _param->band.minval = NULL;
13560 
13561  _param->distance.x = 0;
13562  _param->distance.y = 0;
13563 
13564  _param->dimension.rows = 0;
13565  _param->dimension.columns = 0;
13566 
13567  _param->empty.values = NULL;
13568  _param->empty.nodata = NULL;
13569 
13570  _param->arg = NULL;
13571 
13572  return _param;
13573 }
rt_band * rtband
Definition: rt_api.c:13512
rt_raster * raster
Definition: rt_api.c:13505
rt_iterator_arg arg
Definition: rt_api.c:13534
double ** values
Definition: rt_api.c:13530
struct _rti_iterator_arg_t::@13 empty
double * nodataval
Definition: rt_api.c:13515
struct _rti_iterator_arg_t::@10 band
double ** offset
Definition: rt_api.c:13507
uint32_t columns
Definition: rt_api.c:13526
void * rtalloc(size_t size)
Raster core memory management functions.
Definition: rt_api.c:867
void rterror(const char *fmt,...)
Raster core error and info handlers.
Definition: rt_api.c:895
struct _rti_iterator_arg_t::@11 distance
struct _rti_iterator_arg_t::@12 dimension

Here is the call graph for this function:

Here is the caller graph for this function: