PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ rtpg_nmapalgebra_arg_init()

static rtpg_nmapalgebra_arg rtpg_nmapalgebra_arg_init ( )
static

Definition at line 111 of file rtpg_mapalgebra.c.

References rtpg_nmapalgebra_arg_t::callback, rtpg_nmapalgebra_arg_t::cextent, rtpg_nmapalgebra_arg_t::distance, ET_INTERSECTION, rtpg_nmapalgebra_arg_t::extenttype, rtpg_nmapalgebra_arg_t::hasband, rtpg_nmapalgebra_arg_t::hasnodata, rtpg_nmapalgebra_arg_t::isempty, rtpg_nmapalgebra_arg_t::mask, rtpg_nmapalgebra_arg_t::nband, rtpg_nmapalgebra_arg_t::nodataval, rtpg_nmapalgebra_arg_t::numraster, rtpg_nmapalgebra_arg_t::ownsdata, rtpg_nmapalgebra_arg_t::pgcextent, rtpg_nmapalgebra_arg_t::pgraster, rtpg_nmapalgebra_arg_t::pixtype, PT_END, rtpg_nmapalgebra_arg_t::raster, rtpg_nmapalgebra_callback_arg::ufc_noid, and rtpg_nmapalgebra_callback_arg::ufc_rettype.

Referenced by RASTER_nMapAlgebra(), and rtpg_nmapalgebraexpr_arg_init().

111  {
112  rtpg_nmapalgebra_arg arg = NULL;
113 
114  arg = palloc(sizeof(struct rtpg_nmapalgebra_arg_t));
115  if (arg == NULL) {
116  elog(ERROR, "rtpg_nmapalgebra_arg_init: Could not allocate memory for arguments");
117  return NULL;
118  }
119 
120  arg->numraster = 0;
121  arg->pgraster = NULL;
122  arg->raster = NULL;
123  arg->isempty = NULL;
124  arg->ownsdata = NULL;
125  arg->nband = NULL;
126  arg->hasband = NULL;
127 
128  arg->pixtype = PT_END;
129  arg->hasnodata = 1;
130  arg->nodataval = 0;
131 
132  arg->distance[0] = 0;
133  arg->distance[1] = 0;
134 
136  arg->pgcextent = NULL;
137  arg->cextent = NULL;
138  arg->mask = NULL;
139 
140  arg->callback.ufc_noid = InvalidOid;
141  arg->callback.ufc_rettype = InvalidOid;
142 
143  return arg;
144 }
rt_pgraster ** pgraster
rtpg_nmapalgebra_callback_arg callback
Here is the caller graph for this function: