|
@@ -250,7 +250,22 @@ public class SeaSJ
|
|
|
|
|
|
// 获取凸包
|
|
|
Point2f[] convexHull = Rectangular_Area_Search_Function.GetConvexHull(pointList);
|
|
|
+
|
|
|
+ //获取凸包各点经纬度坐标
|
|
|
+ List<double[]> hullPoint = new List<double[]>();
|
|
|
+ for (int num = 0; num < convexHull.Length - 1; num++)
|
|
|
+ {
|
|
|
+ hullPoint.Add(new double[] { convexHull[num].Y, convexHull[num].X });
|
|
|
+ }
|
|
|
|
|
|
+ List<double[]> hullPointLatLon = new List<double[]>();
|
|
|
+ foreach (var point in hullPoint)
|
|
|
+ {
|
|
|
+ double pointLat = Rectangular_Area_Search_Function.RMokatuoLat(point[1]);
|
|
|
+ double pointLon = Rectangular_Area_Search_Function.RMokatuoLon(point[0]);
|
|
|
+ hullPointLatLon.Add(new double[] { pointLat, pointLon });
|
|
|
+ }
|
|
|
+
|
|
|
// 计算最小包围矩形
|
|
|
List<double[]> minEnclosingRect = Rectangular_Area_Search_Function.MinEnclosingRectangle(convexHull);
|
|
|
|