Skip to content
Snippets Groups Projects
Commit 7520eff0 authored by Simon Dreutter's avatar Simon Dreutter
Browse files

introduce DEFLATE compression

parent 4da6a6c1
No related branches found
No related tags found
No related merge requests found
......@@ -39,16 +39,6 @@ import textwrap
# import AWI Basemap configuration
from config import *
# ============================================================================
# GLOBAL VARIABLES
# ============================================================================
# GDAL creation options for final result
GDAL_CREATE_OPTIONS_FINAL = '-co TILED=YES -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 -co COPY_SRC_OVERVIEWS=FALSE -co COMPRESS=NONE -co BIGTIFF=IF_NEEDED'
# Method to create overviews
OVERVIEW_METHOD = 'cubic'
# ============================================================================
# FUNCTIONS
......
......@@ -372,8 +372,7 @@ SERVICE_CONF_FILE = PATH_RESULT / 'service.conf'
# The following settings are operational parameters for the process. If the
# temporary GeoTIFFs created by GDAL shall be created with different create
# options, they can be adjusted below. The create options for the final
# results, however, are specified in the last python script.
# options, they can be adjusted below.
# GDAL creation options
# GDAL_CREATE_OPTIONS = '-co COMPRESS=NONE -co BIGTIFF=IF_NEEDED'
......@@ -388,6 +387,13 @@ GDAL_CREATE_OPTIONS_PY = '--co COMPRESS=DEFLATE --co PREDICTOR=2 --co ZLEVEL=9 -
# GDAL warp options
WARP_OPTIONS = '-wo SOURCE_EXTRA=1000 -et 0'
# GDAL creation options for final result
# GDAL_CREATE_OPTIONS_FINAL = '-co TILED=YES -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 -co COPY_SRC_OVERVIEWS=FALSE -co COMPRESS=NONE -co BIGTIFF=IF_NEEDED'
GDAL_CREATE_OPTIONS_FINAL = '-co TILED=YES -co BLOCKXSIZE=512 -co BLOCKYSIZE=512 -co COPY_SRC_OVERVIEWS=FALSE -co COMPRESS=DEFLATE -co PREDICTOR=2 -co ZLEVEL=9 -co BIGTIFF=IF_NEEDED'
# Method to create overviews
OVERVIEW_METHOD = 'cubic'
# ============================================================================
# RUN FUNCTION
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment