From 33d8050f4d0b09b1fec04f1a54764b3cbcbe9ca8 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 26 六月 2023 16:24:50 +0800 Subject: [PATCH] 修改数据目录~ --- ExportMap/ExportMap.csproj | 2 ++ ExportMap/db/PubDBHelper.cs | 6 +++++- 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/ExportMap/ExportMap.csproj b/ExportMap/ExportMap.csproj index f76f6e9..6ff6072 100644 --- a/ExportMap/ExportMap.csproj +++ b/ExportMap/ExportMap.csproj @@ -126,6 +126,7 @@ <Content Include="export.html" /> <Content Include="Sources\xyz.py" /> <Content Include="Sources\璇存槑.txt" /> + <Content Include="TerraBuilder\tb.js" /> <Content Include="UE.html" /> <Content Include="up.html" /> <Content Include="Web.config"> @@ -191,6 +192,7 @@ <SubType>Designer</SubType> </Content> <Content Include="Sources\xyz.qgz" /> + <Content Include="TerraBuilder\tb.tbp" /> </ItemGroup> <PropertyGroup> <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> 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