管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-03-13 f13c7a874af0fbfca66695a42860167f95b38fe9
1
已添加2个文件
已修改3个文件
100 ■■■■■ 文件已修改
ExportMap/Controllers/ExportController.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/ExportMap.csproj 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/ExportUtil.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/SGUtil.cs 55 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/XYZUtil.cs 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/Controllers/ExportController.cs
@@ -1,5 +1,4 @@
using ExportMap.cs;
using LFServer.cs;
using LFServer.Models;
using System;
using System.Collections.Generic;
@@ -8,7 +7,7 @@
using System.Net.Http;
using System.Web.Http;
namespace LFServer.Controllers
namespace ExportMap.Controllers
{
    public class ExportController : ApiController
    {
ExportMap/ExportMap.csproj
@@ -137,7 +137,9 @@
    <Compile Include="cs\ExportUtil.cs" />
    <Compile Include="cs\LogOut.cs" />
    <Compile Include="cs\NoBufferPolicySelector.cs" />
    <Compile Include="cs\SGUtil.cs" />
    <Compile Include="cs\Tool.cs" />
    <Compile Include="cs\XYZUtil.cs" />
    <Compile Include="db\ModelHandler.cs" />
    <Compile Include="db\PostgreHelper.cs" />
    <Compile Include="db\SQLiteHelper.cs" />
ExportMap/cs/ExportUtil.cs
@@ -11,15 +11,10 @@
using System.Text;
using System.Web;
namespace LFServer.cs
namespace ExportMap.cs
{
    public static class ExportUtil
    {
        /// <summary>
        /// åŸºç›®å½•
        /// </summary>
        public static readonly string BaseDir = AppDomain.CurrentDomain.BaseDirectory;
        /// <summary>
        /// æœ€å¤§æ–‡ä»¶æ•°
        /// </summary>
@@ -36,7 +31,7 @@
            {
                if (string.IsNullOrEmpty(sourcesPath))
                {
                    sourcesPath = Path.Combine(BaseDir, "Sources");
                    sourcesPath = Path.Combine(Tool.BaseDir, "Sources");
                }
                return sourcesPath;
ExportMap/cs/SGUtil.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,55 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
namespace ExportMap.cs
{
    public class SGUtil
    {
        /// <summary>
        /// Mpt目录
        /// </summary>
        public static string MptPath
        {
            get
            {
                return ConfigurationManager.AppSettings["mptFolder"];
            }
        }
        /// <summary>
        /// 3DML目录
        /// </summary>
        public static string D3mlFolder
        {
            get
            {
                return ConfigurationManager.AppSettings["3dmlFolder"];
            }
        }
        /// <summary>
        /// å»ŠåŠæ•°æ®ç›®å½•
        /// </summary>
        public static string LFData
        {
            get
            {
                return ConfigurationManager.AppSettings["lfData"];
            }
        }
        /// <summary>
        /// SG的DB库
        /// </summary>
        public static string SGDB
        {
            get
            {
                return ConfigurationManager.AppSettings["sgDB"];
            }
        }
    }
}
ExportMap/cs/XYZUtil.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
namespace ExportMap.cs
{
    public class XYZUtil
    {
        private static string pyFile;
        /// <summary>
        /// èŽ·å–Python文件
        /// </summary>
        public static string PyFile
        {
            get
            {
                if (string.IsNullOrWhiteSpace(pyFile))
                {
                    pyFile = Path.Combine(ExportUtil.SourcesPath, "render.py");
                }
                return pyFile;
            }
        }
    }
}