From 57acd8b207c8f4acdf1d7c3048f6672b07ba4542 Mon Sep 17 00:00:00 2001
From: cs <137953084@qq.com>
Date: Fri, 13 Jun 2025 12:17:01 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E8=BD=AC=E6=8D=A2=E5=9D=90?=
=?UTF-8?q?=E6=A0=874326?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/.gitignore | 8 ++++
.idea/UAV_docker.iml | 12 +++++
.idea/inspectionProfiles/Project_Default.xml | 45 +++++++++++++++++++
.../inspectionProfiles/profiles_settings.xml | 6 +++
.idea/misc.xml | 7 +++
.idea/modules.xml | 8 ++++
.idea/vcs.xml | 6 +++
post_pro/merge_tif.py | 6 ++-
.../trans_orthophoto.py | 0
9 files changed, 97 insertions(+), 1 deletion(-)
create mode 100644 .idea/.gitignore
create mode 100644 .idea/UAV_docker.iml
create mode 100644 .idea/inspectionProfiles/Project_Default.xml
create mode 100644 .idea/inspectionProfiles/profiles_settings.xml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/vcs.xml
rename trans_orthophoto.py => post_pro/trans_orthophoto.py (100%)
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/UAV_docker.iml b/.idea/UAV_docker.iml
new file mode 100644
index 0000000..c6187e9
--- /dev/null
+++ b/.idea/UAV_docker.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..87a3505
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..105ce2d
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..1ec743e
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..6a36673
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/post_pro/merge_tif.py b/post_pro/merge_tif.py
index c02d32b..d7893e0 100644
--- a/post_pro/merge_tif.py
+++ b/post_pro/merge_tif.py
@@ -8,12 +8,13 @@ import fiona
from edt import edt
import numpy as np
import math
-
+from post_pro.trans_orthophoto import TransOrthophoto
class MergeTif:
def __init__(self, output_dir: str):
self.output_dir = output_dir
self.logger = logging.getLogger('UAV_Preprocess.MergeTif')
+ self.trans_orthophoto = TransOrthophoto()
def merge_orthophoto(self, grid_lt):
"""合并网格的正射影像"""
@@ -53,6 +54,9 @@ class MergeTif:
self.output_dir, "orthophoto.tif"), orthophoto_vars)
self.logger.info("所有产品合并完成")
+ self.trans_orthophoto.trans_to_epsg4326(os.path.join(self.output_dir, "orthophoto.tif"), os.path.join(
+ self.output_dir, "orthophoto_epsg4326.tif"))
+
except Exception as e:
self.logger.error(f"产品合并过程中发生错误: {str(e)}", exc_info=True)
raise
diff --git a/trans_orthophoto.py b/post_pro/trans_orthophoto.py
similarity index 100%
rename from trans_orthophoto.py
rename to post_pro/trans_orthophoto.py