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

Definition at line 2943 of file rtpg_mapalgebra.c.

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

Referenced by RASTER_clip().

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

Here is the caller graph for this function: