管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2024-09-03 3cfb6aa02516135fb174ab1b30620f2007924663
ExportMap/cs/LasUtils.cs
@@ -23,7 +23,7 @@
        /// </summary>
        public static string GetReleaseUrl(string path)
        {
            return "http://{host}/LFData/" + path.Replace("\\", "/");
            return "{host}/LFData/" + path.Replace("\\", "/");
        }
        /// <summary>
@@ -57,7 +57,8 @@
                    int idx = args.ids.IndexOf(meta.id);
                    string cmd = string.Format("{0}\\gocesiumtiler.exe -i \"{1}\" -o \"{2}\" -e {3} -z {4} -g -s", tilerPath, lasPath, outPath, args.srids[idx], args.zs[idx]);
                    err = Tools.ExecCmd(cmd, false, false);
                    SysTask task = TaskDBHelper.CreateTask(args, meta, "LAS", "点云数据(LAS)");
                    err = Tools.ExecCmd(task, cmd, false);
                    string jsonFile = findTileset(meta, outPath);
                    if ("laz" == meta.type && File.Exists(lasPath)) File.Delete(lasPath);
@@ -88,7 +89,7 @@
            string tilerPath = Tools.GetSetting("tilerPath");
            string cmd = string.Format("{0}\\laszip64.exe -i \"{1}\" -o \"{2}\"", tilerPath, lazPath, lasPath);
            Tools.ExecCmd(cmd, false, false);
            Tools.ExecCmd(new List<string> { cmd });
            return lasPath;
        }
@@ -134,7 +135,7 @@
            int pubid = PubDBHelper.GetPushlishId(meta.id);
            if (pubid > 0)
            {
                PubDBHelper.UpdatePublish(pubid, args.name, args.userId, null);
                PubDBHelper.UpdatePublish(pubid, meta.name, args.userId, null);
                return pubid;
            }