PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void _rti_iterator_arg_callback_clean ( _rti_iterator_arg  _param)
static

Definition at line 13862 of file rt_api.c.

References _rti_iterator_arg_t::arg, _rti_iterator_arg_t::count, _rti_iterator_arg_t::dimension, _rti_iterator_arg_t::empty, rt_iterator_arg_t::nodata, RASTER_DEBUGF, _rti_iterator_arg_t::rows, rtdealloc(), rt_iterator_arg_t::values, _rti_iterator_arg_t::values, and pixval::y.

Referenced by rt_raster_iterator().

13862  {
13863  int i = 0;
13864  int y = 0;
13865 
13866  for (i = 0; i < _param->count; i++) {
13867  RASTER_DEBUGF(5, "empty at @ %p", _param->empty.values);
13868  RASTER_DEBUGF(5, "values at @ %p", _param->arg->values[i]);
13869 
13870  if (_param->arg->values[i] == _param->empty.values) {
13871  _param->arg->values[i] = NULL;
13872  _param->arg->nodata[i] = NULL;
13873 
13874  continue;
13875  }
13876 
13877  for (y = 0; y < _param->dimension.rows; y++) {
13878  rtdealloc(_param->arg->values[i][y]);
13879  rtdealloc(_param->arg->nodata[i][y]);
13880  }
13881 
13882  rtdealloc(_param->arg->values[i]);
13883  rtdealloc(_param->arg->nodata[i]);
13884 
13885  _param->arg->values[i] = NULL;
13886  _param->arg->nodata[i] = NULL;
13887  }
13888 }
void rtdealloc(void *mem)
Definition: rt_api.c:882
rt_iterator_arg arg
Definition: rt_api.c:13534
double ** values
Definition: rt_api.c:13530
#define RASTER_DEBUGF(level, msg,...)
Definition: rt_api.h:285
struct _rti_iterator_arg_t::@13 empty
double *** values
Definition: rt_api.h:2376
struct _rti_iterator_arg_t::@12 dimension
int *** nodata
Definition: rt_api.h:2378
tuple y
Definition: pixval.py:54

Here is the call graph for this function:

Here is the caller graph for this function: