管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2023-06-26 33d8050f4d0b09b1fec04f1a54764b3cbcbe9ca8
修改数据目录~
已修改2个文件
8 ■■■■ 文件已修改
ExportMap/ExportMap.csproj 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/db/PubDBHelper.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/ExportMap.csproj
@@ -126,6 +126,7 @@
    <Content Include="export.html" />
    <Content Include="Sources\xyz.py" />
    <Content Include="Sources\说明.txt" />
    <Content Include="TerraBuilder\tb.js" />
    <Content Include="UE.html" />
    <Content Include="up.html" />
    <Content Include="Web.config">
@@ -191,6 +192,7 @@
      <SubType>Designer</SubType>
    </Content>
    <Content Include="Sources\xyz.qgz" />
    <Content Include="TerraBuilder\tb.tbp" />
  </ItemGroup>
  <PropertyGroup>
    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
ExportMap/db/PubDBHelper.cs
@@ -12,6 +12,8 @@
{
    public class PubDBHelper
    {
        private static List<string> lasList = new List<string>() { "cpt", "las", "laz" };
        private static List<string> imgList = new List<string>() { "jpg", "png", "img", "tif", "tiff" };
        private static string insertPublishSql = "insert into lf.sys_publish(name, url, path, type, status, dirid, depid, min, max, json, create_user, geom, bak) values (@name, @url, @path, @type, @status, @dirid, @depid, @min, @max, @json, @create_user, {0}, @bak) returning id";
@@ -196,8 +198,10 @@
            if (meta.dirname.IndexOf("\\测绘") > -1)
            {
                if ("cpt".Equals(meta.type))
                if (lasList.Contains(meta.type))
                    return "select id from lf.sys_layer where cn_name = '点云数据' and pid = (select id from lf.sys_layer where cn_name = '测绘' order by pid limit 1)";
                if ("osgb".Equals(meta.type))
                    return "select id from lf.sys_layer where cn_name = '倾斜摄影数据' and pid = (select id from lf.sys_layer where cn_name = '测绘' order by pid limit 1)";
                if ("mpt".Equals(meta.type))
                    return "select id from lf.sys_layer where cn_name = '三维地形模型' and pid = (select id from lf.sys_layer where cn_name = '测绘' order by pid limit 1)";
                if ("DEM".Equals(meta.type))