So now I have the following code:
:
static const char *fields[] = {"bbox", "data", "min", "max", "ndv"};
octave_map m_band (dim_vector (band_count, 1), string_vector (fields));
/// line wrap
octave_idx_type curr_band;
octave_scalar_map band_struct = (string_vector (fields));
:
for (octave_idx_type curr_band = 0; curr_band < band_count; curr_band++)
{
:
< fill up band_struct with raster data>
:
m_band.fast_elem_insert (curr_band, band_struct);
}
Great! Of course octave_idx_type cannot help. I guess, it's only int or long int depending upon the architecture.