Add schema for IGRA stations
This commit is contained in:
parent
ab84e0e919
commit
e87d672830
1 changed files with 13 additions and 0 deletions
13
db/xmet.sql
13
db/xmet.sql
|
@ -90,6 +90,19 @@ select
|
|||
AddGeometryColumn('xmet_afos_message', 'poly', 4326, 'POLYGON'),
|
||||
CreateSpatialIndex('xmet_afos_message', 'poly');
|
||||
|
||||
create table xmet_igra_station (
|
||||
code TEXT PRIMARY KEY NOT NULL,
|
||||
year_start INTEGER NOT NULL,
|
||||
year_end INTEGER NOT NULL,
|
||||
name TEXT NOT NULL,
|
||||
us_state TEXT NOT NULL,
|
||||
elevation FLOAT NOT NULL
|
||||
);
|
||||
|
||||
select
|
||||
AddGeometryColumn('xmet_igra_station', 'location', 4326, 'POINT', 1),
|
||||
CreateSpatialIndex('xmet_igra_station', 'location');
|
||||
|
||||
create table xmet_sounding (
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
station TEXT NOT NULL,
|
||||
|
|
Loading…
Add table
Reference in a new issue