| | |
| | |
|
| | | @Override
|
| | | public List byMonitorIdGetDeviceAndWind(String id,String time,String tab) {
|
| | | List<DeviceAndWind> deviceAndWinds=deviceMapper.byMonitorIdGetDeviceAndWind(id,time,tab);
|
| | | List list1=new ArrayList();
|
| | | 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.size());
|
| | | for (DeviceAndWind andWind : deviceAndWinds) {
|
| | | List list2=new ArrayList();
|
| | | Double lo=andWind.getLongitude();
|
| | | Double la=andWind.getLatitude();
|
| | | List list= LatLngTransformation.Convert_BD09_To_GCJ02(la,lo);
|
| | |
| | | loList.add(transLo);
|
| | | laList.add(transLa);
|
| | | }
|
| | | Double loma= (Double) Collections.max(loList);
|
| | | Double lomi= (Double) Collections.min(loList);
|
| | | Double lama= (Double) Collections.max(laList);
|
| | | Double lami= (Double) Collections.min(laList);
|
| | |
|
| | | Double loma= (Double) Collections.max(loList);
|
| | | Double lomi= (Double) Collections.min(loList);
|
| | | Double lama= (Double) Collections.max(laList);
|
| | | Double lami= (Double) Collections.min(laList);
|
| | | Map laLaMap=new HashMap();
|
| | | laLaMap.put("maxLo",loma);
|
| | | laLaMap.put("minLo",lomi);
|
| | | laLaMap.put("maxLa",lama);
|
| | | laLaMap.put("lami",lami);
|
| | |
|
| | | laLaMap.put("minLa",lami);
|
| | |
|
| | | Double lo1=lomi-250*0.00001141;
|
| | | Double lo2=loma+250*0.00001141;
|
| | |
| | | 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);
|
| | |
| | | list.add(jsonArray);
|
| | | list.add(transLo);
|
| | | list.add(transLa);
|
| | | list.add(laLaMap);
|
| | | list.add(laLaMap);
|
| | | return list;
|
| | | }
|
| | |
|