schema-mapping.xml 11 KB
Newer Older
Rushikesh Padsala's avatar
Rushikesh Padsala committed
1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<schemaMapping xmlns="http://www.3dcitydb.org/database/schema/1.0">
    <metadata>
        <name>FWEArea</name>
        <version>2.1</version>
        <description>Area thematic class of FWE ADE</description>
        <dbPrefix>FWEA</dbPrefix>
    </metadata>
    <applicationSchemas>
        <schema id="FWEA" isADERoot="true">
11
            <namespace context="citygml-2.0">http://transfer.hft-stuttgart.de/pages/in-source/fwe-ade/FWEArea/v2.1/XSD</namespace>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
12
13
14
        </schema>
    </applicationSchemas>
    <featureTypes>
15
        <featureType id="FWEA_AreaSurveyType" table="FWEA_areasurvey" objectClassId="40000" path="AreaSurvey" schema="FWEA">
Rushikesh Padsala's avatar
Rushikesh Padsala committed
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
            <extension base="AbstractFeatureType">
                <join table="cityobject" fromColumn="id" toColumn="id" toRole="parent"/>
            </extension>
            <attribute column="surveyyear" type="integer" path="surveyYear" schema="FWEA"/>
            <attribute column="surveyyearversion" type="double" path="surveyYearVersion" schema="FWEA"/>
            <attribute column="surveydescription" type="string" path="surveyDescription" schema="FWEA"/>
            <attribute column="population" type="integer" maxOccurs="1" path="population" schema="FWEA"/>
            <complexAttribute maxOccurs="1" path="buildingFootrpintArea" schema="FWEA">
                <attribute column="buildingfootrpintarea_uom" type="string" path="@uom" schema="gml"/>
                <attribute column="buildingfootrpintarea" type="double" path="." schema="FWEA"/>
            </complexAttribute>
            <complexAttribute maxOccurs="1" path="settlementArea" schema="FWEA">
                <attribute column="settlementarea_uom" type="string" path="@uom" schema="gml"/>
                <attribute column="settlementarea" type="double" path="." schema="FWEA"/>
            </complexAttribute>
            <complexAttribute maxOccurs="1" path="openPlotArea" schema="FWEA">
                <attribute column="openplotarea_uom" type="string" path="@uom" schema="gml"/>
                <attribute column="openplotarea" type="double" path="." schema="FWEA"/>
            </complexAttribute>
            <complexAttribute maxOccurs="1" path="surfaceArea" schema="FWEA">
                <attribute column="surfacearea_uom" type="string" path="@uom" schema="gml"/>
                <attribute column="surfacearea" type="double" path="." schema="FWEA"/>
            </complexAttribute>
            <complexAttribute maxOccurs="1" path="trafficArea" schema="FWEA">
                <attribute column="trafficarea_uom" type="string" path="@uom" schema="gml"/>
                <attribute column="trafficarea" type="double" path="." schema="FWEA"/>
            </complexAttribute>
            <complexAttribute maxOccurs="1" path="vegetationArea" schema="FWEA">
                <attribute column="vegetationarea_uom" type="string" path="@uom" schema="gml"/>
                <attribute column="vegetationarea" type="double" path="." schema="FWEA"/>
            </complexAttribute>
            <complexAttribute maxOccurs="1" path="waterBodyArea" schema="FWEA">
                <attribute column="waterbodyarea_uom" type="string" path="@uom" schema="gml"/>
                <attribute column="waterbodyarea" type="double" path="." schema="FWEA"/>
            </complexAttribute>
            <featureProperty target="FWEA_FoodSurveyType" relationType="composition" path="foodSurvey" schema="FWEA">
                <join table="FWEA_foodsurvey" fromColumn="id" toColumn="areasurvey_foodsurvey_id" toRole="child"/>
            </featureProperty>
            <featureProperty target="FWEA_WaterSurveyType" relationType="composition" path="waterSurvey" schema="FWEA">
                <join table="FWEA_watersurvey" fromColumn="id" toColumn="areasurvey_watersurvey_id" toRole="child"/>
            </featureProperty>
            <featureProperty target="FWEA_EnergySurveyType" relationType="composition" path="energySurvey" schema="FWEA">
                <join table="FWEA_energysurvey" fromColumn="id" toColumn="areasurvey_energysurvey_id" toRole="child"/>
            </featureProperty>
        </featureType>
61
        <featureType id="FWEA_FoodSurveyType" table="FWEA_foodsurvey" objectClassId="40001" path="FoodSurvey" schema="FWEA">
Rushikesh Padsala's avatar
Rushikesh Padsala committed
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
            <extension base="FWEA_AreaSurveyType">
                <join table="FWEA_areasurvey" fromColumn="id" toColumn="id" toRole="parent"/>
            </extension>
            <complexAttribute path="foodCategory" schema="FWEA">
                <attribute column="foodcategory_codespace" type="string" path="@codespace" schema="gml"/>
                <attribute column="foodcategory" type="string" path="." schema="FWEA"/>
            </complexAttribute>
            <attribute column="fooddemand" type="double" maxOccurs="1" path="foodDemand" schema="FWEA"/>
            <attribute column="fooddemandunit" type="string" maxOccurs="1" path="foodDemandUnit" schema="FWEA"/>
            <attribute column="foodproduction" type="double" maxOccurs="1" path="foodProduction" schema="FWEA"/>
            <attribute column="foodproductionunit" type="string" maxOccurs="1" path="foodProductionUnit" schema="FWEA"/>
            <attribute column="foodproductionwaterdemand" type="double" maxOccurs="1" path="foodProductionWaterDemand" schema="FWEA"/>
            <attribute column="foodproductionwaterdemanduni" type="string" maxOccurs="1" path="foodProductionWaterDemandUnit" schema="FWEA"/>
            <attribute column="foodproductionenergydemand" type="double" maxOccurs="1" path="foodProductionEnergyDemand" schema="FWEA"/>
            <attribute column="foodproductionenergydemandun" type="string" maxOccurs="1" path="foodProductionEnergyDemandUnit" schema="FWEA"/>
            <attribute column="foodconsumption" type="double" maxOccurs="1" path="foodConsumption" schema="FWEA"/>
            <attribute column="foodconsumptionunit" type="string" maxOccurs="1" path="foodConsumptionUnit" schema="FWEA"/>
        </featureType>
80
        <featureType id="FWEA_WaterSurveyType" table="FWEA_watersurvey" objectClassId="40002" path="WaterSurvey" schema="FWEA">
Rushikesh Padsala's avatar
Rushikesh Padsala committed
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
            <extension base="FWEA_AreaSurveyType">
                <join table="FWEA_areasurvey" fromColumn="id" toColumn="id" toRole="parent"/>
            </extension>
            <attribute column="domesticwaterdemand" type="double" maxOccurs="1" path="domesticWaterDemand" schema="FWEA"/>
            <attribute column="domesticwaterdemandunit" type="string" maxOccurs="1" path="domesticWaterDemandUnit" schema="FWEA"/>
            <attribute column="domestichotwaterdemand" type="double" maxOccurs="1" path="domesticHotWaterDemand" schema="FWEA"/>
            <attribute column="domestichotwaterdemandunit" type="string" maxOccurs="1" path="domesticHotWaterDemandUnit" schema="FWEA"/>
            <attribute column="domesticwaterwaste" type="double" maxOccurs="1" path="domesticWaterWaste" schema="FWEA"/>
            <attribute column="domesticwaterwasteunit" type="string" maxOccurs="1" path="domesticWaterWasteUnit" schema="FWEA"/>
            <attribute column="domesticsolidwaste" type="double" maxOccurs="1" path="domesticSolidWaste" schema="FWEA"/>
            <attribute column="domesticsolidwasteunit" type="string" maxOccurs="1" path="domesticSolidWasteUnit" schema="FWEA"/>
            <attribute column="totaldomesticwaste" type="double" maxOccurs="1" path="totalDomesticWaste" schema="FWEA"/>
            <attribute column="totaldomesticwasteunit" type="string" maxOccurs="1" path="totalDomesticWasteUnit" schema="FWEA"/>
            <attribute column="totaldomesticwasteenergypote" type="double" maxOccurs="1" path="totalDomesticWasteEnergyPotential" schema="FWEA"/>
            <attribute column="totaldomesticwasteenergypo_1" type="string" maxOccurs="1" path="totalDomesticWasteEnergyPotentialUnit" schema="FWEA"/>
        </featureType>
97
        <featureType id="FWEA_EnergySurveyType" table="FWEA_energysurvey" objectClassId="40003" path="EnergySurvey" schema="FWEA">
Rushikesh Padsala's avatar
Rushikesh Padsala committed
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
            <extension base="FWEA_AreaSurveyType">
                <join table="FWEA_areasurvey" fromColumn="id" toColumn="id" toRole="parent"/>
            </extension>
            <attribute column="spaceheatingdemand" type="double" maxOccurs="1" path="spaceHeatingDemand" schema="FWEA"/>
            <attribute column="spaceheatingdemandunit" type="string" maxOccurs="1" path="spaceHeatingDemandUnit" schema="FWEA"/>
            <attribute column="spacecoolingdemand" type="double" maxOccurs="1" path="spaceCoolingDemand" schema="FWEA"/>
            <attribute column="spacecoolingdemandunit" type="string" maxOccurs="1" path="spaceCoolingDemandUnit" schema="FWEA"/>
            <attribute column="residentialelectricitydemand" type="double" maxOccurs="1" path="residentialElectricityDemand" schema="FWEA"/>
            <attribute column="residentialelectricitydema_1" type="string" maxOccurs="1" path="residentialElectricityDemandUnit" schema="FWEA"/>
            <attribute column="electricitypotentialfrompvbu" type="double" maxOccurs="1" path="electricityPotentialFromPVBuildings" schema="FWEA"/>
            <attribute column="electricitypotentialfrompv_1" type="string" maxOccurs="1" path="electricityPotentialFromPVBuildingsUnit" schema="FWEA"/>
            <attribute column="biomassprimaryenergypotentia" type="double" maxOccurs="1" path="biomassPrimaryEnergyPotential" schema="FWEA"/>
            <attribute column="biomassprimaryenergypotent_1" type="string" maxOccurs="1" path="biomassPrimaryEnergyPotentialUnit" schema="FWEA"/>
            <attribute column="biomasselectricitypotential" type="double" maxOccurs="1" path="biomassElectricityPotential" schema="FWEA"/>
            <attribute column="biomasselectricitypotentialu" type="string" maxOccurs="1" path="biomassElectricityPotentialUnit" schema="FWEA"/>
            <attribute column="biomassthermalpotential" type="double" maxOccurs="1" path="biomassThermalPotential" schema="FWEA"/>
            <attribute column="biomassthermalpotentialunit" type="string" maxOccurs="1" path="biomassThermalPotentialUnit" schema="FWEA"/>
        </featureType>
116
        <featureType id="FWEA_FWEAreaType" table="FWEA_fwearea" objectClassId="40004" topLevel="true" path="FWEArea" schema="FWEA">
Rushikesh Padsala's avatar
Rushikesh Padsala committed
117
118
119
120
121
122
123
124
125
126
127
128
129
130
            <extension base="AbstractCityObjectType">
                <join table="cityobject" fromColumn="id" toColumn="id" toRole="parent"/>
            </extension>
            <attribute column="fweareaname" type="string" maxOccurs="1" path="fweAreaName" schema="FWEA"/>
            <attribute column="fwesystemname" type="string" maxOccurs="1" path="fweSystemName" schema="FWEA"/>
            <geometryProperty lod="0" refColumn="lod0multisurface_id" type="MultiSurface" maxOccurs="1" path="lod0MultiSurface" schema="FWEA"/>
            <featureProperty target="FWEA_AreaSurveyType" path="consistsOfFWEsurvey" schema="FWEA">
                <join table="FWEA_areasurvey" fromColumn="id" toColumn="fwearea_consistsoffwesurv_id" toRole="child">
                    <condition column="objectclass_id" value="${target.objectclass_id}" type="integer"/>
                </join>
            </featureProperty>
        </featureType>
    </featureTypes>
</schemaMapping>