schema-mapping.xml 13 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>FWELanduse</name>
        <version>2.1</version>
        <description>Landuse thematic class of FWE ADE</description>
        <dbPrefix>FWEL</dbPrefix>
    </metadata>
    <applicationSchemas>
        <schema id="FWEL" isADERoot="true">
11
            <namespace context="citygml-2.0">http://transfer.hft-stuttgart.de/pages/in-source/fwe-ade/FWELanduse/v2.1/XSD</namespace>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
12
13
14
        </schema>
    </applicationSchemas>
    <featureTypes>
15
        <featureType id="FWEL_EnergySurveyType" table="FWEL_energysurvey" objectClassId="30000" path="EnergySurvey" schema="FWEL">
Rushikesh Padsala's avatar
Rushikesh Padsala committed
16
17
18
19
20
21
22
23
24
25
26
27
28
            <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"/>
            <attribute column="biomassprimaryenergypotentia" type="double" maxOccurs="1" path="biomassPrimaryEnergyPotential" schema="FWEL"/>
            <attribute column="biomassprimaryenergypotent_1" type="string" maxOccurs="1" path="biomassPrimaryEnergyPotentialUnit" schema="FWEL"/>
29
30
31
32
33
34
35
36
37
38
39
40
            <attribute column="biomasspotentialforest" type="double" maxOccurs="1" path="biomassPotentialForest" schema="FWEL"/>
            <attribute column="biomasspotentialforestunit" type="string" maxOccurs="1" path="biomassPotentialForestUnit" schema="FWEL"/>
            <attribute column="biomasspotentialbiogas" type="double" maxOccurs="1" path="biomassPotentialBiogas" schema="FWEL"/>
            <attribute column="biomasspotentialbiogasunit" type="string" maxOccurs="1" path="biomassPotentialBiogasUnit" schema="FWEL"/>
            <attribute column="biomasspotentialplantoil" type="double" maxOccurs="1" path="biomassPotentialPlantOil" schema="FWEL"/>
            <attribute column="biomasspotentialplantoilunit" type="string" maxOccurs="1" path="biomassPotentialPlantOilUnit" schema="FWEL"/>
            <attribute column="biomasspotentialbioethanol" type="double" maxOccurs="1" path="biomassPotentialBioethanol" schema="FWEL"/>
            <attribute column="biomasspotentialbioethanolun" type="string" maxOccurs="1" path="biomassPotentialBioethanolUnit" schema="FWEL"/>
            <attribute column="biomasspotentialresidualsoli" type="double" maxOccurs="1" path="biomassPotentialResidualSolidFuel" schema="FWEL"/>
            <attribute column="biomasspotentialresidualso_1" type="string" maxOccurs="1" path="biomassPotentialResidualSolidFuelUnit" schema="FWEL"/>
            <attribute column="biomasspotentialsolidfuel" type="double" maxOccurs="1" path="biomassPotentialSolidFuel" schema="FWEL"/>
            <attribute column="biomasspotentialsolidfueluni" type="string" maxOccurs="1" path="biomassPotentialSolidFuelUnit" schema="FWEL"/>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
41
42
43
44
            <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"/>
45
46
            <attribute column="biomassweight" type="double" maxOccurs="1" path="biomassWeight" schema="FWEL"/>
            <attribute column="biomassweightunit" type="string" maxOccurs="1" path="biomassWeightUnit" schema="FWEL"/>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
47
        </featureType>
48
        <featureType id="FWEL_LandUseSurveyType" table="FWEL_landusesurvey" objectClassId="30001" path="LandUseSurvey" schema="FWEL">
Rushikesh Padsala's avatar
Rushikesh Padsala committed
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
            <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>
64
65
66
67
68
69
70
71
            <complexAttribute maxOccurs="1" path="soilType" schema="FWEL">
                <attribute column="soiltype_codespace" type="string" path="@codespace" schema="gml"/>
                <attribute column="soiltype" type="string" path="." schema="FWEL"/>
            </complexAttribute>
            <complexAttribute maxOccurs="1" path="cropType" schema="FWEL">
                <attribute column="croptype_codespace" type="string" path="@codespace" schema="gml"/>
                <attribute column="croptype" type="string" path="." schema="FWEL"/>
            </complexAttribute>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
72
73
74
75
76
77
78
79
80
81
            <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>
82
        <featureType id="FWEL_FoodSurveyType" table="FWEL_foodsurvey" objectClassId="30002" path="FoodSurvey" schema="FWEL">
Rushikesh Padsala's avatar
Rushikesh Padsala committed
83
84
85
86
87
88
89
90
91
92
93
94
95
            <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"/>
96
            <attribute column="cropcalorie" type="integer" maxOccurs="1" path="cropCalorie" schema="FWEL"/>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
97
            <attribute column="foodproductionenergydemand" type="double" maxOccurs="1" path="foodProductionEnergyDemand" schema="FWEL"/>
98
            <attribute column="cropcalorieunit" type="string" maxOccurs="1" path="cropCalorieUnit" schema="FWEL"/>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
99
            <attribute column="foodproductionengerydemandun" type="string" maxOccurs="1" path="foodProductionEngeryDemandUnit" schema="FWEL"/>
100
101
102
            <attribute column="vegetalcalorie" type="integer" maxOccurs="1" path="vegetalCalorie" schema="FWEL"/>
            <attribute column="vegetalcalorieunit" type="string" maxOccurs="1" path="vegetalCalorieUnit" schema="FWEL"/>
            <attribute column="animalcalorie" type="integer" maxOccurs="1" path="animalCalorie" schema="FWEL"/>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
103
            <attribute column="foodconsumption" type="double" maxOccurs="1" path="foodConsumption" schema="FWEL"/>
104
            <attribute column="animalcalorieunit" type="string" maxOccurs="1" path="animalCalorieUnit" schema="FWEL"/>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
105
106
            <attribute column="foodconsumptionunit" type="string" maxOccurs="1" path="foodConsumptionUnit" schema="FWEL"/>
        </featureType>
107
        <featureType id="FWEL_WaterSurveyType" table="FWEL_watersurvey" objectClassId="30003" path="WaterSurvey" schema="FWEL">
Rushikesh Padsala's avatar
Rushikesh Padsala committed
108
109
110
111
112
113
114
115
116
117
118
119
            <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"/>
120
            <attribute column="irrigationdemand" type="double" maxOccurs="1" path="irrigationDemand" schema="FWEL"/>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
121
            <attribute column="domesticsolidwasteunit" type="string" maxOccurs="1" path="domesticSolidWasteUnit" schema="FWEL"/>
122
            <attribute column="irrigationdemandunit" type="string" maxOccurs="1" path="irrigationDemandUnit" schema="FWEL"/>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
123
            <attribute column="totaldomesticwaste" type="double" maxOccurs="1" path="totalDomesticWaste" schema="FWEL"/>
124
            <attribute column="transpirationloss" type="double" maxOccurs="1" path="transpirationLoss" schema="FWEL"/>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
125
            <attribute column="totaldomesticwasteunit" type="string" maxOccurs="1" path="totalDomesticWasteUnit" schema="FWEL"/>
126
            <attribute column="transpirationlossunit" type="string" maxOccurs="1" path="transpirationLossUnit" schema="FWEL"/>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
        </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>