PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ rtpg_colormap_arg_destroy()

static void rtpg_colormap_arg_destroy ( rtpg_colormap_arg  arg)
static

Definition at line 4091 of file rtpg_mapalgebra.c.

4091 {
4092 uint32_t i = 0;
4093 if (arg->raster != NULL)
4095
4096 if (arg->bandstats != NULL)
4097 pfree(arg->bandstats);
4098
4099 if (arg->colormap != NULL) {
4100 if (arg->colormap->entry != NULL)
4101 pfree(arg->colormap->entry);
4102 pfree(arg->colormap);
4103 }
4104
4105 if (arg->nentry) {
4106 for (i = 0; i < arg->nentry; i++) {
4107 if (arg->entry[i] != NULL)
4108 pfree(arg->entry[i]);
4109 }
4110 pfree(arg->entry);
4111 }
4112
4113 if (arg->nelement) {
4114 for (i = 0; i < arg->nelement; i++)
4115 pfree(arg->element[i]);
4116 pfree(arg->element);
4117 }
4118
4119 pfree(arg);
4120 arg = NULL;
4121}
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
Definition rt_raster.c:82
rt_colormap_entry entry
Definition librtcore.h:2497

References rtpg_colormap_arg_t::bandstats, rtpg_colormap_arg_t::colormap, rtpg_colormap_arg_t::element, rt_colormap_t::entry, rtpg_colormap_arg_t::entry, rtpg_colormap_arg_t::nelement, rtpg_colormap_arg_t::nentry, rtpg_colormap_arg_t::raster, and rt_raster_destroy().

Referenced by RASTER_colorMap().

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