Skip to content

Commit

Permalink
Add GTiff test files
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Dec 17, 2024
1 parent d7f22e7 commit 5759dfd
Showing 82 changed files with 42 additions and 0 deletions.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_DEFLATE.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_DEFLATE_tiled.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_JPEG.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_JPEG_tiled.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_JXL.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_JXL_tiled.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_LERC.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_LERC_DEFLATE.tif
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_LERC_ZSTD.tif
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_LERC_tiled.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_LZMA.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_LZMA_tiled.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_LZW.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_LZW_predictor_2.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_LZW_tiled.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_NONE.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_NONE_tiled.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_ZSTD.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/byte_ZSTD_tiled.tif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/float64_LZW_predictor_3.tif
Binary file not shown.
42 changes: 42 additions & 0 deletions autotest/gcore/data/gtiff/generate_test_files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/sh

for codec in NONE LZW LZMA ZSTD DEFLATE JPEG LERC LERC_DEFLATE LERC_ZSTD JXL
do
gdal_translate ../byte.tif byte_${codec}.tif -co COMPRESS=${codec}
gdal_translate ../byte.tif byte_${codec}_tiled.tif -co COMPRESS=${codec} -co TILED=YES -co BLOCKXSIZE=16 -co BLOCKYSIZE=16
done

gdal_translate ../byte.tif byte_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2
gdal_translate ../byte.tif uint16_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2 -ot UInt16
gdal_translate ../byte.tif uint32_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2 -ot UInt32
gdal_translate ../byte.tif uint64_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2 -ot UInt64
gdal_translate ../byte.tif float32_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2 -ot Float32
gdal_translate ../byte.tif float64_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2 -ot Float64
gdal_translate ../byte.tif float32_LZW_predictor_3.tif -co COMPRESS=LZW -co PREDICTOR=3 -ot Float32
gdal_translate ../byte.tif float64_LZW_predictor_3.tif -co COMPRESS=LZW -co PREDICTOR=3 -ot Float64

for codec in NONE LZW LZMA ZSTD DEFLATE JPEG LERC LERC_DEFLATE LERC_ZSTD JXL WEBP
do
gdal_translate ../rgbsmall.tif rgbsmall_${codec}.tif -co COMPRESS=${codec} -co INTERLEAVE=PIXEL -co WEBP_LOSSLESS=YES
gdal_translate ../rgbsmall.tif rgbsmall_${codec}_tiled.tif -co COMPRESS=${codec} -co TILED=YES -co BLOCKXSIZE=16 -co BLOCKYSIZE=32 -co INTERLEAVE=PIXEL -co WEBP_LOSSLESS=YES
if test "${codec}" != "WEBP"; then
gdal_translate ../rgbsmall.tif rgbsmall_${codec}_separate.tif -co COMPRESS=${codec} -co INTERLEAVE=BAND
gdal_translate ../rgbsmall.tif rgbsmall_${codec}_tiled_separate.tif -co COMPRESS=${codec} -co TILED=YES -co BLOCKXSIZE=16 -co BLOCKYSIZE=32 -co INTERLEAVE=BAND
fi
done

gdal_translate ../rgbsmall.tif rgbsmall_JPEG_ycbcr.tif -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR -co INTERLEAVE=PIXEL

gdal_translate ../rgbsmall.tif rgbsmall_byte_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2
gdal_translate ../rgbsmall.tif rgbsmall_uint16_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2 -ot UInt16
gdal_translate ../rgbsmall.tif rgbsmall_uint32_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2 -ot UInt32
gdal_translate ../rgbsmall.tif rgbsmall_uint64_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2 -ot UInt64

gdal_translate ../stefan_full_rgba.tif stefan_full_rgba_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2

gdal_translate ../stefan_full_greyalpha.tif stefan_full_greyalpha_byte_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2
gdal_translate ../stefan_full_greyalpha.tif stefan_full_greyalpha_uint16_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2 -ot UInt16
gdal_translate ../stefan_full_greyalpha.tif stefan_full_greyalpha_uint32_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2 -ot UInt32
gdal_translate ../stefan_full_greyalpha.tif stefan_full_greyalpha_uint64_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2 -ot UInt64

gdal_translate ../byte.tif byte_5_bands_LZW_predictor_2.tif -co COMPRESS=LZW -co PREDICTOR=2 -b 1 -b 1 -b 1 -b 1 -b 1 -scale_2 0 255 255 0 -scale_4 0 255 255 0
Binary file added autotest/gcore/data/gtiff/rgbsmall_DEFLATE.tif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_JPEG.tif
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_JPEG_tiled.tif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_JXL.tif
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_JXL_tiled.tif
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_LERC.tif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_LERC_ZSTD.tif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_LERC_tiled.tif
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_LZMA.tif
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_LZMA_tiled.tif
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_LZW.tif
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_LZW_tiled.tif
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_NONE.tif
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_NONE_tiled.tif
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_WEBP.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_WEBP_tiled.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_ZSTD.tif
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/rgbsmall_ZSTD_tiled.tif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/uint16_LZW_predictor_2.tif
Binary file not shown.
Binary file added autotest/gcore/data/gtiff/uint32_LZW_predictor_2.tif
Binary file not shown.
Binary file not shown.

0 comments on commit 5759dfd

Please sign in to comment.