管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2022-11-08 e740ffce82b1b8f16894103bcd1a036aec195272
1
已修改2个文件
29 ■■■■■ 文件已修改
ExportMap/Web.config 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/ExportUtil.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/Web.config
@@ -1,19 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <appSettings>
    <add key="cgis" value="E:\data\29.zk\cgis.db"/>
        <add key="lfServer" value="http://192.168.20.106/LFServer/"/>
        <add key="SGUrl" value="192.168.20.39"/>
        <add key="db" value="E:\terrait\TerraStore\LFServer\LFServer\DLL\catalog.db" />
        <add key="SGFolder" value="E:\Test\uploads\SGFolder" />
        <add key="publishFolder" value="publishFolder" />
        <add key="downloadFolder" value="downloadFolder" />
        <add key="downloadPassword" value="admin12#" />
        <add key="uploadFolder" value="E:\Test\uploads" />
        <add key="styleFolder" value="styleFolder" />
        <add key="lfServer" value="http://192.168.20.39:12316/"/>
        <add key="sourceFolder" value="Sources" />
        <!--<add key="pgConn" value="Server=127.0.0.1;Port=5432;Database={0};User Id=postgres;Password=postgres;"/>-->
        <!--<add key="pgConn" value="Server=192.168.20.39;Port=5432;Database=lfgddb;User Id=postgres;Password=postgres;" />-->
        <add key="pgConn" value="Server=192.168.20.39;Port=5433;Database=langfang;User Id=postgres;Password=postgres;" />
    <add key="pgConn" value="Server=192.168.20.39;Port=5433;Database=langfang;User Id=postgres;Password=postgres;" />
        <add key="webpages:Version" value="3.0.0.0" />
        <add key="webpages:Enabled" value="false" />
        <add key="ClientValidationEnabled" value="true" />
ExportMap/cs/ExportUtil.cs
@@ -10,6 +10,20 @@
{
    public class ExportUtil
    {
        public static readonly string BaseDir = AppDomain.CurrentDomain.BaseDirectory;
        private static string py;
        public string GetPy
        {
            get
            {
                if (py == null) py = Path.Combine(BaseDir, "Sources\\render.py");
                return py;
            }
        }
        public static void ExecPython(string py, string qgz, string qpt)
        {
            try