PostGIS  2.1.10dev-r@@SVN_REVISION@@
static rtpg_nmapalgebra_arg rtpg_nmapalgebra_arg_init ( )
static

Definition at line 16302 of file rt_pg.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::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().

16302  {
16303  rtpg_nmapalgebra_arg arg = NULL;
16304 
16305  arg = palloc(sizeof(struct rtpg_nmapalgebra_arg_t));
16306  if (arg == NULL) {
16307  elog(ERROR, "rtpg_nmapalgebra_arg_init: Could not allocate memory for arguments");
16308  return NULL;
16309  }
16310 
16311  arg->numraster = 0;
16312  arg->pgraster = NULL;
16313  arg->raster = NULL;
16314  arg->isempty = NULL;
16315  arg->ownsdata = NULL;
16316  arg->nband = NULL;
16317  arg->hasband = NULL;
16318 
16319  arg->pixtype = PT_END;
16320  arg->hasnodata = 1;
16321  arg->nodataval = 0;
16322 
16323  arg->distance[0] = 0;
16324  arg->distance[1] = 0;
16325 
16326  arg->extenttype = ET_INTERSECTION;
16327  arg->pgcextent = NULL;
16328  arg->cextent = NULL;
16329 
16330  arg->callback.ufc_noid = InvalidOid;
16331  arg->callback.ufc_rettype = InvalidOid;
16332 
16333  return arg;
16334 }
Definition: rt_api.h:184
rt_raster * raster
Definition: rt_pg.c:16283
rt_pgraster * pgcextent
Definition: rt_pg.c:16296
rt_pgraster ** pgraster
Definition: rt_pg.c:16282
uint8_t * ownsdata
Definition: rt_pg.c:16285
rtpg_nmapalgebra_callback_arg callback
Definition: rt_pg.c:16299
rt_pixtype pixtype
Definition: rt_pg.c:16289
rt_extenttype extenttype
Definition: rt_pg.c:16295

Here is the caller graph for this function: