forked from nasa/georef_imageregistration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitDatabase.txt
120 lines (107 loc) · 2.28 KB
/
initDatabase.txt
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
DROP TABLE Camera;
CREATE TABLE Camera(
MISSION TEXT NOT NULL,
ROLL TEXT NOT NULL,
FRAME TEXT NOT NULL,
FCLT INTEGER,
CAMERA TEXT,
PRIMARY KEY (MISSION, ROLL, FRAME)
);
.mode tabs
.headers on
.import "/home/smcmich1/db_snapshot_copy/TableCamera.tsv" Camera
DROP TABLE Frames;
CREATE TABLE Frames(
EXPO TEXT,
STEO TEXT,
CAPTION TEXT,
TILT TEXT,
DIR TEXT,
ONC TEXT,
ROLL TEXT NOT NULL,
JNC TEXT,
PTIME TEXT,
PDATE TEXT,
MISSION TEXT NOT NULL,
FRAME TEXT NOT NULL,
ORB INTEGER,
CLDP INTEGER,
AZI INTEGER,
ALT INTEGER,
IMAGE INTEGER,
ELEV INTEGER,
FCLT INTEGER,
LAT REAL,
LON REAL,
NLAT REAL,
NLON REAL,
CAMERA TEXT,
FILM TEXT,
GEON TEXT,
FEAT TEXT,
FILMMS TEXT,
PRIMARY KEY (MISSION, ROLL, FRAME)
);
.mode tabs
.headers on
.import "/home/smcmich1/db_snapshot_copy/TableFrames.tsv" Frames
DROP TABLE Images;
CREATE TABLE Images(
MISSION TEXT NOT NULL,
ROLL TEXT NOT NULL,
FRAME TEXT NOT NULL,
VERSION TEXT,
DIRECTORY TEXT,
FILENAME TEXT,
WIDTH INTEGER,
HEIGHT INTEGER,
ANNOTATED TEXT,
CROPPED TEXT,
PURPOSE TEXT,
COMMENTS TEXT,
FILESIZE INTEGER,
PRIMARY KEY (DIRECTORY, FILENAME)
);
.mode tabs
.headers on
.import "/home/smcmich1/db_snapshot_copy/TableImages.tsv" Images
DROP TABLE Nadir;
CREATE TABLE Nadir(
MISSION TEXT NOT NULL,
ROLL TEXT NOT NULL,
FRAME TEXT NOT NULL,
PDATE TEXT,
PTIME TEXT,
LAT REAL,
LON REAL,
ALT INTEGER,
AZI INTEGER,
ELEV INTEGER,
PRIMARY KEY (MISSION, ROLL, FRAME)
);
.mode tabs
.headers on
.import "/home/smcmich1/db_snapshot_copy/TableNadir.tsv" Nadir
DROP TABLE Georef;
CREATE TABLE Georef(
MISSION TEXT NOT NULL,
ROLL TEXT NOT NULL,
FRAME TEXT NOT NULL,
FILEPATH TEXT,
PRIMARY KEY (MISSION, ROLL, FRAME)
);
DROP TABLE Captions;
CREATE TABLE Captions(
MISSION TEXT NOT NULL,
ROLL TEXT NOT NULL,
FRAME TEXT NOT NULL,
CAPTIONS TEXT,
PRIMARY KEY (MISSION, ROLL, FRAME)
);
.mode tabs
.headers on
.import "/home/smcmich1/db_snapshot_copy/TableCaptions.tsv" Captions
#CREATE TABLE PublicFeatures(
#);
#CREATE TABLE EFS(
#);