PostGIS 3.7.0dev-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 99 of file rt_raster.c.

99 {
100 int numband = 0;
101 int i = 0;
102 rt_band band = NULL;
103
104 if (raster == NULL)
105 return;
106
107 numband = rt_raster_get_num_bands(raster);
108 if (numband < 1)
109 return;
110
111 for (i = 0; i < numband; i++) {
112 band = rt_raster_get_band(raster, i);
113 if (NULL == band)
114 continue;
115
116 if (!rt_band_is_offline(band))
117 continue;
118
119 rtwarn("Changes made to raster geotransform matrix may affect out-db band data. Returned band data may be incorrect");
120 break;
121 }
122}
void void void rtwarn(const char *fmt,...) __attribute__((format(printf
int rt_band_is_offline(rt_band band)
Return non-zero if the given band data is on the filesystem.
Definition rt_band.c:488
uint16_t rt_raster_get_num_bands(rt_raster raster)
Definition rt_raster.c:376
rt_band rt_raster_get_band(rt_raster raster, int n)
Return Nth band, or NULL if unavailable.
Definition rt_raster.c:385

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: