| | |
| | | using ExportMap.Models; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | | using System.Linq; |
| | | using System.Net; |
| | | using System.Net.Http; |
| | |
| | | //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> |
| | |
| | | |
| | | } |
| | | |
| | | [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> |