Definition at line 1458 of file rt_mapalgebra.c.
1458 {
1460
1462 if (arg == NULL) {
1463 rterror(
"_rti_colormap_arg_init: Could not allocate memory for _rti_color_arg");
1464 return NULL;
1465 }
1466
1471
1472 if (raster == NULL)
1474
1475 else {
1477 if (arg->
raster == NULL) {
1478 rterror(
"_rti_colormap_arg_init: Could not create output raster");
1479 return NULL;
1480 }
1481 }
1482
1485
1488
1489 return arg;
1490}
void rterror(const char *fmt,...) __attribute__((format(printf
Wrappers used for reporting errors and info.
void * rtalloc(size_t size)
Wrappers used for managing memory.
rt_raster rt_raster_clone(rt_raster raster, uint8_t deep)
Clone an existing raster.
rt_colormap_entry nodataentry
References _rti_colormap_arg_t::band, _rti_colormap_arg_t::expr, _rti_colormap_arg_t::hasnodata, _rti_colormap_arg_t::nexpr, _rti_colormap_arg_t::nodataentry, _rti_colormap_arg_t::nodataval, _rti_colormap_arg_t::npos, _rti_colormap_arg_t::pos, _rti_colormap_arg_t::raster, rt_raster_clone(), rtalloc(), and rterror().
Referenced by rt_raster_colormap().