PostGIS 3.7.0dev-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 4194 of file rtpg_mapalgebra.c.

4194 {
4195 uint32_t i = 0;
4196 if (arg->raster != NULL)
4198
4199 if (arg->bandstats != NULL)
4200 pfree(arg->bandstats);
4201
4202 if (arg->colormap != NULL) {
4203 if (arg->colormap->entry != NULL)
4204 pfree(arg->colormap->entry);
4205 pfree(arg->colormap);
4206 }
4207
4208 if (arg->nentry) {
4209 for (i = 0; i < arg->nentry; i++) {
4210 if (arg->entry[i] != NULL)
4211 pfree(arg->entry[i]);
4212 }
4213 pfree(arg->entry);
4214 }
4215
4216 if (arg->nelement) {
4217 for (i = 0; i < arg->nelement; i++)
4218 pfree(arg->element[i]);
4219 pfree(arg->element);
4220 }
4221
4222 pfree(arg);
4223 arg = NULL;
4224}
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
Definition rt_raster.c:86
rt_colormap_entry entry
Definition librtcore.h:2712

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: