PostGIS  2.3.7dev-r@@SVN_REVISION@@
static int rtpg_clip_callback ( rt_iterator_arg  arg,
void *  userarg,
double *  value,
int *  nodata 
)
static

Definition at line 2946 of file rtpg_mapalgebra.c.

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

Referenced by RASTER_clip().

2949  {
2950  *value = 0;
2951  *nodata = 0;
2952 
2953  /* either is NODATA, output is NODATA */
2954  if (arg->nodata[0][0][0] || arg->nodata[1][0][0])
2955  *nodata = 1;
2956  /* set to value */
2957  else
2958  *value = arg->values[0][0][0];
2959 
2960  return 1;
2961 }
double *** values
Definition: librtcore.h:2422

Here is the caller graph for this function: