管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2022-11-08 d6e6dd4ac9719c491bf9d570c87ece759b0fbc6a
1
已添加1个文件
已修改1个文件
67 ■■■■■ 文件已修改
ExportMap/ExportMap.csproj 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/ExportUtil.cs 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/ExportMap.csproj
@@ -104,7 +104,11 @@
    <Content Include="js\jquery.1.12.4.js" />
    <Content Include="js\rollups.js" />
    <Content Include="js\rsa.min.js" />
    <Content Include="Sources\logo.png" />
    <Content Include="Sources\render.py" />
    <Content Include="Sources\shps\SITEPOINT.shp.xml" />
    <Content Include="Sources\shps\STATIONSERIES.shp.xml" />
    <Content Include="Sources\shps\VALVEHOUSEPOINT.shp.xml" />
    <Content Include="Test.html" />
    <Content Include="Web.config">
      <SubType>Designer</SubType>
@@ -116,6 +120,7 @@
    <Compile Include="Controllers\licenseEncryptionController.cs" />
    <Compile Include="cs\CacheUtil.cs" />
    <Compile Include="cs\CustomMultipartFormDataStreamProvider.cs" />
    <Compile Include="cs\ExportUtil.cs" />
    <Compile Include="cs\NoBufferPolicySelector.cs" />
    <Compile Include="cs\Tool.cs" />
    <Compile Include="db\ModelHandler.cs" />
@@ -139,6 +144,33 @@
    <Content Include="Sources\Test.qpt" />
    <Content Include="Sources\Test.qgz" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="Sources\shps\SITEPOINT.cpg" />
    <Content Include="Sources\shps\SITEPOINT.dbf" />
    <Content Include="Sources\shps\SITEPOINT.prj" />
    <Content Include="Sources\shps\SITEPOINT.qix" />
    <Content Include="Sources\shps\SITEPOINT.sbn" />
    <Content Include="Sources\shps\SITEPOINT.sbx" />
    <Content Include="Sources\shps\SITEPOINT.shi" />
    <Content Include="Sources\shps\SITEPOINT.shp" />
    <Content Include="Sources\shps\SITEPOINT.shx" />
    <Content Include="Sources\shps\STATIONSERIES.cpg" />
    <Content Include="Sources\shps\STATIONSERIES.dbf" />
    <Content Include="Sources\shps\STATIONSERIES.prj" />
    <Content Include="Sources\shps\STATIONSERIES.qix" />
    <Content Include="Sources\shps\STATIONSERIES.shi" />
    <Content Include="Sources\shps\STATIONSERIES.shp" />
    <Content Include="Sources\shps\STATIONSERIES.shx" />
    <Content Include="Sources\shps\VALVEHOUSEPOINT.cpg" />
    <Content Include="Sources\shps\VALVEHOUSEPOINT.dbf" />
    <Content Include="Sources\shps\VALVEHOUSEPOINT.prj" />
    <Content Include="Sources\shps\VALVEHOUSEPOINT.qix" />
    <Content Include="Sources\shps\VALVEHOUSEPOINT.sbn" />
    <Content Include="Sources\shps\VALVEHOUSEPOINT.sbx" />
    <Content Include="Sources\shps\VALVEHOUSEPOINT.shi" />
    <Content Include="Sources\shps\VALVEHOUSEPOINT.shp" />
    <Content Include="Sources\shps\VALVEHOUSEPOINT.shx" />
  </ItemGroup>
  <PropertyGroup>
    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
    <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
ExportMap/cs/ExportUtil.cs
对比新文件
@@ -0,0 +1,35 @@
锘縰sing System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Web;
namespace LFServer.cs
{
    public class ExportUtil
    {
        public static void ExecPython(string py, string qgz, string qpt)
        {
            try
            {
                string args = string.Format("{0} -qgz {1} -qpt {2}", py, qgz, qpt);
                Process p = new Process();
                p.StartInfo.UseShellExecute = false;
                p.StartInfo.ErrorDialog = true;
                p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
                p.StartInfo.RedirectStandardError = false;
                p.StartInfo.FileName = "python";
                p.StartInfo.Arguments = args;
                p.StartInfo.CreateNoWindow = true;
                p.Start();
            }
            catch
            {
            }
        }
    }
}