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;
