From 4648e5b8b753bf938989c7d4d016cbe54fa671c0 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 19 九月 2023 21:38:03 +0800
Subject: [PATCH] 1

---
 ExportMap/Controllers/ConvertController.cs |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/ExportMap/Controllers/ConvertController.cs b/ExportMap/Controllers/ConvertController.cs
index e92b4d5..ea51baa 100644
--- a/ExportMap/Controllers/ConvertController.cs
+++ b/ExportMap/Controllers/ConvertController.cs
@@ -142,6 +142,35 @@
         }
 
         /// <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 = TerrainUtils.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>
         /// 杞崲LAS
         /// </summary>
         [HttpPost]

--
Gitblit v1.9.3