| | |
| | | |
| | | import java.awt.geom.Point2D; |
| | | import java.io.Console; |
| | | import java.util.ArrayList; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.Vector; |
| | | |
| | | import com.hxzkoa.json.tb_fence; |
| | | import com.hxzkoa.json.tb_map; |
| | |
| | | boolean zai = IsInStartAndEndTime.belongCalendar(intime, startime, stoptime);// 判断是否在围栏生效的时间内 |
| | | // 在围栏生效时间内 |
| | | if (zai) { |
| | | boolean ispoly = IsPtInPoly.inPoly(point, fence.getPts());// 判断ID坐标是否在围栏区域内 |
| | | Vector<Point2D.Double> pts = new Vector<Point2D.Double>(); |
| | | boolean ispoly = IsPtInPoly.inPoly(point, pts);// 判断ID坐标是否在围栏区域内 |
| | | // 如果在考勤区域内 |
| | | if (ispoly) { |
| | | // 判断在不在实时考勤集合中,如果不在则需要添加一条记录 |
| | |
| | | boolean zai = IsInStartAndEndTime.belongCalendar(intime, startime, stoptime);// 判断是否在围栏生效的时间内 |
| | | // 在围栏生效时间内 |
| | | if (zai) { |
| | | boolean ispoly = IsPtInPoly.inPoly(point, fence.getPts());// 判断ID坐标是否在围栏区域内 |
| | | Vector<Point2D.Double> pts = new Vector<Point2D.Double>(); |
| | | boolean ispoly = IsPtInPoly.inPoly(point, pts);// 判断ID坐标是否在围栏区域内 |
| | | // 如果在告警区域内 |
| | | if (ispoly) { |
| | | // 判断在不在实时告警集合中,如果不在则需要添加一条记录 |
| | |
| | | tb_xunjianbaobiao xunjianbaobiao = new tb_xunjianbaobiao(); |
| | | |
| | | // 判断标签坐标是否在生效的围栏区域内如果在则执行 |
| | | if (IsPtInPoly.inPoly(point, tb_fenceList.get(i).getPts())) { |
| | | Vector<Point2D.Double> pts = new Vector<Point2D.Double>(); |
| | | if (IsPtInPoly.inPoly(point, pts)) { |
| | | |
| | | // 通过区域名称找到该巡检区域对象 |
| | | // Tb_xunjianset xjs = |