[gdal-dev] "gdaladdo: tif_dirwrite.c:2449: TIFFWriteDirectoryTagData: Assertion `datalength<0x80000000UL' failed."

Mats Högström Mats.Hogstrom at slu.se
Thu Jan 23 03:51:16 PST 2020


Hi,

I'm trying to build overviews on a large vrt file, but I'm getting the following error message
"gdaladdo: tif_dirwrite.c:2449: TIFFWriteDirectoryTagData: Assertion `datalength<0x80000000UL' failed."

Operating system ubuntu server 18.04
256 Gb memory
GDAL version 2.4

This is what I do:
- create a text file with all the file names
- gdalbuildvrt mosaic.vrt --optfile <mytextfile>
- gdaladdo -q -ro --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW RGB --config INTERLEAVE_OVERVIEW PIXEL --config BIGTIFF_OVERVIEW YES mosaic.vrt 2

The vrt file references about 15000 4-band tiffs with 16 cm resolution.
gdalinfo mosaic.vrt
Driver: VRT/Virtual Raster
Files: /mnt/data/lm/orto4band016/raster/epsg3006/2019/delivery/ortofoto/mosaic.vrt
       /mnt/data/lm/orto4band016/raster/epsg3006/2019/delivery/ortofoto/70_4/700_47_0075_2019.tif
|
|
|
       /mnt/data/lm/orto4band016/raster/epsg3006/2019/delivery/ortofoto/72_8/728_80_0050_2019.tif
Size is 3812500, 8203125
Coordinate System is:
PROJCS["SWEREF99 TM",
    GEOGCS["SWEREF99",
        DATUM["SWEREF99",
            SPHEROID["GRS 1980",6378137,298.257222101,
                AUTHORITY["EPSG","7019"]],
            TOWGS84[0,0,0,0,0,0,0],
            AUTHORITY["EPSG","6619"]],
        PRIMEM["Greenwich",0,
            AUTHORITY["EPSG","8901"]],
        UNIT["degree",0.0174532925199433,
            AUTHORITY["EPSG","9122"]],
        AUTHORITY["EPSG","4619"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",15],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","3006"]]
Origin = (312500.000000000000000,7540000.000000000000000)
Pixel Size = (0.160000000000006,-0.160000000000006)
Corner Coordinates:
Upper Left  (  312500.000, 7540000.000) ( 10d31'41.87"E, 67d54'48.45"N)
Lower Left  (  312500.000, 6227500.000) ( 11d58'51.51"E, 56d 9'20.09"N)
Upper Right (  922500.000, 7540000.000) ( 24d59'59.48"E, 67d40' 2.67"N)
Lower Right (  922500.000, 6227500.000) ( 21d46'52.71"E, 56d 0'21.07"N)
Center      (  617500.000, 6883750.000) ( 17d14'55.13"E, 62d 4' 3.41"N)
Band 1 Block=128x128 Type=Byte, ColorInterp=Red
  NoData Value=0
Band 2 Block=128x128 Type=Byte, ColorInterp=Green
  NoData Value=0
Band 3 Block=128x128 Type=Byte, ColorInterp=Blue
  NoData Value=0
Band 4 Block=128x128 Type=Byte, ColorInterp=Undefined
  NoData Value=0

Any ideas why this happens?

Best regards
/mats
---
När du skickar e-post till SLU så innebär detta att SLU behandlar dina personuppgifter. För att läsa mer om hur detta går till, klicka här <https://www.slu.se/om-slu/kontakta-slu/personuppgifter/>
E-mailing SLU will result in SLU processing your personal data. For more information on how this is done, click here <https://www.slu.se/en/about-slu/contact-slu/personal-data/>


More information about the gdal-dev mailing list