管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-03-17 c0d9ca32551aac1d1328c84cce2e37f2c915b32b
1
已添加2个文件
已修改3个文件
77 ■■■■■ 文件已修改
ExportMap/ExportMap.csproj 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/Models/SysPublish.cs 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/Models/XYZArgs.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/db/PublishHelper.cs 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/export.html 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/ExportMap.csproj
@@ -144,6 +144,7 @@
    <Compile Include="cs\XYZUtils.cs" />
    <Compile Include="db\ModelHandler.cs" />
    <Compile Include="db\PostgreHelper.cs" />
    <Compile Include="db\PublishHelper.cs" />
    <Compile Include="db\SQLiteHelper.cs" />
    <Compile Include="Global.asax.cs">
      <DependentUpon>Global.asax</DependentUpon>
@@ -154,6 +155,7 @@
    <Compile Include="Models\Secret.cs" />
    <Compile Include="Models\SpatialItem.cs" />
    <Compile Include="Models\SysMeta.cs" />
    <Compile Include="Models\SysPublish.cs" />
    <Compile Include="Models\XYZArgs.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
ExportMap/Models/SysPublish.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace ExportMap.Models
{
    public class SysPublish
    {
        public int id { set; get; }
        public string name { set; get; }
        public string url { set; get; }
        public string path { set; get; }
        public string type { set; get; }
        public int status { set; get; }
        public string dirid { set; get; }
        public string depid { set; get; }
        public int min { set; get; }
        public int max { set; get; }
        public string json { set; get; }
        public int create_user { set; get; }
        public DateTime create_time { set; get; }
        public int update_user { set; get; }
        public DateTime update_time { set; get; }
        public string geom { set; get; }
        public string bak { set; get; }
    }
}
ExportMap/Models/XYZArgs.cs
@@ -16,6 +16,11 @@
        }
        /// <summary>
        /// ä»¤ç‰Œ
        /// </summary>
        public string token { set; get; }
        /// <summary>
        /// åœ°å›¾æœ€å°çº§åˆ«
        /// </summary>
        public int min { set; get; }
ExportMap/db/PublishHelper.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace ExportMap.db
{
    public class PublishHelper
    {
        private static string insertPublish = "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, @geom, @bak)";
        private static string insertMetaPub = "insert into lf.sys_meta_pub (metaid, pubid) select 1, 1 from (select 1) temp where not exists (select 1 from lf.sys_meta_pub where metaid = 1 and pubid = 1)";
    }
}
ExportMap/export.html
@@ -77,7 +77,7 @@
    // æµ‹è¯•切图
    function convertXYZ() {
      var data = { ids: [1526, 1527], id: 1, min: 12, max: 12, dircode: "000305" };
      var data = { token: token, ids: [1526, 1527], id: 1, min: 12, max: 12, dircode: "000305" };
      ajax("Convert/ToTiles", "POST", JSON.stringify(data), null, null, function (rs) {
        alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
        console.log(rs);
@@ -86,7 +86,7 @@
    // æµ‹è¯•Rvt
    function convert1() {
      var data = { ids: [1521] };
      var data = { token: token, ids: [1521] };
      ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) {
        alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
        console.log(rs);
@@ -95,7 +95,7 @@
    // æµ‹è¯•Fbx
    function convert2() {
      var data = { ids: [1522] };
      var data = { token: token, ids: [1522] };
      ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) {
        alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
        console.log(rs);
@@ -104,7 +104,7 @@
    // æµ‹è¯•Ifc
    function convert3() {
      var data = { ids: [1528] };
      var data = { token: token, ids: [1528] };
      ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) {
        alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
        console.log(rs);
@@ -113,7 +113,7 @@
    // æµ‹è¯•SG
    function toSG() {
      var data = { ids: [1523, 1525] };
      var data = { token: token, ids: [1523, 1525] };
      ajax("Convert/ToSG", "POST", JSON.stringify(data), null, null, function (rs) {
        alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
        console.log(rs);