PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ _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.

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}
void rtwarn(const char *fmt,...)
Definition rt_context.c:224
int rt_band_is_offline(rt_band band)
Return non-zero if the given band data is on the filesystem.
Definition rt_band.c:329
uint16_t rt_raster_get_num_bands(rt_raster raster)
Definition rt_raster.c:372
rt_band rt_raster_get_band(rt_raster raster, int n)
Return Nth band, or NULL if unavailable.
Definition rt_raster.c:381

References 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().

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