aa
This commit is contained in:
@@ -469,6 +469,6 @@ func CalculateCoverArea(coordinate []string) (area float64) {
|
|||||||
}
|
}
|
||||||
sum += (xyList[0][0] - xyList[len(xyList)-1][0]) * (xyList[0][1] + xyList[len(xyList)-1][1])
|
sum += (xyList[0][0] - xyList[len(xyList)-1][0]) * (xyList[0][1] + xyList[len(xyList)-1][1])
|
||||||
sum /= float64(2)
|
sum /= float64(2)
|
||||||
area, _ = decimal.NewFromFloat(sum).Round(2).Float64()
|
area, _ = decimal.NewFromFloat(sum).Round(3).Float64()
|
||||||
return area
|
return area
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user