From ea7da0f0e09ddfedf16722c14b4e51561c590cfd Mon Sep 17 00:00:00 2001 From: SJiB Date: Mon, 28 Oct 2024 20:36:17 +0100 Subject: [PATCH 01/10] add comments 03_tdh_db_sia405.sql --- datamodel/changelogs/0001/03_tdh_db_sia405.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datamodel/changelogs/0001/03_tdh_db_sia405.sql b/datamodel/changelogs/0001/03_tdh_db_sia405.sql index 4a6da175..aa5731ef 100644 --- a/datamodel/changelogs/0001/03_tdh_db_sia405.sql +++ b/datamodel/changelogs/0001/03_tdh_db_sia405.sql @@ -202,7 +202,7 @@ COMMENT ON COLUMN tdh_od.pipe_point_feed.category IS ''; ALTER TABLE tdh_od.pipe_point_feed ADD COLUMN year_of_commissioning smallint ; COMMENT ON COLUMN tdh_od.pipe_point_feed.year_of_commissioning IS ''; ALTER TABLE tdh_od.pipe_point_feed ADD COLUMN year_of_reconstruction smallint ; -COMMENT ON COLUMN tdh_od.pipe_point_feed.year_of_reconstruction IS ''; +COMMENT ON COLUMN tdh_od.pipe_point_feed.year_of_reconstruction IS 'Year of reconstruction / Jahr des Umbaus / Année de transformation'; ALTER TABLE tdh_od.pipe_point_feed ADD COLUMN pressure smallint ; COMMENT ON COLUMN tdh_od.pipe_point_feed.pressure IS ' / Primaerer_Konstruktionsdruck (bar_Ue) / pression de construction primaire [bar]'; ALTER TABLE tdh_od.pipe_point_feed ADD COLUMN flow_temperature integer ; @@ -456,6 +456,7 @@ COMMENT ON COLUMN tdh_od.trench_point.name_number IS ' / désignation univoque'; -- CREATE INDEX in_tdh_trench_point_geometry_geometry ON tdh_od.trench_point USING gist (geometry_geometry ); -- COMMENT ON COLUMN tdh_od.trench_point.geometry_geometry IS ''; ALTER TABLE tdh_od.trench_point ADD COLUMN geometry3d_geometry geometry('POINTZ', :SRID); +COMMENT ON COLUMN tdh_od.trench_point IS '3D Situation / 3D Lage / 3D Positionnement'; CREATE INDEX in_tdh_trench_point_geometry3d_geometry ON tdh_od.trench_point USING gist (geometry3d_geometry ); ALTER TABLE tdh_od.trench_point ADD COLUMN horizontal_positioning integer ; From 5c48956a733a77a3a5022b711c3ab575eece2b72 Mon Sep 17 00:00:00 2001 From: SJiB Date: Mon, 28 Oct 2024 20:41:17 +0100 Subject: [PATCH 02/10] Update 09_tdh_dictionaries --- .../changelogs/0001/09_tdh_dictionaries.sql | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/datamodel/changelogs/0001/09_tdh_dictionaries.sql b/datamodel/changelogs/0001/09_tdh_dictionaries.sql index e020b6c6..897c6a97 100644 --- a/datamodel/changelogs/0001/09_tdh_dictionaries.sql +++ b/datamodel/changelogs/0001/09_tdh_dictionaries.sql @@ -1,6 +1,6 @@ ------ this file generates the tdh is_dictionary (Modul fernwaerme(based on SIA405_FERNWAERME_3D_2015_LV95 (Version 18.04.2018)) in en on TEKSI ------ For questions etc. please contact Stefan Burckhardt stefan.burckhardt@sjib.ch ------- version 30.05.2024 22:07:22 +------ version 28.10.2024 20:12:17 ------ with 3D coordinates CREATE TABLE tdh_sys.dictionary_od_table @@ -83,10 +83,10 @@ CREATE TABLE tdh_sys.dictionary_od_field ( - INSERT INTO tdh_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 (8005,8001,'pipe_section','name_number','name_number','Name_Nummer','Nom_numero','nome_numero','nume_numarul','NULL','NULL','NULL','NULL','',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tdh_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 (8005,8003,'pipe_section','geometry','geometry','Geometrie','Geometrie','geometria','geometria','NULL','NULL','avec points d’appuis en coordonnées nationales [mm]','NULL','',ARRAY['Werkinformation']::tdh_od.plantype[],'true','geometry',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tdh_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 (8005,8005,'pipe_section','horizontal_positioning','horizontal_positioning','Lagebestimmung','Determination_planimetrique','determinazione_posizione','precizie_pozitie','NULL','NULL','NULL','NULL','',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tdh_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 (8005,8009,'pipe_section','status','status','Status','Etat','stato','stare','Operating and planning status of the structure','Betriebs- bzw. Planungszustand des Bauwerks','Etat de fonctionnement et de planification de l’ouvrage','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,'extends value range of SIA405 status',NULL,'Erweitert Wertebereich von SIA405 Status',NULL,'extension valeurs SIA405 Etat',NULL,'dilatato codominio SIA405 Stato',NULL,'rrr_Erweitert Wertebereich von SIA405 Status',NULL,NULL); + INSERT INTO tdh_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 (8005,8001,'pipe_section','name_number','name_number','Name_Nummer','Nom_numero','nome_numero','nume_numarul','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8005,8003,'pipe_section','geometry','geometry','Geometrie','Geometrie','geometria','geometria','NULL','NULL','avec points d’appuis en coordonnées nationales [mm]','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','geometry',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8005,8005,'pipe_section','horizontal_positioning','horizontal_positioning','Lagebestimmung','Determination_planimetrique','determinazione_posizione','precizie_pozitie','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8005,8009,'pipe_section','status','status','Status','Etat','stato','stare','Operating and planning status of the structure','Betriebs- bzw. Planungszustand des Bauwerks','Etat de fonctionnement et de planification de l’ouvrage','Stato di funzionamento e di pianificazione del manufatto.','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,'extends value range of SIA405 status',NULL,'Erweitert Wertebereich von SIA405 Status',NULL,'extension valeurs SIA405 Etat',NULL,'dilatato codominio SIA405 Stato',NULL,'rrr_Erweitert Wertebereich von SIA405 Status',NULL,NULL); INSERT INTO tdh_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 (8005,8018,'pipe_section','function','function','Funktion','Fonction','funzione','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8005,8022,'pipe_section','pipe_type','pipe_type','Leitungsart','Genre_de_conduite','zzz_Leitungsart','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8005,8025,'pipe_section','fluent','fluent','Medium','Fluide','zzz_Medium','rrr_Medium','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); @@ -99,15 +99,15 @@ CREATE TABLE tdh_sys.dictionary_od_field ( INSERT INTO tdh_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 (8005,8055,'pipe_section','diameter_inner','diameter_inner','DurchmesserInnen','Diametre_interieur','zzz_DurchmesserInnen','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]',' millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,4000); INSERT INTO tdh_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 (8005,8056,'pipe_section','diameter_outer','diameter_outer','DurchmesserAussen','Diametre_exterieur','zzz_DurchmesserAussen','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]',' millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,4000); INSERT INTO tdh_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 (8005,8059,'pipe_section','nominal_diameter','nominal_diameter','Nennweite','Largeur_nominale','larghezza_nominale','diametrul_nominal','yyy_als TEXT, da zum Teil auch Doppelwerte mit Schrägstrich (eg. 1500/800)','als TEXT, da zum Teil auch Doppelwerte mit Schrägstrich (z.B. 1500/800)','comme TEXTE, parcequ''on a aussi des valeurs doubles (par example 1500/800)','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(10)',NULL,'as TEXT, because sometimes also double values with slash inbetween eg. 500/800',NULL,'als TEXT, da zum Teil auch Doppelwerte mit Schrägstrich (1500/1000)',NULL,'En tant que TEXT, car peut contenir des valeurs doubles avec barre oblique (1500/1000)',NULL,'come TESTO, poiché in alcuni casi valori doppi con slash (1500/1000)',NULL,'rrr_als TEXT, da zum Teil auch Doppelwerte mit Schrägstrich (1500/1000)',NULL,NULL); - INSERT INTO tdh_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 (8005,8061,'pipe_section','length1','length1','Laenge1','Longueur1','lunghezza1','lungime1','yyy_Laenge_abgewickelt','Laenge_abgewickelt','longueur développée','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimétre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,999999); - INSERT INTO tdh_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 (8005,8062,'pipe_section','length2','length2','Laenge2','Longueur2','lunghezza2','lungime2','yyy_Laenge_berechnet','Laenge_berechnet','longueur calculée','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimétre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,999999); + INSERT INTO tdh_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 (8005,8061,'pipe_section','length1','length1','Laenge1','Longueur1','lunghezza1','lungime1','yyy_Laenge_abgewickelt','Laenge_abgewickelt','longueur développée','zzz_Laenge_abgewickelt','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimétre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,999999); + INSERT INTO tdh_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 (8005,8062,'pipe_section','length2','length2','Laenge2','Longueur2','lunghezza2','lungime2','yyy_Laenge_berechnet','Laenge_berechnet','longueur calculée','zzz_Laenge_berechnet','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimétre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,999999); INSERT INTO tdh_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 (8005,8065,'pipe_section','pipe_brand','pipe_brand','Rohrfabrikat','Fabrication_tube','zzz_Rohrfabrikat','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8005,8067,'pipe_section','pipeline_quality','pipeline_quality','Rohrqualitaet','Qualite_tube','zzz_Rohrqualitaet','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8005,8075,'pipe_section','installation_year','installation_year','Einbaujahr','Annee_de_construction','anno_costruzione','anul_instalarii','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint',NULL,' If unknown set lowest value of value range',NULL,'Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',NULL,'Si inconnu ajouter la plus bas valeur du domaine des valeurs',NULL,'Se sconosciuto, inserire valore minimo dell’intervallo di valori',NULL,'rrr_Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',1800,2100); INSERT INTO tdh_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 (8005,8077,'pipe_section','owner','owner','Eigentuemer','Proprietaire','proprietario','proprietar','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(255)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8005,8079,'pipe_section','pipeline_company','pipeline_company','Rohrltg_unternehmung','Entreprise_tuyauterie','zzz_Rohrltg_unternehmung','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tdh_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 (8005,8081,'pipe_section','documentation','documentation','Dokumentation','Documentation','zzz_Dokumentation','','yyy_Zeichnungsnummer / Dossiernummer','Zeichnungsnummer / Dossiernummer','numéro de dessin / numéro de dossier','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tdh_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 (8005,8082,'pipe_section','mandate','mandate','Auftrag','Mandat','zzz_Auftrag','','zzz_désignation du mandat','Bezeichnung des Auftrags','désignation du mandat','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8005,8081,'pipe_section','documentation','documentation','Dokumentation','Documentation','zzz_Dokumentation','','yyy_Zeichnungsnummer / Dossiernummer','Zeichnungsnummer / Dossiernummer','numéro de dessin / numéro de dossier','zzz_Zeichnungsnummer / Dossiernummer','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8005,8082,'pipe_section','mandate','mandate','Auftrag','Mandat','zzz_Auftrag','','zzz_désignation du mandat','Bezeichnung des Auftrags','désignation du mandat','yyy_désignation du mandat','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8005,8085,'pipe_section','remark','remark','Bemerkung','Remarque','osservazione','observatie','General remarks','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(80)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8005,9474,'pipe_section','geometry3d','geometry3d','Geometrie3D','Geometrie3D','geometria3d','geometria3D','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_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 tdh_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 (8005,999999,'pipe_section','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID - Unique ID','OBJ_ID - eindeutige Kennung','OBJ_ID - ID unique','OBJ_ID - identificatore univoco','rrr_OBJ_ID - eindeutige Kennung',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(16)','','','','','','','','','','',NULL,NULL); @@ -118,7 +118,7 @@ CREATE TABLE tdh_sys.dictionary_od_field ( INSERT INTO tdh_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 (8006,8089,'pipe_point','symbolori','symbolori','SymbolOri','SymboleOri','simboloori','simbolori','Default: 90 degree','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','decimal(4,1)','[degrees]','Degree','[Altgrad]','[Altgrad]','[degres]','degrées [degres]','[vecchi gradi]','vecchi gradi','rrr_[Altgrad]','rrr_Altgrad',0,359.9); INSERT INTO tdh_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 (8006,8091,'pipe_point','horizontal_positioning','horizontal_positioning','Lagebestimmung','Determination_planimetrique','determinazione_posizione','precizie_pozitie','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8006,8095,'pipe_point','altitude1','altitude1','Hoehe1','Altitude1','livello1','altitudine1','NULL','OK Mantelrohr','bord supérieur tube préisolé','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','decimal(7,3)','[m.a.sl.]','meters above sea level [m.a.sl.]','[M.ü.M.]','Meter über Meer [M.ü.M.]','[m.s.m.]','mètres sur mers [m.s.m.]','[m s.l.m.]','metro sul livello del mare [m s.l.m.]','rrr_[M.ü.M.]','rrr_Meter über Meer [M.ü.M.]',-200,5000); - INSERT INTO tdh_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 (8006,8096,'pipe_point','altitude2','altitude2','Hoehe2','Altitude2','livello2','altitudine2','yyy_Rohrachse','Rohrachse','axe du tube','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','decimal(7,3)','[m.a.sl.]','meters above sea level [m.a.sl.]','[M.ü.M.]','Meter über Meer [M.ü.M.]','[m.s.m.]','mètres sur mers [m.s.m.]','[m s.l.m.]','metro sul livello del mare [m s.l.m.]','rrr_[M.ü.M.]','rrr_Meter über Meer [M.ü.M.]',-200,5000); + INSERT INTO tdh_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 (8006,8096,'pipe_point','altitude2','altitude2','Hoehe2','Altitude2','livello2','altitudine2','yyy_Rohrachse','Rohrachse','axe du tube','zzz_Rohrachse','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','decimal(7,3)','[m.a.sl.]','meters above sea level [m.a.sl.]','[M.ü.M.]','Meter über Meer [M.ü.M.]','[m.s.m.]','mètres sur mers [m.s.m.]','[m s.l.m.]','metro sul livello del mare [m s.l.m.]','rrr_[M.ü.M.]','rrr_Meter über Meer [M.ü.M.]',-200,5000); INSERT INTO tdh_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 (8006,8099,'pipe_point','elevation_determination','elevation_determination','Hoehenbestimmung','Determination_altimetrique','determinazione_dell_altezza','determinare_altimetrica','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8006,8103,'pipe_point','owner','owner','Eigentuemer','Proprietaire','proprietario','proprietar','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(255)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8006,8105,'pipe_point','remark','remark','Bemerkung','Remarque','osservazione','observatie','General remarks','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(80)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); @@ -136,13 +136,13 @@ CREATE TABLE tdh_sys.dictionary_od_field ( INSERT INTO tdh_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 (8008,8162,'pipe_point_feed','aperture_value','aperture_value','Blendenwert','Valeur_diaphragme','zzz_Blendenwert','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[kW]','kilowatt [kW]','[kW]','Kilowatt [kW]','[kW]','kilowatt [kW]','[kW]','chilowatt [kW]','[kW]','rrr_kilowatt [kW]',0,9999999999); INSERT INTO tdh_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 (8008,8166,'pipe_point_feed','q_subscribed','q_subscribed','Q_abonniert','Q_abonnee','Q_abbonata','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','decimal(7,3)','[m3/h]','cubic meter per hour [m3/h]','[m3/h]','Kubikmeter pro Stunde [m3/h]','[m3/h]','cubicmetre par heur [m3/h]','[m3/h]','Metri cubi all’ora [m3/h]','[m3/h]','rrr_Kubikmeter pro Stunde [m3/h]',0,9999.999); INSERT INTO tdh_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 (8008,8168,'pipe_point_feed','category','category','Kategorie','Categorie','categoria','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tdh_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 (8008,8176,'pipe_point_feed','year_of_commissioning','year_of_commissioning','Inbetriebsetzung','Mise_en_service','zzz_Inbetriebsetzung','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint',NULL,' If unknown set lowest value of value range',NULL,'Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',NULL,'Si inconnu ajouter la plus bas valeur du domaine des valeurs',NULL,'Se sconosciuto, inserire valore minimo dell’intervallo di valori',NULL,'rrr_Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',1800,2100); - INSERT INTO tdh_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 (8008,8177,'pipe_point_feed','year_of_reconstruction','year_of_reconstruction','Umbau','Transformation','zzz_Umbau','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint',NULL,' If unknown set lowest value of value range',NULL,'Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',NULL,'Si inconnu ajouter la plus bas valeur du domaine des valeurs',NULL,'Se sconosciuto, inserire valore minimo dell’intervallo di valori',NULL,'rrr_Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',1800,2100); + INSERT INTO tdh_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 (8008,8176,'pipe_point_feed','year_of_commissioning','year_of_commissioning','Inbetriebsetzung','Mise_en_service','zzz_Inbetriebsetzung','rrr_Inbetriebsetzung','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint',NULL,' If unknown set lowest value of value range',NULL,'Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',NULL,'Si inconnu ajouter la plus bas valeur du domaine des valeurs',NULL,'Se sconosciuto, inserire valore minimo dell’intervallo di valori',NULL,'rrr_Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',1800,2100); + INSERT INTO tdh_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 (8008,8177,'pipe_point_feed','year_of_reconstruction','year_of_reconstruction','Umbau','Transformation','zzz_Umbau','rrr_Umbau','Year of reconstruction','Jahr des Umbaus','Année de transformation','zzz_Jahr des Umbaus','rrr_Jahr des Umbaus',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint',NULL,' If unknown set lowest value of value range',NULL,'Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',NULL,'Si inconnu ajouter la plus bas valeur du domaine des valeurs',NULL,'Se sconosciuto, inserire valore minimo dell’intervallo di valori',NULL,'rrr_Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',1800,2100); INSERT INTO tdh_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 (8008,8180,'pipe_point_feed','pressure','pressure','Druck','Pression','zzz_Druck','','NULL','Primaerer_Konstruktionsdruck (bar_Ue)','pression de construction primaire [bar]','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint','[bar]','Bar [bar]','[bar]','Bar [bar]','[bar]','bar [bar]','[bar]','Bar [bar]','[bar]','rrr_Bar [bar]',0,9999); INSERT INTO tdh_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 (8008,8182,'pipe_point_feed','flow_temperature','flow_temperature','Vorlauftemperatur','Temperature_aller','zzz_Vorlauftemperatur','','NULL','NULL','température','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[°C]',NULL,'[°C]',NULL,'[°C]',NULL,'[°C]',NULL,'[°C]',NULL,0,9999); INSERT INTO tdh_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 (8008,8183,'pipe_point_feed','return_flow_temperature','return_flow_temperature','Ruecklauftemperatur','Temperature_retour','zzz_Ruecklauftemperatur','','NULL','NULL','température','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[°C]',NULL,'[°C]',NULL,'[°C]',NULL,'[°C]',NULL,'[°C]',NULL,0,9999); - INSERT INTO tdh_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 (8008,8186,'pipe_point_feed','heated_volume','heated_volume','Geheiztes_Volumen','Volume_chauffe','zzz_Geheiztes_Volumen','','yyy_Beheiztes Volumen','Beheiztes Volumen','xxx_Beheiztes Volumen','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[m3]','cubic meter [m3]','[m3]','Kubikmeter [m3]','[m3]','mètre cube [m3]','[m3]','metro cubo [m3]','[m3]','rrr_Kubikmeter [m3]',0,9999); - INSERT INTO tdh_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 (8008,8188,'pipe_point_feed','heat_consumption','heat_consumption','Waermeverbrauch','Chaleur_consommee','zzz_Waermeverbrauch','','per year','Pro Jahr','par année','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[kWh]','kilowatt hours [kWh]','[kWh]','Kilowattstunden [kWh]','[kWh]','kilowatt heures [kWh]','[kWh]','chilowattora [kWh]','[kWh]','rrr_Kilowattstunden [kWh]',0,9999999999); + INSERT INTO tdh_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 (8008,8186,'pipe_point_feed','heated_volume','heated_volume','Geheiztes_Volumen','Volume_chauffe','zzz_Geheiztes_Volumen','','yyy_Beheiztes Volumen','Beheiztes Volumen','xxx_Beheiztes Volumen','zzz_Beheiztes Volumen','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[m3]','cubic meter [m3]','[m3]','Kubikmeter [m3]','[m3]','mètre cube [m3]','[m3]','metro cubo [m3]','[m3]','rrr_Kubikmeter [m3]',0,9999); + INSERT INTO tdh_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 (8008,8188,'pipe_point_feed','heat_consumption','heat_consumption','Waermeverbrauch','Chaleur_consommee','zzz_Waermeverbrauch','','per year','Pro Jahr','par année','par anno','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[kWh]','kilowatt hours [kWh]','[kWh]','Kilowattstunden [kWh]','[kWh]','kilowatt heures [kWh]','[kWh]','chilowattora [kWh]','[kWh]','rrr_Kilowattstunden [kWh]',0,9999999999); INSERT INTO tdh_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 (8008,8190,'pipe_point_feed','power_output','power_output','Leistung','Puissance','zzz_Leistung','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer','[kW]','kilowatt [kW]','[kW]','Kilowatt [kW]','[kW]','kilowatt [kW]','[kW]','chilowatt [kW]','[kW]','rrr_kilowatt [kW]',0,9999999999); INSERT INTO tdh_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 (8009,8192,'structure','name_number','name_number','Name_Nummer','Nom_numero','nome_numero','nume_numarul','NULL','z.B. Bauwerksname','par ex. nom de l’ouvrage','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8009,8194,'structure','network_area','network_area','Netzgebiet','Zone_du_reseau','area_di_rete','zona_retelei','NULL','Ortsbezeichnung','désignation du lieu','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); @@ -177,8 +177,8 @@ CREATE TABLE tdh_sys.dictionary_od_field ( INSERT INTO tdh_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 (8009,999996,'structure','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']::tdh_od.plantype[],'true','TIMESTAMP','','','','','','','','','','',NULL,NULL); INSERT INTO tdh_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 (8010,8288,'trench','name_number','name_number','Name_Nummer','Nom_numero','nome_numero','nume_numarul','NULL','Eindeutige Bezeichnung','désignation univoque','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8010,8290,'trench','geometry','geometry','Geometrie','Geometrie','geometria','geometria','yyy_offener oder geschlossener Linienzug, Stützpunkte in Landeskoordinaten','offener oder geschlossener Linienzug, Stützpunkte in Landeskoordinaten','polyligne ouverte ou fermée avec des points d’appui en coordonnées nationales','zzz_offener oder geschlossener Linienzug, Stützpunkte in Landeskoordinaten','rrr_offener oder geschlossener Linienzug, Stützpunkte in Landeskoordinaten',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','geometry','[LKoord]','points with coordinates in the swiss national grid','[LKoord]','Punkte mit Schweizer Landeskoordinaten','[CoordNat]','points avec coordonnées dans le système de coordonnées suisse','[LKoord]','zzz_Punkte mit Schweizer Landeskoordinaten','[LKoord]','rrr_Punkte mit Schweizer Landeskoordinaten',NULL,NULL); - INSERT INTO tdh_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 (8010,8291,'trench','geometry3d','geometry3d','Geometrie3D','Geometrie3D','geometria3d','geometria3D','yyyy_offener oder geschlossener Linienzug, Stützpunkte in Landeskoordinaten','offener oder geschlossener Linienzug, Stützpunkte in Landeskoordinaten','polyligne fermée ou ouverte avec des points d’appui en coordonnées nationales','NULL','rrr_offener oder geschlossener Linienzug, Stützpunkte in Landeskoordinaten',ARRAY['Leitungskataster','Werkinformation']::tdh_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]','zzz_Punkte mit Schweizer Landeskoordinaten','[HKoord]','rrr_Punkte mit Schweizer Landeskoordinaten [HKoord]',NULL,NULL); - INSERT INTO tdh_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 (8010,8294,'trench','horizontal_positioning','horizontal_positioning','Lagebestimmung','Determination_planimetrique','determinazione_posizione','precizie_pozitie','NULL','NULL','NULL','NULL','rrr_offener oder geschlossener Linienzug, Stützpunkte in Landeskoordinaten',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8010,8291,'trench','geometry3d','geometry3d','Geometrie3D','Geometrie3D','geometria3d','geometria3D','yyyy_offener oder geschlossener Linienzug, Stützpunkte in Landeskoordinaten','offener oder geschlossener Linienzug, Stützpunkte in Landeskoordinaten','polyligne fermée ou ouverte avec des points d’appui en coordonnées nationales','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_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]','zzz_Punkte mit Schweizer Landeskoordinaten','[HKoord]','rrr_Punkte mit Schweizer Landeskoordinaten [HKoord]',NULL,NULL); + INSERT INTO tdh_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 (8010,8294,'trench','horizontal_positioning','horizontal_positioning','Lagebestimmung','Determination_planimetrique','determinazione_posizione','precizie_pozitie','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8010,8295,'trench','status','status','Status','Etat','stato','stare','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,'extends value range of SIA405 status',NULL,'Erweitert Wertebereich von SIA405 Status',NULL,'extension valeurs SIA405 Etat',NULL,'dilatato codominio SIA405 Stato',NULL,'rrr_Erweitert Wertebereich von SIA405 Status',NULL,NULL); INSERT INTO tdh_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 (8010,8306,'trench','trench_type','trench_type','Trassetyp','Type_de_trace','zzz_Trassetyp','','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8010,8307,'trench','trench_width','trench_width','Trassebreite','Largeur_du_trace','zzz_Trassebreite','','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]',' millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,4000); @@ -192,7 +192,7 @@ CREATE TABLE tdh_sys.dictionary_od_field ( INSERT INTO tdh_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 (8010,8342,'trench','documentation','documentation','Dokumentation','Documentation','zzz_Dokumentation','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8010,8344,'trench','mandate','mandate','Auftrag','Mandat','zzz_Auftrag','','NULL','z.B. Auftragsnummer','par ex. numéro du mandat','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8010,8346,'trench','remark','remark','Bemerkung','Remarque','osservazione','observatie','General remarks','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(80)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tdh_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 (8010,8348,'trench','depth','depth','Maechtigkeit','Epaisseur','spessore','adancime','yyy_Mächtigkeit (Höhe) eines Objektes [mm]. Differenz Sohlenkote minus Deckenkote. Vorzeichen abhängig von der Referenzebenen / Referenzpunkt des LKObjektes.','Mächtigkeit (Höhe) eines Objektes [mm]. Differenz Sohlenkote minus Deckenkote. Vorzeichen abhängig von der Referenzebenen / Referenzpunkt des LKObjektes.','xxx_Mächtigkeit (Höhe) eines Objektes [mm]. Differenz Sohlenkote minus Deckenkote. Vorzeichen abhängig von der Referenzebenen / Referenzpunkt des LKObjektes.','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',-99999,99999); + INSERT INTO tdh_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 (8010,8348,'trench','depth','depth','Maechtigkeit','Epaisseur','spessore','adancime','yyy_Mächtigkeit (Höhe) eines Objektes [mm]. Differenz Sohlenkote minus Deckenkote. Vorzeichen abhängig von der Referenzebenen / Referenzpunkt des LKObjektes.','Mächtigkeit (Höhe) eines Objektes [mm]. Differenz Sohlenkote minus Deckenkote. Vorzeichen abhängig von der Referenzebenen / Referenzpunkt des LKObjektes.','xxx_Mächtigkeit (Höhe) eines Objektes [mm]. Differenz Sohlenkote minus Deckenkote. Vorzeichen abhängig von der Referenzebenen / Referenzpunkt des LKObjektes.','zzz_Mächtigkeit (Höhe) eines Objektes [mm]. Differenz Sohlenkote minus Deckenkote. Vorzeichen abhängig von der Referenzebenen / Referenzpunkt des LKObjektes.','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',-99999,99999); INSERT INTO tdh_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 (8010,999999,'trench','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID - Unique ID','OBJ_ID - eindeutige Kennung','OBJ_ID - ID unique','OBJ_ID - identificatore univoco','rrr_OBJ_ID - eindeutige Kennung',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(16)','','','','','','','','','','',NULL,NULL); INSERT INTO tdh_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 (8010,999998,'trench','dataowner','dataowner','Datenherr','MAITRE_DES_DONNEES','proprietario_dati','rrr_Datenherr','dataowner - this is the person or body who is allowed to delete, change or maintain this object','Metaattribut Datenherr ist diejenige Person oder Stelle, die berechtigt ist, diesen Datensatz zu löschen, zu ändern bzw. zu verwalten','Maître des données gestionnaire de données, qui est la personne ou l''organisation autorisée pour gérer, modifier ou supprimer les données de cette table/classe','zzz_Metaattribut L''attributo proprietario dati si riferisce alla persona o ente che è autorizzato a eliminare, modificare o gestire i dati','rrr_Metaattribut Datenherr ist diejenige Person oder Stelle, die berechtigt ist, diesen Datensatz zu löschen, zu ändern bzw. zu verwalten',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(80)','','','','','','','','','','',NULL,NULL); INSERT INTO tdh_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 (8010,999997,'trench','provider','provider','Datenlieferant','FOURNISSEUR_DES_DONNEES','fornitore_dati','rrr_Datenlieferant','Metaattribute provider - this is the person or body who delivered the data','Metaattribut Datenlieferant ist diejenige Person oder Stelle, die die Daten geliefert hat','FOURNISSEUR DES DONNEES Organisation qui crée l’enregistrement de ces données','zzz_Metaattribut L''attributo fornitore dati si riferisce alla persona o ente che ha fornito i dati','rrr_Metaattribut Datenlieferant ist diejenige Person oder Stelle, die die Daten geliefert hat',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(80)','','','','','','','','','','',NULL,NULL); @@ -208,8 +208,8 @@ CREATE TABLE tdh_sys.dictionary_od_field ( INSERT INTO tdh_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 (8011,8375,'trench_point','elevation_determination','elevation_determination','Hoehenbestimmung','Determination_altimetrique','determinazione_dell_altezza','determinare_altimetrica','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8011,8379,'trench_point','owner','owner','Eigentuemer','Proprietaire','proprietario','proprietar','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','varchar(255)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8011,8381,'trench_point','remark','remark','Bemerkung','Remarque','osservazione','observatie','General remarks','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(80)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tdh_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 (8011,8383,'trench_point','dimension1','dimension1','Dimension1','Dimension1','dimensione1','dimensiune1','yyy_Dimension1 für Schachtöffnung, Montageeinstieg','Dimension1 für Schachtöffnung, Montageeinstieg','pour chambre d’accès et ouverture de montage','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]',' millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,4000); - INSERT INTO tdh_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 (8011,8385,'trench_point','depth','depth','Maechtigkeit','Epaisseur','spessore','adancime','yyy_Funktionsattribut Mächtigkeit (Höhe) eines Objektes [mm]. Vorzeichen abhängig von der Referenzebenen / Referenzpunkt des LKObjektes.','Funktionsattribut Mächtigkeit (Höhe) eines Objektes [mm]. Vorzeichen abhängig von der Referenzebenen / Referenzpunkt des LKObjektes.','xxx_ALTITUDE_REGARD_CANIVEAU moins ALTITUDE_RADIER_CANIVEAU pour ventilation, drainage et points fixes fonction (valeur calculée) = ALTITUDE_REGARD_ACCES moins ALTITUDE_REGARD_CANIVEAU pour chambre d’accès et ouverture demontage','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',-99999,99999); + INSERT INTO tdh_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 (8011,8383,'trench_point','dimension1','dimension1','Dimension1','Dimension1','dimensione1','dimensiune1','yyy_Dimension1 für Schachtöffnung, Montageeinstieg','Dimension1 für Schachtöffnung, Montageeinstieg','pour chambre d’accès et ouverture de montage','zzz_Dimension1 für Schachtöffnung, Montageeinstieg','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]',' millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,4000); + INSERT INTO tdh_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 (8011,8385,'trench_point','depth','depth','Maechtigkeit','Epaisseur','spessore','adancime','yyy_Funktionsattribut Mächtigkeit (Höhe) eines Objektes [mm]. Vorzeichen abhängig von der Referenzebenen / Referenzpunkt des LKObjektes.','Funktionsattribut Mächtigkeit (Höhe) eines Objektes [mm]. Vorzeichen abhängig von der Referenzebenen / Referenzpunkt des LKObjektes.','xxx_ALTITUDE_REGARD_CANIVEAU moins ALTITUDE_RADIER_CANIVEAU pour ventilation, drainage et points fixes fonction (valeur calculée) = ALTITUDE_REGARD_ACCES moins ALTITUDE_REGARD_CANIVEAU pour chambre d’accès et ouverture demontage','zzz_Funktionsattribut Mächtigkeit (Höhe) eines Objektes [mm]. Vorzeichen abhängig von der Referenzebenen / Referenzpunkt des LKObjektes.','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',-99999,99999); INSERT INTO tdh_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 (8011,999999,'trench_point','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID - Unique ID','OBJ_ID - eindeutige Kennung','OBJ_ID - ID unique','OBJ_ID - identificatore univoco','rrr_OBJ_ID - eindeutige Kennung',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(16)','','','','','','','','','','',NULL,NULL); INSERT INTO tdh_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 (8011,999998,'trench_point','dataowner','dataowner','Datenherr','MAITRE_DES_DONNEES','proprietario_dati','rrr_Datenherr','dataowner - this is the person or body who is allowed to delete, change or maintain this object','Metaattribut Datenherr ist diejenige Person oder Stelle, die berechtigt ist, diesen Datensatz zu löschen, zu ändern bzw. zu verwalten','Maître des données gestionnaire de données, qui est la personne ou l''organisation autorisée pour gérer, modifier ou supprimer les données de cette table/classe','zzz_Metaattribut L''attributo proprietario dati si riferisce alla persona o ente che è autorizzato a eliminare, modificare o gestire i dati','rrr_Metaattribut Datenherr ist diejenige Person oder Stelle, die berechtigt ist, diesen Datensatz zu löschen, zu ändern bzw. zu verwalten',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(80)','','','','','','','','','','',NULL,NULL); INSERT INTO tdh_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 (8011,999997,'trench_point','provider','provider','Datenlieferant','FOURNISSEUR_DES_DONNEES','fornitore_dati','rrr_Datenlieferant','Metaattribute provider - this is the person or body who delivered the data','Metaattribut Datenlieferant ist diejenige Person oder Stelle, die die Daten geliefert hat','FOURNISSEUR DES DONNEES Organisation qui crée l’enregistrement de ces données','zzz_Metaattribut L''attributo fornitore dati si riferisce alla persona o ente che ha fornito i dati','rrr_Metaattribut Datenlieferant ist diejenige Person oder Stelle, die die Daten geliefert hat',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(80)','','','','','','','','','','',NULL,NULL); From 5620962b4b341873cf7201ce7817298941c42d3e Mon Sep 17 00:00:00 2001 From: SJiB Date: Mon, 28 Oct 2024 20:51:35 +0100 Subject: [PATCH 03/10] cosmetic corrections 03_tdh_control_cable_db_sia405.sql --- .../changelogs/0001/03_tdh_control_cable_db_sia405.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/datamodel/changelogs/0001/03_tdh_control_cable_db_sia405.sql b/datamodel/changelogs/0001/03_tdh_control_cable_db_sia405.sql index 55111d77..4964d13a 100644 --- a/datamodel/changelogs/0001/03_tdh_control_cable_db_sia405.sql +++ b/datamodel/changelogs/0001/03_tdh_control_cable_db_sia405.sql @@ -116,7 +116,7 @@ COMMENT ON COLUMN tdh_od.sia405cc_cable.geometry3d_geometry IS ''; ALTER TABLE tdh_od.sia405cc_cable ADD COLUMN elevation_determination integer ; COMMENT ON COLUMN tdh_od.sia405cc_cable.elevation_determination IS ''; ALTER TABLE tdh_od.sia405cc_cable ADD COLUMN depth smallint ; -COMMENT ON COLUMN tdh_od.sia405cc_cable.depth IS 'Extension 3D, depth (height) of an object [mm]. / Erweiterung 3D, Mächtigkeit (Höhe) eines Objektes [mm]. / Extension 3D, épaisseur (hauteur) d''un objet [mm].'; +COMMENT ON COLUMN tdh_od.sia405cc_cable.depth IS 'Extension 3D, depth (height) of an object [mm]. / Erweiterung 3D Mächtigkeit (Höhe) eines Objektes [mm]. / Extension 3D, épaisseur (hauteur) d''un objet [mm].'; ALTER TABLE tdh_od.sia405cc_cable ADD COLUMN last_modification TIMESTAMP without time zone DEFAULT now(); COMMENT ON COLUMN tdh_od.sia405cc_cable.last_modification IS 'Last modification / Letzte_Aenderung / Derniere_modification: INTERLIS_1_DATE'; ALTER TABLE tdh_od.sia405cc_cable ADD COLUMN fk_dataowner varchar(16); @@ -227,10 +227,10 @@ ALTER TABLE tdh_vl.sia405cc_cable_elevation_determination ADD CONSTRAINT pkey_td ON UPDATE RESTRICT ON DELETE RESTRICT; --------- Relations to class organisation for dataowner and provider (new 3.11.2014); -ALTER TABLE tdh_od.sia405cc_cable_point ADD CONSTRAINT rel_od_sia405cc_cable_point_fk_dataowner FOREIGN KEY (fk_dataowner) REFERENCES tdh_od.organisation(obj_id) DEFERRABLE INITIALLY DEFERRED; -ALTER TABLE tdh_od.sia405cc_cable_point ADD CONSTRAINT rel_od_sia405cc_cable_point_fk_dataprovider FOREIGN KEY (fk_provider) REFERENCES tdh_od.organisation(obj_id) DEFERRABLE INITIALLY DEFERRED; -ALTER TABLE tdh_od.sia405cc_cable ADD CONSTRAINT rel_od_sia405cc_cable_fk_dataowner FOREIGN KEY (fk_dataowner) REFERENCES tdh_od.organisation(obj_id) DEFERRABLE INITIALLY DEFERRED; -ALTER TABLE tdh_od.sia405cc_cable ADD CONSTRAINT rel_od_sia405cc_cable_fk_dataprovider FOREIGN KEY (fk_provider) REFERENCES tdh_od.organisation(obj_id) DEFERRABLE INITIALLY DEFERRED; +ALTER TABLE tdh_od.sia405cc_cable_point ADD CONSTRAINT rel_od_sia405cc_cable_point_fk_dataowner FOREIGN KEY (fk_dataowner) REFERENCES tdh_od.organisation(obj_id) DEFERRABLE INITIALLY DEFERRED; +ALTER TABLE tdh_od.sia405cc_cable_point ADD CONSTRAINT rel_od_sia405cc_cable_point_fk_dataprovider FOREIGN KEY (fk_provider) REFERENCES tdh_od.organisation(obj_id) DEFERRABLE INITIALLY DEFERRED; +ALTER TABLE tdh_od.sia405cc_cable ADD CONSTRAINT rel_od_sia405cc_cable_fk_dataowner FOREIGN KEY (fk_dataowner) REFERENCES tdh_od.organisation(obj_id) DEFERRABLE INITIALLY DEFERRED; +ALTER TABLE tdh_od.sia405cc_cable ADD CONSTRAINT rel_od_sia405cc_cable_fk_dataprovider FOREIGN KEY (fk_provider) REFERENCES tdh_od.organisation(obj_id) DEFERRABLE INITIALLY DEFERRED; ------ Indexes on identifiers From 733b76aa5e0f0369b1a355911c5ecdd6a16c46e9 Mon Sep 17 00:00:00 2001 From: SJiB Date: Mon, 28 Oct 2024 20:53:24 +0100 Subject: [PATCH 04/10] Update 09_tdh_control_cable_dictionaries.sql --- .../09_tdh_control_cable_dictionaries.sql | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/datamodel/changelogs/0001/09_tdh_control_cable_dictionaries.sql b/datamodel/changelogs/0001/09_tdh_control_cable_dictionaries.sql index 62384946..d97d73bd 100644 --- a/datamodel/changelogs/0001/09_tdh_control_cable_dictionaries.sql +++ b/datamodel/changelogs/0001/09_tdh_control_cable_dictionaries.sql @@ -1,6 +1,6 @@ ------- this file generates the tdh is_dictionary (Modul fernwirkkabel(2020)) in en on TEKSI +------ this file generates the tdh is_dictionary (Modul fernwirkkabel(based on SIA405_FERNWIRKKABEL_3D_2015_LV95 (Version 18.04.2018)) in en on TEKSI ------ For questions etc. please contact Stefan Burckhardt stefan.burckhardt@sjib.ch ------- version 27.05.2024 11:50:22 +------ version 28.10.2024 20:47:44 ------ with 3D coordinates INSERT INTO tdh_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 (8500,'sia405cc_cable','cable','CB','Kabel','','Cable','','Cavo','NULL','Cablu','NULL'); @@ -9,9 +9,9 @@ - INSERT INTO tdh_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 (8500,9327,'sia405cc_cable','name_number','name_number','Name_Nummer','Nom_numero','nome_numero','nume_numarul','NULL','z.B. Kabelpunktanfang_Kabelpunkteende','xxx_z.B. Point_cableanfang_Point_cableeende','NULL','',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tdh_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 (8500,9328,'sia405cc_cable','geometry','geometry','Geometrie','Geometrie','geometria','geometria','NULL','NULL','NULL','NULL','',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','geometry',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tdh_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 (8500,9329,'sia405cc_cable','function','function','Funktion','Fonction','zzz_Funktion','zzz_Funktion','NULL','NULL','NULL','NULL','',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8500,9327,'sia405cc_cable','name_number','name_number','Name_Nummer','Nom_numero','nome_numero','nume_numarul','NULL','z.B. Kabelpunktanfang_Kabelpunkteende','xxx_z.B. Point_cableanfang_Point_cableeende','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8500,9328,'sia405cc_cable','geometry','geometry','Geometrie','Geometrie','geometria','geometria','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','geometry',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8500,9329,'sia405cc_cable','function','function','Funktion','Fonction','zzz_Funktion','zzz_Funktion','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8500,9330,'sia405cc_cable','cable_type','cable_type','Kabelart','Genre','zzz_Kabelart','','Cable type','Kabelart','Genre de cable','zzz_Kabelart','zzz_Kabelart',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8500,9331,'sia405cc_cable','horizontal_positioning','horizontal_positioning','Lagebestimmung','Determination_planimetrique','determinazione_posizione','precizie_pozitie','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8500,9332,'sia405cc_cable','status','status','Status','Etat','stato','stare','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,'extends value range of SIA405 status',NULL,'Erweitert Wertebereich von SIA405 Status',NULL,'extension valeurs SIA405 Etat',NULL,'dilatato codominio SIA405 Stato',NULL,'rrr_Erweitert Wertebereich von SIA405 Status',NULL,NULL); @@ -22,18 +22,18 @@ INSERT INTO tdh_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 (8500,9353,'sia405cc_cable','width','width','Breite','Largeur','larghezza','latime','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]',' millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,4000); INSERT INTO tdh_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 (8500,9355,'sia405cc_cable','geometry3d','geometry3d','Geometrie3D','Geometrie3D','geometria3d','geometria3D','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_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 tdh_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 (8500,9356,'sia405cc_cable','elevation_determination','elevation_determination','Hoehenbestimmung','Determination_altimetrique','determinazione_dell_altezza','determinare_altimetrica','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tdh_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 (8500,9357,'sia405cc_cable','depth','depth','Maechtigkeit','Epaisseur','spessore','adancime','Extension 3D, depth (height) of an object [mm].','Erweiterung 3D, Mächtigkeit (Höhe) eines Objektes [mm].','Extension 3D, épaisseur (hauteur) d''un objet [mm].','zzz_Erweiterung 3D, Mächtigkeit (Höhe) eines Objektes [mm].','rrr_Erweiterung 3D, Mächtigkeit (Höhe) eines Objektes [mm].',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',-99999,99999); + INSERT INTO tdh_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 (8500,9357,'sia405cc_cable','depth','depth','Maechtigkeit','Epaisseur','spessore','adancime','Extension 3D, depth (height) of an object [mm].','Erweiterung 3D Mächtigkeit (Höhe) eines Objektes [mm].','Extension 3D, épaisseur (hauteur) d''un objet [mm].','zzz_Erweiterung 3D Mächtigkeit (Höhe) eines Objektes [mm].','rrr_Erweiterung 3D Mächtigkeit (Höhe) eines Objektes [mm].',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',-99999,99999); INSERT INTO tdh_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 (8500,999999,'sia405cc_cable','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID - Unique ID','OBJ_ID - eindeutige Kennung','OBJ_ID - ID unique','OBJ_ID - identificatore univoco','rrr_OBJ_ID - eindeutige Kennung',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(16)','','','','','','','','','','',NULL,NULL); INSERT INTO tdh_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 (8500,999998,'sia405cc_cable','dataowner','dataowner','Datenherr','MAITRE_DES_DONNEES','proprietario_dati','rrr_Datenherr','dataowner - this is the person or body who is allowed to delete, change or maintain this object','Metaattribut Datenherr ist diejenige Person oder Stelle, die berechtigt ist, diesen Datensatz zu löschen, zu ändern bzw. zu verwalten','Maître des données gestionnaire de données, qui est la personne ou l''organisation autorisée pour gérer, modifier ou supprimer les données de cette table/classe','zzz_Metaattribut L''attributo proprietario dati si riferisce alla persona o ente che è autorizzato a eliminare, modificare o gestire i dati','rrr_Metaattribut Datenherr ist diejenige Person oder Stelle, die berechtigt ist, diesen Datensatz zu löschen, zu ändern bzw. zu verwalten',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(80)','','','','','','','','','','',NULL,NULL); INSERT INTO tdh_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 (8500,999997,'sia405cc_cable','provider','provider','Datenlieferant','FOURNISSEUR_DES_DONNEES','fornitore_dati','rrr_Datenlieferant','Metaattribute provider - this is the person or body who delivered the data','Metaattribut Datenlieferant ist diejenige Person oder Stelle, die die Daten geliefert hat','FOURNISSEUR DES DONNEES Organisation qui crée l’enregistrement de ces données','zzz_Metaattribut L''attributo fornitore dati si riferisce alla persona o ente che ha fornito i dati','rrr_Metaattribut Datenlieferant ist diejenige Person oder Stelle, die die Daten geliefert hat',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(80)','','','','','','','','','','',NULL,NULL); INSERT INTO tdh_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 (8500,999996,'sia405cc_cable','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']::tdh_od.plantype[],'true','TIMESTAMP','','','','','','','','','','',NULL,NULL); - INSERT INTO tdh_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 (8501,9371,'sia405cc_cable_point','name_number','name_number','Name_Nummer','Nom_numero','nome_numero','nume_numarul','NULL','NULL','NULL','NULL','rrr_Erweiterung 3D, Mächtigkeit (Höhe) eines Objektes [mm].',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tdh_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 (8501,9372,'sia405cc_cable_point','geometry','geometry','Geometrie','Geometrie','geometria','geometria','NULL','NULL','NULL','NULL','rrr_Erweiterung 3D, Mächtigkeit (Höhe) eines Objektes [mm].',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','geometry','[NCoord]','Swiss national grid coordinates','[LKoord]','Schweizer Landeskoordinaten','[CoordNat]','coordonnées dans le système de coordonnées suisse','[CoordNaz]','Coordinate nazionali Svizzera','rrr_[LKoord]','rrr_Schweizer Landeskoordinaten',NULL,NULL); - INSERT INTO tdh_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 (8501,9373,'sia405cc_cable_point','kind','kind','Art','Genre','tipo','tip','NULL','NULL','NULL','NULL','rrr_Erweiterung 3D, Mächtigkeit (Höhe) eines Objektes [mm].',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8501,9371,'sia405cc_cable_point','name_number','name_number','Name_Nummer','Nom_numero','nome_numero','nume_numarul','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8501,9372,'sia405cc_cable_point','geometry','geometry','Geometrie','Geometrie','geometria','geometria','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','geometry','[NCoord]','Swiss national grid coordinates','[LKoord]','Schweizer Landeskoordinaten','[CoordNat]','coordonnées dans le système de coordonnées suisse','[CoordNaz]','Coordinate nazionali Svizzera','rrr_[LKoord]','rrr_Schweizer Landeskoordinaten',NULL,NULL); + INSERT INTO tdh_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 (8501,9373,'sia405cc_cable_point','kind','kind','Art','Genre','tipo','tip','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8501,9374,'sia405cc_cable_point','horizontal_positioning','horizontal_positioning','Lagebestimmung','Determination_planimetrique','determinazione_posizione','precizie_pozitie','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); INSERT INTO tdh_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 (8501,9375,'sia405cc_cable_point','altitude','altitude','Hoehe','Altitude','livello','altitudine','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','decimal(7,3)','[m.a.sl.]','meters above sea level [m.a.sl.]','[M.ü.M.]','Meter über Meer [M.ü.M.]','[m.s.m.]','mètres sur mers [m.s.m.]','[m s.l.m.]','metro sul livello del mare [m s.l.m.]','rrr_[M.ü.M.]','rrr_Meter über Meer [M.ü.M.]',-200,5000); INSERT INTO tdh_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 (8501,9376,'sia405cc_cable_point','elevation_determination','elevation_determination','Hoehenbestimmung','Determination_altimetrique','determinazione_dell_altezza','determinare_altimetrica','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); - INSERT INTO tdh_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 (8501,9377,'sia405cc_cable_point','status','status','Status','Etat','stato','stare','Operating and planning status of the structure','Betriebs- bzw. Planungszustand des Bauwerks','Etat de fonctionnement et de planification de l’ouvrage','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,'extends value range of SIA405 status',NULL,'Erweitert Wertebereich von SIA405 Status',NULL,'extension valeurs SIA405 Etat',NULL,'dilatato codominio SIA405 Stato',NULL,'rrr_Erweitert Wertebereich von SIA405 Status',NULL,NULL); + INSERT INTO tdh_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 (8501,9377,'sia405cc_cable_point','status','status','Status','Etat','stato','stare','Operating and planning status of the structure','Betriebs- bzw. Planungszustand des Bauwerks','Etat de fonctionnement et de planification de l’ouvrage','Stato di funzionamento e di pianificazione del manufatto.','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,'extends value range of SIA405 status',NULL,'Erweitert Wertebereich von SIA405 Status',NULL,'extension valeurs SIA405 Etat',NULL,'dilatato codominio SIA405 Stato',NULL,'rrr_Erweitert Wertebereich von SIA405 Status',NULL,NULL); INSERT INTO tdh_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 (8501,9378,'sia405cc_cable_point','installation_year','installation_year','Einbaujahr','Annee_construction','anno_costruzione','anul_instalarii','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint',NULL,' If unknown set lowest value of value range',NULL,'Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',NULL,'Si inconnu ajouter la plus bas valeur du domaine des valeurs',NULL,'Se sconosciuto, inserire valore minimo dell’intervallo di valori',NULL,'rrr_Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',1800,2100); INSERT INTO tdh_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 (8501,9379,'sia405cc_cable_point','sur_plus_cover','sur_plus_cover','Ueberdeckung','Couverture_ouvrage','zzz_Ueberdeckung','','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','decimal(4,1)','[m]','meter [m]','[m]','Meter [m]','[m]','mètre [m]','[m]','metro [m]','[m]','rrr_Meter [m]',0,999.9); INSERT INTO tdh_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 (8501,9380,'sia405cc_cable_point','condition','condition','Zustand','Condition','condizione','rrr_Zustand','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); @@ -41,7 +41,7 @@ INSERT INTO tdh_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 (8501,9408,'sia405cc_cable_point','dimension1','dimension1','Dimension1','Dimension1','dimensione1','dimensiune1','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]',' millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,4000); INSERT INTO tdh_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 (8501,9409,'sia405cc_cable_point','dimension2','dimension2','Dimension2','Dimension2','dimensione2','dimenisune2','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]',' millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,4000); INSERT INTO tdh_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 (8501,9410,'sia405cc_cable_point','altitude_lower_edge','altitude_lower_edge','Hoehe_UK','Altitude_BI','zzz_livello_bordo_inferiore','rrr_Hoehe_UK','NULL','Höhe Unterkante','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','decimal(7,3)','[m.a.sl.]','meters above sea level [m.a.sl.]','[M.ü.M.]','Meter über Meer [M.ü.M.]','[m.s.m.]','mètres sur mers [m.s.m.]','[m s.l.m.]','metro sul livello del mare [m s.l.m.]','rrr_[M.ü.M.]','rrr_Meter über Meer [M.ü.M.]',-200,5000); - INSERT INTO tdh_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 (8501,9411,'sia405cc_cable_point','symbolori','symbolori','SymbolOri','SymboleOri','simboloori','simbolori','Default: 90 degree','Default: 90 Grad','Default: 90 degre','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','geometry','[NCoord]','Swiss national grid coordinates','[LKoord]','Schweizer Landeskoordinaten','[CoordNat]','coordonnées dans le système de coordonnées suisse','[CoordNaz]','Coordinate nazionali Svizzera','rrr_[LKoord]','rrr_Schweizer Landeskoordinaten',NULL,NULL); + INSERT INTO tdh_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 (8501,9411,'sia405cc_cable_point','symbolori','symbolori','SymbolOri','SymboleOri','simboloori','simbolori','Default: 90 degree','Default: 90 Grad','Default: 90 degre','Default: 90 gradi','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','geometry','[NCoord]','Swiss national grid coordinates','[LKoord]','Schweizer Landeskoordinaten','[CoordNat]','coordonnées dans le système de coordonnées suisse','[CoordNaz]','Coordinate nazionali Svizzera','rrr_[LKoord]','rrr_Schweizer Landeskoordinaten',NULL,NULL); INSERT INTO tdh_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 (8501,9412,'sia405cc_cable_point','depth','depth','Maechtigkeit','Epaisseur','spessore','adancime','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimètre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',-99999,99999); INSERT INTO tdh_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 (8501,9472,'sia405cc_cable_point','geometry3d','geometry3d','Geometrie3D','Geometrie3D','geometria3d','geometria3D','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','geometry','[HKoord]','Swiss national grid coordinates','[HKoord]','Schweizer Landeskoordinaten [HKoord]','[CoordH]','coordonnées dans le système de coordonnées suisse','[HKoord]','Coordinate nazionali Svizzera','[HKoord]','rrr_Schweizer Landeskoordinaten [HKoord]',NULL,NULL); INSERT INTO tdh_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 (8501,999999,'sia405cc_cable_point','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID - Unique ID','OBJ_ID - eindeutige Kennung','OBJ_ID - ID unique','OBJ_ID - identificatore univoco','rrr_OBJ_ID - eindeutige Kennung',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(16)','','','','','','','','','','',NULL,NULL); From 0196779bff3ce4f5be456e6c5870e92f87688704 Mon Sep 17 00:00:00 2001 From: SJiB Date: Mon, 28 Oct 2024 21:05:15 +0100 Subject: [PATCH 05/10] Add protection_tube --- .../0001/03_qprotection_tube_db_sia405.sql | 103 ++++++++++++++++++ .../09_tdh_protection_tube_dictionaries.sql | 48 ++++++++ 2 files changed, 151 insertions(+) create mode 100644 datamodel/changelogs/0001/03_qprotection_tube_db_sia405.sql create mode 100644 datamodel/changelogs/0001/09_tdh_protection_tube_dictionaries.sql diff --git a/datamodel/changelogs/0001/03_qprotection_tube_db_sia405.sql b/datamodel/changelogs/0001/03_qprotection_tube_db_sia405.sql new file mode 100644 index 00000000..1e7879f1 --- /dev/null +++ b/datamodel/changelogs/0001/03_qprotection_tube_db_sia405.sql @@ -0,0 +1,103 @@ +------ This file generates the postgres database (Modul schutzrohr (based on SIA405_SCHUTZROHR_3D_2015_LV95 (Version 18.04.2018) in en for QQIS +------ Rename classes for integration in specific TEKSI module based on this convention: https://github.com/orgs/teksi/discussions/100#discussioncomment-9058690 +------ For questions etc. please contact Stefan Burckhardt stefan.burckhardt@sjib.ch +------ version 28.10.2024 20:55:20 +------ with 3D coordinates +BEGIN; + +------- +CREATE TABLE tdh_od.sia405pt_protection_tube +( + obj_id varchar(16) NOT NULL, + CONSTRAINT pkey_tdh_od_sia405pt_protection_tube_obj_id PRIMARY KEY (obj_id) +) +WITH ( + OIDS = False +); +CREATE SEQUENCE tdh_od.seq_sia405pt_protection_tube_oid INCREMENT 1 MINVALUE 0 MAXVALUE 999999 START 0; +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.obj_id IS 'INTERLIS STANDARD OID (with Postfix/Präfix), see www.interlis.ch'; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN name_number text; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD CONSTRAINT _name_number_length_max_40 CHECK(char_length(name_number)<=40); +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.name_number IS ''; +-- ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN geometry_geometry geometry('COMPOUNDCURVE', :SRID); +-- CREATE INDEX in_tdh_sia405pt_protection_tube_geometry_geometry ON tdh_od.sia405pt_protection_tube USING gist (geometry_geometry ); +-- COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.geometry_geometry IS ''; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN material integer ; +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.material IS ''; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN nominal_diameter text; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD CONSTRAINT _nominal_diameter_length_max_10 CHECK(char_length(nominal_diameter)<=10); +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.nominal_diameter IS ''; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN outside_diameter smallint ; +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.outside_diameter IS ''; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN lenght smallint ; +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.lenght IS ''; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN installation_year smallint ; +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.installation_year IS ''; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN horizontal_positioning integer ; +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.horizontal_positioning IS ''; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN status integer ; +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.status IS 'Operating and planning status of the structure / Betriebs- bzw. Planungszustand des Bauwerks / Etat de fonctionnement et de planification de l’ouvrage'; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN sur_plus_cover decimal(4,1) ; +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.sur_plus_cover IS 'yyy_mittlerer Wert eines Objektes / mittlerer Wert eines Objektes / xxx_mittlerer Wert eines Objektes'; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN condition text; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD CONSTRAINT _condition_length_max_30 CHECK(char_length(condition)<=30); +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.condition IS ''; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN remark text; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD CONSTRAINT _remark_length_max_80 CHECK(char_length(remark)<=80); +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.remark IS 'General remarks / Allgemeine Bemerkungen / Remarques générales'; +ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN geometry3d_geometry geometry('COMPOUNDCURVEZ', :SRID); +CREATE INDEX in_tdh_sia405pt_protection_tube_geometry3d_geometry ON tdh_od.sia405pt_protection_tube USING gist (geometry3d_geometry ); +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.geometry3d_geometry IS ''; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN last_modification TIMESTAMP without time zone DEFAULT now(); +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.last_modification IS 'Last modification / Letzte_Aenderung / Derniere_modification: INTERLIS_1_DATE'; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN fk_dataowner varchar(16); +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.fk_dataowner IS 'Foreignkey to Metaattribute dataowner (as an organisation) - this is the person or body who is allowed to delete, change or maintain this object / Metaattribut Datenherr ist diejenige Person oder Stelle, die berechtigt ist, diesen Datensatz zu löschen, zu ändern bzw. zu verwalten / Maître des données gestionnaire de données, qui est la personne ou l''organisation autorisée pour gérer, modifier ou supprimer les données de cette table/classe'; + ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN fk_provider varchar(16); +COMMENT ON COLUMN tdh_od.sia405pt_protection_tube.fk_provider IS 'Foreignkey to Metaattribute provider (as an organisation) - this is the person or body who delivered the data / Metaattribut Datenlieferant ist diejenige Person oder Stelle, die die Daten geliefert hat / FOURNISSEUR DES DONNEES Organisation qui crée l’enregistrement de ces données '; +------- +------------ Relationships and Value Tables ----------- ; +ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN fk_owner varchar(16); +ALTER TABLE tdh_od.sia405pt_protection_tube ADD CONSTRAINT rel_sia405pt_protection_tube_owner FOREIGN KEY (fk_owner) REFERENCES tdh_od.organisation(obj_id) ON UPDATE CASCADE ON DELETE set null DEFERRABLE INITIALLY DEFERRED; +CREATE TABLE tdh_vl.sia405pt_protection_tube_material () INHERITS (tdh_vl.value_list_base); +ALTER TABLE tdh_vl.sia405pt_protection_tube_material ADD CONSTRAINT pkey_tdh_vl_sia405pt_protection_tube_material_code PRIMARY KEY (code); + INSERT INTO tdh_vl.sia405pt_protection_tube_material (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9438,9438,'concrete','Beton','beton', 'calcestruzzo', 'beton', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_material (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9437,9437,'cast_iron.gray_iron','Guss.Grauguss','fonte.fonte_grise', 'ghisa.ghisa_grigia', 'fonta.fonta_cenusie', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_material (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9436,9436,'cast_iron.ductile_cast','Guss.Guss_duktil','fonte.fonte_ductil', 'ghisa.ghisa_duttile', 'fonta.fonta_ductila', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_material (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9433,9433,'plastic.polyethylene','Kunststoff.Polyethylen','matiere_synthetique.polyethylene', 'materiale_sintetico.polietilene', '', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_material (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9434,9434,'plastic.PVC','Kunststoff.Polyvinylchlorid','matiere_synthetique.chlorure_de_polyvinyle', 'materiale_sintetico.polivinilcloruro', '', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_material (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9435,9435,'steel','Stahl','acier', 'acciaio', 'otel', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_material (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9432,9432,'unknown','unbekannt','inconnue', 'sconosciuto', 'necunoscuta', '', '', '', '', '', 'true'); + ALTER TABLE tdh_od.sia405pt_protection_tube ADD CONSTRAINT fkey_vl_sia405pt_protection_tube_material FOREIGN KEY (material) + REFERENCES tdh_vl.sia405pt_protection_tube_material (code) MATCH SIMPLE + ON UPDATE RESTRICT ON DELETE RESTRICT; +CREATE TABLE tdh_vl.sia405pt_protection_tube_horizontal_positioning () INHERITS (tdh_vl.value_list_base); +ALTER TABLE tdh_vl.sia405pt_protection_tube_horizontal_positioning ADD CONSTRAINT pkey_tdh_vl_sia405pt_protection_tube_horizontal_positioning_code PRIMARY KEY (code); + INSERT INTO tdh_vl.sia405pt_protection_tube_horizontal_positioning (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9443,9443,'accurate','genau','precis', 'precisa', 'precisa', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_horizontal_positioning (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9444,9444,'unknown','unbekannt','inconnue', 'sconosciuto', 'necunoscuta', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_horizontal_positioning (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9445,9445,'inaccurate','ungenau','imprecis', 'impreciso', 'imprecisa', '', '', '', '', '', 'true'); + ALTER TABLE tdh_od.sia405pt_protection_tube ADD CONSTRAINT fkey_vl_sia405pt_protection_tube_horizontal_positioning FOREIGN KEY (horizontal_positioning) + REFERENCES tdh_vl.sia405pt_protection_tube_horizontal_positioning (code) MATCH SIMPLE + ON UPDATE RESTRICT ON DELETE RESTRICT; +CREATE TABLE tdh_vl.sia405pt_protection_tube_status () INHERITS (tdh_vl.value_list_base); +ALTER TABLE tdh_vl.sia405pt_protection_tube_status ADD CONSTRAINT pkey_tdh_vl_sia405pt_protection_tube_status_code PRIMARY KEY (code); + INSERT INTO tdh_vl.sia405pt_protection_tube_status (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9446,9446,'inoperative','ausser_Betrieb','hors_service', 'fuori_servizio', 'rrr_ausser_Betrieb', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_status (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9447,9447,'inoperative.reserve','ausser_Betrieb.Reserve','hors_service.en_reserve', 'fuori_servizio.riserva', 'rrr_ausser_Betrieb.Reserve', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_status (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9448,9448,'operational','in_Betrieb','en_service', 'in_funzione', 'functionala', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_status (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9449,9449,'operational.tentative','in_Betrieb.provisorisch','en_service.provisoire', 'in_funzione.provvisorio', 'functionala.provizoriu', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_status (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9450,9450,'others','weitere','', '', '', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_status (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9451,9451,'other.calculation_alternative','weitere.Berechnungsvariante','autre.variante_de_calcule', 'altro.variante_calcolo', 'alta.varianta_calcul', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_status (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9452,9452,'other.planned','weitere.geplant','autre.planifie', 'altro.previsto', 'rrr_weitere.geplant', '', '', '', '', '', 'true'); + INSERT INTO tdh_vl.sia405pt_protection_tube_status (code, vsacode, value_en, value_de, value_fr, value_it, value_ro, abbr_en, abbr_de, abbr_fr, abbr_it, abbr_ro, active) VALUES (9453,9453,'other.project','weitere.Projekt','autre.projet', 'altro.progetto', 'alta.proiect', '', '', '', '', '', 'true'); + ALTER TABLE tdh_od.sia405pt_protection_tube ADD CONSTRAINT fkey_vl_sia405pt_protection_tube_status FOREIGN KEY (status) + REFERENCES tdh_vl.sia405pt_protection_tube_status (code) MATCH SIMPLE + ON UPDATE RESTRICT ON DELETE RESTRICT; +--------- Relations to class organisation for dataowner and provider (new 3.11.2014); + +ALTER TABLE tdh_od.sia405pt_protection_tube ADD CONSTRAINT rel_od_sia405pt_protection_tube_fk_dataowner FOREIGN KEY (fk_dataowner) REFERENCES tdh_od.organisation(obj_id) DEFERRABLE INITIALLY DEFERRED; +ALTER TABLE tdh_od.sia405pt_protection_tube ADD CONSTRAINT rel_od_sia405pt_protection_tube_fk_dataprovider FOREIGN KEY (fk_provider) REFERENCES tdh_od.organisation(obj_id) DEFERRABLE INITIALLY DEFERRED; + +------ Indexes on identifiers + + CREATE UNIQUE INDEX in_od_sia405pt_protection_tube_name_number ON tdh_od.sia405pt_protection_tube USING btree (name_number ASC NULLS LAST, fk_dataowner ASC NULLS LAST); + +COMMIT; diff --git a/datamodel/changelogs/0001/09_tdh_protection_tube_dictionaries.sql b/datamodel/changelogs/0001/09_tdh_protection_tube_dictionaries.sql new file mode 100644 index 00000000..84f78678 --- /dev/null +++ b/datamodel/changelogs/0001/09_tdh_protection_tube_dictionaries.sql @@ -0,0 +1,48 @@ +------ this file generates the tdh is_dictionary (Modul schutzrohr(based on SIA405_SCHUTZROHR_3D_2015_LV95 (Version 18.04.2018)) in en on TEKSI +------ For questions etc. please contact Stefan Burckhardt stefan.burckhardt@sjib.ch +------ version 28.10.2024 20:55:28 +------ with 3D coordinates + + INSERT INTO tdh_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 (8502,'sia405pt_protection_tube','protection tube','PT','Schutzrohr','PT','tube de protection','TP','pozzetto termico','NULL','rrr_Schutzrohr','NULL'); + + + + + INSERT INTO tdh_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 (8502,9418,'sia405pt_protection_tube','name_number','name_number','Name_Nummer','Nom_numero','nome_numero','nume_numarul','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(40)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8502,9419,'sia405pt_protection_tube','geometry','geometry','Geometrie','Geometrie','geometria','geometria','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','geometry',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8502,9420,'sia405pt_protection_tube','material','material','Material','Materiau','materiale','material','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8502,9421,'sia405pt_protection_tube','nominal_diameter','nominal_diameter','Nennweite','Largeur_nominale','larghezza_nominale','diametrul_nominal','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(10)',NULL,'as TEXT, because sometimes also double values with slash inbetween eg. 500/800',NULL,'als TEXT, da zum Teil auch Doppelwerte mit Schrägstrich (1500/1000)',NULL,'En tant que TEXT, car peut contenir des valeurs doubles avec barre oblique (1500/1000)',NULL,'come TESTO, poiché in alcuni casi valori doppi con slash (1500/1000)',NULL,'rrr_als TEXT, da zum Teil auch Doppelwerte mit Schrägstrich (1500/1000)',NULL,NULL); + INSERT INTO tdh_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 (8502,9422,'sia405pt_protection_tube','outside_diameter','outside_diameter','Aussendurchmesser','Diametre_exterieur','diametro_esterno','diametrul_exterior','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimétre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,999999); + INSERT INTO tdh_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 (8502,9423,'sia405pt_protection_tube','lenght','lenght','Laenge','Longeur','lunghezza','lungime','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint','[mm]','millimeter [mm]','[mm]','Millimeter [mm]','[mm]','milimétre [mm]','[mm]','millimetro [mm]','[mm]','rrr_Millimeter [mm]',0,999999); + INSERT INTO tdh_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 (8502,9424,'sia405pt_protection_tube','installation_year','installation_year','Einbaujahr','Annee_construction','anno_costruzione','anul_instalarii','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','smallint',NULL,' If unknown set lowest value of value range',NULL,'Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',NULL,'Si inconnu ajouter la plus bas valeur du domaine des valeurs',NULL,'Se sconosciuto, inserire valore minimo dell’intervallo di valori',NULL,'rrr_Falls unbekannt, tiefsten Wert des Wertebereichs einsetzen',1800,2100); + INSERT INTO tdh_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 (8502,9425,'sia405pt_protection_tube','horizontal_positioning','horizontal_positioning','Lagebestimmung','Determination_planimetrique','determinazione_posizione','precizie_pozitie','NULL','NULL','NULL','NULL','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8502,9426,'sia405pt_protection_tube','status','status','Status','Etat','stato','stare','Operating and planning status of the structure','Betriebs- bzw. Planungszustand des Bauwerks','Etat de fonctionnement et de planification de l’ouvrage','Stato di funzionamento e di pianificazione del manufatto.','NULL',ARRAY['Leitungskataster','Werkinformation']::tdh_od.plantype[],'true','integer',NULL,'extends value range of SIA405 status',NULL,'Erweitert Wertebereich von SIA405 Status',NULL,'extension valeurs SIA405 Etat',NULL,'dilatato codominio SIA405 Stato',NULL,'rrr_Erweitert Wertebereich von SIA405 Status',NULL,NULL); + INSERT INTO tdh_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 (8502,9427,'sia405pt_protection_tube','sur_plus_cover','sur_plus_cover','Ueberdeckung','Couverture','zzz_Ueberdeckung','','yyy_mittlerer Wert eines Objektes','mittlerer Wert eines Objektes','xxx_mittlerer Wert eines Objektes','zzz_mittlerer Wert eines Objektes','rrr_mittlerer Wert eines Objektes',ARRAY['Werkinformation']::tdh_od.plantype[],'true','decimal(4,1)','[m]','meter [m]','[m]','Meter [m]','[m]','mètre [m]','[m]','metro [m]','[m]','rrr_Meter [m]',0,999.9); + INSERT INTO tdh_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 (8502,9428,'sia405pt_protection_tube','condition','condition','Zustand','Condition','condizione','rrr_Zustand','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(30)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8502,9429,'sia405pt_protection_tube','remark','remark','Bemerkung','Remarque','osservazione','observatie','General remarks','Allgemeine Bemerkungen','Remarques générales','NULL','NULL',ARRAY['Werkinformation']::tdh_od.plantype[],'true','varchar(80)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_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 (8502,9457,'sia405pt_protection_tube','geometry3d','geometry3d','Geometrie3D','Geometrie3D','geometria3d','geometria3D','NULL','NULL','NULL','NULL','NULL',ARRAY['Werkinformation']::tdh_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 tdh_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 (8502,999999,'sia405pt_protection_tube','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID','OBJ_ID - Unique ID','OBJ_ID - eindeutige Kennung','OBJ_ID - ID unique','OBJ_ID - identificatore univoco','rrr_OBJ_ID - eindeutige Kennung',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(16)','','','','','','','','','','',NULL,NULL); + INSERT INTO tdh_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 (8502,999998,'sia405pt_protection_tube','dataowner','dataowner','Datenherr','MAITRE_DES_DONNEES','proprietario_dati','rrr_Datenherr','dataowner - this is the person or body who is allowed to delete, change or maintain this object','Metaattribut Datenherr ist diejenige Person oder Stelle, die berechtigt ist, diesen Datensatz zu löschen, zu ändern bzw. zu verwalten','Maître des données gestionnaire de données, qui est la personne ou l''organisation autorisée pour gérer, modifier ou supprimer les données de cette table/classe','zzz_Metaattribut L''attributo proprietario dati si riferisce alla persona o ente che è autorizzato a eliminare, modificare o gestire i dati','rrr_Metaattribut Datenherr ist diejenige Person oder Stelle, die berechtigt ist, diesen Datensatz zu löschen, zu ändern bzw. zu verwalten',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(80)','','','','','','','','','','',NULL,NULL); + INSERT INTO tdh_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 (8502,999997,'sia405pt_protection_tube','provider','provider','Datenlieferant','FOURNISSEUR_DES_DONNEES','fornitore_dati','rrr_Datenlieferant','Metaattribute provider - this is the person or body who delivered the data','Metaattribut Datenlieferant ist diejenige Person oder Stelle, die die Daten geliefert hat','FOURNISSEUR DES DONNEES Organisation qui crée l’enregistrement de ces données','zzz_Metaattribut L''attributo fornitore dati si riferisce alla persona o ente che ha fornito i dati','rrr_Metaattribut Datenlieferant ist diejenige Person oder Stelle, die die Daten geliefert hat',ARRAY['Werkinformation','Leitungskataster', 'GEP_Verband','GEP_Traegerschaft','SAA', 'PAA']::tdh_od.plantype[],'true','varchar(80)','','','','','','','','','','',NULL,NULL); + INSERT INTO tdh_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 (8502,999996,'sia405pt_protection_tube','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']::tdh_od.plantype[],'true','TIMESTAMP','','','','','','','','','','',NULL,NULL); + + + + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9420,9432,'sia405pt_protection_tube','material','unknown','unknown',NULL,'unbekannt',NULL,'inconnue',NULL,'sconosciuto',NULL,'necunoscuta',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9420,9433,'sia405pt_protection_tube','material','plastic.polyethylene','plastic.polyethylene',NULL,'Kunststoff.Polyethylen',NULL,'matiere_synthetique.polyethylene',NULL,'materiale_sintetico.polietilene',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9420,9434,'sia405pt_protection_tube','material','plastic.PVC','plastic.PVC',NULL,'Kunststoff.Polyvinylchlorid',NULL,'matiere_synthetique.chlorure_de_polyvinyle',NULL,'materiale_sintetico.polivinilcloruro',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9420,9435,'sia405pt_protection_tube','material','steel','steel',NULL,'Stahl',NULL,'acier',NULL,'acciaio',NULL,'otel',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9420,9436,'sia405pt_protection_tube','material','cast_iron.ductile_cast','cast_iron.ductile_cast',NULL,'Guss.Guss_duktil',NULL,'fonte.fonte_ductil',NULL,'ghisa.ghisa_duttile',NULL,'fonta.fonta_ductila',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9420,9437,'sia405pt_protection_tube','material','cast_iron.gray_iron','cast_iron.gray_iron',NULL,'Guss.Grauguss',NULL,'fonte.fonte_grise',NULL,'ghisa.ghisa_grigia',NULL,'fonta.fonta_cenusie',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9420,9438,'sia405pt_protection_tube','material','concrete','concrete',NULL,'Beton',NULL,'beton',NULL,'calcestruzzo',NULL,'beton',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9425,9443,'sia405pt_protection_tube','horizontal_positioning','accurate','accurate',NULL,'genau',NULL,'precis',NULL,'precisa',NULL,'precisa',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9425,9444,'sia405pt_protection_tube','horizontal_positioning','unknown','unknown',NULL,'unbekannt',NULL,'inconnue',NULL,'sconosciuto',NULL,'necunoscuta',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9425,9445,'sia405pt_protection_tube','horizontal_positioning','inaccurate','inaccurate',NULL,'ungenau',NULL,'imprecis',NULL,'impreciso',NULL,'imprecisa',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9426,9446,'sia405pt_protection_tube','status','inoperative','inoperative',NULL,'ausser_Betrieb',NULL,'hors_service',NULL,'fuori_servizio',NULL,'rrr_ausser_Betrieb',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9426,9447,'sia405pt_protection_tube','status','inoperative.reserve','inoperative.reserve',NULL,'ausser_Betrieb.Reserve',NULL,'hors_service.en_reserve',NULL,'fuori_servizio.riserva',NULL,'rrr_ausser_Betrieb.Reserve',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9426,9448,'sia405pt_protection_tube','status','operational','operational',NULL,'in_Betrieb',NULL,'en_service',NULL,'in_funzione',NULL,'functionala',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9426,9449,'sia405pt_protection_tube','status','operational.tentative','operational.tentative',NULL,'in_Betrieb.provisorisch',NULL,'en_service.provisoire',NULL,'in_funzione.provvisorio',NULL,'functionala.provizoriu',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9426,9450,'sia405pt_protection_tube','status','others','others',NULL,'weitere',NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9426,9451,'sia405pt_protection_tube','status','other.calculation_alternative','other.calculation_alternative',NULL,'weitere.Berechnungsvariante',NULL,'autre.variante_de_calcule',NULL,'altro.variante_calcolo',NULL,'alta.varianta_calcul',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9426,9452,'sia405pt_protection_tube','status','other.planned','other.planned',NULL,'weitere.geplant',NULL,'autre.planifie',NULL,'altro.previsto',NULL,'rrr_weitere.geplant',NULL,NULL,NULL,NULL,NULL,NULL); + INSERT INTO tdh_sys.dictionary_od_values (class_id, attribute_id, value_id, table_name, field_name, value_name, value_name_en, shortcut_en, value_name_de, shortcut_de, value_name_fr, shortcut_fr, value_name_it, shortcut_it, value_name_ro, shortcut_ro, value_description_en, value_description_de, value_description_fr, value_description_it, value_description_ro) VALUES (8502,9426,9453,'sia405pt_protection_tube','status','other.project','other.project',NULL,'weitere.Projekt',NULL,'autre.projet',NULL,'altro.progetto',NULL,'alta.proiect',NULL,NULL,NULL,NULL,NULL,NULL); From 969827fea83d5428b788f78100cdb3641d047f52 Mon Sep 17 00:00:00 2001 From: SJiB Date: Mon, 28 Oct 2024 21:07:04 +0100 Subject: [PATCH 06/10] Adapt setup for protection tube --- datamodel/scripts/setup.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/datamodel/scripts/setup.sh b/datamodel/scripts/setup.sh index 664883aa..e69f5291 100755 --- a/datamodel/scripts/setup.sh +++ b/datamodel/scripts/setup.sh @@ -23,10 +23,11 @@ psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/03_tdh_ psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/03_tdh_db_sia405.sql -v SRID=$SRID +# Add control cable (Fernwirkkabel) psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/03_tdh_control_cable_db_sia405.sql -v SRID=$SRID -# Future option Protection tube -# psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/03_tdh_qprotection_tube_db_sia405.sql -v SRID=$SRID +# Add Protection tube (Schutzrohr) +psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/03_tdh_qprotection_tube_db_sia405.sql -v SRID=$SRID # psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/05_data_model_extensions.sql @@ -36,6 +37,9 @@ psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/09_tdh_ psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/09_tdh_control_cable_dictionaries.sql -v SRID=$SRID + +psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/09_tdh_protection_tube_dictionaries.sql -v SRID=$SRID + #psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/13_import.sql -v SRID=$SRID From ffd8cc840e8b8cd6008396780d83258fadc35462 Mon Sep 17 00:00:00 2001 From: SJiB Date: Mon, 28 Oct 2024 21:21:50 +0100 Subject: [PATCH 07/10] Adapt comment - missing attribute name geometry3d_geometry --- datamodel/changelogs/0001/03_tdh_db_sia405.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datamodel/changelogs/0001/03_tdh_db_sia405.sql b/datamodel/changelogs/0001/03_tdh_db_sia405.sql index aa5731ef..c37e827c 100644 --- a/datamodel/changelogs/0001/03_tdh_db_sia405.sql +++ b/datamodel/changelogs/0001/03_tdh_db_sia405.sql @@ -456,7 +456,7 @@ COMMENT ON COLUMN tdh_od.trench_point.name_number IS ' / désignation univoque'; -- CREATE INDEX in_tdh_trench_point_geometry_geometry ON tdh_od.trench_point USING gist (geometry_geometry ); -- COMMENT ON COLUMN tdh_od.trench_point.geometry_geometry IS ''; ALTER TABLE tdh_od.trench_point ADD COLUMN geometry3d_geometry geometry('POINTZ', :SRID); -COMMENT ON COLUMN tdh_od.trench_point IS '3D Situation / 3D Lage / 3D Positionnement'; +COMMENT ON COLUMN tdh_od.trench_point.geometry3d_geometry IS '3D Situation / 3D Lage / 3D Positionnement'; CREATE INDEX in_tdh_trench_point_geometry3d_geometry ON tdh_od.trench_point USING gist (geometry3d_geometry ); ALTER TABLE tdh_od.trench_point ADD COLUMN horizontal_positioning integer ; From 7f7cefee46882f45b1a753e0f5a70e7633bb0d6d Mon Sep 17 00:00:00 2001 From: SJiB Date: Mon, 28 Oct 2024 21:39:11 +0100 Subject: [PATCH 08/10] typing error setup.sh --- datamodel/scripts/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datamodel/scripts/setup.sh b/datamodel/scripts/setup.sh index e69f5291..0d0c443d 100755 --- a/datamodel/scripts/setup.sh +++ b/datamodel/scripts/setup.sh @@ -27,7 +27,7 @@ psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/03_tdh_ psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/03_tdh_control_cable_db_sia405.sql -v SRID=$SRID # Add Protection tube (Schutzrohr) -psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/03_tdh_qprotection_tube_db_sia405.sql -v SRID=$SRID +psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/03_tdh_protection_tube_db_sia405.sql -v SRID=$SRID # psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -f ${DIR}/changelogs/0001/05_data_model_extensions.sql From a969c5ba81debd53b896c2df82cd22246f1b84dc Mon Sep 17 00:00:00 2001 From: SJiB Date: Mon, 28 Oct 2024 21:42:21 +0100 Subject: [PATCH 09/10] file rename --- ...on_tube_db_sia405.sql => 03_tdh_protection_tube_db_sia405.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename datamodel/changelogs/0001/{03_qprotection_tube_db_sia405.sql => 03_tdh_protection_tube_db_sia405.sql} (100%) diff --git a/datamodel/changelogs/0001/03_qprotection_tube_db_sia405.sql b/datamodel/changelogs/0001/03_tdh_protection_tube_db_sia405.sql similarity index 100% rename from datamodel/changelogs/0001/03_qprotection_tube_db_sia405.sql rename to datamodel/changelogs/0001/03_tdh_protection_tube_db_sia405.sql From 41211f0ef217bf9a8c259b0477714bc7de427331 Mon Sep 17 00:00:00 2001 From: SJiB Date: Sat, 16 Nov 2024 18:04:10 +0100 Subject: [PATCH 10/10] Add relation fk_pipe_section --- .../changelogs/0001/03_tdh_protection_tube_db_sia405.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/datamodel/changelogs/0001/03_tdh_protection_tube_db_sia405.sql b/datamodel/changelogs/0001/03_tdh_protection_tube_db_sia405.sql index 1e7879f1..7b4e7731 100644 --- a/datamodel/changelogs/0001/03_tdh_protection_tube_db_sia405.sql +++ b/datamodel/changelogs/0001/03_tdh_protection_tube_db_sia405.sql @@ -96,6 +96,10 @@ ALTER TABLE tdh_vl.sia405pt_protection_tube_status ADD CONSTRAINT pkey_tdh_vl_si ALTER TABLE tdh_od.sia405pt_protection_tube ADD CONSTRAINT rel_od_sia405pt_protection_tube_fk_dataowner FOREIGN KEY (fk_dataowner) REFERENCES tdh_od.organisation(obj_id) DEFERRABLE INITIALLY DEFERRED; ALTER TABLE tdh_od.sia405pt_protection_tube ADD CONSTRAINT rel_od_sia405pt_protection_tube_fk_dataprovider FOREIGN KEY (fk_provider) REFERENCES tdh_od.organisation(obj_id) DEFERRABLE INITIALLY DEFERRED; +--------- Extra Relation to class pipe_section of tdh +ALTER TABLE tdh_od.sia405pt_protection_tube ADD COLUMN fk_pipe_section varchar(16); +ALTER TABLE tdh_od.sia405pt_protection_tube ADD CONSTRAINT rel_od_sia405pt_protection_tube_fk_pipe_section FOREIGN KEY (fk_pipe_section) REFERENCES tdh_od.pipe_section(obj_id) DEFERRABLE INITIALLY DEFERRED; + ------ Indexes on identifiers CREATE UNIQUE INDEX in_od_sia405pt_protection_tube_name_number ON tdh_od.sia405pt_protection_tube USING btree (name_number ASC NULLS LAST, fk_dataowner ASC NULLS LAST);