From 5178a8e85f1a544cbd255f01fae1905e40112228 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 28 六月 2023 16:47:34 +0800
Subject: [PATCH] 1

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

diff --git a/ExportMap/cs/TerraUtils.cs b/ExportMap/cs/TerraUtils.cs
index dd13a4e..958edb8 100644
--- a/ExportMap/cs/TerraUtils.cs
+++ b/ExportMap/cs/TerraUtils.cs
@@ -122,10 +122,7 @@
             }
             finally
             {
-                if (!string.IsNullOrEmpty(tifFile) && File.Exists(tifFile))
-                {
-                    File.Delete(tifFile);
-                }
+                //if (!string.IsNullOrEmpty(tifFile) && File.Exists(tifFile)) File.Delete(tifFile);
             }
         }
 
@@ -159,10 +156,7 @@
             }
             finally
             {
-                if (!string.IsNullOrEmpty(txtFile) && File.Exists(txtFile))
-                {
-                    File.Delete(txtFile);
-                }
+                if (!string.IsNullOrEmpty(txtFile) && File.Exists(txtFile)) File.Delete(txtFile);
             }
         }
 
@@ -251,7 +245,7 @@
         /// </summary>
         private static int InsertToDB(List<SysMeta> metas, XYZArgs args)
         {
-            if (PubDBHelper.IsPublish(args.dircode, "DEM")) return 0;
+            if (PubDBHelper.IsPublish(args.dircode, "DEM")) return 1;
 
             SysMeta meta = metas[0];
             meta.type = "DEM";

--
Gitblit v1.9.3