修bug
This commit is contained in:
parent
531d330a75
commit
1c24ca7e4f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user