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: