-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
I've a couple of rasters of pixel dimensions like 300k x 150k. Most of the pixels have NODATA values. The data looks like below

The file size with LZW compression is 7 GB. When I use following GDAL commands to convert to COG, conversion happens in around an hour:
$ gdal_translate source.tif tmp.tif -co TILED=YES -co COMPRESS=DEFLATE -co BIGTIFF=IF_SAFER -co COPY_SRC_OVERVIEWS=YES
$ gdaladdo tmp.tif 2 4 8 16 32
$ gdal_translate tmp.tif cog.tif -co TILED=YES -co BIGTIFF=IF_SAFER -co COPY_SRC_OVERVIEWS=YESBut if I run rio cogeo create source.tif cog.tif, conversion gets stuck at -
Reading input: <file path>
[------------------------------------] 0% 2d 19:51:43
I tried multiple times and killed the process after couple of hours.
I believe the method vrt_dst.read() of class WarpedVRT is trying to unpack the raster (which is originally in LZW compression). Uncompressed file would come around 200 - 300 GB. This could be causing the conversion to take days instead of an hour.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels