管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2022-11-10 00700f5ef12d33da898e9b4391aa5b4a09828ee3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using LFServer.cs;
using LFServer.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
 
namespace LFServer.Controllers
{
    public class ExportController : ApiController
    {
        [HttpPost]
        public string Start([FromBody]ExportArgs args)
        {
            if (args == null || 
                string.IsNullOrWhiteSpace(args.layers)||
                (args.xmin == 0 && args.ymin == 0 && args.xmax == 0 && args.ymax == 0))
            {
                return null;
            }
 
            return ExportUtil.Generate(args);
        }
    }
}