PostGIS  2.5.0dev-r@@SVN_REVISION@@
static _rti_rasterize_arg _rti_rasterize_arg_init ( )
static

Definition at line 2437 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().

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

Here is the call graph for this function:

Here is the caller graph for this function: