diff --git a/datamodel/.docker/init_db.sh b/datamodel/.docker/init_db.sh index 67b8e8eef..60f2e5315 100755 --- a/datamodel/.docker/init_db.sh +++ b/datamodel/.docker/init_db.sh @@ -25,7 +25,8 @@ recreate_db(){ psql -U postgres -d postgres -o /dev/null -c "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = '$1'" dropdb -U postgres --if-exists $1 createdb -U postgres $1 - psql -c "CREATE EXTENSION postgis" + psql -c 'CREATE EXTENSION IF NOT EXISTS postgis' + psql -c 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"' } if [ "$1" == "wait" ]; then diff --git a/datamodel/changelogs/0001/03_tww_db_dss.sql b/datamodel/changelogs/0001/03_tww_db_dss.sql index 4ea754ed8..05410b02e 100644 --- a/datamodel/changelogs/0001/03_tww_db_dss.sql +++ b/datamodel/changelogs/0001/03_tww_db_dss.sql @@ -1,6 +1,6 @@ ------ This file generates the VSA-DSS database (Modul VSA-DSS (2020)) in en on QQIS ------ For questions etc. please contact Stefan Burckhardt stefan.burckhardt@sjib.ch ------- version 21.11.2023 17:42:42 +------ version 11.12.2023 15:52:18 ------ with 3D coordinates --------------------------- @@ -28,27 +28,27 @@ WITH ( ------- CREATE TABLE tww_od.re_building_group_disposal ( - obj_id varchar(16) NOT NULL, - CONSTRAINT pkey_tww_od_re_building_group_disposal_obj_id PRIMARY KEY (obj_id) -) -WITH ( - OIDS = False + id uuid NOT NULL DEFAULT uuid_generate_v4(), + CONSTRAINT pkey_tww_od_re_building_group_disposal_id PRIMARY KEY (id) + + + ); -CREATE SEQUENCE tww_od.seq_re_building_group_disposal_oid INCREMENT 1 MINVALUE 0 MAXVALUE 999999 START 0; - ALTER TABLE tww_od.re_building_group_disposal ALTER COLUMN obj_id SET DEFAULT tww_sys.generate_oid('tww_od','re_building_group_disposal'); -COMMENT ON COLUMN tww_od.re_building_group_disposal.obj_id IS 'INTERLIS STANDARD OID (with Postfix/Präfix), see www.interlis.ch'; + + +COMMENT ON COLUMN tww_od.re_building_group_disposal.id IS 'UUID generated with uuid_generate_v4 see https://www.postgresql.org/docs/16/uuid-ossp.html#UUID-OSSP-FUNCTIONS-SECT'; ------- CREATE TABLE tww_od.re_maintenance_event_wastewater_structure ( - obj_id varchar(16) NOT NULL, - CONSTRAINT pkey_tww_od_re_maintenance_event_wastewater_structure_obj_id PRIMARY KEY (obj_id) -) -WITH ( - OIDS = False + id uuid NOT NULL DEFAULT uuid_generate_v4(), + CONSTRAINT pkey_tww_od_re_maintenance_event_wastewater_structure_id PRIMARY KEY (id) + + + ); -CREATE SEQUENCE tww_od.seq_re_maintenance_event_wastewater_structure_oid INCREMENT 1 MINVALUE 0 MAXVALUE 999999 START 0; - ALTER TABLE tww_od.re_maintenance_event_wastewater_structure ALTER COLUMN obj_id SET DEFAULT tww_sys.generate_oid('tww_od','re_maintenance_event_wastewater_structure'); -COMMENT ON COLUMN tww_od.re_maintenance_event_wastewater_structure.obj_id IS 'INTERLIS STANDARD OID (with Postfix/Präfix), see www.interlis.ch'; + + +COMMENT ON COLUMN tww_od.re_maintenance_event_wastewater_structure.id IS 'UUID generated with uuid_generate_v4 see https://www.postgresql.org/docs/16/uuid-ossp.html#UUID-OSSP-FUNCTIONS-SECT'; ------- CREATE TABLE tww_od.txt_symbol ( @@ -1176,7 +1176,7 @@ COMMENT ON COLUMN tww_od.reach.clear_height IS 'Clear height (inside) of profile ALTER TABLE tww_od.reach ADD COLUMN coefficient_of_friction smallint ; COMMENT ON COLUMN tww_od.reach.coefficient_of_friction IS 'yyy http://www.linguee.com/english-german/search?source=auto&query=reibungsbeiwert / Hydraulische Kenngrösse zur Beschreibung der Beschaffenheit der Kanalwandung. Beiwert für die Formeln nach Manning-Strickler (K oder kstr) / Constante de rugosité selon Manning-Strickler (K ou kstr)'; ALTER TABLE tww_od.reach ADD COLUMN elevation_determination integer ; -COMMENT ON COLUMN tww_od.reach.elevation_determination IS 'Defines the elevation_determination of the reach. / Definiert die Hoehenbestimmung einer Haltung. / Définition de la détermination altimétrique d''un tronçon.'; +COMMENT ON COLUMN tww_od.reach.elevation_determination IS 'Defines the elevation_determination of the reach (progression3D). / Definiert die Hoehenbestimmung einer Haltung (Verlauf3D). / Définition de la détermination altimétrique d''un tronçon (TRACE3D).'; ALTER TABLE tww_od.reach ADD COLUMN flow_time_dry_weather decimal(7,0) ; COMMENT ON COLUMN tww_od.reach.flow_time_dry_weather IS 'Flow time in dry weather (daily mean) / Fliesszeit bei Trockenwetter (Tagesmittel) / Temps d''écoulement par temps sec (moyenne journalière)'; ALTER TABLE tww_od.reach ADD COLUMN horizontal_positioning integer ; @@ -2979,6 +2979,10 @@ FOR EACH ROW EXECUTE PROCEDURE ------- ------------ Relationships and Value Tables ----------- ; +ALTER TABLE tww_od.re_building_group_disposal ADD COLUMN fk_building_group varchar(16); +ALTER TABLE tww_od.re_building_group_disposal ADD CONSTRAINT rel_building_group_disposal_building_group FOREIGN KEY (fk_building_group) REFERENCES tww_od.building_group(obj_id) ON UPDATE CASCADE ON DELETE cascade; +ALTER TABLE tww_od.re_building_group_disposal ADD COLUMN fk_disposal varchar(16); +ALTER TABLE tww_od.re_building_group_disposal ADD CONSTRAINT rel_building_group_disposal_disposal FOREIGN KEY (fk_disposal) REFERENCES tww_od.disposal(obj_id) ON UPDATE CASCADE ON DELETE cascade; ALTER TABLE tww_od.re_maintenance_event_wastewater_structure ADD COLUMN fk_wastewater_structure varchar(16); ALTER TABLE tww_od.re_maintenance_event_wastewater_structure ADD CONSTRAINT rel_maintenance_event_wastewater_structure_wastewater_structure FOREIGN KEY (fk_wastewater_structure) REFERENCES tww_od.wastewater_structure(obj_id) ON UPDATE CASCADE ON DELETE cascade; ALTER TABLE tww_od.re_maintenance_event_wastewater_structure ADD COLUMN fk_maintenance_event varchar(16); diff --git a/datamodel/changelogs/0001/09_tww_dictionaries.sql b/datamodel/changelogs/0001/09_tww_dictionaries.sql index 7bb30b1b9..01a246ee8 100644 --- a/datamodel/changelogs/0001/09_tww_dictionaries.sql +++ b/datamodel/changelogs/0001/09_tww_dictionaries.sql @@ -1,8 +1,16 @@ ------ this file generates the tww is_dictionary (Modul dss(2020)) in en on TEKSI ------ For questions etc. please contact Stefan Burckhardt stefan.burckhardt@sjib.ch ------- version 21.11.2023 17:43:37 +------ version 11.12.2023 15:54:17 ------ with 3D coordinates +DROP VIEW IF EXISTS tww_sys.dictionary_value_list; + +CREATE VIEW tww_sys.dictionary_value_list AS + SELECT p.relname AS vl_name, vl.* + FROM tww_vl.value_list_base vl, pg_class p + WHERE vl.tableoid = p.oid; + + CREATE TABLE tww_sys.dictionary_od_table ( id integer NOT NULL, @@ -76,7 +84,7 @@ ALTER TABLE tww_sys.dictionary_od_table ADD CONSTRAINT unq_tww_is_dictonary_name INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (6103,'small_treatment_plant','small treatment plant','SM','KLARA','KL','Petite STEP','PS','Piccolo IDA','NULL','rrr_KLARA','NULL'); INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (6105,'building_group_baugwr','building group baugwr','BW','Gebäudegruppe BAUGWR','BA','Bâtiment BAUREGBL','BR','Gruppo costruzione BAUREA','NULL','rrr_Gebaeudegruppe_BAUGWR','NULL'); INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (6106,'disposal','disposal','DI','Entsorgung','NG','Evacuation','ON','Smaltimento','NULL','rrr_Entsorgung','NULL'); - INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (6107,'drainless_toilet','toilet','TO','Abflusslose Toilette','TO','Toilette sans vidange','TO','Toilette senza scarico','NULL','rrr_Abflusslose_Toilette','NULL'); + INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (6107,'drainless_toilet','toilet','DT','Abflusslose Toilette','TA','Toilette sans vidange','DT','Toilette senza scarico','DT','rrr_Abflusslose_Toilette','DT'); INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (62,'dryweather_flume','dryweather flume','DF','Trockenwetterrinne','TR','Cunette de débit temps sec','CU','Canaletta per tempo secco','NULL','albie minora','NULL'); INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (63,'overflow','overflow','OV','Überlauf','UE','Déversoir','DE','Stramazzo','NULL','rrr_Ueberlauf','NULL'); INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (64,'overflow_char','overflow characteristic','OC','Überlaufcharakteristik','UC','Caractéristiques du déversoir','CD','Caratteristiche del stramazzo','NULL','rrr_Ueberlaufcharakteristik','NULL'); @@ -116,7 +124,7 @@ ALTER TABLE tww_sys.dictionary_od_table ADD CONSTRAINT unq_tww_is_dictonary_name INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (99980,'txt_text','TEXT','TX','Text','TX','Texte','TX','Testo','TX','rrr_TEXT','TX'); INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (99981,'txt_symbol','SYMBOL','SX','Symbol','SX','Symbole','SX','Simbolo','SX','rrr_SYMBOL','SX'); INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (99982,'re_maintenance_event_wastewater_structure','maintenance event wastewater structure','MW','Erhaltungsereignis Abwasserbauwerk','RA','Evénement de maintenance Ouvrage réseau AS','EZ','zzz_evento_di_mantenimento_manufatto_smaltimento_acque','NULL','rrr_Erhaltungsereignis_structura_canalizare','NULL'); - INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (99985,'re_building_group_disposal','building group disposal','ZZ','Gebaeudegruppe Entsorgung','ZZ','Bâtiments Evacuation','ZZ','Gruppo costruzione smaltimento','NULL','rrr_Gebaeudegruppe_Entsorgung','NULL'); + INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (99985,'re_building_group_disposal','building group disposal','ZZ','Gebaeudegruppe Entsorgung','ZZ','Bâtiments Evacuation','ZZ','Gruppo costruzione smaltimento','ZZ','rrr_Gebaeudegruppe_Entsorgung','ZZ'); INSERT INTO tww_sys.dictionary_od_table (id, tablename, name_en, shortcut_en, name_de, shortcut_de, name_fr, shortcut_fr, name_it, shortcut_it, name_ro, shortcut_ro) VALUES (99986,'progression_alternative','progression alternative','AX','Alternativ Verlauf','AX','Trace alternative','AX','Tracciato alternativo','AX','rrr_Alternativverlauf','AX'); DROP TYPE IF EXISTS tww_od.plantype; @@ -350,7 +358,7 @@ CREATE TABLE tww_sys.dictionary_od_field ( INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (3,999996,'waste_water_treatment','last_modification','last_modification','Letzte_Aenderung','DERNIERE_MODIFICATION','ultima_modifica','rrr_Letze_Aenderung','Last modification: INTERLIS_1_DATE','Letzte Änderung: INTERLIS_1_DATE','Dernière modification: INTERLIS_1_DATE','ultima_modifica: INTERLIS_1_DATE','rrr_Letzte Änderung: INTERLIS_1_DATE',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tww_od.plantype[],'true','TIMESTAMP','','','','','','','','','','',NULL,NULL); INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,6404,'reach','clear_height','clear_height','Lichte_Hoehe','HAUTEUR_MAX_PROFIL','altezza_profilo','inaltime_senina','Clear height (inside) of profile. Installed liners are not to be considered (-> Reliner_nominal width)','Maximale Innenhöhe des Rohrprofiles. Eingebaute Liner sind nicht zu berücksichtigen -> Reliner_Nennweite).','Hauteur interne maximale du profil du tube. Les revêtements installés ne doivent pas être pris en compte (-> Reliner_largeur nominale.).','Altezza interna massima del profilo del tubo. I liners installati non sono da considerare (-> Reliner_Nennweite).','Înal?imea interna maxima a profilului conductei. Garniturile încorporate nu trebuie luate în considerare (-> Dimensiunea nominala a relator)',ARRAY['Leitungskataster','Werkinformation','GEP_Verband','PAA','GEP_Traegerschaft','SAA']::tww_od.plantype[],'true','integer','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,99999); INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,128,'reach','coefficient_of_friction','coefficient_of_friction','Reibungsbeiwert','K_STRICKLER','zzz_Reibungsbeiwert','coeficient_frecare','yyy http://www.linguee.com/english-german/search?source=auto&query=reibungsbeiwert','Hydraulische Kenngrösse zur Beschreibung der Beschaffenheit der Kanalwandung. Beiwert für die Formeln nach Manning-Strickler (K oder kstr)','Constante de rugosité selon Manning-Strickler (K ou kstr)','zzz_Hydraulische Kenngrösse zur Beschreibung der Beschaffenheit der Kanalwandung. Beiwert für die Formeln nach Manning-Strickler (K oder kstr)','Coeficientul de frecare',ARRAY['Werkinformation']::tww_od.plantype[],'true','smallint','[m^(1/3)/s]','Manning-Strickler K or kstr [m^(1/3)/s]','[m^(1/3)/s]','Manning-Strickler K oder kstr [m^(1/3)/s]','[m^(1/3)/s]','Coefficient de rugosité selon Manning-Strickler (K ou kstr) [m^(1/3)/s]','[m^(1/3)/s]','Unità Manning-Strickler K o kstr [m^(1/3)/s]','[m^(1/3)/s]','rrr_Manning-Strickler K oder kstr [m^(1/3)/s]',0,999); - INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,4777,'reach','elevation_determination','elevation_determination','Hoehenbestimmung','DETERMINATION_ALTIMETRIQUE','determinazione_dell_altezza','determinare_altimetrica','Defines the elevation_determination of the reach.','Definiert die Hoehenbestimmung einer Haltung.','Définition de la détermination altimétrique d''un tronçon.','zzz_Definisce il determinazione dell''altezza del zzz.','Define?te înal?imea',ARRAY['Leitungskataster','Werkinformation','GEP_Traegerschaft','PAA','SAA']::tww_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,4777,'reach','elevation_determination','elevation_determination','Hoehenbestimmung','DETERMINATION_ALTIMETRIQUE','determinazione_dell_altezza','determinare_altimetrica','Defines the elevation_determination of the reach (progression3D).','Definiert die Hoehenbestimmung einer Haltung (Verlauf3D).','Définition de la détermination altimétrique d''un tronçon (TRACE3D).','zzz_Definisce il determinazione dell''altezza del tratta (tracciato3D).','rrr_Define?te înal?imea einer Haltung (traseu3d)',ARRAY['Leitungskataster','Werkinformation','GEP_Traegerschaft','PAA','SAA']::tww_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,8728,'reach','flow_time_dry_weather','flow_time_dry_weather','Fliesszeit_Trockenwetter','TEMPS_D_ECOULEMENT_TEMPS_SEC','zzz_Fliesszeit_Trockenwetter','rrr_Fliesszeit_Trockenwetter','Flow time in dry weather (daily mean)','Fliesszeit bei Trockenwetter (Tagesmittel)','Temps d''écoulement par temps sec (moyenne journalière)','zzz_empo di flusso in tempo secco (media giornaliera)','rrr_Fliesszeit bei Trockenwetter (Tagesmittel)',ARRAY['Werkinformation','GEP_Verband','GEP_Traegerschaft','PAA','SAA']::tww_od.plantype[],'true','decimal(7,0)','[s]','seconds [s]','[s]','Sekunden [s]','[s]','secondes [s]','[s]','seconde [s]','[s]','rrr_Sekunden [s]',0,1000000); INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,3629,'reach','horizontal_positioning','horizontal_positioning','Lagebestimmung','DETERMINATION_PLANIMETRIQUE','precisione_planimetrica','determinare_planimetrica','yyy_Definiert die Lagegenauigkeit der Verlaufspunkte.','Definiert die Lagegenauigkeit der Verlaufspunkte.','Définit la précision de la détermination du tracé.','Definisce la precisione planimetrica del tracciato','Determinare planimetrica',ARRAY['Leitungskataster','Werkinformation','GEP_Traegerschaft','PAA','SAA']::tww_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,9158,'reach','hydraulic_load_current','hydraulic_load_current','Hydr_Belastung_Ist','CHARGE_HYDR_ACTUELLE','carico_idraulico_attuale','rrr_Hydr_Belastung_Ist','Dimensioning of the discharge divided by the normal discharge capacity of the reach [%].','Dimensionierungsabfluss geteilt durch Normalabflusskapazität der Leitung [%].','Débit de dimensionnement divisé par la capacité d''écoulement normale de la conduite [%].','Deflusso di dimensionamento diviso per la capacità di deflusso normale della condotta [%]','rrr_Dimensionierungsabfluss geteilt durch Normalabflusskapazität der Leitung [%].',ARRAY['Werkinformation','GEP_Verband','PAA','GEP_Traegerschaft','SAA']::tww_od.plantype[],'true','smallint','[%]','percent [%]','[%]','Prozent [%]','[%]','pourcent [%]','[%]','percento [%]','[%]','rrr_Prozent [%]',0,1000); @@ -359,7 +367,7 @@ CREATE TABLE tww_sys.dictionary_od_field ( INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,144,'reach','length_effective','length_effective','LaengeEffektiv','L_EFFECTIVE','lunghezza_effettiva','lungime_efectiva','yyy_Tatsächliche schräge Länge (d.h. nicht in horizontale Ebene projiziert) inklusive Kanalkrümmungen','Tatsächliche schräge Länge (d.h. nicht in horizontale Ebene projiziert) inklusive Kanalkrümmungen','Longueur effective (non projetée) incluant les parties incurvées','Lunghezza obliqua effettiva (non proiettata) incluso le curve del canale','Lungime efectiva',ARRAY['Werkinformation','GEP_Verband','PAA','GEP_Traegerschaft','SAA']::tww_od.plantype[],'true','decimal(7,2)','[m]','meter [m], 2 decimal digits','[m]','Meter [m], 2 Dezimalstellen','[m]','mètres [m], 2 décimals','[m]','metro [m], 2 decimale','[m]','rrr_Meter [m], 2 Dezimalstellen',0,30000); INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,156,'reach','material','material','Material','MATERIAU','materiale','material','Material of reach / pipe','Rohrmaterial','Matériau du tuyau','Materiale del tubo','Material',ARRAY['Werkinformation','GEP_Traegerschaft','PAA','GEP_Verband','SAA']::tww_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,2233,'reach','progression','progression','Verlauf','TRACE','tracciato','traseu','Start, inflextion and endpoints of a pipe','Anfangs-, Knick- und Endpunkte der Leitung','Points de départ, intermédiaires et d’arrivée de la conduite.','Punti di partenza, intermedi e finali della canalizzazione','Startul/inflexiunile/capetele unei conducte',ARRAY['Leitungskataster','Werkinformation','GEP_Verband','PAA','GEP_Traegerschaft','SAA']::tww_od.plantype[],'true','geometry',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,5060,'reach','progression3d','progression3d','Verlauf3D','TRACE3D','tracciato3D','traseu_3d','Start, inflextion and endpoints of a pipe (3D coordinates)','Anfangs-, Knick- und Endpunkte der Leitung (3D Koordinaten)','Points de départ, intermédiaires et d’arrivée de la conduite (coordonnées 3D)','Punti di partenza, intermedi e finali della canalizzazione (coordinare 3D)','Startul/inflexiunile/capetele unei conducte (3D)',ARRAY['Leitungskataster','Werkinformation','GEP_Verband','PAA','GEP_Traegerschaft','SAA']::tww_od.plantype[],'true','geometry','[HKoord]','points with coordinates in the swiss national grid','[HKoord]','Punkte mit Schweizer Landeskoordinaten [HKoord]','[CoordH]','points avec coordonnées dans le système de coordonnées suisse','[HKoord]','Punti con coordinate nazionali svizzere','[HKoord]','rrr_Punkte mit Schweizer Landeskoordinaten',NULL,NULL); + INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,5060,'reach','progression3d','progression3d','Verlauf3D','TRACE3D','tracciato3D','traseu3d','Start, inflextion and endpoints of a pipe (3D coordinates)','Anfangs-, Knick- und Endpunkte der Leitung (3D Koordinaten)','Points de départ, intermédiaires et d’arrivée de la conduite (coordonnées 3D)','Punti di partenza, intermedi e finali della canalizzazione (coordinare 3D)','Startul/inflexiunile/capetele unei conducte (3D)',ARRAY['Leitungskataster','Werkinformation','GEP_Verband','PAA','GEP_Traegerschaft','SAA']::tww_od.plantype[],'true','geometry','[HKoord]','points with coordinates in the swiss national grid','[HKoord]','Punkte mit Schweizer Landeskoordinaten [HKoord]','[CoordH]','points avec coordonnées dans le système de coordonnées suisse','[HKoord]','Punti con coordinate nazionali svizzere','[HKoord]','rrr_Punkte mit Schweizer Landeskoordinaten',NULL,NULL); INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,6458,'reach','reliner_material','reliner_material','Reliner_Material','RELINING_MATERIAUX','zzz_Reliner_Material','material_reconditionare','Material of reliner','Material des Reliners','Materiaux du relining','zzz_Material des Reliners','Material recondi?ionare',ARRAY['Werkinformation']::tww_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,6470,'reach','reliner_nominal_size','reliner_nominal_size','Reliner_Nennweite','RELINER_DIAMETRE_NOMINALE','dimensione_nominale_del_rele','diametru_nominal_reconditionare','Clear height with installed liner (= clear height of the original pipe profile minus twice the wall thickness of the liner).','Lichte Höhe mit eingebautem Liner (=Lichte Höhe des ursprünglichen Rohrprofils minus doppelte Wandstärke des Liners).','Hauteur libre avec revêtement installé (= hauteur libre du profilé d''origine du tuyau moins deux fois l''épaisseur de la paroi du revêtement).','Altezza libera con il liner installato (= altezza libera del profilo del tubo originale meno il doppio dello spessore della parete del liner).','Înal?imea limpede cu captu?eala încorporata (= înal?imea libera a profilului ini?ial de ?eava minus de doua ori grosimea peretelui captu?elii).',ARRAY['Werkinformation','GEP_Traegerschaft','PAA','GEP_Verband','SAA']::tww_od.plantype[],'true','integer','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,99999); INSERT INTO tww_sys.dictionary_od_field (class_id, attribute_id, table_name, field_name, field_name_en, field_name_de, field_name_fr, field_name_it, field_name_ro, field_description_en, field_description_de, field_description_fr, field_description_it, field_description_ro, field_mandatory, field_visible, field_datatype, field_unit_en, field_unit_description_en, field_unit_de, field_unit_description_de, field_unit_fr, field_unit_description_fr, field_unit_it, field_unit_description_it, field_unit_ro, field_unit_description_ro, field_max, field_min) VALUES (31,6447,'reach','relining_construction','relining_construction','Reliner_Bautechnik','RELINING_TECHNIQUE','zzz_Reliner_Bautechnik','tehnica_reconditionare','yyy_Bautechnik für das Relining. Zusätzlich wird der Einbau des Reliners als Erhaltungsereignis abgebildet: Erhaltungsereignis.Art = Reparatur für Partieller_Liner, sonst Renovierung.','Bautechnik für das Relining. Zusätzlich wird der Einbau des Reliners als Erhaltungsereignis abgebildet: Erhaltungsereignis.Art = Reparatur für Partieller_Liner, sonst Renovierung.','Relining technique de construction. En addition la construction du reliner doit être modeler comme événement maintenance: Genre = reparation pour liner_partiel, autrement genre = renovation.','zzz_Bautechnik für das Relining. Zusätzlich wird der Einbau des Reliners als Erhaltungsereignis abgebildet: Erhaltungsereignis.Art = Reparatur für Partieller_Liner, sonst Renovierung.','Tehnica recondi?ionare',ARRAY['Werkinformation']::tww_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);