PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rtpg_nmapalgebra_arg_init()

static rtpg_nmapalgebra_arg rtpg_nmapalgebra_arg_init ( )
static

Definition at line 120 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_info, rtpg_nmapalgebra_callback_arg::ufc_noid, and rtpg_nmapalgebra_callback_arg::ufc_rettype.

Referenced by RASTER_nMapAlgebra(), and rtpg_nmapalgebraexpr_arg_init().

120  {
121  rtpg_nmapalgebra_arg arg = NULL;
122 
123  arg = palloc(sizeof(struct rtpg_nmapalgebra_arg_t));
124  if (arg == NULL) {
125  elog(ERROR, "rtpg_nmapalgebra_arg_init: Could not allocate memory for arguments");
126  return NULL;
127  }
128 
129  arg->numraster = 0;
130  arg->pgraster = NULL;
131  arg->raster = NULL;
132  arg->isempty = NULL;
133  arg->ownsdata = NULL;
134  arg->nband = NULL;
135  arg->hasband = NULL;
136 
137  arg->pixtype = PT_END;
138  arg->hasnodata = 1;
139  arg->nodataval = 0;
140 
141  arg->distance[0] = 0;
142  arg->distance[1] = 0;
143 
145  arg->pgcextent = NULL;
146  arg->cextent = NULL;
147  arg->mask = NULL;
148 
149 #if POSTGIS_PGSQL_VERSION >= 120
150  arg->callback.ufc_info = &(arg->callback.ufc_info_data.fcinfo);
151 #endif
152  arg->callback.ufc_noid = InvalidOid;
153  arg->callback.ufc_rettype = InvalidOid;
154 
155  return arg;
156 }
rt_pgraster ** pgraster
rtpg_nmapalgebra_callback_arg callback
FunctionCallInfoData ufc_info
Here is the caller graph for this function: