IdleResources
parent
c6add3aa20
commit
079c153740
|
|
@ -99,7 +99,7 @@ namespace OpenAuth.App
|
|||
}
|
||||
|
||||
sql.AppendFormat(
|
||||
$"SELECT \"Id\",ST_AsText(ST_Transform(ST_Centroid(\"Geom\"), 4326)) AS centroid_point FROM {tablename} where {filter}");
|
||||
$"SELECT \"Id\",ST_AsText(ST_Centroid(ST_SetSRID(\"Geom\",4326))) AS centroid_point FROM {tablename} where {filter}");
|
||||
var result = client.Ado.SqlQuery<dynamic>(sql.ToString());
|
||||
|
||||
return result;
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ using OpenAuth.App;
|
|||
using Infrastructure;
|
||||
using OpenAuth.Repository.Domain;
|
||||
using DocumentFormat.OpenXml.Office2010.Excel;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace OpenAuth.WebApi.Controllers
|
||||
{
|
||||
|
|
@ -78,6 +79,7 @@ namespace OpenAuth.WebApi.Controllers
|
|||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public Response<dynamic> GetCenterPoints(string tablename, string filter)
|
||||
{
|
||||
Response<dynamic> response = new Response<dynamic>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue