using CalcVolServe.cs; using CalcVolServe.Models; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace HBKCY.Controllers { public class CalcController : ApiController { [AcceptVerbs("Get", "Post")] public List 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); } } }