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
126
127
128
129
130
131
<?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>