From 1f1f18ba49c9a776e0c9e0d2cd6abf9ee8ca5443 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 27 六月 2023 12:54:51 +0800 Subject: [PATCH] 添加Mpt配置信息 --- ExportMap/TerraBuilder/template.js | 8 ++++---- ExportMap/cs/TBUtils.cs | 11 +++++++++++ ExportMap/ExportMap.csproj | 1 + ExportMap/Web.config | 2 ++ 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ExportMap/ExportMap.csproj b/ExportMap/ExportMap.csproj index a9067a7..842fd9b 100644 --- a/ExportMap/ExportMap.csproj +++ b/ExportMap/ExportMap.csproj @@ -127,6 +127,7 @@ <Content Include="Sources\xyz.py" /> <Content Include="Sources\璇存槑.txt" /> <Content Include="TerraBuilder\tb.js" /> + <Content Include="TerraBuilder\template.js" /> <Content Include="UE.html" /> <Content Include="up.html" /> <Content Include="Web.config"> diff --git a/ExportMap/TerraBuilder/template.js b/ExportMap/TerraBuilder/template.js index 3d02125..080244d 100644 --- a/ExportMap/TerraBuilder/template.js +++ b/ExportMap/TerraBuilder/template.js @@ -37,10 +37,10 @@ project.CreateResolutionPyramids(); //project.Settings.MPTFileName = "D:\\LF\\data\\mpt\\0A.MPT"; - //project.Save(); + project.Save(); project.CreateMPT(); - - TerraBuilder.ExitWhenFinished(); } catch (ex) { - alert(ex.message); + //alert(ex.message); +} finally { + TerraBuilder.ExitWhenFinished(); } diff --git a/ExportMap/Web.config b/ExportMap/Web.config index 47f1665..2874027 100644 --- a/ExportMap/Web.config +++ b/ExportMap/Web.config @@ -17,6 +17,8 @@ <add key="d3tilesPath" value="E:\WebSite\Cesium\Tool\3dtiles" /> <!-- gocesiumtiler璺緞 --> <add key="tilerPath" value="E:\WebSite\Cesium\Tool\gocesiumtiler-1.2.3" /> + <!-- Mpt璺緞 --> + <add key="mpt" value="D:\LF\data\mpt\tb.mpt" /> <!-- PG杩炴帴 --> <add key="pgConn" value="Server=127.0.0.1;Port=5433;Database=langfang;User Id=postgres;Password=postgres;"/> <!--<add key="pgConn" value="Server=192.168.20.205;Port=5433;Database=langfang;User Id=postgres;Password=Postgres!_14_Lf;"/>--> diff --git a/ExportMap/cs/TBUtils.cs b/ExportMap/cs/TBUtils.cs index d32b9f9..b1bc691 100644 --- a/ExportMap/cs/TBUtils.cs +++ b/ExportMap/cs/TBUtils.cs @@ -31,6 +31,17 @@ } /// <summary> + /// Mpt璺緞 + /// </summary> + public static string MptPath + { + get + { + return Tools.GetSetting("mpt"); + } + } + + /// <summary> /// 鍒涘缓MPT /// </summary> public static string CreateMpt(string path, ref string err) -- Gitblit v1.9.3