PostGIS  2.2.8dev-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 2946 of file rtpg_mapalgebra.c.

References rt_iterator_arg_t::nodata, PG_FUNCTION_INFO_V1(), RASTER_clip(), 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
int value
Definition: genraster.py:61
Here is the call graph for this function:
Here is the caller graph for this function: