From 33d8050f4d0b09b1fec04f1a54764b3cbcbe9ca8 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 26 六月 2023 16:24:50 +0800 Subject: [PATCH] 修改数据目录~ --- ExportMap/db/PubDBHelper.cs | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/ExportMap/db/PubDBHelper.cs b/ExportMap/db/PubDBHelper.cs index ad75bfd..698179e 100644 --- a/ExportMap/db/PubDBHelper.cs +++ b/ExportMap/db/PubDBHelper.cs @@ -12,6 +12,8 @@ { public class PubDBHelper { + private static List<string> lasList = new List<string>() { "cpt", "las", "laz" }; + private static List<string> imgList = new List<string>() { "jpg", "png", "img", "tif", "tiff" }; private static string insertPublishSql = "insert into lf.sys_publish(name, url, path, type, status, dirid, depid, min, max, json, create_user, geom, bak) values (@name, @url, @path, @type, @status, @dirid, @depid, @min, @max, @json, @create_user, {0}, @bak) returning id"; @@ -196,8 +198,10 @@ if (meta.dirname.IndexOf("\\娴嬬粯") > -1) { - if ("cpt".Equals(meta.type)) + if (lasList.Contains(meta.type)) return "select id from lf.sys_layer where cn_name = '鐐逛簯鏁版嵁' and pid = (select id from lf.sys_layer where cn_name = '娴嬬粯' order by pid limit 1)"; + if ("osgb".Equals(meta.type)) + return "select id from lf.sys_layer where cn_name = '鍊炬枩鎽勫奖鏁版嵁' and pid = (select id from lf.sys_layer where cn_name = '娴嬬粯' order by pid limit 1)"; if ("mpt".Equals(meta.type)) return "select id from lf.sys_layer where cn_name = '涓夌淮鍦板舰妯″瀷' and pid = (select id from lf.sys_layer where cn_name = '娴嬬粯' order by pid limit 1)"; if ("DEM".Equals(meta.type)) -- Gitblit v1.9.3