管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2023-12-26 2cf980484c713dfcecce72302b8a757a0c5aedb2
ExportMap/Controllers/ConvertController.cs
@@ -1,4 +1,5 @@
using ExportMap.cs;
using ExportMap.db;
using ExportMap.Models;
using System;
using System.Collections.Generic;
@@ -15,20 +16,19 @@
        [HttpGet]
        public string Test()
        {
            //string name = "8-瑞丽站0.05m.cpt";
            //string cnName = name.Substring(0, name.LastIndexOf("."));
            //string cnName = "8-瑞丽站0.05m.cpt".Substring(0, "8-瑞丽站0.05m.cpt".LastIndexOf("."));
            //return Tools.GetLocalIP();
            //return Tools.GetEPSG("D:\\Moon\\data\\dem_tif\\ldem.tif");
            //TerrainUtils.Reproject("D:/xyz/dem/dem/32a.tif", "D:/xyz/dem/dem/32a_4326_.tif", "EPSG:4528", "EPSG:4326");
            //TerrainUtils.Project("D:/xyz/dem/dem/32a_4326_.tif", "EPSG:4490");
            //string wkt = TerrainUtils.GetPointZ(new XYZArgs() { dircode = "0B" });
            //PyLasUtils.CsTransform("EPSG:4528", 400925.079, 2541768.173);
            string json = PyLasUtils.GetLasGeomJSON(@"D:\LF\data\las\1_lfz_0.05m.las", 1314);
            //string json = PyLasUtils.GetLasGeomJSON(@"D:\LF\data\las\1_lfz_0.05m.las", 1314);
            //TerrainUtils.Complement(new XYZArgs() { dircode = "00" });
            ExportArgs args = new ExportArgs() { title = "Test" };
            SysTask task = TaskDBHelper.CreateTask(ExportUtil.ToXYZArgs(args), "PNG", "在线制图(PNG)");
            Tools.ExecCmd(task, "dir", true, true);
            return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        }