forked from LupusUmbrae/Lunar
/
Lunar.java
61 lines (49 loc) · 1.66 KB
/
Lunar.java
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package main;
import image.ImageProcess;
import image.PaletteProcess;
import java.io.IOException;
import java.sql.SQLException;
import database.BuildDataSets;
public class Lunar {
/**
* @param args
*/
public static void main(String[] args) {
try {
boolean buildDb = false;
String path = "resources\\COLOR_SCALEBAR.TIF";
Double totalElevation = 19910d;
Double startElevationValue = -9150d;
if (buildDb) {
PaletteProcess palette = new PaletteProcess();
palette.createPalette(path, totalElevation, startElevationValue);
ImageProcess image = new ImageProcess(palette);
image.generateData("resources\\WAC_CSHADE_E000N1800_016P.TIF");
}
BuildDataSets dataSet = new BuildDataSets();
dataSet.buildDataSet(100000);
System.out.println("Data set built... wooo!");
// ArrayList<ArrayList<DataTile>> dataTiles = new
// ArrayList<ArrayList<DataTile>>();
// ArrayList<DataTile> dataTileRow = new ArrayList<DataTile>();
// dataTileRow.add(new DataTile(90, 180, 100, 10.0));
// dataTileRow.add(new DataTile(0, 180, 0, 10.0));
// dataTiles.add(dataTileRow);
// dataTiles.add(dataTileRow);
// ImageCreateOverlay image = new ImageCreateOverlay();
// image.createOverlay(dataTiles);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}