Definition at line 520 of file raster2pgsql.c.
520 {
521 if (src->
srs != NULL) {
523 if (dst->
srs == NULL) {
524 rterror(
_(
"copy_rastinfo: Not enough memory"));
525 return 0;
526 }
527 strcpy(dst->
srs, src->
srs);
528 }
529 memcpy(dst->
dim, src->
dim,
sizeof(uint32_t) * 2);
533 if (dst->
nband == NULL) {
534 rterror(
_(
"copy_rastinfo: Not enough memory"));
535 return 0;
536 }
538 }
542 rterror(
_(
"copy_rastinfo: Not enough memory"));
543 return 0;
544 }
546 }
550 rterror(
_(
"copy_rastinfo: Not enough memory"));
551 return 0;
552 }
554 }
558 rterror(
_(
"copy_rastinfo: Not enough memory"));
559 return 0;
560 }
562 }
566 rterror(
_(
"copy_rastinfo: Not enough memory"));
567 return 0;
568 }
570 }
571 memcpy(dst->
gt, src->
gt,
sizeof(
double) * 6);
573
574 return 1;
575}
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
void * rtalloc(size_t size)
Wrappers used for managing memory.
GDALDataType * gdalbandtype
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().