PostGIS  2.5.7dev-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.

746  {
747  uint32_t i = 0;
748  uint32_t 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 }
#define RASTER_DEBUGF(level, msg,...)
Definition: librtcore.h:299
void rtdealloc(void *mem)
Definition: rt_context.c:186
struct _rti_iterator_arg_t::@13 empty
rt_iterator_arg arg
struct _rti_iterator_arg_t::@12 dimension
double *** values
Definition: librtcore.h:2459
unsigned int uint32_t
Definition: uthash.h:78

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().

Here is the call graph for this function:
Here is the caller graph for this function: