From 1c24ca7e4f98c7b8afd26b743b22dfe779313268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E6=BE=B3?= Date: Tue, 14 Jan 2025 08:46:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- post_pro/merge_tif.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/post_pro/merge_tif.py b/post_pro/merge_tif.py index c8393e0..dc2f48f 100644 --- a/post_pro/merge_tif.py +++ b/post_pro/merge_tif.py @@ -127,13 +127,14 @@ class MergeTif: # 如果文件大于600MB,则不使用original文件 file_size_mb = os.path.getsize( grid_tif) / (1024 * 1024) # 转换为MB + file_name = file_name.replace(".original", "") if file_size_mb > 600: grid_tif = os.path.join( self.output_dir, f"grid_{grid_id[0]}_{grid_id[1]}", "project", product_path, - "odm_orthophoto.tif" + file_name ) if input_tif1 is None: