Esempio n. 1
0
 /** 合并停留点 */
 public static void emerger() {
   ExtractionStayPoint stayPoint = new ExtractionStayPoint();
   for (int i = 0; i < 182; i++) {
     ArrayList<FileAtrribute> filelist = MTools.getFiles("stayPointData", i, i + 1);
     if (filelist.isEmpty()) {
       continue;
     }
     stayPoint.emerger(filelist);
     System.out.println("合并完成");
   }
 }
Esempio n. 2
0
 /** 计算停留点个数 */
 public static void countStayPoint() {
   ExtractionStayPoint stayPoint = new ExtractionStayPoint();
   ArrayList<FileAtrribute> filelist = new ArrayList<FileAtrribute>();
   for (int i = 0; i < 182; i++) {
     String tempFileName = "";
     if (i < 10) {
       tempFileName = "00" + i;
     } else if (i < 100) {
       tempFileName = "0" + i;
     } else {
       tempFileName = "" + i;
     }
     String path = MyConstant.filePath + "stayPointData/" + tempFileName + "/stayPoint.json";
     FileAtrribute file = new FileAtrribute(i, path);
     filelist.add(file);
   }
   System.out.println(stayPoint.countStayPoint(filelist));
   System.out.println("ok");
 }
Esempio n. 3
0
 /** 单个文件停留点提取 */
 public static void testCollectStayPoint() {
   ExtractionStayPoint extractionStayPoint = new ExtractionStayPoint();
   String filePath = "D:\\Geolife Trajectories 1.3\\Data\\085\\Trajectory\\20081115003759.plt";
   extractionStayPoint.collectStayPoint(filePath, 85);
   System.out.println("OK");
 }