PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rtpg_clip_arg_init()

static rtpg_clip_arg rtpg_clip_arg_init ( )
static

Definition at line 2966 of file rtpg_mapalgebra.c.

References rtpg_clip_arg_t::band, ET_INTERSECTION, rtpg_clip_arg_t::extenttype, rtpg_clip_arg_t::mask, rtpg_clip_arg_t::numbands, and rtpg_clip_arg_t::raster.

Referenced by RASTER_clip().

2966  {
2967  rtpg_clip_arg arg = NULL;
2968 
2969  arg = palloc(sizeof(struct rtpg_clip_arg_t));
2970  if (arg == NULL) {
2971  elog(ERROR, "rtpg_clip_arg_init: Could not allocate memory for function arguments");
2972  return NULL;
2973  }
2974 
2975  arg->extenttype = ET_INTERSECTION;
2976  arg->raster = NULL;
2977  arg->mask = NULL;
2978  arg->numbands = 0;
2979  arg->band = NULL;
2980 
2981  return arg;
2982 }
rt_extenttype extenttype
rtpg_clip_band band
Here is the caller graph for this function: