Definition at line 531 of file raster2pgsql.c.
531 {
532 if (src->
srs != NULL) {
534 if (dst->
srs == NULL) {
535 rterror(
_(
"copy_rastinfo: Not enough memory"));
536 return 0;
537 }
538 strcpy(dst->
srs, src->
srs);
539 }
540 memcpy(dst->
dim, src->
dim,
sizeof(uint32_t) * 2);
544 if (dst->
nband == NULL) {
545 rterror(
_(
"copy_rastinfo: Not enough memory"));
546 return 0;
547 }
549 }
553 rterror(
_(
"copy_rastinfo: Not enough memory"));
554 return 0;
555 }
557 }
561 rterror(
_(
"copy_rastinfo: Not enough memory"));
562 return 0;
563 }
565 }
569 rterror(
_(
"copy_rastinfo: Not enough memory"));
570 return 0;
571 }
573 }
577 rterror(
_(
"copy_rastinfo: Not enough memory"));
578 return 0;
579 }
581 }
582 memcpy(dst->
gt, src->
gt,
sizeof(
double) * 6);
584
585 return 1;
586}
void rterror(const char *fmt,...) __attribute__((format(printf
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().