From 101b8bc99c8eefd7e1ae43c9a99f3e42318c87ad Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 20 九月 2023 13:50:25 +0800
Subject: [PATCH] 1

---
 ExportMap/Controllers/ConvertController.cs |   32 ++------------------------------
 1 files changed, 2 insertions(+), 30 deletions(-)

diff --git a/ExportMap/Controllers/ConvertController.cs b/ExportMap/Controllers/ConvertController.cs
index b4bb01d..1c9abb4 100644
--- a/ExportMap/Controllers/ConvertController.cs
+++ b/ExportMap/Controllers/ConvertController.cs
@@ -27,7 +27,7 @@
             //TerrainUtils.Project("D:/xyz/dem/dem/32a_4326_.tif", "EPSG:4490");
 
             //string wkt = TerrainUtils.GetPointZ(new XYZArgs() { dircode = "0B" });
-            string str = PyLasUtils.CsTransform("EPSG:4528", 400925.079, 2541768.173);
+            PyLasUtils.CsTransform("EPSG:4528", 400925.079, 2541768.173);
 
             return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
         }
@@ -129,35 +129,7 @@
                 checkMinMax(args);
 
                 string err = null;
-                List<int> rs = TerraUtils.Generate(args, ref err);
-                if (null == rs || rs.Count == 0)
-                {
-                    return ResponseMsg<string>.fail(null == err ? "澶辫触" : err);
-                }
-
-                return ResponseMsg<string>.success("鎴愬姛", string.Join(",", rs), rs.Count);
-            }
-            catch (Exception ex)
-            {
-                LogOut.Error(ex.Message + "\r\n" + ex.StackTrace);
-                return ResponseMsg<string>.fail(ex.Message);
-            }
-        }
-
-        /// <summary>
-        /// 杞崲鍦板舰
-        /// </summary>
-        [HttpPost]
-        public ResponseMsg<string> ToTerrain([FromBody]XYZArgs args)
-        {
-            try
-            {
-                ResponseMsg<string> msg = checkArgs(args, true);
-                if (null != msg) return msg;
-
-                checkMinMax(args);
-
-                string err = null;
+                //List<int> rs = TerraUtils.Generate(args, ref err);
                 List<int> rs = TerrainUtils.Generate(args, ref err);
                 if (null == rs || rs.Count == 0)
                 {

--
Gitblit v1.9.3