Skip to content

Commit

Permalink
Set SPARSE_OK=TRUE for COGs
Browse files Browse the repository at this point in the history
  • Loading branch information
jterry64 committed Aug 19, 2024
1 parent c6ba1fc commit 7f56c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batch/scripts/cogify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ else
fi

# convert to COG using existing overviews, this adds some additional layout optimizations
gdal_translate "${IMPLEMENTATION}_merged.tif" "${IMPLEMENTATION}.tif" -of COG -co COMPRESS=DEFLATE -co BLOCKSIZE="${BLOCK_SIZE}" -co BIGTIFF=IF_SAFER -co NUM_THREADS=ALL_CPUS -co OVERVIEWS=FORCE_USE_EXISTING --config GDAL_CACHEMAX 70% --config GDAL_NUM_THREADS ALL_CPUS
gdal_translate "${IMPLEMENTATION}_merged.tif" "${IMPLEMENTATION}.tif" -of COG -co COMPRESS=DEFLATE -co BLOCKSIZE="${BLOCK_SIZE}" -co BIGTIFF=IF_SAFER -co NUM_THREADS=ALL_CPUS -co OVERVIEWS=FORCE_USE_EXISTING -co SPARSE_OK=TRUE --config GDAL_CACHEMAX 70% --config GDAL_NUM_THREADS ALL_CPUS

# upload to data lake
aws s3 cp "${IMPLEMENTATION}.tif" "${TARGET}"
Expand Down

0 comments on commit 7f56c96

Please sign in to comment.