PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ _rti_iterator_arg_callback_clean()

static void _rti_iterator_arg_callback_clean ( _rti_iterator_arg  _param)
static

Definition at line 746 of file rt_mapalgebra.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(), _rti_iterator_arg_t::values, rt_iterator_arg_t::values, and _rti_iterator_arg_t::y.

Referenced by rt_raster_iterator().

746  {
747  int i = 0;
748  int y = 0;
749 
750  for (i = 0; i < _param->count; i++) {
751  RASTER_DEBUGF(5, "empty at @ %p", _param->empty.values);
752  RASTER_DEBUGF(5, "values at @ %p", _param->arg->values[i]);
753 
754  if (_param->arg->values[i] == _param->empty.values) {
755  _param->arg->values[i] = NULL;
756  _param->arg->nodata[i] = NULL;
757 
758  continue;
759  }
760 
761  for (y = 0; y < _param->dimension.rows; y++) {
762  rtdealloc(_param->arg->values[i][y]);
763  rtdealloc(_param->arg->nodata[i][y]);
764  }
765 
766  rtdealloc(_param->arg->values[i]);
767  rtdealloc(_param->arg->nodata[i]);
768 
769  _param->arg->values[i] = NULL;
770  _param->arg->nodata[i] = NULL;
771  }
772 }
struct _rti_iterator_arg_t::@10 dimension
rt_iterator_arg arg
struct _rti_iterator_arg_t::@11 empty
#define RASTER_DEBUGF(level, msg,...)
Definition: librtcore.h:299
double *** values
Definition: librtcore.h:2410
void rtdealloc(void *mem)
Definition: rt_context.c:186
Here is the call graph for this function:
Here is the caller graph for this function: