Definition at line 593 of file raster2pgsql.c.
References _, rasterinfo_t::bandtype, ES_NONE, rasterinfo_t::gt, rasterinfo_t::hasnodata, rasterinfo_t::nband, rasterinfo_t::nband_count, rt_raster_destroy(), rt_raster_new(), rt_raster_same_alignment(), rt_raster_set_geotransform_matrix(), rterror(), rtwarn(), and rasterinfo_t::tile_size.
Referenced by process_rasters().
594 static uint8_t msg[6] = {0};
602 rtwarn(
_(
"Different number of bands found in the set of rasters being converted to PostGIS raster"));
610 rtwarn(
_(
"Different pixel types found for band %d in the set of rasters being converted to PostGIS raster"), ref->
nband[i]);
620 rtwarn(
_(
"Different hasnodata flags found for band %d in the set of rasters being converted to PostGIS raster"), ref->
nband[i]);
631 rtwarn(
_(
"Different NODATA values found for band %d in the set of rasters being converted to PostGIS raster"), ref->
nband[i]);
648 rterror(
_(
"diff_rastinfo: Could not allocate memory for raster alignment test"));
661 rterror(
_(
"diff_rastinfo: Could not run raster alignment test"));
666 rtwarn(
_(
"Raster with different alignment found in the set of rasters being converted to PostGIS raster"));
673 for (i = 0; i < 2; i++) {
675 rtwarn(
_(
"Different tile sizes found in the set of rasters being converted to PostGIS raster"));
void rt_raster_destroy(rt_raster raster)
Release memory associated to a raster.
void rtwarn(const char *fmt,...)
void rt_raster_set_geotransform_matrix(rt_raster raster, double *gt)
Set raster's geotransform using 6-element array.
void rterror(const char *fmt,...)
Raster core error and info handlers.
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.
rt_errorstate rt_raster_same_alignment(rt_raster rast1, rt_raster rast2, int *aligned, char **reason)