diff --git a/web/src/main/java/com/zhehekeji/web/service/algorithm/PointToImageMapper.java b/web/src/main/java/com/zhehekeji/web/service/algorithm/PointToImageMapper.java index db261d1..637806f 100644 --- a/web/src/main/java/com/zhehekeji/web/service/algorithm/PointToImageMapper.java +++ b/web/src/main/java/com/zhehekeji/web/service/algorithm/PointToImageMapper.java @@ -82,35 +82,7 @@ public class PointToImageMapper { } } int count = 0; -// for (int h =1; h<=5; h++){ -// if (map.containsKey(h) && map.get(h).size()>1000){ -// double area = 0; -// try { -// List pointsLayers = map.get(h); -// if (map.containsKey(h+1)&& map.get(h+1).size()>1000){ -// pointsLayers.addAll(map.get(h+1)); -// } -// -// area = drawPointsAndCalculateArea(pointsLayers, String.valueOf(h),pojo,l,w); -// -// } catch (Exception e) { -// throw new RuntimeException(e); -// } -// if (area>0){ -// System.out.println("面积:"+area); -// System.out.println("个数:"+area/(double) (l*w)); -// int i =(int) Math.min(Math.round(area/(double) (l*w)),layersCount); -// if (i==0|| i>=layersCount) { -// count+=layersCount; -// }else { -// return i +count; -// } -// } -// }else { -// -// count+=layersCount; -// } -// } + for (int h =5; h>0; h--){ if (map.containsKey(h) && map.get(h).size()>1000){ double area = 0;