PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rtpg_clip_callback()

static int rtpg_clip_callback ( rt_iterator_arg  arg,
void *  userarg,
double *  value,
int *  nodata 
)
static

Definition at line 3008 of file rtpg_mapalgebra.c.

3011  {
3012  *value = 0;
3013  *nodata = 0;
3014 
3015  /* either is NODATA, output is NODATA */
3016  if (arg->nodata[0][0][0] || arg->nodata[1][0][0])
3017  *nodata = 1;
3018  /* set to value */
3019  else
3020  *value = arg->values[0][0][0];
3021 
3022  return 1;
3023 }
int value
Definition: genraster.py:61
double *** values
Definition: librtcore.h:2459

References rt_iterator_arg_t::nodata, genraster::value, and rt_iterator_arg_t::values.

Referenced by RASTER_clip().

Here is the caller graph for this function: