PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rtpg_dumpvalues_arg_init()

static rtpg_dumpvalues_arg rtpg_dumpvalues_arg_init ( )
static

Definition at line 153 of file rtpg_pixel.c.

References rtpg_dumpvalues_arg_t::columns, rtpg_dumpvalues_arg_t::nbands, rtpg_dumpvalues_arg_t::nodata, rtpg_dumpvalues_arg_t::numbands, rtpg_dumpvalues_arg_t::rows, and rtpg_dumpvalues_arg_t::values.

Referenced by RASTER_dumpValues().

153  {
154  rtpg_dumpvalues_arg arg = NULL;
155 
156  arg = palloc(sizeof(struct rtpg_dumpvalues_arg_t));
157  if (arg == NULL) {
158  elog(ERROR, "rtpg_dumpvalues_arg_init: Could not allocate memory for arguments");
159  return NULL;
160  }
161 
162  arg->numbands = 0;
163  arg->rows = 0;
164  arg->columns = 0;
165 
166  arg->nbands = NULL;
167  arg->values = NULL;
168  arg->nodata = NULL;
169 
170  return arg;
171 }
Here is the caller graph for this function: