SE_raster_get_bands

Retrieves an array of SE_RASBANDINFO structures for a raster

Usage syntax

LONG SE_raster_get_bands
(SE_CONNECTION connection,
const SE_RASTERINFO raster,
SE_RASBANDINFO **rasterband_list,
LONG *count_addr);

Parameters
connection The connection handle
raster Pointer to an SE_RASTERINFO structure
rasterband_list Address of a pointer in a dynamically allocated space that will contain an array of SE_RASBANDINFO structures
count_addr The number of bands in the SE_RASBANDINFO list
Description

SE_raster_get_bands returns an array of SE_RASBANDINFO pointers that are defined. The total number of raster band info structures is returned in the count_addr parameter. The application must free the rasterband_list to reclaim the memory allocated by this function.

Returns

SE_SUCCESS
SE_DB_IO_ERROR

SE_INVALID_POINTER

SE_NET_FAILURE

SE_SDE_NOT_STARTED

Notes

∙ The application must free the memory used by this call. See SE_rasterband_free_info_list.