PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ _rti_rasterize_arg_init()

static _rti_rasterize_arg _rti_rasterize_arg_init ( )
static

Definition at line 2433 of file rt_raster.c.

2433  {
2434  _rti_rasterize_arg arg = NULL;
2435 
2436  arg = rtalloc(sizeof(struct _rti_rasterize_arg_t));
2437  if (arg == NULL) {
2438  rterror("_rti_rasterize_arg_init: Could not allocate memory for _rti_rasterize_arg");
2439  return NULL;
2440  }
2441 
2442  arg->noband = 0;
2443 
2444  arg->numbands = 0;
2445 
2446  arg->src_sr = NULL;
2447 
2448  arg->pixtype = NULL;
2449  arg->init = NULL;
2450  arg->nodata = NULL;
2451  arg->hasnodata = NULL;
2452  arg->value = NULL;
2453  arg->bandlist = NULL;
2454 
2455  return arg;
2456 }
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
rt_pixtype * pixtype
Definition: rt_raster.c:2424
OGRSpatialReferenceH src_sr
Definition: rt_raster.c:2422

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().

Here is the call graph for this function:
Here is the caller graph for this function: