| | |
| | | using System; |
| | | using LFServer.Models; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Net; |
| | |
| | | public class ExportController : ApiController |
| | | { |
| | | [HttpPost] |
| | | public void start([FromBody]string value) |
| | | public void Start([FromBody]ExportArgs args) |
| | | { |
| | | if (args == null || |
| | | string.IsNullOrWhiteSpace(args.layers)|| |
| | | (args.xmin == 0 && args.ymin == 0 && args.xmax == 0 && args.ymax == 0)) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | args.SetDefault(); |
| | | } |
| | | } |
| | | } |
| | |
| | | /// X最大 |
| | | /// </summary> |
| | | public double xmax { set; get; } |
| | | |
| | | public void SetDefault() |
| | | { |
| | | if (string.IsNullOrWhiteSpace(title)) title = "管道基础大数据平台"; |
| | | if (string.IsNullOrWhiteSpace(province)) province = string.Empty; |
| | | if (string.IsNullOrWhiteSpace(scale)) scale = string.Empty; |
| | | if (string.IsNullOrWhiteSpace(resolution)) resolution = string.Empty; |
| | | if (string.IsNullOrWhiteSpace(date)) date = DateTime.Now.ToString("yyyy.MM.dd"); |
| | | |
| | | imgPath = ""; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title></title> |
| | | <script src="js/jquery.1.12.4.js"></script> |
| | | </head> |
| | | <body> |
| | | <h2>API Upload</h2> |