-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdata_structure.txt
More file actions
26 lines (22 loc) · 1.32 KB
/
data_structure.txt
File metadata and controls
26 lines (22 loc) · 1.32 KB
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
Database structure for branch:
Table geopoly //master table for polygons:
Fields:
polynum: integer (3 byte) autoincrement primary key
country: char(2) //2 character country code- same as used for internet domains
name: varchar(30) //identifying name of the airspace. Not used by the application but useful to keep track
base: integer unsigned (2 byte) //base of airspace in feet (assumes equivalence of feet and flight level)
outline: linestring // must be closed; spatial index on this field
Table geocircle:
Fields:
circlenum: integer (3 byte) autoincrement primary key
country: char(2) //2 character country code- same as used for internet domains
name: varchar(30) //identifying name of the airspace. Not used by the application but useful to keep track
base: integer unsigned (2 byte) //base of airspace in feet (assumes equivalence of feet and flight level)
centre: point
radius: double //radius of the circle in nautical miles
mbr: linestring: minimum bounding rectangle of the circle. Spatial index
Note: all coordinates are rounded to five decimal places before entry to the database.
Table countries:
country: char(2) //2 character country code- same as used for internet domains. Primary key
updated: date //effective date of the airspace source file
source: varchar(40) //url of the airspace source Database