1

I am trying to upload a raster in GEE with ZSTD compression and it fails. Anybody knows why?

I have a small raster viirs_bin_090.tif and did gdal_translate viirs_bin_090.tif viirs_bin_090_ztsd.tif -co COMPRESS=ZSTD. The one with default compression (deflate) was uploaded and the other failed (see image below)

enter image description here

I checked with gdalinfo and confirmed that the compression was applied.

Now I am trying to upload it to GEE but got an upload error but there is no details as to why.

3
  • Probably Google are using an older GDAL without ZSTD support or an external libtiff not built against ZSTD in their GEE stack, but I don't know if / doubt that they publish those sort of details about their infrastructure. Workaround by using a different compression.
    – user2856
    Nov 29, 2021 at 9:32
  • Please provide the failed task id in text form. Nov 29, 2021 at 21:08
  • @SimonIlyushchenko here is the failed task ID: PEYOYWUUUWUBHBODA2JTJDJF Nov 30, 2021 at 7:15

1 Answer 1

4

The libtiff and GDAL configs within Google have DEFLATE and LZW. As of November 2021, LERC, WEBP, and ZSTD are not enabled. You can do something like this for compression:

-co COMPRESS=DEFLATE -co ZLEVEL=9

You can also specify a PREDICTOR, which may help. See here for more details on setting the PREDICTOR:

https://gdal.org/drivers/raster/gtiff.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.