PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ _rt_raster_geotransform_warn_offline_band()

static void _rt_raster_geotransform_warn_offline_band ( rt_raster  raster)
static

Definition at line 95 of file rt_raster.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().

95  {
96  int numband = 0;
97  int i = 0;
98  rt_band band = NULL;
99 
100  if (raster == NULL)
101  return;
102 
103  numband = rt_raster_get_num_bands(raster);
104  if (numband < 1)
105  return;
106 
107  for (i = 0; i < numband; i++) {
108  band = rt_raster_get_band(raster, i);
109  if (NULL == band)
110  continue;
111 
112  if (!rt_band_is_offline(band))
113  continue;
114 
115  rtwarn("Changes made to raster geotransform matrix may affect out-db band data. Returned band data may be incorrect");
116  break;
117  }
118 }
band
Definition: ovdump.py:57
int rt_raster_get_num_bands(rt_raster raster)
Definition: rt_raster.c:372
int rt_band_is_offline(rt_band band)
Return non-zero if the given band data is on the filesystem.
Definition: rt_band.c:228
void rtwarn(const char *fmt,...)
Definition: rt_context.c:224
rt_band rt_raster_get_band(rt_raster raster, int n)
Return Nth band, or NULL if unavailable.
Definition: rt_raster.c:381
Here is the call graph for this function:
Here is the caller graph for this function: