PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ rt_band_get_data()

void* rt_band_get_data ( rt_band  band)

Get pointer to raster band data.

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

Definition at line 551 of file rt_band.c.

551  {
552  assert(NULL != band);
553 
554  if (band->offline) {
555  if (band->data.offline.mem != NULL)
556  return band->data.offline.mem;
557 
559  return NULL;
560  else
561  return band->data.offline.mem;
562  }
563  else
564  return band->data.mem;
565 }
@ ES_NONE
Definition: librtcore.h:182
band
Definition: ovdump.py:58
rt_errorstate rt_band_load_offline_data(rt_band band)
Load offline band's data.
Definition: rt_band.c:580

References ovdump::band, ES_NONE, 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().

Here is the call graph for this function:
Here is the caller graph for this function: