diff --git a/public/FWEArea/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql b/public/FWEArea/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..46b5f9188136d18b89c44cebb0939f6849f1707a --- /dev/null +++ b/public/FWEArea/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql @@ -0,0 +1,198 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:56:23 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create tables ************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEA_areasurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEA_areasurvey +( + id INTEGER NOT NULL, + buildingfootrpintarea NUMBER, + buildingfootrpintarea_uom VARCHAR2(1000), + fwearea_consistsoffwesurv_id INTEGER, + objectclass_id INTEGER, + openplotarea NUMBER, + openplotarea_uom VARCHAR2(1000), + population INTEGER, + settlementarea NUMBER, + settlementarea_uom VARCHAR2(1000), + surfacearea NUMBER, + surfacearea_uom VARCHAR2(1000), + surveydescription VARCHAR2(1000), + surveyyear INTEGER, + surveyyearversion NUMBER, + trafficarea NUMBER, + trafficarea_uom VARCHAR2(1000), + vegetationarea NUMBER, + vegetationarea_uom VARCHAR2(1000), + waterbodyarea NUMBER, + waterbodyarea_uom VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEA_energysurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEA_energysurvey +( + id INTEGER NOT NULL, + areasurvey_energysurvey_id INTEGER, + biomasselectricitypotential NUMBER, + biomasselectricitypotentialu VARCHAR2(1000), + biomassprimaryenergypotent_1 VARCHAR2(1000), + biomassprimaryenergypotentia NUMBER, + biomassthermalpotential NUMBER, + biomassthermalpotentialunit VARCHAR2(1000), + electricitypotentialfrompv_1 VARCHAR2(1000), + electricitypotentialfrompvbu NUMBER, + residentialelectricitydema_1 VARCHAR2(1000), + residentialelectricitydemand NUMBER, + spacecoolingdemand NUMBER, + spacecoolingdemandunit VARCHAR2(1000), + spaceheatingdemand NUMBER, + spaceheatingdemandunit VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEA_foodsurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEA_foodsurvey +( + id INTEGER NOT NULL, + areasurvey_foodsurvey_id INTEGER, + foodcategory VARCHAR2(1000), + foodcategory_codespace VARCHAR2(1000), + foodconsumption NUMBER, + foodconsumptionunit VARCHAR2(1000), + fooddemand NUMBER, + fooddemandunit VARCHAR2(1000), + foodproduction NUMBER, + foodproductionenergydemand NUMBER, + foodproductionenergydemandun VARCHAR2(1000), + foodproductionunit VARCHAR2(1000), + foodproductionwaterdemand NUMBER, + foodproductionwaterdemanduni VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEA_fwearea +-- -------------------------------------------------------------------- +CREATE TABLE FWEA_fwearea +( + id INTEGER NOT NULL, + fweareaname VARCHAR2(1000), + fwesystemname VARCHAR2(1000), + lod0multisurface_id INTEGER, + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEA_watersurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEA_watersurvey +( + id INTEGER NOT NULL, + areasurvey_watersurvey_id INTEGER, + domestichotwaterdemand NUMBER, + domestichotwaterdemandunit VARCHAR2(1000), + domesticsolidwaste NUMBER, + domesticsolidwasteunit VARCHAR2(1000), + domesticwaterdemand NUMBER, + domesticwaterdemandunit VARCHAR2(1000), + domesticwaterwaste NUMBER, + domesticwaterwasteunit VARCHAR2(1000), + totaldomesticwaste NUMBER, + totaldomesticwasteenergypo_1 VARCHAR2(1000), + totaldomesticwasteenergypote NUMBER, + totaldomesticwasteunit VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create foreign keys ******************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEA_areasurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_areasurvey ADD CONSTRAINT FWEA_areasurvey_fk FOREIGN KEY (id) +REFERENCES cityobject (id); + +ALTER TABLE FWEA_areasurvey ADD CONSTRAINT FWEA_areasurve_objectcl_fk FOREIGN KEY (objectclass_id) +REFERENCES objectclass (id); + +ALTER TABLE FWEA_areasurvey ADD CONSTRAINT FWEA_areasu_fwear_consi_fk FOREIGN KEY (fwearea_consistsoffwesurv_id) +REFERENCES FWEA_fwearea (id) +ON DELETE SET NULL; + +-- -------------------------------------------------------------------- +-- FWEA_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_energysurvey ADD CONSTRAINT FWEA_energysurvey_fk FOREIGN KEY (id) +REFERENCES FWEA_areasurvey (id); + +ALTER TABLE FWEA_energysurvey ADD CONSTRAINT FWEA_energy_areas_energ_fk FOREIGN KEY (areasurvey_energysurvey_id) +REFERENCES FWEA_areasurvey (id); + +-- -------------------------------------------------------------------- +-- FWEA_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_foodsurvey ADD CONSTRAINT FWEA_foodsurvey_fk FOREIGN KEY (id) +REFERENCES FWEA_areasurvey (id); + +ALTER TABLE FWEA_foodsurvey ADD CONSTRAINT FWEA_foodsu_areas_foods_fk FOREIGN KEY (areasurvey_foodsurvey_id) +REFERENCES FWEA_areasurvey (id); + +-- -------------------------------------------------------------------- +-- FWEA_fwearea +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_fwearea ADD CONSTRAINT FWEA_fwearea_fk FOREIGN KEY (id) +REFERENCES cityobject (id); + +ALTER TABLE FWEA_fwearea ADD CONSTRAINT FWEA_fwearea_lod0multis_fk FOREIGN KEY (lod0multisurface_id) +REFERENCES surface_geometry (id); + +-- -------------------------------------------------------------------- +-- FWEA_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_watersurvey ADD CONSTRAINT FWEA_watersurvey_fk FOREIGN KEY (id) +REFERENCES FWEA_areasurvey (id); + +ALTER TABLE FWEA_watersurvey ADD CONSTRAINT FWEA_waters_areas_water_fk FOREIGN KEY (areasurvey_watersurvey_id) +REFERENCES FWEA_areasurvey (id); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Indexes ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEA_areasurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEA_areas_fwear_consi_fkx ON FWEA_areasurvey (fwearea_consistsoffwesurv_id); + +CREATE INDEX FWEA_areasurv_objectcl_fkx ON FWEA_areasurvey (objectclass_id); + +-- -------------------------------------------------------------------- +-- FWEA_energysurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEA_energ_areas_energ_fkx ON FWEA_energysurvey (areasurvey_energysurvey_id); + +-- -------------------------------------------------------------------- +-- FWEA_foodsurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEA_foods_areas_foods_fkx ON FWEA_foodsurvey (areasurvey_foodsurvey_id); + +-- -------------------------------------------------------------------- +-- FWEA_fwearea +-- -------------------------------------------------------------------- +CREATE INDEX FWEA_fwearea_lod0multi_fkx ON FWEA_fwearea (lod0multisurface_id); + +-- -------------------------------------------------------------------- +-- FWEA_watersurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEA_water_areas_water_fkx ON FWEA_watersurvey (areasurvey_watersurvey_id); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Sequences *********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/public/FWEArea/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql b/public/FWEArea/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql new file mode 100644 index 0000000000000000000000000000000000000000..33b010c83ba7101939d6f2b5465345ac82378d1c --- /dev/null +++ b/public/FWEArea/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql @@ -0,0 +1,6 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:56:23 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Disable Versioning ********************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +exec DBMS_WM.DisableVersioning('FWEA_areasurvey,FWEA_energysurvey,FWEA_foodsurvey,FWEA_fwearea,FWEA_watersurvey,',true, true); diff --git a/public/FWEArea/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql b/public/FWEArea/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..4b392cdb1301d1ca7f6f72c5ccc216cb8c9c4574 --- /dev/null +++ b/public/FWEArea/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql @@ -0,0 +1,85 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:56:23 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop foreign keys ********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEA_areasurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_areasurvey + DROP CONSTRAINT FWEA_areasurvey_fk; + +ALTER TABLE FWEA_areasurvey + DROP CONSTRAINT FWEA_areasurve_objectcl_fk; + +ALTER TABLE FWEA_areasurvey + DROP CONSTRAINT FWEA_areasu_fwear_consi_fk; + +-- -------------------------------------------------------------------- +-- FWEA_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_energysurvey + DROP CONSTRAINT FWEA_energysurvey_fk; + +ALTER TABLE FWEA_energysurvey + DROP CONSTRAINT FWEA_energy_areas_energ_fk; + +-- -------------------------------------------------------------------- +-- FWEA_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_foodsurvey + DROP CONSTRAINT FWEA_foodsurvey_fk; + +ALTER TABLE FWEA_foodsurvey + DROP CONSTRAINT FWEA_foodsu_areas_foods_fk; + +-- -------------------------------------------------------------------- +-- FWEA_fwearea +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_fwearea + DROP CONSTRAINT FWEA_fwearea_fk; + +ALTER TABLE FWEA_fwearea + DROP CONSTRAINT FWEA_fwearea_lod0multis_fk; + +-- -------------------------------------------------------------------- +-- FWEA_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_watersurvey + DROP CONSTRAINT FWEA_watersurvey_fk; + +ALTER TABLE FWEA_watersurvey + DROP CONSTRAINT FWEA_waters_areas_water_fk; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop tables *************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEA_areasurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEA_areasurvey; + +-- -------------------------------------------------------------------- +-- FWEA_energysurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEA_energysurvey; + +-- -------------------------------------------------------------------- +-- FWEA_foodsurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEA_foodsurvey; + +-- -------------------------------------------------------------------- +-- FWEA_fwearea +-- -------------------------------------------------------------------- +DROP TABLE FWEA_fwearea; + +-- -------------------------------------------------------------------- +-- FWEA_watersurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEA_watersurvey; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop Sequences ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +PURGE RECYCLEBIN; diff --git a/public/FWEArea/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql b/public/FWEArea/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql new file mode 100644 index 0000000000000000000000000000000000000000..7fd9c70883968c6533674a7d573ea4b1617ef4ca --- /dev/null +++ b/public/FWEArea/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql @@ -0,0 +1,6 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:56:23 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Enable Versioning ********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +exec DBMS_WM.EnableVersioning('FWEA_areasurvey,FWEA_energysurvey,FWEA_foodsurvey,FWEA_fwearea,FWEA_watersurvey,','VIEW_WO_OVERWRITE'); diff --git a/public/FWEArea/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql b/public/FWEArea/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..fe401d95f16adc8373d6bc257fb82f051dafc5f5 --- /dev/null +++ b/public/FWEArea/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql @@ -0,0 +1,222 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:56:23 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create tables ************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEA_areasurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEA_areasurvey +( + id INTEGER NOT NULL, + buildingfootrpintarea NUMERIC, + buildingfootrpintarea_uom VARCHAR(1000), + fwearea_consistsoffwesurv_id INTEGER, + objectclass_id INTEGER, + openplotarea NUMERIC, + openplotarea_uom VARCHAR(1000), + population INTEGER, + settlementarea NUMERIC, + settlementarea_uom VARCHAR(1000), + surfacearea NUMERIC, + surfacearea_uom VARCHAR(1000), + surveydescription VARCHAR(1000), + surveyyear INTEGER, + surveyyearversion NUMERIC, + trafficarea NUMERIC, + trafficarea_uom VARCHAR(1000), + vegetationarea NUMERIC, + vegetationarea_uom VARCHAR(1000), + waterbodyarea NUMERIC, + waterbodyarea_uom VARCHAR(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEA_energysurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEA_energysurvey +( + id INTEGER NOT NULL, + areasurvey_energysurvey_id INTEGER, + biomasselectricitypotential NUMERIC, + biomasselectricitypotentialu VARCHAR(1000), + biomassprimaryenergypotent_1 VARCHAR(1000), + biomassprimaryenergypotentia NUMERIC, + biomassthermalpotential NUMERIC, + biomassthermalpotentialunit VARCHAR(1000), + electricitypotentialfrompv_1 VARCHAR(1000), + electricitypotentialfrompvbu NUMERIC, + residentialelectricitydema_1 VARCHAR(1000), + residentialelectricitydemand NUMERIC, + spacecoolingdemand NUMERIC, + spacecoolingdemandunit VARCHAR(1000), + spaceheatingdemand NUMERIC, + spaceheatingdemandunit VARCHAR(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEA_foodsurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEA_foodsurvey +( + id INTEGER NOT NULL, + areasurvey_foodsurvey_id INTEGER, + foodcategory VARCHAR(1000), + foodcategory_codespace VARCHAR(1000), + foodconsumption NUMERIC, + foodconsumptionunit VARCHAR(1000), + fooddemand NUMERIC, + fooddemandunit VARCHAR(1000), + foodproduction NUMERIC, + foodproductionenergydemand NUMERIC, + foodproductionenergydemandun VARCHAR(1000), + foodproductionunit VARCHAR(1000), + foodproductionwaterdemand NUMERIC, + foodproductionwaterdemanduni VARCHAR(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEA_fwearea +-- -------------------------------------------------------------------- +CREATE TABLE FWEA_fwearea +( + id INTEGER NOT NULL, + fweareaname VARCHAR(1000), + fwesystemname VARCHAR(1000), + lod0multisurface_id INTEGER, + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEA_watersurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEA_watersurvey +( + id INTEGER NOT NULL, + areasurvey_watersurvey_id INTEGER, + domestichotwaterdemand NUMERIC, + domestichotwaterdemandunit VARCHAR(1000), + domesticsolidwaste NUMERIC, + domesticsolidwasteunit VARCHAR(1000), + domesticwaterdemand NUMERIC, + domesticwaterdemandunit VARCHAR(1000), + domesticwaterwaste NUMERIC, + domesticwaterwasteunit VARCHAR(1000), + totaldomesticwaste NUMERIC, + totaldomesticwasteenergypo_1 VARCHAR(1000), + totaldomesticwasteenergypote NUMERIC, + totaldomesticwasteunit VARCHAR(1000), + PRIMARY KEY (id) +); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create foreign keys ******************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEA_areasurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_areasurvey ADD CONSTRAINT FWEA_areasurvey_fk FOREIGN KEY (id) +REFERENCES cityobject (id); + +ALTER TABLE FWEA_areasurvey ADD CONSTRAINT FWEA_areasurve_objectcl_fk FOREIGN KEY (objectclass_id) +REFERENCES objectclass (id); + +ALTER TABLE FWEA_areasurvey ADD CONSTRAINT FWEA_areasu_fwear_consi_fk FOREIGN KEY (fwearea_consistsoffwesurv_id) +REFERENCES FWEA_fwearea (id) +ON DELETE SET NULL; + +-- -------------------------------------------------------------------- +-- FWEA_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_energysurvey ADD CONSTRAINT FWEA_energysurvey_fk FOREIGN KEY (id) +REFERENCES FWEA_areasurvey (id); + +ALTER TABLE FWEA_energysurvey ADD CONSTRAINT FWEA_energy_areas_energ_fk FOREIGN KEY (areasurvey_energysurvey_id) +REFERENCES FWEA_areasurvey (id); + +-- -------------------------------------------------------------------- +-- FWEA_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_foodsurvey ADD CONSTRAINT FWEA_foodsurvey_fk FOREIGN KEY (id) +REFERENCES FWEA_areasurvey (id); + +ALTER TABLE FWEA_foodsurvey ADD CONSTRAINT FWEA_foodsu_areas_foods_fk FOREIGN KEY (areasurvey_foodsurvey_id) +REFERENCES FWEA_areasurvey (id); + +-- -------------------------------------------------------------------- +-- FWEA_fwearea +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_fwearea ADD CONSTRAINT FWEA_fwearea_fk FOREIGN KEY (id) +REFERENCES cityobject (id); + +ALTER TABLE FWEA_fwearea ADD CONSTRAINT FWEA_fwearea_lod0multis_fk FOREIGN KEY (lod0multisurface_id) +REFERENCES surface_geometry (id); + +-- -------------------------------------------------------------------- +-- FWEA_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_watersurvey ADD CONSTRAINT FWEA_watersurvey_fk FOREIGN KEY (id) +REFERENCES FWEA_areasurvey (id); + +ALTER TABLE FWEA_watersurvey ADD CONSTRAINT FWEA_waters_areas_water_fk FOREIGN KEY (areasurvey_watersurvey_id) +REFERENCES FWEA_areasurvey (id); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Indexes ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEA_areasurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEA_areas_fwear_consi_fkx ON FWEA_areasurvey + USING btree + ( + fwearea_consistsoffwesurv_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +CREATE INDEX FWEA_areasurv_objectcl_fkx ON FWEA_areasurvey + USING btree + ( + objectclass_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWEA_energysurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEA_energ_areas_energ_fkx ON FWEA_energysurvey + USING btree + ( + areasurvey_energysurvey_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWEA_foodsurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEA_foods_areas_foods_fkx ON FWEA_foodsurvey + USING btree + ( + areasurvey_foodsurvey_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWEA_fwearea +-- -------------------------------------------------------------------- +CREATE INDEX FWEA_fwearea_lod0multi_fkx ON FWEA_fwearea + USING btree + ( + lod0multisurface_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWEA_watersurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEA_water_areas_water_fkx ON FWEA_watersurvey + USING btree + ( + areasurvey_watersurvey_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Sequences *********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/public/FWEArea/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql b/public/FWEArea/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..3dad6e4606e2baefd9575d02b78380880ffd1292 --- /dev/null +++ b/public/FWEArea/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql @@ -0,0 +1,83 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:56:23 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop foreign keys ********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEA_areasurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_areasurvey + DROP CONSTRAINT FWEA_areasurvey_fk; + +ALTER TABLE FWEA_areasurvey + DROP CONSTRAINT FWEA_areasurve_objectcl_fk; + +ALTER TABLE FWEA_areasurvey + DROP CONSTRAINT FWEA_areasu_fwear_consi_fk; + +-- -------------------------------------------------------------------- +-- FWEA_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_energysurvey + DROP CONSTRAINT FWEA_energysurvey_fk; + +ALTER TABLE FWEA_energysurvey + DROP CONSTRAINT FWEA_energy_areas_energ_fk; + +-- -------------------------------------------------------------------- +-- FWEA_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_foodsurvey + DROP CONSTRAINT FWEA_foodsurvey_fk; + +ALTER TABLE FWEA_foodsurvey + DROP CONSTRAINT FWEA_foodsu_areas_foods_fk; + +-- -------------------------------------------------------------------- +-- FWEA_fwearea +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_fwearea + DROP CONSTRAINT FWEA_fwearea_fk; + +ALTER TABLE FWEA_fwearea + DROP CONSTRAINT FWEA_fwearea_lod0multis_fk; + +-- -------------------------------------------------------------------- +-- FWEA_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEA_watersurvey + DROP CONSTRAINT FWEA_watersurvey_fk; + +ALTER TABLE FWEA_watersurvey + DROP CONSTRAINT FWEA_waters_areas_water_fk; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop tables *************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEA_areasurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEA_areasurvey; + +-- -------------------------------------------------------------------- +-- FWEA_energysurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEA_energysurvey; + +-- -------------------------------------------------------------------- +-- FWEA_foodsurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEA_foodsurvey; + +-- -------------------------------------------------------------------- +-- FWEA_fwearea +-- -------------------------------------------------------------------- +DROP TABLE FWEA_fwearea; + +-- -------------------------------------------------------------------- +-- FWEA_watersurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEA_watersurvey; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop Sequences ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/public/FWEArea/v2.1/DDL/schema-mapping/schema-mapping.xml b/public/FWEArea/v2.1/DDL/schema-mapping/schema-mapping.xml new file mode 100644 index 0000000000000000000000000000000000000000..8302f79f6e93eb214557d801f2b85808e16fe6fb --- /dev/null +++ b/public/FWEArea/v2.1/DDL/schema-mapping/schema-mapping.xml @@ -0,0 +1,130 @@ + + + + FWEArea + 2.1 + Area thematic class of FWE ADE + FWEA + + + + http://transfer.hft-stuttgart.de/pages/fwe-ade/FWEArea/v2.1/XSD + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/FWEBuilding/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql b/public/FWEBuilding/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..4479e084f70643199723534a616633d66d6c13b8 --- /dev/null +++ b/public/FWEBuilding/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql @@ -0,0 +1,172 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:53:44 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create tables ************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEB_building +-- -------------------------------------------------------------------- +CREATE TABLE FWEB_building +( + id INTEGER NOT NULL, + fweareaname VARCHAR2(1000), + fwesystemname VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEB_buildingsurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEB_buildingsurvey +( + id INTEGER NOT NULL, + building_consistsoffwesur_id INTEGER, + buildingfootprintarea NUMBER, + buildingfootprintarea_uom VARCHAR2(1000), + objectclass_id INTEGER, + occupants INTEGER, + surveydescription VARCHAR2(1000), + surveyyear INTEGER, + surveyyearversion NUMBER, + totalfloorarea NUMBER, + totalfloorarea_uom VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEB_energysurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEB_energysurvey +( + id INTEGER NOT NULL, + buildingsurv_energysurvey_id INTEGER, + electricitypotentialfrompv NUMBER, + electricitypotentialfrompvun VARCHAR2(1000), + residentialelectricitydema_1 VARCHAR2(1000), + residentialelectricitydemand NUMBER, + spacecoolingdemand NUMBER, + spacecoolingdemandunit VARCHAR2(1000), + spaceheatingdemand NUMBER, + spaceheatingdemandunit VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEB_foodsurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEB_foodsurvey +( + id INTEGER NOT NULL, + buildingsurvey_foodsurvey_id INTEGER, + foodcategory VARCHAR2(1000), + foodcategory_codespace VARCHAR2(1000), + foodconsumption NUMBER, + foodconsumptionunit VARCHAR2(1000), + fooddemand NUMBER, + fooddemandunit VARCHAR2(1000), + foodproduction NUMBER, + foodproductionenergydemand NUMBER, + foodproductionenergydemandun VARCHAR2(1000), + foodproductionunit VARCHAR2(1000), + foodproductionwaterdemand NUMBER, + foodproductionwaterdemanduni VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEB_watersurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEB_watersurvey +( + id INTEGER NOT NULL, + buildingsurve_watersurvey_id INTEGER, + domestichotwaterdemand NUMBER, + domestichotwaterdemandunit VARCHAR2(1000), + domestichotwaterenergydema_1 VARCHAR2(1000), + domestichotwaterenergydemand NUMBER, + domesticsolidwaste NUMBER, + domesticsolidwasteunit VARCHAR2(1000), + domesticwaterdemand NUMBER, + domesticwaterdemandunit VARCHAR2(1000), + domesticwaterwaste NUMBER, + domesticwaterwasteunit VARCHAR2(1000), + totaldomesticwaste NUMBER, + totaldomesticwasteunit VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create foreign keys ******************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEB_building +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_building ADD CONSTRAINT FWEB_building_fk FOREIGN KEY (id) +REFERENCES building (id); + +-- -------------------------------------------------------------------- +-- FWEB_buildingsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_buildingsurvey ADD CONSTRAINT FWEB_buildingsurvey_fk FOREIGN KEY (id) +REFERENCES cityobject (id); + +ALTER TABLE FWEB_buildingsurvey ADD CONSTRAINT FWEB_buildings_objectcl_fk FOREIGN KEY (objectclass_id) +REFERENCES objectclass (id); + +ALTER TABLE FWEB_buildingsurvey ADD CONSTRAINT FWEB_buildi_build_consi_fk FOREIGN KEY (building_consistsoffwesur_id) +REFERENCES FWEB_building (id); + +-- -------------------------------------------------------------------- +-- FWEB_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_energysurvey ADD CONSTRAINT FWEB_energysurvey_fk FOREIGN KEY (id) +REFERENCES FWEB_buildingsurvey (id); + +ALTER TABLE FWEB_energysurvey ADD CONSTRAINT FWEB_energy_build_energ_fk FOREIGN KEY (buildingsurv_energysurvey_id) +REFERENCES FWEB_buildingsurvey (id); + +-- -------------------------------------------------------------------- +-- FWEB_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_foodsurvey ADD CONSTRAINT FWEB_foodsurvey_fk FOREIGN KEY (id) +REFERENCES FWEB_buildingsurvey (id); + +ALTER TABLE FWEB_foodsurvey ADD CONSTRAINT FWEB_foodsu_build_foods_fk FOREIGN KEY (buildingsurvey_foodsurvey_id) +REFERENCES FWEB_buildingsurvey (id); + +-- -------------------------------------------------------------------- +-- FWEB_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_watersurvey ADD CONSTRAINT FWEB_watersurvey_fk FOREIGN KEY (id) +REFERENCES FWEB_buildingsurvey (id); + +ALTER TABLE FWEB_watersurvey ADD CONSTRAINT FWEB_waters_build_water_fk FOREIGN KEY (buildingsurve_watersurvey_id) +REFERENCES FWEB_buildingsurvey (id); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Indexes ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEB_buildingsurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEB_build_build_consi_fkx ON FWEB_buildingsurvey (building_consistsoffwesur_id); + +CREATE INDEX FWEB_building_objectcl_fkx ON FWEB_buildingsurvey (objectclass_id); + +-- -------------------------------------------------------------------- +-- FWEB_energysurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEB_energ_build_energ_fkx ON FWEB_energysurvey (buildingsurv_energysurvey_id); + +-- -------------------------------------------------------------------- +-- FWEB_foodsurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEB_foods_build_foods_fkx ON FWEB_foodsurvey (buildingsurvey_foodsurvey_id); + +-- -------------------------------------------------------------------- +-- FWEB_watersurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEB_water_build_water_fkx ON FWEB_watersurvey (buildingsurve_watersurvey_id); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Sequences *********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/public/FWEBuilding/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql b/public/FWEBuilding/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql new file mode 100644 index 0000000000000000000000000000000000000000..9a4d82f3f5184904b9f93cdded1a37a8b5c1c3d4 --- /dev/null +++ b/public/FWEBuilding/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql @@ -0,0 +1,6 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:53:44 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Disable Versioning ********************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +exec DBMS_WM.DisableVersioning('FWEB_building,FWEB_buildingsurvey,FWEB_energysurvey,FWEB_foodsurvey,FWEB_watersurvey,',true, true); diff --git a/public/FWEBuilding/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql b/public/FWEBuilding/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..7499a73fb07831949d664e3466ecb5093a3b2350 --- /dev/null +++ b/public/FWEBuilding/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql @@ -0,0 +1,82 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:53:44 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop foreign keys ********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEB_building +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_building + DROP CONSTRAINT FWEB_building_fk; + +-- -------------------------------------------------------------------- +-- FWEB_buildingsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_buildingsurvey + DROP CONSTRAINT FWEB_buildingsurvey_fk; + +ALTER TABLE FWEB_buildingsurvey + DROP CONSTRAINT FWEB_buildings_objectcl_fk; + +ALTER TABLE FWEB_buildingsurvey + DROP CONSTRAINT FWEB_buildi_build_consi_fk; + +-- -------------------------------------------------------------------- +-- FWEB_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_energysurvey + DROP CONSTRAINT FWEB_energysurvey_fk; + +ALTER TABLE FWEB_energysurvey + DROP CONSTRAINT FWEB_energy_build_energ_fk; + +-- -------------------------------------------------------------------- +-- FWEB_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_foodsurvey + DROP CONSTRAINT FWEB_foodsurvey_fk; + +ALTER TABLE FWEB_foodsurvey + DROP CONSTRAINT FWEB_foodsu_build_foods_fk; + +-- -------------------------------------------------------------------- +-- FWEB_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_watersurvey + DROP CONSTRAINT FWEB_watersurvey_fk; + +ALTER TABLE FWEB_watersurvey + DROP CONSTRAINT FWEB_waters_build_water_fk; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop tables *************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEB_building +-- -------------------------------------------------------------------- +DROP TABLE FWEB_building; + +-- -------------------------------------------------------------------- +-- FWEB_buildingsurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEB_buildingsurvey; + +-- -------------------------------------------------------------------- +-- FWEB_energysurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEB_energysurvey; + +-- -------------------------------------------------------------------- +-- FWEB_foodsurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEB_foodsurvey; + +-- -------------------------------------------------------------------- +-- FWEB_watersurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEB_watersurvey; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop Sequences ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +PURGE RECYCLEBIN; diff --git a/public/FWEBuilding/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql b/public/FWEBuilding/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql new file mode 100644 index 0000000000000000000000000000000000000000..ef143c7156da2b22d63099250eb29f66e510a92d --- /dev/null +++ b/public/FWEBuilding/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql @@ -0,0 +1,6 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:53:44 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Enable Versioning ********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +exec DBMS_WM.EnableVersioning('FWEB_building,FWEB_buildingsurvey,FWEB_energysurvey,FWEB_foodsurvey,FWEB_watersurvey,','VIEW_WO_OVERWRITE'); diff --git a/public/FWEBuilding/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql b/public/FWEBuilding/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..08f1ca2465b5c765b18571c688d8b0c7a4809bff --- /dev/null +++ b/public/FWEBuilding/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql @@ -0,0 +1,192 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:53:44 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create tables ************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEB_building +-- -------------------------------------------------------------------- +CREATE TABLE FWEB_building +( + id INTEGER NOT NULL, + fweareaname VARCHAR(1000), + fwesystemname VARCHAR(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEB_buildingsurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEB_buildingsurvey +( + id INTEGER NOT NULL, + building_consistsoffwesur_id INTEGER, + buildingfootprintarea NUMERIC, + buildingfootprintarea_uom VARCHAR(1000), + objectclass_id INTEGER, + occupants INTEGER, + surveydescription VARCHAR(1000), + surveyyear INTEGER, + surveyyearversion NUMERIC, + totalfloorarea NUMERIC, + totalfloorarea_uom VARCHAR(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEB_energysurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEB_energysurvey +( + id INTEGER NOT NULL, + buildingsurv_energysurvey_id INTEGER, + electricitypotentialfrompv NUMERIC, + electricitypotentialfrompvun VARCHAR(1000), + residentialelectricitydema_1 VARCHAR(1000), + residentialelectricitydemand NUMERIC, + spacecoolingdemand NUMERIC, + spacecoolingdemandunit VARCHAR(1000), + spaceheatingdemand NUMERIC, + spaceheatingdemandunit VARCHAR(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEB_foodsurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEB_foodsurvey +( + id INTEGER NOT NULL, + buildingsurvey_foodsurvey_id INTEGER, + foodcategory VARCHAR(1000), + foodcategory_codespace VARCHAR(1000), + foodconsumption NUMERIC, + foodconsumptionunit VARCHAR(1000), + fooddemand NUMERIC, + fooddemandunit VARCHAR(1000), + foodproduction NUMERIC, + foodproductionenergydemand NUMERIC, + foodproductionenergydemandun VARCHAR(1000), + foodproductionunit VARCHAR(1000), + foodproductionwaterdemand NUMERIC, + foodproductionwaterdemanduni VARCHAR(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEB_watersurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEB_watersurvey +( + id INTEGER NOT NULL, + buildingsurve_watersurvey_id INTEGER, + domestichotwaterdemand NUMERIC, + domestichotwaterdemandunit VARCHAR(1000), + domestichotwaterenergydema_1 VARCHAR(1000), + domestichotwaterenergydemand NUMERIC, + domesticsolidwaste NUMERIC, + domesticsolidwasteunit VARCHAR(1000), + domesticwaterdemand NUMERIC, + domesticwaterdemandunit VARCHAR(1000), + domesticwaterwaste NUMERIC, + domesticwaterwasteunit VARCHAR(1000), + totaldomesticwaste NUMERIC, + totaldomesticwasteunit VARCHAR(1000), + PRIMARY KEY (id) +); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create foreign keys ******************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEB_building +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_building ADD CONSTRAINT FWEB_building_fk FOREIGN KEY (id) +REFERENCES building (id); + +-- -------------------------------------------------------------------- +-- FWEB_buildingsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_buildingsurvey ADD CONSTRAINT FWEB_buildingsurvey_fk FOREIGN KEY (id) +REFERENCES cityobject (id); + +ALTER TABLE FWEB_buildingsurvey ADD CONSTRAINT FWEB_buildings_objectcl_fk FOREIGN KEY (objectclass_id) +REFERENCES objectclass (id); + +ALTER TABLE FWEB_buildingsurvey ADD CONSTRAINT FWEB_buildi_build_consi_fk FOREIGN KEY (building_consistsoffwesur_id) +REFERENCES FWEB_building (id); + +-- -------------------------------------------------------------------- +-- FWEB_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_energysurvey ADD CONSTRAINT FWEB_energysurvey_fk FOREIGN KEY (id) +REFERENCES FWEB_buildingsurvey (id); + +ALTER TABLE FWEB_energysurvey ADD CONSTRAINT FWEB_energy_build_energ_fk FOREIGN KEY (buildingsurv_energysurvey_id) +REFERENCES FWEB_buildingsurvey (id); + +-- -------------------------------------------------------------------- +-- FWEB_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_foodsurvey ADD CONSTRAINT FWEB_foodsurvey_fk FOREIGN KEY (id) +REFERENCES FWEB_buildingsurvey (id); + +ALTER TABLE FWEB_foodsurvey ADD CONSTRAINT FWEB_foodsu_build_foods_fk FOREIGN KEY (buildingsurvey_foodsurvey_id) +REFERENCES FWEB_buildingsurvey (id); + +-- -------------------------------------------------------------------- +-- FWEB_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_watersurvey ADD CONSTRAINT FWEB_watersurvey_fk FOREIGN KEY (id) +REFERENCES FWEB_buildingsurvey (id); + +ALTER TABLE FWEB_watersurvey ADD CONSTRAINT FWEB_waters_build_water_fk FOREIGN KEY (buildingsurve_watersurvey_id) +REFERENCES FWEB_buildingsurvey (id); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Indexes ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEB_buildingsurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEB_build_build_consi_fkx ON FWEB_buildingsurvey + USING btree + ( + building_consistsoffwesur_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +CREATE INDEX FWEB_building_objectcl_fkx ON FWEB_buildingsurvey + USING btree + ( + objectclass_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWEB_energysurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEB_energ_build_energ_fkx ON FWEB_energysurvey + USING btree + ( + buildingsurv_energysurvey_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWEB_foodsurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEB_foods_build_foods_fkx ON FWEB_foodsurvey + USING btree + ( + buildingsurvey_foodsurvey_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWEB_watersurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEB_water_build_water_fkx ON FWEB_watersurvey + USING btree + ( + buildingsurve_watersurvey_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Sequences *********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/public/FWEBuilding/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql b/public/FWEBuilding/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..3aea2779ed85e5426c8a59804f2920c6c2ba8f64 --- /dev/null +++ b/public/FWEBuilding/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql @@ -0,0 +1,80 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:53:44 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop foreign keys ********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEB_building +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_building + DROP CONSTRAINT FWEB_building_fk; + +-- -------------------------------------------------------------------- +-- FWEB_buildingsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_buildingsurvey + DROP CONSTRAINT FWEB_buildingsurvey_fk; + +ALTER TABLE FWEB_buildingsurvey + DROP CONSTRAINT FWEB_buildings_objectcl_fk; + +ALTER TABLE FWEB_buildingsurvey + DROP CONSTRAINT FWEB_buildi_build_consi_fk; + +-- -------------------------------------------------------------------- +-- FWEB_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_energysurvey + DROP CONSTRAINT FWEB_energysurvey_fk; + +ALTER TABLE FWEB_energysurvey + DROP CONSTRAINT FWEB_energy_build_energ_fk; + +-- -------------------------------------------------------------------- +-- FWEB_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_foodsurvey + DROP CONSTRAINT FWEB_foodsurvey_fk; + +ALTER TABLE FWEB_foodsurvey + DROP CONSTRAINT FWEB_foodsu_build_foods_fk; + +-- -------------------------------------------------------------------- +-- FWEB_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEB_watersurvey + DROP CONSTRAINT FWEB_watersurvey_fk; + +ALTER TABLE FWEB_watersurvey + DROP CONSTRAINT FWEB_waters_build_water_fk; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop tables *************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEB_building +-- -------------------------------------------------------------------- +DROP TABLE FWEB_building; + +-- -------------------------------------------------------------------- +-- FWEB_buildingsurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEB_buildingsurvey; + +-- -------------------------------------------------------------------- +-- FWEB_energysurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEB_energysurvey; + +-- -------------------------------------------------------------------- +-- FWEB_foodsurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEB_foodsurvey; + +-- -------------------------------------------------------------------- +-- FWEB_watersurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEB_watersurvey; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop Sequences ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/public/FWEBuilding/v2.1/DDL/schema-mapping/schema-mapping.xml b/public/FWEBuilding/v2.1/DDL/schema-mapping/schema-mapping.xml new file mode 100644 index 0000000000000000000000000000000000000000..7db9e1b045faee8b9bf06b7f5ffffebe3982cc6f --- /dev/null +++ b/public/FWEBuilding/v2.1/DDL/schema-mapping/schema-mapping.xml @@ -0,0 +1,103 @@ + + + + FWEBuilding + 2.1 + Building thematic class of FWE ADE + FWEB + + + + http://transfer.hft-stuttgart.de/pages/fwe-ade/FWEBuilding/v2.1/XSD + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/FWELanduse/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql b/public/FWELanduse/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..2fe06a281842751ec1d667c5ccd43d8e4ad85f88 --- /dev/null +++ b/public/FWELanduse/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql @@ -0,0 +1,192 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:54:48 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create tables ************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEL_energysurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEL_energysurvey +( + id INTEGER NOT NULL, + biomassprimaryenergypotent_1 VARCHAR2(1000), + biomassprimaryenergypotentia NUMBER, + biomasstobioethanol NUMBER, + biomasstobioethanolunit VARCHAR2(1000), + biomasstobiogas NUMBER, + biomasstobiogasunit VARCHAR2(1000), + biomasstoelectricitypotent_1 VARCHAR2(1000), + biomasstoelectricitypotentia NUMBER, + biomasstoenergywoods NUMBER, + biomasstoenergywoodsunit VARCHAR2(1000), + biomasstoplantoil NUMBER, + biomasstoplantoilunit VARCHAR2(1000), + biomasstoresidualsolidfuel NUMBER, + biomasstoresidualsolidfuelun VARCHAR2(1000), + biomasstosolidfuel NUMBER, + biomasstosolidfuelunit VARCHAR2(1000), + biomasstothermalpotential NUMBER, + biomasstothermalpotentialuni VARCHAR2(1000), + electricitypotentialfrompv_1 VARCHAR2(1000), + electricitypotentialfrompvbu NUMBER, + landusesurve_energysurvey_id INTEGER, + residentialelectricitydema_1 VARCHAR2(1000), + residentialelectricitydemand NUMBER, + spacecoolingdemand NUMBER, + spacecoolingdemandunit VARCHAR2(1000), + spaceheatingdemand NUMBER, + spaceheatingdemandunit VARCHAR2(1000), + vegetationcovercat_codespace VARCHAR2(1000), + vegetationcovercategory VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEL_foodsurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEL_foodsurvey +( + id INTEGER NOT NULL, + foodcategory VARCHAR2(1000), + foodcategory_codespace VARCHAR2(1000), + foodconsumption NUMBER, + foodconsumptionunit VARCHAR2(1000), + fooddemand NUMBER, + fooddemandunit VARCHAR2(1000), + foodproduction NUMBER, + foodproductionenergydemand NUMBER, + foodproductionengerydemandun VARCHAR2(1000), + foodproductionunit VARCHAR2(1000), + foodproductionwaterdemand NUMBER, + foodproductionwaterdemanduni VARCHAR2(1000), + landusesurvey_foodsurvey_id INTEGER, + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEL_land_use +-- -------------------------------------------------------------------- +CREATE TABLE FWEL_land_use +( + id INTEGER NOT NULL, + fweareaname VARCHAR2(1000), + fwesystemname VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEL_landusesurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEL_landusesurvey +( + id INTEGER NOT NULL, + buildingfootprintarea NUMBER, + buildingfootprintarea_uom VARCHAR2(1000), + land_use_consistsoffwesur_id INTEGER, + objectclass_id INTEGER, + population INTEGER, + surfacearea NUMBER, + surfacearea_uom VARCHAR2(1000), + surveydescription VARCHAR2(1000), + surveyyear INTEGER, + surveyyearversion NUMBER, + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEL_watersurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEL_watersurvey +( + id INTEGER NOT NULL, + domestichotwaterdemand NUMBER, + domestichotwaterdemandunit VARCHAR2(1000), + domestichotwaterenergydema_1 VARCHAR2(1000), + domestichotwaterenergydemand NUMBER, + domesticsolidwaste NUMBER, + domesticsolidwasteunit VARCHAR2(1000), + domesticwaterdemand NUMBER, + domesticwaterdemandunit VARCHAR2(1000), + domesticwaterwaste NUMBER, + domesticwaterwasteunit VARCHAR2(1000), + landusesurvey_watersurvey_id INTEGER, + totaldomesticwaste NUMBER, + totaldomesticwasteunit VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create foreign keys ******************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEL_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_energysurvey ADD CONSTRAINT FWEL_energysurvey_fk FOREIGN KEY (id) +REFERENCES FWEL_landusesurvey (id); + +ALTER TABLE FWEL_energysurvey ADD CONSTRAINT FWEL_energy_landu_energ_fk FOREIGN KEY (landusesurve_energysurvey_id) +REFERENCES FWEL_landusesurvey (id); + +-- -------------------------------------------------------------------- +-- FWEL_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_foodsurvey ADD CONSTRAINT FWEL_foodsurvey_fk FOREIGN KEY (id) +REFERENCES FWEL_landusesurvey (id); + +ALTER TABLE FWEL_foodsurvey ADD CONSTRAINT FWEL_foodsu_landu_foods_fk FOREIGN KEY (landusesurvey_foodsurvey_id) +REFERENCES FWEL_landusesurvey (id); + +-- -------------------------------------------------------------------- +-- FWEL_land_use +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_land_use ADD CONSTRAINT FWEL_land_use_fk FOREIGN KEY (id) +REFERENCES land_use (id); + +-- -------------------------------------------------------------------- +-- FWEL_landusesurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_landusesurvey ADD CONSTRAINT FWEL_landusesurvey_fk FOREIGN KEY (id) +REFERENCES cityobject (id); + +ALTER TABLE FWEL_landusesurvey ADD CONSTRAINT FWEL_landusesu_objectcl_fk FOREIGN KEY (objectclass_id) +REFERENCES objectclass (id); + +ALTER TABLE FWEL_landusesurvey ADD CONSTRAINT FWEL_land_land_use_cons_fk FOREIGN KEY (land_use_consistsoffwesur_id) +REFERENCES FWEL_land_use (id); + +-- -------------------------------------------------------------------- +-- FWEL_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_watersurvey ADD CONSTRAINT FWEL_watersurvey_fk FOREIGN KEY (id) +REFERENCES FWEL_landusesurvey (id); + +ALTER TABLE FWEL_watersurvey ADD CONSTRAINT FWEL_waters_landu_water_fk FOREIGN KEY (landusesurvey_watersurvey_id) +REFERENCES FWEL_landusesurvey (id); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Indexes ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEL_energysurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEL_energ_landu_energ_fkx ON FWEL_energysurvey (landusesurve_energysurvey_id); + +-- -------------------------------------------------------------------- +-- FWEL_foodsurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEL_foods_landu_foods_fkx ON FWEL_foodsurvey (landusesurvey_foodsurvey_id); + +-- -------------------------------------------------------------------- +-- FWEL_landusesurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEL_land_land_use_con_fkx ON FWEL_landusesurvey (land_use_consistsoffwesur_id); + +CREATE INDEX FWEL_landuses_objectcl_fkx ON FWEL_landusesurvey (objectclass_id); + +-- -------------------------------------------------------------------- +-- FWEL_watersurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEL_water_landu_water_fkx ON FWEL_watersurvey (landusesurvey_watersurvey_id); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Sequences *********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/public/FWELanduse/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql b/public/FWELanduse/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql new file mode 100644 index 0000000000000000000000000000000000000000..8247080f786911736fe2454722e608d4bd46350d --- /dev/null +++ b/public/FWELanduse/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql @@ -0,0 +1,6 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:54:48 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Disable Versioning ********************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +exec DBMS_WM.DisableVersioning('FWEL_energysurvey,FWEL_foodsurvey,FWEL_land_use,FWEL_landusesurvey,FWEL_watersurvey,',true, true); diff --git a/public/FWELanduse/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql b/public/FWELanduse/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..e426f6720a6de651d52e269215cd6c01b5ebafa8 --- /dev/null +++ b/public/FWELanduse/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql @@ -0,0 +1,82 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:54:48 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop foreign keys ********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEL_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_energysurvey + DROP CONSTRAINT FWEL_energysurvey_fk; + +ALTER TABLE FWEL_energysurvey + DROP CONSTRAINT FWEL_energy_landu_energ_fk; + +-- -------------------------------------------------------------------- +-- FWEL_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_foodsurvey + DROP CONSTRAINT FWEL_foodsurvey_fk; + +ALTER TABLE FWEL_foodsurvey + DROP CONSTRAINT FWEL_foodsu_landu_foods_fk; + +-- -------------------------------------------------------------------- +-- FWEL_land_use +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_land_use + DROP CONSTRAINT FWEL_land_use_fk; + +-- -------------------------------------------------------------------- +-- FWEL_landusesurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_landusesurvey + DROP CONSTRAINT FWEL_landusesurvey_fk; + +ALTER TABLE FWEL_landusesurvey + DROP CONSTRAINT FWEL_landusesu_objectcl_fk; + +ALTER TABLE FWEL_landusesurvey + DROP CONSTRAINT FWEL_land_land_use_cons_fk; + +-- -------------------------------------------------------------------- +-- FWEL_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_watersurvey + DROP CONSTRAINT FWEL_watersurvey_fk; + +ALTER TABLE FWEL_watersurvey + DROP CONSTRAINT FWEL_waters_landu_water_fk; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop tables *************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEL_energysurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEL_energysurvey; + +-- -------------------------------------------------------------------- +-- FWEL_foodsurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEL_foodsurvey; + +-- -------------------------------------------------------------------- +-- FWEL_land_use +-- -------------------------------------------------------------------- +DROP TABLE FWEL_land_use; + +-- -------------------------------------------------------------------- +-- FWEL_landusesurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEL_landusesurvey; + +-- -------------------------------------------------------------------- +-- FWEL_watersurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEL_watersurvey; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop Sequences ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +PURGE RECYCLEBIN; diff --git a/public/FWELanduse/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql b/public/FWELanduse/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql new file mode 100644 index 0000000000000000000000000000000000000000..9881ca1124747d9316380ac859c43830ea43ed2d --- /dev/null +++ b/public/FWELanduse/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql @@ -0,0 +1,6 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:54:48 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Enable Versioning ********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +exec DBMS_WM.EnableVersioning('FWEL_energysurvey,FWEL_foodsurvey,FWEL_land_use,FWEL_landusesurvey,FWEL_watersurvey,','VIEW_WO_OVERWRITE'); diff --git a/public/FWELanduse/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql b/public/FWELanduse/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..b5777dd2f65848472aee0f551637d0c3bc0bce0b --- /dev/null +++ b/public/FWELanduse/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql @@ -0,0 +1,212 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:54:48 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create tables ************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEL_energysurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEL_energysurvey +( + id INTEGER NOT NULL, + biomassprimaryenergypotent_1 VARCHAR(1000), + biomassprimaryenergypotentia NUMERIC, + biomasstobioethanol NUMERIC, + biomasstobioethanolunit VARCHAR(1000), + biomasstobiogas NUMERIC, + biomasstobiogasunit VARCHAR(1000), + biomasstoelectricitypotent_1 VARCHAR(1000), + biomasstoelectricitypotentia NUMERIC, + biomasstoenergywoods NUMERIC, + biomasstoenergywoodsunit VARCHAR(1000), + biomasstoplantoil NUMERIC, + biomasstoplantoilunit VARCHAR(1000), + biomasstoresidualsolidfuel NUMERIC, + biomasstoresidualsolidfuelun VARCHAR(1000), + biomasstosolidfuel NUMERIC, + biomasstosolidfuelunit VARCHAR(1000), + biomasstothermalpotential NUMERIC, + biomasstothermalpotentialuni VARCHAR(1000), + electricitypotentialfrompv_1 VARCHAR(1000), + electricitypotentialfrompvbu NUMERIC, + landusesurve_energysurvey_id INTEGER, + residentialelectricitydema_1 VARCHAR(1000), + residentialelectricitydemand NUMERIC, + spacecoolingdemand NUMERIC, + spacecoolingdemandunit VARCHAR(1000), + spaceheatingdemand NUMERIC, + spaceheatingdemandunit VARCHAR(1000), + vegetationcovercat_codespace VARCHAR(1000), + vegetationcovercategory VARCHAR(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEL_foodsurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEL_foodsurvey +( + id INTEGER NOT NULL, + foodcategory VARCHAR(1000), + foodcategory_codespace VARCHAR(1000), + foodconsumption NUMERIC, + foodconsumptionunit VARCHAR(1000), + fooddemand NUMERIC, + fooddemandunit VARCHAR(1000), + foodproduction NUMERIC, + foodproductionenergydemand NUMERIC, + foodproductionengerydemandun VARCHAR(1000), + foodproductionunit VARCHAR(1000), + foodproductionwaterdemand NUMERIC, + foodproductionwaterdemanduni VARCHAR(1000), + landusesurvey_foodsurvey_id INTEGER, + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEL_land_use +-- -------------------------------------------------------------------- +CREATE TABLE FWEL_land_use +( + id INTEGER NOT NULL, + fweareaname VARCHAR(1000), + fwesystemname VARCHAR(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEL_landusesurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEL_landusesurvey +( + id INTEGER NOT NULL, + buildingfootprintarea NUMERIC, + buildingfootprintarea_uom VARCHAR(1000), + land_use_consistsoffwesur_id INTEGER, + objectclass_id INTEGER, + population INTEGER, + surfacearea NUMERIC, + surfacearea_uom VARCHAR(1000), + surveydescription VARCHAR(1000), + surveyyear INTEGER, + surveyyearversion NUMERIC, + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWEL_watersurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWEL_watersurvey +( + id INTEGER NOT NULL, + domestichotwaterdemand NUMERIC, + domestichotwaterdemandunit VARCHAR(1000), + domestichotwaterenergydema_1 VARCHAR(1000), + domestichotwaterenergydemand NUMERIC, + domesticsolidwaste NUMERIC, + domesticsolidwasteunit VARCHAR(1000), + domesticwaterdemand NUMERIC, + domesticwaterdemandunit VARCHAR(1000), + domesticwaterwaste NUMERIC, + domesticwaterwasteunit VARCHAR(1000), + landusesurvey_watersurvey_id INTEGER, + totaldomesticwaste NUMERIC, + totaldomesticwasteunit VARCHAR(1000), + PRIMARY KEY (id) +); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create foreign keys ******************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEL_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_energysurvey ADD CONSTRAINT FWEL_energysurvey_fk FOREIGN KEY (id) +REFERENCES FWEL_landusesurvey (id); + +ALTER TABLE FWEL_energysurvey ADD CONSTRAINT FWEL_energy_landu_energ_fk FOREIGN KEY (landusesurve_energysurvey_id) +REFERENCES FWEL_landusesurvey (id); + +-- -------------------------------------------------------------------- +-- FWEL_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_foodsurvey ADD CONSTRAINT FWEL_foodsurvey_fk FOREIGN KEY (id) +REFERENCES FWEL_landusesurvey (id); + +ALTER TABLE FWEL_foodsurvey ADD CONSTRAINT FWEL_foodsu_landu_foods_fk FOREIGN KEY (landusesurvey_foodsurvey_id) +REFERENCES FWEL_landusesurvey (id); + +-- -------------------------------------------------------------------- +-- FWEL_land_use +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_land_use ADD CONSTRAINT FWEL_land_use_fk FOREIGN KEY (id) +REFERENCES land_use (id); + +-- -------------------------------------------------------------------- +-- FWEL_landusesurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_landusesurvey ADD CONSTRAINT FWEL_landusesurvey_fk FOREIGN KEY (id) +REFERENCES cityobject (id); + +ALTER TABLE FWEL_landusesurvey ADD CONSTRAINT FWEL_landusesu_objectcl_fk FOREIGN KEY (objectclass_id) +REFERENCES objectclass (id); + +ALTER TABLE FWEL_landusesurvey ADD CONSTRAINT FWEL_land_land_use_cons_fk FOREIGN KEY (land_use_consistsoffwesur_id) +REFERENCES FWEL_land_use (id); + +-- -------------------------------------------------------------------- +-- FWEL_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_watersurvey ADD CONSTRAINT FWEL_watersurvey_fk FOREIGN KEY (id) +REFERENCES FWEL_landusesurvey (id); + +ALTER TABLE FWEL_watersurvey ADD CONSTRAINT FWEL_waters_landu_water_fk FOREIGN KEY (landusesurvey_watersurvey_id) +REFERENCES FWEL_landusesurvey (id); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Indexes ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEL_energysurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEL_energ_landu_energ_fkx ON FWEL_energysurvey + USING btree + ( + landusesurve_energysurvey_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWEL_foodsurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEL_foods_landu_foods_fkx ON FWEL_foodsurvey + USING btree + ( + landusesurvey_foodsurvey_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWEL_landusesurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEL_land_land_use_con_fkx ON FWEL_landusesurvey + USING btree + ( + land_use_consistsoffwesur_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +CREATE INDEX FWEL_landuses_objectcl_fkx ON FWEL_landusesurvey + USING btree + ( + objectclass_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWEL_watersurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWEL_water_landu_water_fkx ON FWEL_watersurvey + USING btree + ( + landusesurvey_watersurvey_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Sequences *********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/public/FWELanduse/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql b/public/FWELanduse/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..d8dc20da34eddf79655c5179c1275b946147a88b --- /dev/null +++ b/public/FWELanduse/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql @@ -0,0 +1,80 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:54:48 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop foreign keys ********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEL_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_energysurvey + DROP CONSTRAINT FWEL_energysurvey_fk; + +ALTER TABLE FWEL_energysurvey + DROP CONSTRAINT FWEL_energy_landu_energ_fk; + +-- -------------------------------------------------------------------- +-- FWEL_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_foodsurvey + DROP CONSTRAINT FWEL_foodsurvey_fk; + +ALTER TABLE FWEL_foodsurvey + DROP CONSTRAINT FWEL_foodsu_landu_foods_fk; + +-- -------------------------------------------------------------------- +-- FWEL_land_use +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_land_use + DROP CONSTRAINT FWEL_land_use_fk; + +-- -------------------------------------------------------------------- +-- FWEL_landusesurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_landusesurvey + DROP CONSTRAINT FWEL_landusesurvey_fk; + +ALTER TABLE FWEL_landusesurvey + DROP CONSTRAINT FWEL_landusesu_objectcl_fk; + +ALTER TABLE FWEL_landusesurvey + DROP CONSTRAINT FWEL_land_land_use_cons_fk; + +-- -------------------------------------------------------------------- +-- FWEL_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWEL_watersurvey + DROP CONSTRAINT FWEL_watersurvey_fk; + +ALTER TABLE FWEL_watersurvey + DROP CONSTRAINT FWEL_waters_landu_water_fk; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop tables *************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWEL_energysurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEL_energysurvey; + +-- -------------------------------------------------------------------- +-- FWEL_foodsurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEL_foodsurvey; + +-- -------------------------------------------------------------------- +-- FWEL_land_use +-- -------------------------------------------------------------------- +DROP TABLE FWEL_land_use; + +-- -------------------------------------------------------------------- +-- FWEL_landusesurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEL_landusesurvey; + +-- -------------------------------------------------------------------- +-- FWEL_watersurvey +-- -------------------------------------------------------------------- +DROP TABLE FWEL_watersurvey; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop Sequences ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/public/FWELanduse/v2.1/DDL/schema-mapping/schema-mapping.xml b/public/FWELanduse/v2.1/DDL/schema-mapping/schema-mapping.xml new file mode 100644 index 0000000000000000000000000000000000000000..a1bd70f37dd1d8e89f9d0d66d88d07512b5c5fe5 --- /dev/null +++ b/public/FWELanduse/v2.1/DDL/schema-mapping/schema-mapping.xml @@ -0,0 +1,125 @@ + + + + FWELanduse + 2.1 + Landuse thematic class of FWE ADE + FWEL + + + + http://transfer.hft-stuttgart.de/pages/fwe-ade/FWELanduse/v2.1/XSD + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/FWESystem/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql b/public/FWESystem/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..7606927923ee0d374f12dd8a7914ad383d743eb0 --- /dev/null +++ b/public/FWESystem/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql @@ -0,0 +1,198 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:57:11 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create tables ************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWES_energysurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWES_energysurvey +( + id INTEGER NOT NULL, + biomasselectricitypotential NUMBER, + biomasselectricitypotentialu VARCHAR2(1000), + biomassprimaryenergypotent_1 VARCHAR2(1000), + biomassprimaryenergypotentia NUMBER, + biomassthermalpotential NUMBER, + biomassthermalpotentialunit VARCHAR2(1000), + electricitypotentialfrompv_1 VARCHAR2(1000), + electricitypotentialfrompvbu NUMBER, + residentialelectricitydema_1 VARCHAR2(1000), + residentialelectricitydemand NUMBER, + spacecoolingdemand NUMBER, + spacecoolingdemandunit VARCHAR2(1000), + spaceheatingdemand NUMBER, + spaceheatingdemandunit VARCHAR2(1000), + systemsurvey_energysurvey_id INTEGER, + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWES_foodsurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWES_foodsurvey +( + id INTEGER NOT NULL, + foodcategory VARCHAR2(1000), + foodcategory_codespace VARCHAR2(1000), + foodconsumption NUMBER, + foodconsumptionunit VARCHAR2(1000), + fooddemand NUMBER, + fooddemandunit VARCHAR2(1000), + foodimport NUMBER, + foodimportunit VARCHAR2(1000), + foodproduction NUMBER, + foodproductionenergydemand NUMBER, + foodproductionenergydemandun VARCHAR2(1000), + foodproductionunit VARCHAR2(1000), + foodproductionwaterdemand NUMBER, + foodproductionwaterdemanduni VARCHAR2(1000), + systemsurvey_foodsurvey_id INTEGER, + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWES_fwesystem +-- -------------------------------------------------------------------- +CREATE TABLE FWES_fwesystem +( + id INTEGER NOT NULL, + fwesystemname VARCHAR2(1000), + lod0multisurface_id INTEGER, + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWES_systemsurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWES_systemsurvey +( + id INTEGER NOT NULL, + buildingfootprintarea NUMBER, + buildingfootprintarea_uom VARCHAR2(1000), + fwesystem_consistsoffwesu_id INTEGER, + objectclass_id INTEGER, + openplotarea NUMBER, + openplotarea_uom VARCHAR2(1000), + population INTEGER, + settlementarea NUMBER, + settlementarea_uom VARCHAR2(1000), + surfacearea NUMBER, + surfacearea_uom VARCHAR2(1000), + surveydescription VARCHAR2(1000), + surveyyear INTEGER, + surveyyearversion NUMBER, + trafficarea NUMBER, + trafficarea_uom VARCHAR2(1000), + vegetationarea NUMBER, + vegetationarea_uom VARCHAR2(1000), + waterbodyarea NUMBER, + waterbodyarea_uom VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWES_watersurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWES_watersurvey +( + id INTEGER NOT NULL, + domestichotwaterdemand NUMBER, + domestichotwaterdemandunit VARCHAR2(1000), + domesticsolidwaste NUMBER, + domesticsolidwasteunit VARCHAR2(1000), + domesticwaterdemand NUMBER, + domesticwaterdemandunit VARCHAR2(1000), + domesticwaterwaste NUMBER, + domesticwaterwasteunit VARCHAR2(1000), + systemsurvey_watersurvey_id INTEGER, + totaldomesticwaste NUMBER, + totaldomesticwasteenergypo_1 VARCHAR2(1000), + totaldomesticwasteenergypote NUMBER, + totaldomesticwasteunit VARCHAR2(1000), + PRIMARY KEY (id) +); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create foreign keys ******************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWES_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_energysurvey ADD CONSTRAINT FWES_energysurvey_fk FOREIGN KEY (id) +REFERENCES FWES_systemsurvey (id); + +ALTER TABLE FWES_energysurvey ADD CONSTRAINT FWES_energy_syste_energ_fk FOREIGN KEY (systemsurvey_energysurvey_id) +REFERENCES FWES_systemsurvey (id); + +-- -------------------------------------------------------------------- +-- FWES_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_foodsurvey ADD CONSTRAINT FWES_foodsurvey_fk FOREIGN KEY (id) +REFERENCES FWES_systemsurvey (id); + +ALTER TABLE FWES_foodsurvey ADD CONSTRAINT FWES_foodsu_syste_foods_fk FOREIGN KEY (systemsurvey_foodsurvey_id) +REFERENCES FWES_systemsurvey (id); + +-- -------------------------------------------------------------------- +-- FWES_fwesystem +-- -------------------------------------------------------------------- +ALTER TABLE FWES_fwesystem ADD CONSTRAINT FWES_fwesystem_fk FOREIGN KEY (id) +REFERENCES cityobject (id); + +ALTER TABLE FWES_fwesystem ADD CONSTRAINT FWES_fwesystem_lod0mult_fk FOREIGN KEY (lod0multisurface_id) +REFERENCES surface_geometry (id); + +-- -------------------------------------------------------------------- +-- FWES_systemsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_systemsurvey ADD CONSTRAINT FWES_systemsurvey_fk FOREIGN KEY (id) +REFERENCES cityobject (id); + +ALTER TABLE FWES_systemsurvey ADD CONSTRAINT FWES_systemsur_objectcl_fk FOREIGN KEY (objectclass_id) +REFERENCES objectclass (id); + +ALTER TABLE FWES_systemsurvey ADD CONSTRAINT FWES_system_fwesy_consi_fk FOREIGN KEY (fwesystem_consistsoffwesu_id) +REFERENCES FWES_fwesystem (id); + +-- -------------------------------------------------------------------- +-- FWES_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_watersurvey ADD CONSTRAINT FWES_watersurvey_fk FOREIGN KEY (id) +REFERENCES FWES_systemsurvey (id); + +ALTER TABLE FWES_watersurvey ADD CONSTRAINT FWES_waters_syste_water_fk FOREIGN KEY (systemsurvey_watersurvey_id) +REFERENCES FWES_systemsurvey (id); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Indexes ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWES_energysurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWES_energ_syste_energ_fkx ON FWES_energysurvey (systemsurvey_energysurvey_id); + +-- -------------------------------------------------------------------- +-- FWES_foodsurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWES_foods_syste_foods_fkx ON FWES_foodsurvey (systemsurvey_foodsurvey_id); + +-- -------------------------------------------------------------------- +-- FWES_fwesystem +-- -------------------------------------------------------------------- +CREATE INDEX FWES_fwesyste_lod0mult_fkx ON FWES_fwesystem (lod0multisurface_id); + +-- -------------------------------------------------------------------- +-- FWES_systemsurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWES_syste_fwesy_consi_fkx ON FWES_systemsurvey (fwesystem_consistsoffwesu_id); + +CREATE INDEX FWES_systemsu_objectcl_fkx ON FWES_systemsurvey (objectclass_id); + +-- -------------------------------------------------------------------- +-- FWES_watersurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWES_water_syste_water_fkx ON FWES_watersurvey (systemsurvey_watersurvey_id); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Sequences *********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/public/FWESystem/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql b/public/FWESystem/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql new file mode 100644 index 0000000000000000000000000000000000000000..ef1dd6e05dcf7766af243b040e6e8f6985cfd60e --- /dev/null +++ b/public/FWESystem/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql @@ -0,0 +1,6 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:57:11 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Disable Versioning ********************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +exec DBMS_WM.DisableVersioning('FWES_energysurvey,FWES_foodsurvey,FWES_fwesystem,FWES_systemsurvey,FWES_watersurvey,',true, true); diff --git a/public/FWESystem/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql b/public/FWESystem/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..4c808c0d9f67c61be680affdbd9bd5fc7b8ec8af --- /dev/null +++ b/public/FWESystem/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql @@ -0,0 +1,85 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:57:11 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop foreign keys ********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWES_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_energysurvey + DROP CONSTRAINT FWES_energysurvey_fk; + +ALTER TABLE FWES_energysurvey + DROP CONSTRAINT FWES_energy_syste_energ_fk; + +-- -------------------------------------------------------------------- +-- FWES_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_foodsurvey + DROP CONSTRAINT FWES_foodsurvey_fk; + +ALTER TABLE FWES_foodsurvey + DROP CONSTRAINT FWES_foodsu_syste_foods_fk; + +-- -------------------------------------------------------------------- +-- FWES_fwesystem +-- -------------------------------------------------------------------- +ALTER TABLE FWES_fwesystem + DROP CONSTRAINT FWES_fwesystem_fk; + +ALTER TABLE FWES_fwesystem + DROP CONSTRAINT FWES_fwesystem_lod0mult_fk; + +-- -------------------------------------------------------------------- +-- FWES_systemsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_systemsurvey + DROP CONSTRAINT FWES_systemsurvey_fk; + +ALTER TABLE FWES_systemsurvey + DROP CONSTRAINT FWES_systemsur_objectcl_fk; + +ALTER TABLE FWES_systemsurvey + DROP CONSTRAINT FWES_system_fwesy_consi_fk; + +-- -------------------------------------------------------------------- +-- FWES_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_watersurvey + DROP CONSTRAINT FWES_watersurvey_fk; + +ALTER TABLE FWES_watersurvey + DROP CONSTRAINT FWES_waters_syste_water_fk; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop tables *************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWES_energysurvey +-- -------------------------------------------------------------------- +DROP TABLE FWES_energysurvey; + +-- -------------------------------------------------------------------- +-- FWES_foodsurvey +-- -------------------------------------------------------------------- +DROP TABLE FWES_foodsurvey; + +-- -------------------------------------------------------------------- +-- FWES_fwesystem +-- -------------------------------------------------------------------- +DROP TABLE FWES_fwesystem; + +-- -------------------------------------------------------------------- +-- FWES_systemsurvey +-- -------------------------------------------------------------------- +DROP TABLE FWES_systemsurvey; + +-- -------------------------------------------------------------------- +-- FWES_watersurvey +-- -------------------------------------------------------------------- +DROP TABLE FWES_watersurvey; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop Sequences ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +PURGE RECYCLEBIN; diff --git a/public/FWESystem/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql b/public/FWESystem/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql new file mode 100644 index 0000000000000000000000000000000000000000..2275701c3e1e6721463b46f5aa4676a85fb9a9f9 --- /dev/null +++ b/public/FWESystem/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql @@ -0,0 +1,6 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:57:11 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Enable Versioning ********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +exec DBMS_WM.EnableVersioning('FWES_energysurvey,FWES_foodsurvey,FWES_fwesystem,FWES_systemsurvey,FWES_watersurvey,','VIEW_WO_OVERWRITE'); diff --git a/public/FWESystem/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql b/public/FWESystem/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..2d068a2ba8c91f59cdacc78d34a9d660cb9ab080 --- /dev/null +++ b/public/FWESystem/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql @@ -0,0 +1,222 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:57:11 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create tables ************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWES_energysurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWES_energysurvey +( + id INTEGER NOT NULL, + biomasselectricitypotential NUMERIC, + biomasselectricitypotentialu VARCHAR(1000), + biomassprimaryenergypotent_1 VARCHAR(1000), + biomassprimaryenergypotentia NUMERIC, + biomassthermalpotential NUMERIC, + biomassthermalpotentialunit VARCHAR(1000), + electricitypotentialfrompv_1 VARCHAR(1000), + electricitypotentialfrompvbu NUMERIC, + residentialelectricitydema_1 VARCHAR(1000), + residentialelectricitydemand NUMERIC, + spacecoolingdemand NUMERIC, + spacecoolingdemandunit VARCHAR(1000), + spaceheatingdemand NUMERIC, + spaceheatingdemandunit VARCHAR(1000), + systemsurvey_energysurvey_id INTEGER, + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWES_foodsurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWES_foodsurvey +( + id INTEGER NOT NULL, + foodcategory VARCHAR(1000), + foodcategory_codespace VARCHAR(1000), + foodconsumption NUMERIC, + foodconsumptionunit VARCHAR(1000), + fooddemand NUMERIC, + fooddemandunit VARCHAR(1000), + foodimport NUMERIC, + foodimportunit VARCHAR(1000), + foodproduction NUMERIC, + foodproductionenergydemand NUMERIC, + foodproductionenergydemandun VARCHAR(1000), + foodproductionunit VARCHAR(1000), + foodproductionwaterdemand NUMERIC, + foodproductionwaterdemanduni VARCHAR(1000), + systemsurvey_foodsurvey_id INTEGER, + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWES_fwesystem +-- -------------------------------------------------------------------- +CREATE TABLE FWES_fwesystem +( + id INTEGER NOT NULL, + fwesystemname VARCHAR(1000), + lod0multisurface_id INTEGER, + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWES_systemsurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWES_systemsurvey +( + id INTEGER NOT NULL, + buildingfootprintarea NUMERIC, + buildingfootprintarea_uom VARCHAR(1000), + fwesystem_consistsoffwesu_id INTEGER, + objectclass_id INTEGER, + openplotarea NUMERIC, + openplotarea_uom VARCHAR(1000), + population INTEGER, + settlementarea NUMERIC, + settlementarea_uom VARCHAR(1000), + surfacearea NUMERIC, + surfacearea_uom VARCHAR(1000), + surveydescription VARCHAR(1000), + surveyyear INTEGER, + surveyyearversion NUMERIC, + trafficarea NUMERIC, + trafficarea_uom VARCHAR(1000), + vegetationarea NUMERIC, + vegetationarea_uom VARCHAR(1000), + waterbodyarea NUMERIC, + waterbodyarea_uom VARCHAR(1000), + PRIMARY KEY (id) +); + +-- -------------------------------------------------------------------- +-- FWES_watersurvey +-- -------------------------------------------------------------------- +CREATE TABLE FWES_watersurvey +( + id INTEGER NOT NULL, + domestichotwaterdemand NUMERIC, + domestichotwaterdemandunit VARCHAR(1000), + domesticsolidwaste NUMERIC, + domesticsolidwasteunit VARCHAR(1000), + domesticwaterdemand NUMERIC, + domesticwaterdemandunit VARCHAR(1000), + domesticwaterwaste NUMERIC, + domesticwaterwasteunit VARCHAR(1000), + systemsurvey_watersurvey_id INTEGER, + totaldomesticwaste NUMERIC, + totaldomesticwasteenergypo_1 VARCHAR(1000), + totaldomesticwasteenergypote NUMERIC, + totaldomesticwasteunit VARCHAR(1000), + PRIMARY KEY (id) +); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create foreign keys ******************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWES_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_energysurvey ADD CONSTRAINT FWES_energysurvey_fk FOREIGN KEY (id) +REFERENCES FWES_systemsurvey (id); + +ALTER TABLE FWES_energysurvey ADD CONSTRAINT FWES_energy_syste_energ_fk FOREIGN KEY (systemsurvey_energysurvey_id) +REFERENCES FWES_systemsurvey (id); + +-- -------------------------------------------------------------------- +-- FWES_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_foodsurvey ADD CONSTRAINT FWES_foodsurvey_fk FOREIGN KEY (id) +REFERENCES FWES_systemsurvey (id); + +ALTER TABLE FWES_foodsurvey ADD CONSTRAINT FWES_foodsu_syste_foods_fk FOREIGN KEY (systemsurvey_foodsurvey_id) +REFERENCES FWES_systemsurvey (id); + +-- -------------------------------------------------------------------- +-- FWES_fwesystem +-- -------------------------------------------------------------------- +ALTER TABLE FWES_fwesystem ADD CONSTRAINT FWES_fwesystem_fk FOREIGN KEY (id) +REFERENCES cityobject (id); + +ALTER TABLE FWES_fwesystem ADD CONSTRAINT FWES_fwesystem_lod0mult_fk FOREIGN KEY (lod0multisurface_id) +REFERENCES surface_geometry (id); + +-- -------------------------------------------------------------------- +-- FWES_systemsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_systemsurvey ADD CONSTRAINT FWES_systemsurvey_fk FOREIGN KEY (id) +REFERENCES cityobject (id); + +ALTER TABLE FWES_systemsurvey ADD CONSTRAINT FWES_systemsur_objectcl_fk FOREIGN KEY (objectclass_id) +REFERENCES objectclass (id); + +ALTER TABLE FWES_systemsurvey ADD CONSTRAINT FWES_system_fwesy_consi_fk FOREIGN KEY (fwesystem_consistsoffwesu_id) +REFERENCES FWES_fwesystem (id); + +-- -------------------------------------------------------------------- +-- FWES_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_watersurvey ADD CONSTRAINT FWES_watersurvey_fk FOREIGN KEY (id) +REFERENCES FWES_systemsurvey (id); + +ALTER TABLE FWES_watersurvey ADD CONSTRAINT FWES_waters_syste_water_fk FOREIGN KEY (systemsurvey_watersurvey_id) +REFERENCES FWES_systemsurvey (id); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Indexes ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWES_energysurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWES_energ_syste_energ_fkx ON FWES_energysurvey + USING btree + ( + systemsurvey_energysurvey_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWES_foodsurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWES_foods_syste_foods_fkx ON FWES_foodsurvey + USING btree + ( + systemsurvey_foodsurvey_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWES_fwesystem +-- -------------------------------------------------------------------- +CREATE INDEX FWES_fwesyste_lod0mult_fkx ON FWES_fwesystem + USING btree + ( + lod0multisurface_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWES_systemsurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWES_syste_fwesy_consi_fkx ON FWES_systemsurvey + USING btree + ( + fwesystem_consistsoffwesu_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +CREATE INDEX FWES_systemsu_objectcl_fkx ON FWES_systemsurvey + USING btree + ( + objectclass_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- -------------------------------------------------------------------- +-- FWES_watersurvey +-- -------------------------------------------------------------------- +CREATE INDEX FWES_water_syste_water_fkx ON FWES_watersurvey + USING btree + ( + systemsurvey_watersurvey_id ASC NULLS LAST + ) WITH (FILLFACTOR = 90); + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Create Sequences *********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/public/FWESystem/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql b/public/FWESystem/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql new file mode 100644 index 0000000000000000000000000000000000000000..faa97f27d06927e6f5d1c559f4d8c9b98b0f97c6 --- /dev/null +++ b/public/FWESystem/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql @@ -0,0 +1,83 @@ +-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-01-10 14:57:11 +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop foreign keys ********************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWES_energysurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_energysurvey + DROP CONSTRAINT FWES_energysurvey_fk; + +ALTER TABLE FWES_energysurvey + DROP CONSTRAINT FWES_energy_syste_energ_fk; + +-- -------------------------------------------------------------------- +-- FWES_foodsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_foodsurvey + DROP CONSTRAINT FWES_foodsurvey_fk; + +ALTER TABLE FWES_foodsurvey + DROP CONSTRAINT FWES_foodsu_syste_foods_fk; + +-- -------------------------------------------------------------------- +-- FWES_fwesystem +-- -------------------------------------------------------------------- +ALTER TABLE FWES_fwesystem + DROP CONSTRAINT FWES_fwesystem_fk; + +ALTER TABLE FWES_fwesystem + DROP CONSTRAINT FWES_fwesystem_lod0mult_fk; + +-- -------------------------------------------------------------------- +-- FWES_systemsurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_systemsurvey + DROP CONSTRAINT FWES_systemsurvey_fk; + +ALTER TABLE FWES_systemsurvey + DROP CONSTRAINT FWES_systemsur_objectcl_fk; + +ALTER TABLE FWES_systemsurvey + DROP CONSTRAINT FWES_system_fwesy_consi_fk; + +-- -------------------------------------------------------------------- +-- FWES_watersurvey +-- -------------------------------------------------------------------- +ALTER TABLE FWES_watersurvey + DROP CONSTRAINT FWES_watersurvey_fk; + +ALTER TABLE FWES_watersurvey + DROP CONSTRAINT FWES_waters_syste_water_fk; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop tables *************************************** +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- -------------------------------------------------------------------- +-- FWES_energysurvey +-- -------------------------------------------------------------------- +DROP TABLE FWES_energysurvey; + +-- -------------------------------------------------------------------- +-- FWES_foodsurvey +-- -------------------------------------------------------------------- +DROP TABLE FWES_foodsurvey; + +-- -------------------------------------------------------------------- +-- FWES_fwesystem +-- -------------------------------------------------------------------- +DROP TABLE FWES_fwesystem; + +-- -------------------------------------------------------------------- +-- FWES_systemsurvey +-- -------------------------------------------------------------------- +DROP TABLE FWES_systemsurvey; + +-- -------------------------------------------------------------------- +-- FWES_watersurvey +-- -------------------------------------------------------------------- +DROP TABLE FWES_watersurvey; + +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +-- *********************************** Drop Sequences ************************************* +-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/public/FWESystem/v2.1/DDL/schema-mapping/schema-mapping.xml b/public/FWESystem/v2.1/DDL/schema-mapping/schema-mapping.xml new file mode 100644 index 0000000000000000000000000000000000000000..782e4ffbfc5586c7d56274d082bea568ae44795f --- /dev/null +++ b/public/FWESystem/v2.1/DDL/schema-mapping/schema-mapping.xml @@ -0,0 +1,131 @@ + + + + FWESystem + 2.1 + System thematic class of FWE ADE + FWES + + + + http://transfer.hft-stuttgart.de/pages/fwe-ade/FWESystem/v2.1/XSD + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +