PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void _rt_raster_geotransform_warn_offline_band ( rt_raster  raster)
static

Definition at line 5400 of file rt_api.c.

References ovdump::band, rt_band_is_offline(), rt_raster_get_band(), rt_raster_get_num_bands(), and rtwarn().

Referenced by rt_raster_set_geotransform_matrix(), rt_raster_set_offsets(), rt_raster_set_scale(), rt_raster_set_skews(), and rt_raster_set_srid().

5400  {
5401  int numband = 0;
5402  int i = 0;
5403  rt_band band = NULL;
5404 
5405  if (raster == NULL)
5406  return;
5407 
5408  numband = rt_raster_get_num_bands(raster);
5409  if (numband < 1)
5410  return;
5411 
5412  for (i = 0; i < numband; i++) {
5413  band = rt_raster_get_band(raster, i);
5414  if (NULL == band)
5415  continue;
5416 
5417  if (!rt_band_is_offline(band))
5418  continue;
5419 
5420  rtwarn("Changes made to raster geotransform matrix may affect out-db band data. Returned band data may be incorrect");
5421  break;
5422  }
5423 }
int rt_band_is_offline(rt_band band)
Return non-zero if the given band data is on the filesystem.
Definition: rt_api.c:1636
int rt_raster_get_num_bands(rt_raster raster)
Definition: rt_api.c:5677
tuple band
Definition: ovdump.py:57
void rtwarn(const char *fmt,...)
Definition: rt_api.c:920
rt_band rt_raster_get_band(rt_raster raster, int n)
Return Nth band, or NULL if unavailable.
Definition: rt_api.c:5686

Here is the call graph for this function:

Here is the caller graph for this function: