PostGIS  2.4.9dev-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 2996 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().

2999  {
3000  *value = 0;
3001  *nodata = 0;
3002 
3003  /* either is NODATA, output is NODATA */
3004  if (arg->nodata[0][0][0] || arg->nodata[1][0][0])
3005  *nodata = 1;
3006  /* set to value */
3007  else
3008  *value = arg->values[0][0][0];
3009 
3010  return 1;
3011 }
double *** values
Definition: librtcore.h:2410
int value
Definition: genraster.py:61
Here is the call graph for this function:
Here is the caller graph for this function: