PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ rtdealloc_rastinfo()

static void rtdealloc_rastinfo ( RASTERINFO info)
static

Definition at line 529 of file raster2pgsql.c.

References rasterinfo_t::bandtype, rasterinfo_t::gdalbandtype, rasterinfo_t::hasnodata, rasterinfo_t::nband, rasterinfo_t::nband_count, rasterinfo_t::nodataval, rtdealloc(), and rasterinfo_t::srs.

Referenced by process_rasters().

529  {
530  if (info->srs != NULL)
531  rtdealloc(info->srs);
532  if (info->nband_count > 0 && info->nband != NULL)
533  rtdealloc(info->nband);
534  if (info->gdalbandtype != NULL)
535  rtdealloc(info->gdalbandtype);
536  if (info->bandtype != NULL)
537  rtdealloc(info->bandtype);
538  if (info->hasnodata != NULL)
539  rtdealloc(info->hasnodata);
540  if (info->nodataval != NULL)
541  rtdealloc(info->nodataval);
542 }
GDALDataType * gdalbandtype
Definition: raster2pgsql.h:179
rt_pixtype * bandtype
Definition: raster2pgsql.h:180
void rtdealloc(void *mem)
Definition: rt_context.c:186
double * nodataval
Definition: raster2pgsql.h:185
uint32_t nband_count
Definition: raster2pgsql.h:176
Here is the call graph for this function:
Here is the caller graph for this function: