管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2023-06-27 1f1f18ba49c9a776e0c9e0d2cd6abf9ee8ca5443
添加Mpt配置信息
已修改4个文件
22 ■■■■ 文件已修改
ExportMap/ExportMap.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/TerraBuilder/template.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/Web.config 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/TBUtils.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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">
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();
}
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;"/>-->
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)