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);
|
}
|
}
|
}
|