using ExportMap.Models; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; namespace ExportMap.cs { public class TerraUtils { private static string pyFile; /// /// 获取Python文件 /// public static string PyFile { get { if (string.IsNullOrWhiteSpace(pyFile)) { pyFile = Path.Combine(ExportUtil.SourcesPath, "merge.py"); } return pyFile; } } /// /// QGIS工程 /// public static string Qgz { get { //return Path.Combine(ExportUtil.SourcesPath, "xyz.qgz"); return "xyz.qgz"; } } /// /// bat路径 /// public static string BatPath { get { return @"C:\Program Files\QGIS 3.16\bin\"; } } /// /// 基础bat文件 /// public static string BaseBat { get { // python-qgis-ltr.bat,qgis_process-qgis-ltr.bat return @"C:\Program Files\QGIS 3.16\bin\qgis_process-qgis-ltr.bat"; } } /// /// 获取发布地址 /// public static string GetReleaseUrl(string dircode) { return "http://{host}/LFData/2d/tiles/" + dircode + "/{z}/{x}/{y}.png"; } /// /// 生成 /// /// XYZ参数 /// 错误信息 /// 数据发布ID集合 public static List Generate(XYZArgs args, ref string err) { return null; } } }