summaryrefslogtreecommitdiffstats
path: root/Interpolate.java
blob: a5f49758d7738c0e081805f790276b2ccfd1248f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import java.io.IOException;
import java.sql.SQLException;

import DataStructure.GSMMap;
import DataStructure.GoogleOut;
import Parse.NMEAParse;
import Parse.sqlreader;

public class Interpolate {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			sqlreader sql = new sqlreader(new NMEAParse("nachGPN.log"),
					262026003662195l, 3000l);
			GSMMap map = new GSMMap(sql, 0.00004);
			map.average();
			map.removeOutlier();
			GoogleOut average = new GoogleOut(map, "average-all.kml");
			average.write();
			int size = 3;
			for (int i = 0; i < 15; i++) {
				map.extrapolate(size);
			}

			GoogleOut google = new GoogleOut(map, "tiles-average-all.kml");
			google.write();
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}