schema-mapping.xml 11.2 KB
Newer Older
Rushikesh Padsala's avatar
Rushikesh Padsala committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?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>