PostGIS  2.1.10dev-r@@SVN_REVISION@@
void* rt_band_get_data ( rt_band  band)

Get pointer to raster band data.

band: the band who's data to get
pointer to band data or NULL if error

Definition at line 1710 of file rt_api.c.

References rt_band_t::data, ES_NONE, rt_band_t::mem, rt_band_t::offline, and rt_band_load_offline_data().

Referenced by raster_destroy(), rt_band_get_pixel(), rt_band_get_pixel_line(), rt_band_get_quantiles_stream(), rt_band_get_value_count(), rt_band_set_pixel(), rt_band_set_pixel_line(), rt_raster_to_gdal_mem(), rt_raster_to_wkb(), and test_band_metadata().

1710  {
1711  assert(NULL != band);
1713  if (band->offline) {
1714  if (band->data.offline.mem != NULL)
1715  return band->data.offline.mem;
1717  if (rt_band_load_offline_data(band) != ES_NONE)
1718  return NULL;
1719  else
1720  return band->data.offline.mem;
1721  }
1722  else
1723  return band->data.mem;
1724 }
union rt_band_t::@14 data
int32_t offline
Definition: rt_api.h:2240
void * mem
Definition: rt_api.h:2252
rt_errorstate rt_band_load_offline_data(rt_band band)
Load offline band's data.
Definition: rt_api.c:1739

Here is the call graph for this function:

Here is the caller graph for this function: