| | |
| | | <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> |
| | |
| | | <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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 令ç |
| | | /// </summary> |
| | | public string token { set; get; } |
| | | |
| | | /// <summary> |
| | | /// å°å¾æå°çº§å« |
| | | /// </summary> |
| | | public int min { set; get; } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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)"; |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | // æµè¯åå¾ |
| | | 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); |
| | |
| | | |
| | | // æµè¯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); |
| | |
| | | |
| | | // æµè¯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); |
| | |
| | | |
| | | // æµè¯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); |
| | |
| | | |
| | | // æµè¯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); |