PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ _rti_rasterize_arg_destroy()

static void _rti_rasterize_arg_destroy ( _rti_rasterize_arg  arg)
static

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

2463  {
2464  if (arg->noband) {
2465  if (arg->pixtype != NULL)
2466  rtdealloc(arg->pixtype);
2467  if (arg->init != NULL)
2468  rtdealloc(arg->init);
2469  if (arg->nodata != NULL)
2470  rtdealloc(arg->nodata);
2471  if (arg->hasnodata != NULL)
2472  rtdealloc(arg->hasnodata);
2473  if (arg->value != NULL)
2474  rtdealloc(arg->value);
2475  }
2476 
2477  if (arg->bandlist != NULL)
2478  rtdealloc(arg->bandlist);
2479 
2480  if (arg->src_sr != NULL)
2481  OSRDestroySpatialReference(arg->src_sr);
2482 
2483  rtdealloc(arg);
2484 }
OGRSpatialReferenceH src_sr
Definition: rt_raster.c:2426
rt_pixtype * pixtype
Definition: rt_raster.c:2428
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: