管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2024-09-03 3cfb6aa02516135fb174ab1b30620f2007924663
ExportMap/cs/TerrainUtils.cs
@@ -41,11 +41,12 @@
        public static long DEFAULT_MAX_SIZE = 5L * 1024 * 1024 * 1024;
        /// <summary>
        /// 获取发布地址
        /// 获取发布地址:http://127.0.0.1/ExportMap/terra0?path=3d\terrain\dem\t
        /// </summary>
        public static string GetReleaseUrl(string dircode)
        {
            return "http://{host}/LFData/3d/terrain/" + dircode;
            //return "http://{host}/LFData/3d/terrain/" + dircode;
            return "{host}/ExportMap/terra0?path=3d/terrain/" + dircode;
        }
        /// <summary>
@@ -231,7 +232,7 @@
        /// <summary>
        /// 补充文件
        /// </summary>
        private static void Complement(XYZArgs args)
        public static void Complement(XYZArgs args)
        {
            string dirPath = GetTerrainPath(args.dircode);
            string p_0_0 = Path.Combine(dirPath, "0", "0");
@@ -240,13 +241,12 @@
            string p_0_1 = Path.Combine(dirPath, "0", "1");
            if (!Directory.Exists(p_0_1)) Directory.CreateDirectory(p_0_1);
            string s_0_0_0 = Path.Combine(SGUtils.LFData, "dem", "0", "0", "0.terrain");
            string s_0 = Tools.BaseDir + "\\Sources\\0.terrain";
            string d_0_0_0 = Path.Combine(dirPath, "0", "0", "0.terrain");
            if (!File.Exists(d_0_0_0)) File.Copy(s_0_0_0, d_0_0_0, true);
            if (!File.Exists(d_0_0_0)) File.Copy(s_0, d_0_0_0, true);
            string s_0_1_0 = Path.Combine(SGUtils.LFData, "dem", "0", "1", "0.terrain");
            string d_0_1_0 = Path.Combine(dirPath, "0", "1", "0.terrain");
            if (!File.Exists(d_0_1_0)) File.Copy(s_0_1_0, d_0_1_0, true);
            if (!File.Exists(d_0_1_0)) File.Copy(s_0, d_0_1_0, true);
            string layerJson = Path.Combine(dirPath, "layer.json");
            string[] lines = File.ReadAllLines(layerJson, Encoding.UTF8);