Files
qt5-legatus-legacy/Lts/Tests/DatabaseInitialisation/l400p2_asm_values.sql
T
2026-08-13 18:33:10 +02:00

146 lines
7.6 KiB
SQL
Executable File

-- # $Id$
-- # $HeadURL$
-- # $Author$
-- new, bottom left
-- March 2020: 53H QD 12000 55000 = [lon/lat] 137.267204 -32.922719 ( 2.3957646648, -0.57460984526 )
INSERT INTO asm.asm_training_area(id, name, bottom_left_x, bottom_left_y, height, width) VALUES ( 41, 'Cultana', 2.3957646648, -0.57460984526, 31500, 47000);
-- March 2020: 55H CV 11000 06000 = [lon/lat] 144.876716 -36.973144 ( 2.5285757037 -0.64530309761 )
INSERT INTO asm.asm_training_area(id, name, bottom_left_x, bottom_left_y, height, width) VALUES ( 42, 'Puckapunyal', 2.5285757037, -0.64530309761, 11750, 18500);
-- March 2020: 55K DU 24000 18000 = [lon/lat] 146.274693 -19.732115 ( 2.5529750052 -0.34439037513 )
INSERT INTO asm.asm_training_area(id, name, bottom_left_x, bottom_left_y, height, width) VALUES ( 43, 'Townsville Field', 2.5529750052, -0.34439037513, 33000, 27500);
-- March 2020: 56K KV 03000 80000 = [lon/lat] 150.107845 -22.761319 ( 2.6198761283 -0.39725995865 )
INSERT INTO asm.asm_training_area(id, name, bottom_left_x, bottom_left_y, height, width) VALUES ( 44, 'Shoalwater Bay', 2.6198761283, -0.39725995865, 40000, 40000);
-- 32U MD 8800000 7500000 = [lon/lat] 8.8210891905, 53.0244018451 ( 0.1539570500, 0.9254503961 )
INSERT INTO asm.asm_training_area(id, name, bottom_left_x, bottom_left_y, height, width) VALUES ( 6, 'Bremen', 0.1539570500, 0.9254503961, 12800, 12800);
ALTER SEQUENCE asm.asm_training_area_id_seq RESTART WITH 45;
-- map_description (available via TrainingArea)
-- map_desc_type_id: 1=2D ; 2=3D ; 3=Ele ;4=SceneObj
-- map_type_id: Topo=1 ; Aerial=2
-- TA,MD,MT,Or,
DELETE from asm.asm_map_description;
-- Cultana
-- 2D
INSERT INTO asm.asm_map_description (id, name, description, training_area_id, map_description_type_id, map_type_id, obj_order, url, min_scale, max_scale)
VALUES (1, 'Cultana Aerial', 'Cultana Aerial', 41, 1, 2, 0, 'file:TilePackage/L400/2020-03-02_Cultana_aerial_0m50_32653.tpk', -1, 125);
-- Elevation
INSERT INTO asm.asm_map_description (id, name, description, training_area_id, map_description_type_id, map_type_id, obj_order, url, min_scale, max_scale)
VALUES (2, 'Elevation', 'Elevation', 41, 3, 4, 0, 'file:L400/Cultana_e137s33_TFRM.dt2', -1, -1);
-- Puckapunyal
-- 2D
INSERT INTO asm.asm_map_description (id, name, description, training_area_id, map_description_type_id, map_type_id, obj_order, url, min_scale, max_scale)
VALUES (3, 'Puckapunyal Arial', 'Puckapunyal Arial', 42, 1, 2, 0, 'file:TilePackage/L400/2020-03-02_Puckapunyal_aerial_0m20_32655.tpk', -1, 125);
-- Elevation
INSERT INTO asm.asm_map_description (id, name, description, training_area_id, map_description_type_id, map_type_id, obj_order, url, min_scale, max_scale)
VALUES (4, 'Elevation', 'Elevation', 42, 3, 4, 0, 'file:L400/2020-03-03_Puckapunyal.tif', -1, -1);
-- Townsville Field
-- 2D
INSERT INTO asm.asm_map_description (id, name, description, training_area_id, map_description_type_id, map_type_id, obj_order, url, min_scale, max_scale)
VALUES (5, 'Townsville Field Arial', 'Townsville Field Arial', 43, 1, 2, 0, 'file:TilePackage/L400/2020-03-02_TFTA_aerial_0m50_32655.tpk', -1, 125);
-- Elevation
INSERT INTO asm.asm_map_description (id, name, description, training_area_id, map_description_type_id, map_type_id, obj_order, url, min_scale, max_scale)
VALUES (6, 'Elevation', 'Elevation', 43, 3, 4, 0, 'file:L400/TFTA_e146s20_TFRM.dt2', -1, -1);
-- Shoalwater Bay
-- 2D
INSERT INTO asm.asm_map_description (id, name, description, training_area_id, map_description_type_id, map_type_id, obj_order, url, min_scale, max_scale)
VALUES (7, 'Shoalwater Bay Arial', 'Shoalwater Bay Arial', 44, 1, 2, 0, 'file:TilePackage/L400/2020-03-02_SWBTA_aerial_0m20_32656.tpk', -1, 125);
-- Elevation
INSERT INTO asm.asm_map_description (id, name, description, training_area_id, map_description_type_id, map_type_id, obj_order, url, min_scale, max_scale)
VALUES (8, 'Elevation', 'Elevation', 44, 3, 4, 0, 'file:L400/SWBTA_e150s23_TFRM.dt2', -1, -1);
-- for Bremen *local*
--INSERT INTO asm.asm_map_description (id, name, description, training_area_id, map_description_type_id, map_type_id, obj_order, url, min_scale, max_scale)
--values (9, 'Norddeutschland', 'Norddeutschland_32632', 6, 1, 1, 0, 'file:TilePackage/Bremen/Norddeutschland_osm_32632.tpk', -1, 150);
--INSERT INTO asm.asm_map_description (id, name, description, training_area_id, map_description_type_id, map_type_id, obj_order, url, min_scale, max_scale)
--values (10, 'Norddeutschland', 'Norddeutschland_Webmerc', 6, 1, 1, 0, 'file:TilePackage/Bremen/Norddeutschland_osm_WebMerc17.tpk', -1, 150);
--INSERT INTO asm.asm_map_description (id, name, description, training_area_id, map_description_type_id, map_type_id, obj_order, url, min_scale, max_scale)
-- VALUES (11, 'Elevation', 'Elevation', 6, 3, 4, 0, 'file:srtm_38_02.tif', -1, -1);
ALTER SEQUENCE asm.asm_map_description_id_seq RESTART WITH 12;
-- default values for Technical areas
--
-- Locations
INSERT INTO asm.asm_location(id, name, description) VALUES (1, 'Exercise Control', 'Exercise Control room');
INSERT INTO asm.asm_location(id, name, description) VALUES (2, 'VIP', 'VIP room');
INSERT INTO asm.asm_location(id, name, description) VALUES (3, 'AAR', 'After Action Review room');
INSERT INTO asm.asm_location(id, name, description) VALUES (4, 'Tablets', 'O/C Tablets');
INSERT INTO asm.asm_location(id, name, description) VALUES (5, 'Exercise Control (WH)', 'Warehouse');
ALTER SEQUENCE asm.asm_location_id_seq RESTART WITH 10;
-- Workstations
INSERT INTO asm.asm_asset(id, name, asset_type_id, location_id) VALUES
( 1, 'E-EXC-OWS-1', 1, 1),
( 2, 'E-EXC-OWS-2', 1, 1),
( 3, 'E-EXC-OWS-3', 1, 1),
( 4, 'E-EXC-OWS-4', 1, 1),
( 5, 'E-EXC-OWS-5', 1, 1),
( 6, 'E-EXC-OWS-6', 1, 1),
( 7, 'E-EXC-OWS-7', 1, 1),
( 8, 'E-EXC-OWS-8', 1, 1),
( 9, 'E-EXC-OWS-9', 1, 1),
( 10, 'E-EXC-OWS-10', 1, 1),
( 11, 'E-EXC-OWS-11', 1, 5);
-- VIP Workstation
INSERT INTO asm.asm_asset(id, name, asset_type_id, location_id) VALUES
( 21, 'E-VIP-OWS-1', 1, 3);
-- AAR Workstation
INSERT INTO asm.asm_asset(id, name, asset_type_id, location_id) VALUES
( 51, 'E-AAR-OWS-1', 1, 2);
-- O/C Tablets
INSERT INTO asm.asm_asset(id, name, asset_type_id, location_id) VALUES
(101, 'E-POOL-NOC-1', 1, 4),
(102, 'E-POOL-NOC-2', 1, 4),
(103, 'E-POOL-NOC-3', 1, 4),
(104, 'E-POOL-NOC-4', 1, 4),
(105, 'E-POOL-NOC-5', 1, 4),
(106, 'E-POOL-NOC-6', 1, 4),
(107, 'E-POOL-NOC-7', 1, 4),
(108, 'E-POOL-NOC-8', 1, 4),
(109, 'E-POOL-NOC-9', 1, 4),
(110, 'E-POOL-NOC-10', 1, 4),
(111, 'E-POOL-NOC-11', 1, 4),
(112, 'E-POOL-NOC-12', 1, 4),
(113, 'E-POOL-NOC-13', 1, 4),
(114, 'E-POOL-NOC-14', 1, 4),
(115, 'E-POOL-NOC-15', 1, 4),
(116, 'E-POOL-NOC-16', 1, 4),
(117, 'E-POOL-NOC-17', 1, 4),
(118, 'E-POOL-NOC-18', 1, 4),
(119, 'E-POOL-NOC-19', 1, 4),
(120, 'E-POOL-NOC-20', 1, 4),
(121, 'E-POOL-NOC-21', 1, 4),
(122, 'E-POOL-NOC-22', 1, 4),
(123, 'E-POOL-NOC-23', 1, 4),
(124, 'E-POOL-NOC-24', 1, 4),
(125, 'E-POOL-NOC-25', 1, 4),
(126, 'E-POOL-NOC-26', 1, 4),
(127, 'E-POOL-NOC-27', 1, 4),
(128, 'E-POOL-NOC-28', 1, 4),
(129, 'E-POOL-NOC-29', 1, 4),
(130, 'E-POOL-NOC-30', 1, 4);
ALTER SEQUENCE asm.asm_asset_id_seq RESTART WITH 200;