| | |
| | |
|
| | | @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);
|
| | |
| | | map.put("V",V);
|
| | | mapList.add(map);
|
| | | }
|
| | | System.out.println(mapList);
|
| | | for (int i = 0; i <mapList.size() ; i++) {
|
| | | Double lo= (Double) mapList.get(i).get("lo");
|
| | | Double la= (Double) mapList.get(i).get("la");
|
| | |
| | | if (i==0){
|
| | | if ((y>=2 && j==(y)*nx+x)){
|
| | | int k;
|
| | | System.out.println(nx*ny);
|
| | | for (k = j-2*nx; k <=j+2*nx ;k=k+nx) {
|
| | | System.out.println(k);
|
| | | System.out.println("----------------");
|
| | | System.out.println(uList.size());
|
| | | uList.set(k,U);
|
| | | uList.set(k-1,U);
|
| | | uList.set(k-2,U);
|
| | |
| | | list.add(jsonArray);
|
| | | list.add(transLo);
|
| | | list.add(transLa);
|
| | | list.add(laLaMap);
|
| | | list.add(laLaMap);
|
| | | return list;
|
| | | }
|
| | |
|