管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-03-17 63bcaa5681202a34c3cc4b40e32ef91b2ba06aec
ExportMap/cs/SGUtils.cs
@@ -59,6 +59,22 @@
        }
        /// <summary>
        /// 获取发布地址
        /// </summary>
        public static string GetReleaseUrl(SysMeta meta, Int64 sgsID)
        {
            return "http://{host}/LFData/3d/3dtiles/" + meta.type + "/" + meta.id + "/tileset.json";
            switch (meta.type)
            {
                case "mpt":
                    return "http://{host}/SG/Imagery;" + sgsID + ".mpt";
                case "3dml":
                    return "http://{host}/SG/b3dm/" + sgsID + "/tileset.json";
            }
        }
        /// <summary>
        /// 发布数据
        /// </summary>
        /// <param name="args">XYZ参数</param>
@@ -187,10 +203,7 @@
            string d3ml = Path.Combine(uploadFolder, meta.path);
            string targetD3ml = Path.Combine(d3mlFolder, meta.id.ToString(), meta.name);
            if (!File.Exists(targetD3ml))
            {
                list.Add(string.Format("mklink \"{0}\" \"{1}\"", targetD3ml, d3ml)); // /H
            }
            if (!File.Exists(targetD3ml)) list.Add(string.Format("mklink \"{0}\" \"{1}\"", targetD3ml, d3ml)); // /H
        }
        /// <summary>