From 19b32f1a69798370b924ebd8c2280950b86fd2de Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期五, 04 八月 2023 09:51:12 +0800
Subject: [PATCH] 1

---
 ExportMap/cs/OsgbUtils.cs  |    2 +-
 ExportMap/cs/TerraUtils.cs |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ExportMap/cs/OsgbUtils.cs b/ExportMap/cs/OsgbUtils.cs
index 8b8c6d3..4006c4a 100644
--- a/ExportMap/cs/OsgbUtils.cs
+++ b/ExportMap/cs/OsgbUtils.cs
@@ -62,7 +62,7 @@
                     int idx = args.ids.IndexOf(meta.id);
                     string cmd = string.Format("{0}\\3dtile.exe -f osgb -i \"{1}\" -o \"{2}\" -c \"{{\\\"offset\\\": {3}}}\"", d3tilesPath, osgbPath, outPath, args.zs[idx]);
                     SysTask task = TaskDBHelper.CreateTask(args, meta, "OSGB", "鍊炬枩鏁版嵁(OSGB)");
-                    err = Tools.ExecCmd(null, cmd, false);
+                    err = Tools.ExecCmd(task, cmd, false);
                     err = null;
 
                     if (null != srs) writeSRS(osgbPath, srs);
diff --git a/ExportMap/cs/TerraUtils.cs b/ExportMap/cs/TerraUtils.cs
index 2cc72af..affe3bc 100644
--- a/ExportMap/cs/TerraUtils.cs
+++ b/ExportMap/cs/TerraUtils.cs
@@ -176,6 +176,8 @@
                 string cmd = string.Format("python \"{0}\" -qgz {1} -file \"{2}\" -out \"{3}\"", PyFile, Qgz, txtFile, tifFile);
                 SysTask task = TaskDBHelper.CreateTask(args, "DEM", "楂樼▼闀跺祵(DEM)");
                 err = Tools.ExecCmd(task, cmd, true);
+
+                task = TaskDBHelper.SelectById(task.id);
                 if (null == task || task.status != 2) return string.Empty;
 
                 return tifFile;

--
Gitblit v1.9.3