nexrad-archive/db/nexrad.sql
2025-02-11 22:18:35 -05:00

19 lines
431 B
SQL

select load_extension('mod_spatialite.so.8');
select InitSpatialMetadata(1);
begin transaction;
create table nexrad_radar (
id INTEGER PRIMARY KEY NOT NULL,
wban INTEGER,
call TEXT NOT NULL,
name TEXT NOT NULL,
site_elevation FLOAT NOT NULL,
tower_height FLOAT NOT NULL
);
select AddGeometryColumn(
'nexrad_radar', 'coord', 4326, 'POINT', 'XY'
);
commit;