PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ _rti_rasterize_arg_destroy()

static void _rti_rasterize_arg_destroy ( _rti_rasterize_arg  arg)
static

Definition at line 2442 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::pixtype, rtdealloc(), _rti_rasterize_arg_t::src_sr, and _rti_rasterize_arg_t::value.

Referenced by rt_raster_gdal_rasterize().

2442  {
2443  if (arg->noband) {
2444  if (arg->pixtype != NULL)
2445  rtdealloc(arg->pixtype);
2446  if (arg->init != NULL)
2447  rtdealloc(arg->init);
2448  if (arg->nodata != NULL)
2449  rtdealloc(arg->nodata);
2450  if (arg->hasnodata != NULL)
2451  rtdealloc(arg->hasnodata);
2452  if (arg->value != NULL)
2453  rtdealloc(arg->value);
2454  }
2455 
2456  if (arg->bandlist != NULL)
2457  rtdealloc(arg->bandlist);
2458 
2459  if (arg->src_sr != NULL)
2460  OSRDestroySpatialReference(arg->src_sr);
2461 
2462  rtdealloc(arg);
2463 }
OGRSpatialReferenceH src_sr
Definition: rt_raster.c:2405
rt_pixtype * pixtype
Definition: rt_raster.c:2407
void rtdealloc(void *mem)
Definition: rt_context.c:186
Here is the call graph for this function:
Here is the caller graph for this function: