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

Definition at line 19000 of file rt_pg.c.

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

Referenced by RASTER_clip().

19003  {
19004  *value = 0;
19005  *nodata = 0;
19006 
19007  /* either is NODATA, output is NODATA */
19008  if (arg->nodata[0][0][0] || arg->nodata[1][0][0])
19009  *nodata = 1;
19010  /* set to value */
19011  else
19012  *value = arg->values[0][0][0];
19013 
19014  return 1;
19015 }
double *** values
Definition: rt_api.h:2376
int *** nodata
Definition: rt_api.h:2378

Here is the caller graph for this function: