Definition at line 1447 of file rt_mapalgebra.c.
1447 {
1449
1451 if (arg == NULL) {
1452 rterror(
"_rti_colormap_arg_init: Could not allocate memory for _rti_color_arg");
1453 return NULL;
1454 }
1455
1460
1461 if (raster == NULL)
1463
1464 else {
1466 if (arg->
raster == NULL) {
1467 rterror(
"_rti_colormap_arg_init: Could not create output raster");
1468 return NULL;
1469 }
1470 }
1471
1474
1477
1478 return arg;
1479}
void rterror(const char *fmt,...)
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().