Definition at line 542 of file raster2pgsql.c.
References _, rasterinfo_t::bandtype, rasterinfo_t::dim, rasterinfo_t::gdalbandtype, rasterinfo_t::gt, rasterinfo_t::hasnodata, rasterinfo_t::nband, rasterinfo_t::nband_count, rasterinfo_t::nodataval, rtalloc(), rterror(), rasterinfo_t::srs, and rasterinfo_t::tile_size.
Referenced by process_rasters().
543 if (src->
srs != NULL) {
545 if (dst->
srs == NULL) {
546 rterror(
_(
"copy_rastinfo: Not enough memory"));
549 strcpy(dst->
srs, src->
srs);
555 if (dst->
nband == NULL) {
556 rterror(
_(
"copy_rastinfo: Not enough memory"));
564 rterror(
_(
"copy_rastinfo: Not enough memory"));
572 rterror(
_(
"copy_rastinfo: Not enough memory"));
580 rterror(
_(
"copy_rastinfo: Not enough memory"));
588 rterror(
_(
"copy_rastinfo: Not enough memory"));
593 memcpy(dst->
gt, src->
gt,
sizeof(
double) * 6);
GDALDataType * gdalbandtype
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
void * rtalloc(size_t size)
Wrappers used for managing memory.