管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-03-13 3214e382ce5ff5d9b36df42c5246544013c19137
1
已添加1个文件
已修改2个文件
56 ■■■■■ 文件已修改
ExportMap/ExportMap.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/Models/XYZArgs.cs 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/XYZUtil.cs 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/ExportMap.csproj
@@ -150,6 +150,7 @@
    <Compile Include="Models\ExportArgs.cs" />
    <Compile Include="Models\ResponseMsg.cs" />
    <Compile Include="Models\Secret.cs" />
    <Compile Include="Models\XYZArgs.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
ExportMap/Models/XYZArgs.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace ExportMap.Models
{
    /// <summary>
    /// XYZ参数
    /// </summary>
    public class XYZArgs
    {
        public XYZArgs()
        {
            ids = new List<int>();
        }
        /// <summary>
        /// åœ°å›¾æœ€å°çº§åˆ«
        /// </summary>
        public int min { set; get; }
        /// <summary>
        /// åœ°å›¾æœ€å¤§çº§åˆ«
        /// </summary>
        public int max { set; get; }
        /// <summary>
        /// æ•°æ®ç›®å½•ID
        /// </summary>
        public string dirid { set; get; }
        /// <summary>
        /// å…ƒæ•°æ®ID集合
        /// </summary>
        public List<int> ids { set; get; }
    }
}
ExportMap/cs/XYZUtil.cs
@@ -21,13 +21,23 @@
            {
                if (string.IsNullOrWhiteSpace(pyFile))
                {
                    pyFile = Path.Combine(ExportUtil.SourcesPath, "render.py");
                    pyFile = Path.Combine(ExportUtil.SourcesPath, "xyz.py");
                }
                return pyFile;
            }
        }
        //xyz.qgz
        /// <summary>
        /// QGIS工程
        /// </summary>
        public string Qgz
        {
            get
            {
                return "xyz.qgz";
            }
        }
        /// <summary>
        /// ç”Ÿæˆ
@@ -35,8 +45,9 @@
        /// <param name="args">出图参数</param>
        /// <param name="err">错误信息</param>
        /// <returns>图片路径</returns>
        public static string Generate(ExportArgs args, ref string err)
        public static string Generate(XYZArgs args, ref string err)
        {
            string date = ExportUtil.DateStr;
            return null;