| | |
| | | } |
| | | |
| | | /// <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> |
| | |
| | | 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> |