Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Gebetsroither
FWE ADE
Commits
f623444b
Commit
f623444b
authored
4 years ago
by
Rushikesh Padsala
Browse files
Options
Download
Email Patches
Plain Diff
Updated DDLs for FWE ADE
parent
9d0e04a0
master
Ernst.Gebetsroither-master-patch-03760
No related merge requests found
Changes
28
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
public/FWELanduse/v2.1/DDL/schema-mapping/schema-mapping.xml
+125
-0
public/FWELanduse/v2.1/DDL/schema-mapping/schema-mapping.xml
public/FWESystem/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql
+198
-0
public/FWESystem/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql
public/FWESystem/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql
+6
-0
...ystem/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql
public/FWESystem/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql
+85
-0
public/FWESystem/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql
public/FWESystem/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql
+6
-0
...System/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql
public/FWESystem/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql
+222
-0
.../FWESystem/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql
public/FWESystem/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql
+83
-0
...ic/FWESystem/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql
public/FWESystem/v2.1/DDL/schema-mapping/schema-mapping.xml
+131
-0
public/FWESystem/v2.1/DDL/schema-mapping/schema-mapping.xml
with
856 additions
and
0 deletions
+856
-0
public/FWELanduse/v2.1/DDL/schema-mapping/schema-mapping.xml
0 → 100644
+
125
-
0
View file @
f623444b
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<schemaMapping
xmlns=
"http://www.3dcitydb.org/database/schema/1.0"
>
<metadata>
<name>
FWELanduse
</name>
<version>
2.1
</version>
<description>
Landuse thematic class of FWE ADE
</description>
<dbPrefix>
FWEL
</dbPrefix>
</metadata>
<applicationSchemas>
<schema
id=
"FWEL"
isADERoot=
"true"
>
<namespace
context=
"citygml-2.0"
>
http://transfer.hft-stuttgart.de/pages/fwe-ade/FWELanduse/v2.1/XSD
</namespace>
</schema>
</applicationSchemas>
<featureTypes>
<featureType
id=
"FWEL_EnergySurveyType"
table=
"FWEL_energysurvey"
objectClassId=
"20000"
path=
"EnergySurvey"
schema=
"FWEL"
>
<extension
base=
"FWEL_LandUseSurveyType"
>
<join
table=
"FWEL_landusesurvey"
fromColumn=
"id"
toColumn=
"id"
toRole=
"parent"
/>
</extension>
<attribute
column=
"spaceheatingdemand"
type=
"double"
maxOccurs=
"1"
path=
"spaceHeatingDemand"
schema=
"FWEL"
/>
<attribute
column=
"spaceheatingdemandunit"
type=
"string"
maxOccurs=
"1"
path=
"spaceHeatingDemandUnit"
schema=
"FWEL"
/>
<attribute
column=
"spacecoolingdemand"
type=
"double"
maxOccurs=
"1"
path=
"spaceCoolingDemand"
schema=
"FWEL"
/>
<attribute
column=
"spacecoolingdemandunit"
type=
"string"
maxOccurs=
"1"
path=
"spaceCoolingDemandUnit"
schema=
"FWEL"
/>
<attribute
column=
"residentialelectricitydemand"
type=
"double"
maxOccurs=
"1"
path=
"residentialElectricityDemand"
schema=
"FWEL"
/>
<attribute
column=
"residentialelectricitydema_1"
type=
"string"
maxOccurs=
"1"
path=
"residentialElectricityDemandUnit"
schema=
"FWEL"
/>
<attribute
column=
"electricitypotentialfrompvbu"
type=
"double"
maxOccurs=
"1"
path=
"electricityPotentialFromPVBuildings"
schema=
"FWEL"
/>
<attribute
column=
"electricitypotentialfrompv_1"
type=
"string"
maxOccurs=
"1"
path=
"electricityPotentialFromPVBuildingsUnit"
schema=
"FWEL"
/>
<complexAttribute
maxOccurs=
"1"
path=
"vegetationCoverCategory"
schema=
"FWEL"
>
<attribute
column=
"vegetationcovercat_codespace"
type=
"string"
path=
"@codespace"
schema=
"gml"
/>
<attribute
column=
"vegetationcovercategory"
type=
"string"
path=
"."
schema=
"FWEL"
/>
</complexAttribute>
<attribute
column=
"biomassprimaryenergypotentia"
type=
"double"
maxOccurs=
"1"
path=
"biomassPrimaryEnergyPotential"
schema=
"FWEL"
/>
<attribute
column=
"biomassprimaryenergypotent_1"
type=
"string"
maxOccurs=
"1"
path=
"biomassPrimaryEnergyPotentialUnit"
schema=
"FWEL"
/>
<attribute
column=
"biomasstoenergywoods"
type=
"double"
maxOccurs=
"1"
path=
"biomassToEnergyWoods"
schema=
"FWEL"
/>
<attribute
column=
"biomasstoenergywoodsunit"
type=
"string"
maxOccurs=
"1"
path=
"biomassToEnergyWoodsUnit"
schema=
"FWEL"
/>
<attribute
column=
"biomasstobiogas"
type=
"double"
maxOccurs=
"1"
path=
"biomassToBiogas"
schema=
"FWEL"
/>
<attribute
column=
"biomasstobiogasunit"
type=
"string"
maxOccurs=
"1"
path=
"biomassToBiogasUnit"
schema=
"FWEL"
/>
<attribute
column=
"biomasstoplantoil"
type=
"double"
maxOccurs=
"1"
path=
"biomassToPlantOil"
schema=
"FWEL"
/>
<attribute
column=
"biomasstoplantoilunit"
type=
"string"
maxOccurs=
"1"
path=
"biomassToPlantOilUnit"
schema=
"FWEL"
/>
<attribute
column=
"biomasstobioethanol"
type=
"double"
maxOccurs=
"1"
path=
"biomassToBioethanol"
schema=
"FWEL"
/>
<attribute
column=
"biomasstobioethanolunit"
type=
"string"
maxOccurs=
"1"
path=
"biomassToBioethanolUnit"
schema=
"FWEL"
/>
<attribute
column=
"biomasstoresidualsolidfuel"
type=
"double"
maxOccurs=
"1"
path=
"biomassToResidualSolidFuel"
schema=
"FWEL"
/>
<attribute
column=
"biomasstoresidualsolidfuelun"
type=
"string"
maxOccurs=
"1"
path=
"biomassToResidualSolidFuelUnit"
schema=
"FWEL"
/>
<attribute
column=
"biomasstosolidfuel"
type=
"double"
maxOccurs=
"1"
path=
"biomassToSolidFuel"
schema=
"FWEL"
/>
<attribute
column=
"biomasstosolidfuelunit"
type=
"string"
maxOccurs=
"1"
path=
"biomassToSolidFuelUnit"
schema=
"FWEL"
/>
<attribute
column=
"biomasstoelectricitypotentia"
type=
"double"
maxOccurs=
"1"
path=
"biomassToElectricityPotential"
schema=
"FWEL"
/>
<attribute
column=
"biomasstoelectricitypotent_1"
type=
"string"
maxOccurs=
"1"
path=
"biomassToElectricityPotentialUnit"
schema=
"FWEL"
/>
<attribute
column=
"biomasstothermalpotential"
type=
"double"
maxOccurs=
"1"
path=
"biomassToThermalPotential"
schema=
"FWEL"
/>
<attribute
column=
"biomasstothermalpotentialuni"
type=
"string"
maxOccurs=
"1"
path=
"biomassToThermalPotentialUnit"
schema=
"FWEL"
/>
</featureType>
<featureType
id=
"FWEL_LandUseSurveyType"
table=
"FWEL_landusesurvey"
objectClassId=
"20001"
path=
"LandUseSurvey"
schema=
"FWEL"
>
<extension
base=
"AbstractFeatureType"
>
<join
table=
"cityobject"
fromColumn=
"id"
toColumn=
"id"
toRole=
"parent"
/>
</extension>
<attribute
column=
"surveyyear"
type=
"integer"
path=
"surveyYear"
schema=
"FWEL"
/>
<attribute
column=
"surveyyearversion"
type=
"double"
path=
"surveyYearVersion"
schema=
"FWEL"
/>
<attribute
column=
"surveydescription"
type=
"string"
path=
"surveyDescription"
schema=
"FWEL"
/>
<attribute
column=
"population"
type=
"integer"
maxOccurs=
"1"
path=
"population"
schema=
"FWEL"
/>
<complexAttribute
maxOccurs=
"1"
path=
"buildingFootprintArea"
schema=
"FWEL"
>
<attribute
column=
"buildingfootprintarea_uom"
type=
"string"
path=
"@uom"
schema=
"gml"
/>
<attribute
column=
"buildingfootprintarea"
type=
"double"
path=
"."
schema=
"FWEL"
/>
</complexAttribute>
<complexAttribute
maxOccurs=
"1"
path=
"surfaceArea"
schema=
"FWEL"
>
<attribute
column=
"surfacearea_uom"
type=
"string"
path=
"@uom"
schema=
"gml"
/>
<attribute
column=
"surfacearea"
type=
"double"
path=
"."
schema=
"FWEL"
/>
</complexAttribute>
<featureProperty
target=
"FWEL_FoodSurveyType"
relationType=
"composition"
path=
"foodSurvey"
schema=
"FWEL"
>
<join
table=
"FWEL_foodsurvey"
fromColumn=
"id"
toColumn=
"landusesurvey_foodsurvey_id"
toRole=
"child"
/>
</featureProperty>
<featureProperty
target=
"FWEL_WaterSurveyType"
relationType=
"composition"
path=
"waterSurvey"
schema=
"FWEL"
>
<join
table=
"FWEL_watersurvey"
fromColumn=
"id"
toColumn=
"landusesurvey_watersurvey_id"
toRole=
"child"
/>
</featureProperty>
<featureProperty
target=
"FWEL_EnergySurveyType"
relationType=
"composition"
path=
"energySurvey"
schema=
"FWEL"
>
<join
table=
"FWEL_energysurvey"
fromColumn=
"id"
toColumn=
"landusesurve_energysurvey_id"
toRole=
"child"
/>
</featureProperty>
</featureType>
<featureType
id=
"FWEL_FoodSurveyType"
table=
"FWEL_foodsurvey"
objectClassId=
"20002"
path=
"FoodSurvey"
schema=
"FWEL"
>
<extension
base=
"FWEL_LandUseSurveyType"
>
<join
table=
"FWEL_landusesurvey"
fromColumn=
"id"
toColumn=
"id"
toRole=
"parent"
/>
</extension>
<complexAttribute
path=
"foodCategory"
schema=
"FWEL"
>
<attribute
column=
"foodcategory_codespace"
type=
"string"
path=
"@codespace"
schema=
"gml"
/>
<attribute
column=
"foodcategory"
type=
"string"
path=
"."
schema=
"FWEL"
/>
</complexAttribute>
<attribute
column=
"fooddemand"
type=
"double"
maxOccurs=
"1"
path=
"foodDemand"
schema=
"FWEL"
/>
<attribute
column=
"fooddemandunit"
type=
"string"
maxOccurs=
"1"
path=
"foodDemandUnit"
schema=
"FWEL"
/>
<attribute
column=
"foodproduction"
type=
"double"
maxOccurs=
"1"
path=
"foodProduction"
schema=
"FWEL"
/>
<attribute
column=
"foodproductionunit"
type=
"string"
maxOccurs=
"1"
path=
"foodProductionUnit"
schema=
"FWEL"
/>
<attribute
column=
"foodproductionwaterdemand"
type=
"double"
maxOccurs=
"1"
path=
"foodProductionWaterDemand"
schema=
"FWEL"
/>
<attribute
column=
"foodproductionwaterdemanduni"
type=
"string"
maxOccurs=
"1"
path=
"foodProductionWaterDemandUnit"
schema=
"FWEL"
/>
<attribute
column=
"foodproductionenergydemand"
type=
"double"
maxOccurs=
"1"
path=
"foodProductionEnergyDemand"
schema=
"FWEL"
/>
<attribute
column=
"foodproductionengerydemandun"
type=
"string"
maxOccurs=
"1"
path=
"foodProductionEngeryDemandUnit"
schema=
"FWEL"
/>
<attribute
column=
"foodconsumption"
type=
"double"
maxOccurs=
"1"
path=
"foodConsumption"
schema=
"FWEL"
/>
<attribute
column=
"foodconsumptionunit"
type=
"string"
maxOccurs=
"1"
path=
"foodConsumptionUnit"
schema=
"FWEL"
/>
</featureType>
<featureType
id=
"FWEL_WaterSurveyType"
table=
"FWEL_watersurvey"
objectClassId=
"20003"
path=
"WaterSurvey"
schema=
"FWEL"
>
<extension
base=
"FWEL_LandUseSurveyType"
>
<join
table=
"FWEL_landusesurvey"
fromColumn=
"id"
toColumn=
"id"
toRole=
"parent"
/>
</extension>
<attribute
column=
"domesticwaterdemand"
type=
"double"
maxOccurs=
"1"
path=
"domesticWaterDemand"
schema=
"FWEL"
/>
<attribute
column=
"domesticwaterdemandunit"
type=
"string"
maxOccurs=
"1"
path=
"domesticWaterDemandUnit"
schema=
"FWEL"
/>
<attribute
column=
"domestichotwaterdemand"
type=
"double"
maxOccurs=
"1"
path=
"domesticHotWaterDemand"
schema=
"FWEL"
/>
<attribute
column=
"domestichotwaterdemandunit"
type=
"string"
maxOccurs=
"1"
path=
"domesticHotWaterDemandUnit"
schema=
"FWEL"
/>
<attribute
column=
"domestichotwaterenergydemand"
type=
"double"
maxOccurs=
"1"
path=
"domesticHotWaterEnergyDemand"
schema=
"FWEL"
/>
<attribute
column=
"domestichotwaterenergydema_1"
type=
"string"
maxOccurs=
"1"
path=
"domesticHotWaterEnergyDemandUnit"
schema=
"FWEL"
/>
<attribute
column=
"domesticwaterwaste"
type=
"double"
maxOccurs=
"1"
path=
"domesticWaterWaste"
schema=
"FWEL"
/>
<attribute
column=
"domesticwaterwasteunit"
type=
"string"
maxOccurs=
"1"
path=
"domesticWaterWasteUnit"
schema=
"FWEL"
/>
<attribute
column=
"domesticsolidwaste"
type=
"double"
maxOccurs=
"1"
path=
"domesticSolidWaste"
schema=
"FWEL"
/>
<attribute
column=
"domesticsolidwasteunit"
type=
"string"
maxOccurs=
"1"
path=
"domesticSolidWasteUnit"
schema=
"FWEL"
/>
<attribute
column=
"totaldomesticwaste"
type=
"double"
maxOccurs=
"1"
path=
"totalDomesticWaste"
schema=
"FWEL"
/>
<attribute
column=
"totaldomesticwasteunit"
type=
"string"
maxOccurs=
"1"
path=
"totalDomesticWasteUnit"
schema=
"FWEL"
/>
</featureType>
</featureTypes>
<propertyInjections>
<propertyInjection
table=
"FWEL_land_use"
defaultBase=
"LandUseType"
>
<join
table=
"FWEL_land_use"
fromColumn=
"ID"
toColumn=
"ID"
toRole=
"child"
/>
<attribute
column=
"fweareaname"
type=
"string"
maxOccurs=
"1"
path=
"fweAreaName"
schema=
"FWEL"
/>
<attribute
column=
"fwesystemname"
type=
"string"
maxOccurs=
"1"
path=
"fweSystemName"
schema=
"FWEL"
/>
<featureProperty
target=
"FWEL_LandUseSurveyType"
relationType=
"composition"
path=
"consistsOfFWEsurvey"
schema=
"FWEL"
>
<join
table=
"FWEL_landusesurvey"
fromColumn=
"id"
toColumn=
"land_use_consistsoffwesur_id"
toRole=
"child"
>
<condition
column=
"objectclass_id"
value=
"${target.objectclass_id}"
type=
"integer"
/>
</join>
</featureProperty>
</propertyInjection>
</propertyInjections>
</schemaMapping>
This diff is collapsed.
Click to expand it.
public/FWESystem/v2.1/DDL/3dcitydb/oracle/CREATE_ADE_DB.sql
0 → 100644
+
198
-
0
View file @
f623444b
-- 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 ***********************************
-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This diff is collapsed.
Click to expand it.
public/FWESystem/v2.1/DDL/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql
0 → 100644
+
6
-
0
View file @
f623444b
-- 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
);
This diff is collapsed.
Click to expand it.
public/FWESystem/v2.1/DDL/3dcitydb/oracle/DROP_ADE_DB.sql
0 → 100644
+
85
-
0
View file @
f623444b
-- 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
;
This diff is collapsed.
Click to expand it.
public/FWESystem/v2.1/DDL/3dcitydb/oracle/ENABLE_ADE_VERSIONING.sql
0 → 100644
+
6
-
0
View file @
f623444b
-- 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'
);
This diff is collapsed.
Click to expand it.
public/FWESystem/v2.1/DDL/3dcitydb/postgreSQL/CREATE_ADE_DB.sql
0 → 100644
+
222
-
0
View file @
f623444b
-- 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 ***********************************
-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This diff is collapsed.
Click to expand it.
public/FWESystem/v2.1/DDL/3dcitydb/postgreSQL/DROP_ADE_DB.sql
0 → 100644
+
83
-
0
View file @
f623444b
-- 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 *************************************
-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This diff is collapsed.
Click to expand it.
public/FWESystem/v2.1/DDL/schema-mapping/schema-mapping.xml
0 → 100644
+
131
-
0
View file @
f623444b
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<schemaMapping
xmlns=
"http://www.3dcitydb.org/database/schema/1.0"
>
<metadata>
<name>
FWESystem
</name>
<version>
2.1
</version>
<description>
System thematic class of FWE ADE
</description>
<dbPrefix>
FWES
</dbPrefix>
</metadata>
<applicationSchemas>
<schema
id=
"FWES"
isADERoot=
"true"
>
<namespace
context=
"citygml-2.0"
>
http://transfer.hft-stuttgart.de/pages/fwe-ade/FWESystem/v2.1/XSD
</namespace>
</schema>
</applicationSchemas>
<featureTypes>
<featureType
id=
"FWES_EnergySurveyType"
table=
"FWES_energysurvey"
objectClassId=
"40000"
path=
"EnergySurvey"
schema=
"FWES"
>
<extension
base=
"FWES_SystemSurveyType"
>
<join
table=
"FWES_systemsurvey"
fromColumn=
"id"
toColumn=
"id"
toRole=
"parent"
/>
</extension>
<attribute
column=
"spaceheatingdemand"
type=
"double"
maxOccurs=
"1"
path=
"spaceHeatingDemand"
schema=
"FWES"
/>
<attribute
column=
"spaceheatingdemandunit"
type=
"string"
maxOccurs=
"1"
path=
"spaceHeatingDemandUnit"
schema=
"FWES"
/>
<attribute
column=
"spacecoolingdemand"
type=
"double"
maxOccurs=
"1"
path=
"spaceCoolingDemand"
schema=
"FWES"
/>
<attribute
column=
"spacecoolingdemandunit"
type=
"string"
maxOccurs=
"1"
path=
"spaceCoolingDemandUnit"
schema=
"FWES"
/>
<attribute
column=
"residentialelectricitydemand"
type=
"double"
maxOccurs=
"1"
path=
"residentialElectricityDemand"
schema=
"FWES"
/>
<attribute
column=
"residentialelectricitydema_1"
type=
"string"
maxOccurs=
"1"
path=
"residentialElectricityDemandUnit"
schema=
"FWES"
/>
<attribute
column=
"electricitypotentialfrompvbu"
type=
"double"
maxOccurs=
"1"
path=
"electricityPotentialFromPVBuildings"
schema=
"FWES"
/>
<attribute
column=
"electricitypotentialfrompv_1"
type=
"string"
maxOccurs=
"1"
path=
"electricityPotentialFromPVBuildingsUnit"
schema=
"FWES"
/>
<attribute
column=
"biomassprimaryenergypotentia"
type=
"double"
maxOccurs=
"1"
path=
"biomassPrimaryEnergyPotential"
schema=
"FWES"
/>
<attribute
column=
"biomassprimaryenergypotent_1"
type=
"string"
maxOccurs=
"1"
path=
"biomassPrimaryEnergyPotentialUnit"
schema=
"FWES"
/>
<attribute
column=
"biomasselectricitypotential"
type=
"double"
maxOccurs=
"1"
path=
"biomassElectricityPotential"
schema=
"FWES"
/>
<attribute
column=
"biomasselectricitypotentialu"
type=
"string"
maxOccurs=
"1"
path=
"biomassElectricityPotentialUnit"
schema=
"FWES"
/>
<attribute
column=
"biomassthermalpotential"
type=
"double"
maxOccurs=
"1"
path=
"biomassThermalPotential"
schema=
"FWES"
/>
<attribute
column=
"biomassthermalpotentialunit"
type=
"string"
maxOccurs=
"1"
path=
"biomassThermalPotentialUnit"
schema=
"FWES"
/>
</featureType>
<featureType
id=
"FWES_SystemSurveyType"
table=
"FWES_systemsurvey"
objectClassId=
"40001"
path=
"SystemSurvey"
schema=
"FWES"
>
<extension
base=
"AbstractFeatureType"
>
<join
table=
"cityobject"
fromColumn=
"id"
toColumn=
"id"
toRole=
"parent"
/>
</extension>
<attribute
column=
"surveyyear"
type=
"integer"
path=
"surveyYear"
schema=
"FWES"
/>
<attribute
column=
"surveyyearversion"
type=
"double"
path=
"surveyYearVersion"
schema=
"FWES"
/>
<attribute
column=
"surveydescription"
type=
"string"
path=
"surveyDescription"
schema=
"FWES"
/>
<attribute
column=
"population"
type=
"integer"
maxOccurs=
"1"
path=
"population"
schema=
"FWES"
/>
<complexAttribute
maxOccurs=
"1"
path=
"buildingFootprintArea"
schema=
"FWES"
>
<attribute
column=
"buildingfootprintarea_uom"
type=
"string"
path=
"@uom"
schema=
"gml"
/>
<attribute
column=
"buildingfootprintarea"
type=
"double"
path=
"."
schema=
"FWES"
/>
</complexAttribute>
<complexAttribute
maxOccurs=
"1"
path=
"settlementArea"
schema=
"FWES"
>
<attribute
column=
"settlementarea_uom"
type=
"string"
path=
"@uom"
schema=
"gml"
/>
<attribute
column=
"settlementarea"
type=
"double"
path=
"."
schema=
"FWES"
/>
</complexAttribute>
<complexAttribute
maxOccurs=
"1"
path=
"openPlotArea"
schema=
"FWES"
>
<attribute
column=
"openplotarea_uom"
type=
"string"
path=
"@uom"
schema=
"gml"
/>
<attribute
column=
"openplotarea"
type=
"double"
path=
"."
schema=
"FWES"
/>
</complexAttribute>
<complexAttribute
maxOccurs=
"1"
path=
"surfaceArea"
schema=
"FWES"
>
<attribute
column=
"surfacearea_uom"
type=
"string"
path=
"@uom"
schema=
"gml"
/>
<attribute
column=
"surfacearea"
type=
"double"
path=
"."
schema=
"FWES"
/>
</complexAttribute>
<complexAttribute
maxOccurs=
"1"
path=
"trafficArea"
schema=
"FWES"
>
<attribute
column=
"trafficarea_uom"
type=
"string"
path=
"@uom"
schema=
"gml"
/>
<attribute
column=
"trafficarea"
type=
"double"
path=
"."
schema=
"FWES"
/>
</complexAttribute>
<complexAttribute
maxOccurs=
"1"
path=
"vegetationArea"
schema=
"FWES"
>
<attribute
column=
"vegetationarea_uom"
type=
"string"
path=
"@uom"
schema=
"gml"
/>
<attribute
column=
"vegetationarea"
type=
"double"
path=
"."
schema=
"FWES"
/>
</complexAttribute>
<complexAttribute
maxOccurs=
"1"
path=
"waterBodyArea"
schema=
"FWES"
>
<attribute
column=
"waterbodyarea_uom"
type=
"string"
path=
"@uom"
schema=
"gml"
/>
<attribute
column=
"waterbodyarea"
type=
"double"
path=
"."
schema=
"FWES"
/>
</complexAttribute>
<featureProperty
target=
"FWES_FoodSurveyType"
relationType=
"composition"
path=
"foodSurvey"
schema=
"FWES"
>
<join
table=
"FWES_foodsurvey"
fromColumn=
"id"
toColumn=
"systemsurvey_foodsurvey_id"
toRole=
"child"
/>
</featureProperty>
<featureProperty
target=
"FWES_WaterSurveyType"
relationType=
"composition"
path=
"waterSurvey"
schema=
"FWES"
>
<join
table=
"FWES_watersurvey"
fromColumn=
"id"
toColumn=
"systemsurvey_watersurvey_id"
toRole=
"child"
/>
</featureProperty>
<featureProperty
target=
"FWES_EnergySurveyType"
relationType=
"composition"
path=
"energySurvey"
schema=
"FWES"
>
<join
table=
"FWES_energysurvey"
fromColumn=
"id"
toColumn=
"systemsurvey_energysurvey_id"
toRole=
"child"
/>
</featureProperty>
</featureType>
<featureType
id=
"FWES_FoodSurveyType"
table=
"FWES_foodsurvey"
objectClassId=
"40002"
path=
"FoodSurvey"
schema=
"FWES"
>
<extension
base=
"FWES_SystemSurveyType"
>
<join
table=
"FWES_systemsurvey"
fromColumn=
"id"
toColumn=
"id"
toRole=
"parent"
/>
</extension>
<complexAttribute
path=
"foodCategory"
schema=
"FWES"
>
<attribute
column=
"foodcategory_codespace"
type=
"string"
path=
"@codespace"
schema=
"gml"
/>
<attribute
column=
"foodcategory"
type=
"string"
path=
"."
schema=
"FWES"
/>
</complexAttribute>
<attribute
column=
"fooddemand"
type=
"double"
maxOccurs=
"1"
path=
"foodDemand"
schema=
"FWES"
/>
<attribute
column=
"fooddemandunit"
type=
"string"
maxOccurs=
"1"
path=
"foodDemandUnit"
schema=
"FWES"
/>
<attribute
column=
"foodimport"
type=
"double"
maxOccurs=
"1"
path=
"foodImport"
schema=
"FWES"
/>
<attribute
column=
"foodimportunit"
type=
"string"
maxOccurs=
"1"
path=
"foodImportUnit"
schema=
"FWES"
/>
<attribute
column=
"foodproduction"
type=
"double"
maxOccurs=
"1"
path=
"foodProduction"
schema=
"FWES"
/>
<attribute
column=
"foodproductionunit"
type=
"string"
maxOccurs=
"1"
path=
"foodProductionUnit"
schema=
"FWES"
/>
<attribute
column=
"foodproductionwaterdemand"
type=
"double"
maxOccurs=
"1"
path=
"foodProductionWaterDemand"
schema=
"FWES"
/>
<attribute
column=
"foodproductionwaterdemanduni"
type=
"string"
maxOccurs=
"1"
path=
"foodProductionWaterDemandUnit"
schema=
"FWES"
/>
<attribute
column=
"foodproductionenergydemand"
type=
"double"
maxOccurs=
"1"
path=
"foodProductionEnergyDemand"
schema=
"FWES"
/>
<attribute
column=
"foodproductionenergydemandun"
type=
"string"
maxOccurs=
"1"
path=
"foodProductionEnergyDemandUnit"
schema=
"FWES"
/>
<attribute
column=
"foodconsumption"
type=
"double"
maxOccurs=
"1"
path=
"foodConsumption"
schema=
"FWES"
/>
<attribute
column=
"foodconsumptionunit"
type=
"string"
maxOccurs=
"1"
path=
"foodConsumptionUnit"
schema=
"FWES"
/>
</featureType>
<featureType
id=
"FWES_WaterSurveyType"
table=
"FWES_watersurvey"
objectClassId=
"40003"
path=
"WaterSurvey"
schema=
"FWES"
>
<extension
base=
"FWES_SystemSurveyType"
>
<join
table=
"FWES_systemsurvey"
fromColumn=
"id"
toColumn=
"id"
toRole=
"parent"
/>
</extension>
<attribute
column=
"domesticwaterdemand"
type=
"double"
maxOccurs=
"1"
path=
"domesticWaterDemand"
schema=
"FWES"
/>
<attribute
column=
"domesticwaterdemandunit"
type=
"string"
maxOccurs=
"1"
path=
"domesticWaterDemandUnit"
schema=
"FWES"
/>
<attribute
column=
"domestichotwaterdemand"
type=
"double"
maxOccurs=
"1"
path=
"domesticHotWaterDemand"
schema=
"FWES"
/>
<attribute
column=
"domestichotwaterdemandunit"
type=
"string"
maxOccurs=
"1"
path=
"domesticHotWaterDemandUnit"
schema=
"FWES"
/>
<attribute
column=
"domesticwaterwaste"
type=
"double"
maxOccurs=
"1"
path=
"domesticWaterWaste"
schema=
"FWES"
/>
<attribute
column=
"domesticwaterwasteunit"
type=
"string"
maxOccurs=
"1"
path=
"domesticWaterWasteUnit"
schema=
"FWES"
/>
<attribute
column=
"domesticsolidwaste"
type=
"double"
maxOccurs=
"1"
path=
"domesticSolidWaste"
schema=
"FWES"
/>
<attribute
column=
"domesticsolidwasteunit"
type=
"string"
maxOccurs=
"1"
path=
"domesticSolidWasteUnit"
schema=
"FWES"
/>
<attribute
column=
"totaldomesticwaste"
type=
"double"
maxOccurs=
"1"
path=
"totalDomesticWaste"
schema=
"FWES"
/>
<attribute
column=
"totaldomesticwasteunit"
type=
"string"
maxOccurs=
"1"
path=
"totalDomesticWasteUnit"
schema=
"FWES"
/>
<attribute
column=
"totaldomesticwasteenergypote"
type=
"double"
maxOccurs=
"1"
path=
"totalDomesticWasteEnergyPotential"
schema=
"FWES"
/>
<attribute
column=
"totaldomesticwasteenergypo_1"
type=
"string"
maxOccurs=
"1"
path=
"totalDomesticWasteEnergyPotentialUnit"
schema=
"FWES"
/>
</featureType>
<featureType
id=
"FWES_FWESystemType"
table=
"FWES_fwesystem"
objectClassId=
"40004"
topLevel=
"true"
path=
"FWESystem"
schema=
"FWES"
>
<extension
base=
"AbstractCityObjectType"
>
<join
table=
"cityobject"
fromColumn=
"id"
toColumn=
"id"
toRole=
"parent"
/>
</extension>
<attribute
column=
"fwesystemname"
type=
"string"
maxOccurs=
"1"
path=
"fweSystemName"
schema=
"FWES"
/>
<geometryProperty
lod=
"0"
refColumn=
"lod0multisurface_id"
type=
"MultiSurface"
maxOccurs=
"1"
path=
"lod0MultiSurface"
schema=
"FWES"
/>
<featureProperty
target=
"FWES_SystemSurveyType"
relationType=
"composition"
path=
"consistsOfFWEsurvey"
schema=
"FWES"
>
<join
table=
"FWES_systemsurvey"
fromColumn=
"id"
toColumn=
"fwesystem_consistsoffwesu_id"
toRole=
"child"
>
<condition
column=
"objectclass_id"
value=
"${target.objectclass_id}"
type=
"integer"
/>
</join>
</featureProperty>
</featureType>
</featureTypes>
</schemaMapping>
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets