| | |
| | | @Override
|
| | | public List byMonitorIdGetDeviceAndWind(String id,String time,String tab) {
|
| | |
|
| | | List<DeviceAndWind> deviceAndWinds=deviceMapper.byMonitorIdGetDeviceAndWind(id,time,tab);
|
| | | List<DeviceAndWind> deviceAndWinds=deviceMapper.byMonitorIdGetDeviceAndWind(Integer.parseInt(id),time,tab);
|
| | | System.out.println(time);
|
| | | List loList=new ArrayList();
|
| | | List laList=new ArrayList();
|
| | | Double U=0.0;
|
| | | Double V=0.0;
|
| | | log.info("deviceAndWinds="+deviceAndWinds.size());
|
| | | for (DeviceAndWind andWind : deviceAndWinds) {
|
| | | List list2=new ArrayList();
|
| | | Double lo=andWind.getLongitude();
|
| | | Double la=andWind.getLatitude();
|
| | | log.info("lo="+lo);
|
| | | List list= LatLngTransformation.Convert_BD09_To_GCJ02(la,lo);
|
| | | log.info("list2="+list);
|
| | | Double transLo=(Double) list.get(0);
|
| | | Double transLa=(Double) list.get(1);
|
| | | loList.add(transLo);
|
| | | log.info(loList.size());
|
| | | log.info(loList);
|
| | | laList.add(transLa);
|
| | | }
|
| | | log.info(loList.size());
|
| | | log.info(loList);
|
| | | Double loma=0.0;
|
| | | Double lomi=0.0;
|
| | | Double lama=0.0;
|
| | |
| | | windDir=0.0;
|
| | | windSpeed=0.0;
|
| | | }
|
| | | Double tvoc=deviceAndWinds.get(j).gettVoc();
|
| | | Double tvoc=deviceAndWinds.get(j).getTVoc();
|
| | |
|
| | | List list= LatLngTransformation.Convert_BD09_To_GCJ02(deviceAndWinds.get(j).getLatitude(),deviceAndWinds.get(j).getLongitude());
|
| | | Double transLo=(Double) list.get(0);
|