diff --git a/django_project/cplus_api/utils/worker_analysis.py b/django_project/cplus_api/utils/worker_analysis.py index e80cc88..91ff394 100644 --- a/django_project/cplus_api/utils/worker_analysis.py +++ b/django_project/cplus_api/utils/worker_analysis.py @@ -644,8 +644,12 @@ def create_and_upload_output_layer( ) result = subprocess.run( ( - f'gdal_translate -of COG -co COMPRESS=DEFLATE' - f' "{file_path}" "{final_output_path}"' + f'gdal_translate -of COG -co COMPRESS=DEFLATE ' + f'-co RESAMPLING=BILINEAR ' + f'-co OVERVIEW_RESAMPLING=NEAREST ' + f'-co NUM_THREADS=ALL_CPUS ' + f'-co BLOCKSIZE=512 ' + f'"{file_path}" "{final_output_path}"' ), shell=True, capture_output=True