PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ _rti_rasterize_arg_init()

static _rti_rasterize_arg _rti_rasterize_arg_init ( )
static

Definition at line 2416 of file rt_raster.c.

References _rti_rasterize_arg_t::bandlist, _rti_rasterize_arg_t::hasnodata, _rti_rasterize_arg_t::init, _rti_rasterize_arg_t::noband, _rti_rasterize_arg_t::nodata, _rti_rasterize_arg_t::numbands, _rti_rasterize_arg_t::pixtype, rtalloc(), rterror(), _rti_rasterize_arg_t::src_sr, and _rti_rasterize_arg_t::value.

Referenced by rt_raster_gdal_rasterize().

2416  {
2417  _rti_rasterize_arg arg = NULL;
2418 
2419  arg = rtalloc(sizeof(struct _rti_rasterize_arg_t));
2420  if (arg == NULL) {
2421  rterror("_rti_rasterize_arg_init: Could not allocate memory for _rti_rasterize_arg");
2422  return NULL;
2423  }
2424 
2425  arg->noband = 0;
2426 
2427  arg->numbands = 0;
2428 
2429  arg->src_sr = NULL;
2430 
2431  arg->pixtype = NULL;
2432  arg->init = NULL;
2433  arg->nodata = NULL;
2434  arg->hasnodata = NULL;
2435  arg->value = NULL;
2436  arg->bandlist = NULL;
2437 
2438  return arg;
2439 }
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
Definition: rt_context.c:199
void * rtalloc(size_t size)
Wrappers used for managing memory.
Definition: rt_context.c:171
OGRSpatialReferenceH src_sr
Definition: rt_raster.c:2405
rt_pixtype * pixtype
Definition: rt_raster.c:2407
Here is the call graph for this function:
Here is the caller graph for this function: