From d5c90df9b74a11028b885511abdb7e5b445c24a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 9 Mar 2021 11:30:22 +0800 Subject: [PATCH] aa --- business/jxstore/report/report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index cb0c86646..4cb8acc52 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -468,6 +468,6 @@ func CalculateCoverArea(coordinate []string) (area float64) { sum += (xyList[i+1][0] - xyList[i][0]) * (xyList[i+1][1] + xyList[i+1][1]) } sum += (xyList[0][0] - xyList[len(xyList)-1][0]) * (xyList[0][1] + xyList[len(xyList)-1][1]) - sum /= 2 + sum /= float64(2) return math.Round(sum) }