PostGIS  3.0.6dev-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 3007 of file rtpg_mapalgebra.c.

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

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: