From e2178936d1394861c5439c9170cb28c8606237a6 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 13 六月 2023 17:11:43 +0800 Subject: [PATCH] 1 --- ExportMap/cs/TerraUtils.cs | 2 +- ExportMap/db/PubDBHelper.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ExportMap/cs/TerraUtils.cs b/ExportMap/cs/TerraUtils.cs index 79ca5f8..ad46439 100644 --- a/ExportMap/cs/TerraUtils.cs +++ b/ExportMap/cs/TerraUtils.cs @@ -116,7 +116,7 @@ } catch (Exception ex) { - LogOut.Error(ex.Message); + LogOut.Error(ex.Message + "\r\n" + ex.StackTrace); err = ex.Message; return null; } diff --git a/ExportMap/db/PubDBHelper.cs b/ExportMap/db/PubDBHelper.cs index a710025..ad75bfd 100644 --- a/ExportMap/db/PubDBHelper.cs +++ b/ExportMap/db/PubDBHelper.cs @@ -84,7 +84,8 @@ { int pid = SelectLayerPid(sys, meta); //string cnName = meta.name.Split(new char[] { '.' })[0]; - string cnName = meta.name.Substring(0, meta.name.LastIndexOf(".")); + int idx = meta.name.LastIndexOf("."); + string cnName = idx == -1 ? meta.name : meta.name.Substring(0, meta.name.LastIndexOf(".")); string data = getData(meta); string serve = getServe(meta); -- Gitblit v1.9.3