using ExportMap.cs;
|
using ExportMap.Models;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Net;
|
using System.Net.Http;
|
using System.Web.Http;
|
|
namespace ExportMap.Controllers
|
{
|
public class ConvertController : ApiController
|
{
|
[HttpPost]
|
public ResponseMsg<int> ToTileset([FromBody]XYZArgs args)
|
{
|
try
|
{
|
if (null == args || null == args.ids || args.ids.Count == 0)
|
{
|
return ResponseMsg<int>.fail("请输入元数据id");
|
}
|
|
int count = ConvertUtils.Convert(args.ids);
|
|
return ResponseMsg<int>.success("成功", count);
|
}
|
catch (Exception ex)
|
{
|
LogOut.Error(ex.StackTrace);
|
return ResponseMsg<int>.fail(ex.Message);
|
}
|
}
|
}
|
}
|