From f0586817d86bb5b86efce42230e872fd9a254d69 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 29 八月 2023 20:12:24 +0800
Subject: [PATCH] 1

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

diff --git a/ExportMap/Controllers/ConvertController.cs b/ExportMap/Controllers/ConvertController.cs
index c4ea621..e4eb5ff 100644
--- a/ExportMap/Controllers/ConvertController.cs
+++ b/ExportMap/Controllers/ConvertController.cs
@@ -2,6 +2,7 @@
 using ExportMap.Models;
 using System;
 using System.Collections.Generic;
+using System.IO;
 using System.Linq;
 using System.Net;
 using System.Net.Http;
@@ -17,7 +18,9 @@
             //string name = "8-鐟炰附绔�0.05m.cpt";
             //string cnName = name.Substring(0, name.LastIndexOf("."));
 
-            return Tools.GetLocalIP();
+            //return Tools.GetLocalIP();
+
+            return Tools.GetEPSG("D:\\Moon\\data\\dem_tif\\ldem.tif");
         }
 
         /// <summary>
@@ -303,6 +306,18 @@
 
         }
 
+        [HttpGet]
+        public string GetRasterEPSG(int id)
+        {
+            SysMeta meta = XYZUtils.SelectMeta(id);
+            if (null == meta || string.IsNullOrEmpty(meta.path)) return null;
+
+            string file = Path.Combine(Tools.GetSetting("uploadFolder"), meta.path);
+            if (!File.Exists(file)) return null;
+
+            return Tools.GetEPSG(file);
+        }
+
         /// <summary>
         /// 妫�鏌ュ弬鏁�
         /// </summary>

--
Gitblit v1.9.3