1
13693261870
2022-10-11 a034f7f703dc0328858c0fbcdcf19031d9d9152f
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
using Community.cs;
using Community.Model.Calc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
 
namespace Community.Controllers
{
    public class CalcController : ApiController
    {
        [AcceptVerbs("Get", "Post")]
        public List<Triangle> GetPoints(string type = "02", string wkt = "")
        {
            //115.31240052 39.30065524,115.31240052 39.30065524,115.31240052 39.30065524
            if (string.IsNullOrEmpty(wkt))
            {
                wkt = "LINEARRING Z (115.31240052 39.30065524 0, 115.31240052 39.30065524 0, 115.31240052 39.30065524 0, 115.31240052 39.30065524 0)";
            }
            return CalcVolume.GetPoints(type, wkt);
        }
    }
}