This commit is contained in:
龙澳 2025-01-14 08:46:25 +08:00
parent 531d330a75
commit 1c24ca7e4f

View File

@ -127,13 +127,14 @@ class MergeTif:
# 如果文件大于600MB则不使用original文件 # 如果文件大于600MB则不使用original文件
file_size_mb = os.path.getsize( file_size_mb = os.path.getsize(
grid_tif) / (1024 * 1024) # 转换为MB grid_tif) / (1024 * 1024) # 转换为MB
file_name = file_name.replace(".original", "")
if file_size_mb > 600: if file_size_mb > 600:
grid_tif = os.path.join( grid_tif = os.path.join(
self.output_dir, self.output_dir,
f"grid_{grid_id[0]}_{grid_id[1]}", f"grid_{grid_id[0]}_{grid_id[1]}",
"project", "project",
product_path, product_path,
"odm_orthophoto.tif" file_name
) )
if input_tif1 is None: if input_tif1 is None: