管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-07-15 d5be9e1de1a76c4f842a87035c1d5eea1faaeb2f
1
已修改3个文件
14 ■■■■■ 文件已修改
ExportMap/Controllers/ConvertController.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/Models/XYZArgs.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/LasUtils.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/Controllers/ConvertController.cs
@@ -143,6 +143,8 @@
                ResponseMsg<string> msg = checkArgs(args);
                if (null != msg) return msg;
                if (args.srids.Count != args.ids.Count) return ResponseMsg<string>.fail("坐标系ID集合与元数据ID集合长度不一致");
                string err = null;
                List<int> rs = LasUtils.Generate(args, ref err);
                if (null == rs || rs.Count == 0)
ExportMap/Models/XYZArgs.cs
@@ -12,9 +12,9 @@
    {
        public XYZArgs()
        {
            srids = new List<int>();
            ids = new List<int>();
            isNew = true;
            srid = 4326;
        }
        /// <summary>
@@ -73,9 +73,9 @@
        public bool isNew { set; get; }
        /// <summary>
        /// 坐标系ID
        /// 坐标系ID集合
        /// </summary>
        public int srid { set; get; }
        public List<int> srids { set; get; }
        /// <summary>
        /// 高度偏移量
ExportMap/cs/LasUtils.cs
@@ -43,8 +43,9 @@
                string uploadFolder = Tools.GetSetting("uploadFolder");
                List<int> ids = new List<int>();
                foreach (SysMeta meta in list)
                for (int i = 0, c = list.Count; i < c; i++)
                {
                    SysMeta meta = list[i];
                    string lasPath = Path.Combine(uploadFolder, meta.path);
                    if (!File.Exists(lasPath)) continue;
@@ -55,7 +56,8 @@
                    if (!Directory.Exists(outPath)) Directory.CreateDirectory(outPath);
                    if ("laz" == meta.type) lasPath = toLas(lasPath, Path.Combine(outPath, meta.id + ".las"));
                    string cmd = string.Format("{0}\\gocesiumtiler.exe -i \"{1}\" -o \"{2}\" -e {3} -z {4} -g -s", tilerPath, lasPath, outPath, args.srid, args.z);
                    int srid = args.srids[i];
                    string cmd = string.Format("{0}\\gocesiumtiler.exe -i \"{1}\" -o \"{2}\" -e {3} -z {4} -g -s", tilerPath, lasPath, outPath, srid, args.z);
                    err = Tools.ExecCmd(cmd, false, false);
                    string jsonFile = findTileset(meta, outPath);