Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
IN-SOURCE
FWE ADE
Commits
96135fe8
Commit
96135fe8
authored
3 years ago
by
Rushikesh Padsala
Browse files
Options
Download
Email Patches
Plain Diff
addeded citygml4j
parent
d94d86d1
Pipeline
#4532
passed with stage
in 15 seconds
Changes
28
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
foodwaterenergycitygml4j/src/main/java/de/hft/stuttgart/ade/foodwaterenergycitygml4j/landuse/model/xsd/package-info.java
+18
-0
...dwaterenergycitygml4j/landuse/model/xsd/package-info.java
foodwaterenergycitygml4j/src/main/java/de/hft/stuttgart/ade/foodwaterenergycitygml4j/module/FoodWaterEnergyLandUseADEModule.java
+95
-0
...ergycitygml4j/module/FoodWaterEnergyLandUseADEModule.java
foodwaterenergycitygml4j/src/main/resources/META-INF/services/org.citygml4j.model.citygml.ade.binding.ADEContext
+1
-0
...rvices/org.citygml4j.model.citygml.ade.binding.ADEContext
foodwaterenergycitygml4j/src/main/resources/schema/FWELanduse.xsd
+126
-0
...renergycitygml4j/src/main/resources/schema/FWELanduse.xsd
foodwaterenergycitygml4j/src/main/resources/schema/fwelanduseADE.xsd
+126
-0
...ergycitygml4j/src/main/resources/schema/fwelanduseADE.xsd
foodwaterenergycitygml4j/src/test/java/de/hft/stuttgart/ade/foodwaterenergycitygml4j/FoodWaterEnergyLandUseTest.java
+562
-0
.../foodwaterenergycitygml4j/FoodWaterEnergyLandUseTest.java
foodwaterenergycitygml4j/src/test/resources/FWELSample2.gml
+72
-0
foodwaterenergycitygml4j/src/test/resources/FWELSample2.gml
foodwaterenergycitygml4j/src/test/resources/FWELandUseSample.gml
+72
-0
...erenergycitygml4j/src/test/resources/FWELandUseSample.gml
with
1072 additions
and
0 deletions
+1072
-0
foodwaterenergycitygml4j/src/main/java/de/hft/stuttgart/ade/foodwaterenergycitygml4j/landuse/model/xsd/package-info.java
0 → 100644
+
18
-
0
View file @
96135fe8
/*-
* Copyright 2021 Hochschule für Technik Stuttgart
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@javax
.
xml
.
bind
.
annotation
.
XmlSchema
(
namespace
=
"http://transfer.hft-stuttgart.de/pages/in-source/fwe-ade/FWELanduse/v2.1.1/XSD"
,
elementFormDefault
=
javax
.
xml
.
bind
.
annotation
.
XmlNsForm
.
QUALIFIED
,
xmlns
=
{
@javax
.
xml
.
bind
.
annotation
.
XmlNs
(
namespaceURI
=
"http://transfer.hft-stuttgart.de/pages/in-source/fwe-ade/FWELanduse/v2.1.1/XSD"
,
prefix
=
"fwel"
)
})
package
de.hft.stuttgart.ade.foodwaterenergycitygml4j.landuse.model.xsd
;
This diff is collapsed.
Click to expand it.
foodwaterenergycitygml4j/src/main/java/de/hft/stuttgart/ade/foodwaterenergycitygml4j/module/FoodWaterEnergyLandUseADEModule.java
0 → 100644
+
95
-
0
View file @
96135fe8
/*-
* Copyright 2021 Hochschule für Technik Stuttgart
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
de.hft.stuttgart.ade.foodwaterenergycitygml4j.module
;
import
org.citygml4j.model.gml.feature.AbstractFeature
;
import
org.citygml4j.model.module.ade.ADEModule
;
import
org.citygml4j.model.module.citygml.CityGMLVersion
;
import
de.hft.stuttgart.ade.foodwaterenergycitygml4j.FoodWaterEnergyLandUseADEContext
;
import
de.hft.stuttgart.ade.foodwaterenergycitygml4j.landuse.model.FoodWaterEnergy
;
import
javax.xml.namespace.QName
;
import
java.net.URL
;
import
java.util.*
;
import
java.util.Map.Entry
;
public
class
FoodWaterEnergyLandUseADEModule
extends
ADEModule
{
public
static
final
String
NAMESPACE_URI
=
"http://transfer.hft-stuttgart.de/pages/in-source/fwe-ade/FWELanduse/v2.1.1/XSD"
;
public
static
final
FoodWaterEnergyLandUseADEModule
V0_1
=
new
FoodWaterEnergyLandUseADEModule
();
private
HashMap
<
String
,
Class
<?
extends
AbstractFeature
>>
features
;
private
HashSet
<
String
>
featureProperties
;
private
static
final
long
serialVersionUID
=
8208579547274734280L
;
private
FoodWaterEnergyLandUseADEModule
()
{
super
(
NAMESPACE_URI
,
"fwel"
,
CityGMLVersion
.
v2_0_0
);
features
=
new
HashMap
<>();
features
.
put
(
"FoodWaterEnergy"
,
FoodWaterEnergy
.
class
);
featureProperties
=
new
HashSet
<>();
}
@Override
public
URL
getSchemaResource
()
{
return
FoodWaterEnergyLandUseADEContext
.
class
.
getResource
(
"/schema/FWELanduse.xsd"
);
}
@Override
public
List
<
String
>
getJAXBPackageNames
()
{
return
Collections
.
singletonList
(
"de.hft.stuttgart.ade.foodwaterenergycitygml4j.landuse.model.xsd"
);
}
@Override
public
boolean
hasFeatureProperty
(
String
name
)
{
return
featureProperties
.
contains
(
name
);
}
@Override
public
boolean
hasFeature
(
String
name
)
{
return
features
.
containsKey
(
name
);
}
@Override
public
Class
<?
extends
AbstractFeature
>
getFeatureClass
(
String
name
)
{
return
features
.
get
(
name
);
}
@Override
public
QName
getFeatureName
(
Class
<?
extends
AbstractFeature
>
featureClass
)
{
for
(
Entry
<
String
,
Class
<?
extends
AbstractFeature
>>
entry
:
features
.
entrySet
())
{
if
(
entry
.
getValue
()
==
featureClass
)
return
new
QName
(
getNamespaceURI
(),
entry
.
getKey
());
}
return
null
;
}
@Override
public
Map
<
String
,
Class
<?
extends
AbstractFeature
>>
getFeatures
()
{
return
new
HashMap
<>(
features
);
}
@Override
public
boolean
isTopLevelFeature
(
String
name
)
{
return
false
;
}
}
This diff is collapsed.
Click to expand it.
foodwaterenergycitygml4j/src/main/resources/META-INF/services/org.citygml4j.model.citygml.ade.binding.ADEContext
0 → 100644
+
1
-
0
View file @
96135fe8
de.hft.stuttgart.ade.foodwaterenergycitygml4j.FoodWaterEnergyLandUseADEContext
\ No newline at end of file
This diff is collapsed.
Click to expand it.
foodwaterenergycitygml4j/src/main/resources/schema/FWELanduse.xsd
0 → 100644
+
126
-
0
View file @
96135fe8
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<schema
xmlns=
"http://www.w3.org/2001/XMLSchema"
xmlns:fwel=
"http://transfer.hft-stuttgart.de/pages/in-source/fwe-ade/FWELanduse/v2.1.1/XSD"
targetNamespace=
"http://transfer.hft-stuttgart.de/pages/in-source/fwe-ade/FWELanduse/v2.1.1/XSD"
xmlns:core=
"http://www.opengis.net/citygml/2.0"
xmlns:bldg=
"http://www.opengis.net/citygml/building/2.0"
xmlns:luse=
"http://www.opengis.net/citygml/landuse/2.0"
xmlns:gml=
"http://www.opengis.net/gml"
elementFormDefault=
"qualified"
version=
"1.0"
>
<import
namespace=
"http://www.opengis.net/citygml/2.0"
schemaLocation=
"http://schemas.opengis.net/citygml/2.0/cityGMLBase.xsd"
/>
<import
namespace=
"http://www.opengis.net/citygml/building/2.0"
schemaLocation=
"http://schemas.opengis.net/citygml/building/2.0/building.xsd"
/>
<import
namespace=
"http://www.opengis.net/citygml/landuse/2.0"
schemaLocation=
"http://schemas.opengis.net/citygml/landuse/2.0/landUse.xsd"
/>
<import
namespace=
"http://www.opengis.net/citygml/appearance/2.0"
schemaLocation=
"http://schemas.opengis.net/citygml/appearance/2.0/appearance.xsd"
/>
<import
namespace=
"http://www.opengis.net/citygml/generics/2.0"
schemaLocation=
"http://schemas.opengis.net/citygml/generics/2.0/generics.xsd"
/>
<import
namespace=
"http://www.opengis.net/gml"
schemaLocation=
"http://schemas.opengis.net/gml/3.1.1/base/gmlBase.xsd"
/>
<element
name=
"foodwaterenergy"
type=
"fwel:foodwaterenergyType"
substitutionGroup=
"luse:_GenericApplicationPropertyOfLandUse"
/>
<complexType
name=
"foodwaterenergyType"
>
<annotation>
<documentation>
Data structure of foodwaterenergyType
</documentation>
</annotation>
<sequence>
<element
name=
"fweAreaName"
minOccurs=
"0"
maxOccurs=
"1"
type=
"string"
/>
<element
name=
"fweSystemName"
minOccurs=
"0"
maxOccurs=
"1"
type=
"string"
/>
<element
name=
"consistsOfFWESurvey"
minOccurs=
"0"
maxOccurs=
"1"
type=
"fwel:consistsOffwesurveyType"
/>
</sequence>
<attribute
ref=
"gml:id"
/>
</complexType>
<complexType
name=
"consistsOffwesurveyType"
>
<annotation>
<documentation>
Data structure of consistsOffwesurveyType
</documentation>
</annotation>
<sequence>
<element
name=
"landUseSurvey"
minOccurs=
"0"
maxOccurs=
"unbounded"
type=
"fwel:landUseSurveyType"
/>
</sequence>
</complexType>
<complexType
name=
"landUseSurveyType"
>
<annotation>
<documentation>
Data structure of landUseSurveyType
</documentation>
</annotation>
<sequence>
<element
name=
"buildingFootprintArea"
maxOccurs=
"1"
type=
"gml:AreaType"
/>
<element
name=
"population"
maxOccurs=
"1"
type=
"int"
/>
<element
name=
"surveyYear"
maxOccurs=
"1"
type=
"int"
/>
<element
name=
"surveyYearVersion"
maxOccurs=
"1"
type=
"double"
/>
<element
name=
"surveyDescription"
maxOccurs=
"1"
type=
"string"
/>
<element
name=
"surfaceArea"
minOccurs=
"0"
type=
"gml:AreaType"
/>
<element
name=
"foodSurvey"
minOccurs=
"0"
maxOccurs=
"1"
type=
"fwel:foodSurveyType"
/>
<element
name=
"waterSurvey"
minOccurs=
"0"
maxOccurs=
"1"
type=
"fwel:waterSurveyType"
/>
<element
name=
"energySurvey"
minOccurs=
"0"
maxOccurs=
"1"
type=
"fwel:energySurveyType"
/>
</sequence>
<attribute
ref=
"gml:id"
/>
</complexType>
<complexType
name=
"foodSurveyType"
>
<annotation>
<documentation>
Data structure of foodSurveyType
</documentation>
</annotation>
<sequence>
<!-- <element name="animalCalories" minOccurs="0" maxOccurs="1" type="gml:ScaleType"/> -->
<element
name=
"foodCategory"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:CodeType"
/>
<element
name=
"foodDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"foodProduction"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"foodProductionWaterDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"foodProductionEnergyDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"foodConsumption"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<!-- <element name="vegetalCalories" minOccurs="0" maxOccurs="1" type="gml:ScaleType"/>
<element name="cropCalories" minOccurs="0" maxOccurs="1" type="gml:ScaleType"/> -->
</sequence>
<attribute
ref=
"gml:id"
/>
</complexType>
<complexType
name=
"waterSurveyType"
>
<annotation>
<documentation>
Data structure of waterSurveyType
</documentation>
</annotation>
<sequence>
<element
name=
"domesticHotWaterDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"domesticHotWaterEnergyDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"domesticSolidWaste"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"domesticWaterDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"domesticWaterWaste"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"totalDomesticWaste"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<!--
<element name="irrigationDemand" minOccurs="0" maxOccurs="1" type="gml:ScaleType"/>
<element name="transpirationLoss" minOccurs="0" maxOccurs="1" type="gml:ScaleType"/>
-->
</sequence>
<attribute
ref=
"gml:id"
/>
</complexType>
<complexType
name=
"energySurveyType"
>
<annotation>
<documentation>
Data structure of energySurveyType
</documentation>
</annotation>
<sequence>
<element
name=
"spaceHeatingDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"spaceCoolingDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"residentialElectricityDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"electricityPotentialFromPVBuildings"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"vegetationCoverCategory"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:CodeType"
/>
<element
name=
"biomassPrimaryEnergyPotential"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToEnergyWoods"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToBiogas"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToPlantOil"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToBioethanol"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToResidualSolidFuel"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToSolidFuel"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToElectricityPotential"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToThermalPotential"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
</sequence>
<attribute
ref=
"gml:id"
/>
</complexType>
</schema>
This diff is collapsed.
Click to expand it.
foodwaterenergycitygml4j/src/main/resources/schema/fwelanduseADE.xsd
0 → 100644
+
126
-
0
View file @
96135fe8
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<schema
xmlns=
"http://www.w3.org/2001/XMLSchema"
xmlns:fwel=
"http://localhost:8080/3DTiles/ADE/foodwaterenergy/landuse/0.0.1"
targetNamespace=
"http://localhost:8080/3DTiles/ADE/foodwaterenergy/landuse/0.0.1"
xmlns:core=
"http://www.opengis.net/citygml/2.0"
xmlns:bldg=
"http://www.opengis.net/citygml/building/2.0"
xmlns:luse=
"http://www.opengis.net/citygml/landuse/2.0"
xmlns:gml=
"http://www.opengis.net/gml"
elementFormDefault=
"qualified"
version=
"1.0"
>
<import
namespace=
"http://www.opengis.net/citygml/2.0"
schemaLocation=
"http://schemas.opengis.net/citygml/2.0/cityGMLBase.xsd"
/>
<import
namespace=
"http://www.opengis.net/citygml/building/2.0"
schemaLocation=
"http://schemas.opengis.net/citygml/building/2.0/building.xsd"
/>
<import
namespace=
"http://www.opengis.net/citygml/landuse/2.0"
schemaLocation=
"http://schemas.opengis.net/citygml/landuse/2.0/landUse.xsd"
/>
<import
namespace=
"http://www.opengis.net/citygml/appearance/2.0"
schemaLocation=
"http://schemas.opengis.net/citygml/appearance/2.0/appearance.xsd"
/>
<import
namespace=
"http://www.opengis.net/citygml/generics/2.0"
schemaLocation=
"http://schemas.opengis.net/citygml/generics/2.0/generics.xsd"
/>
<import
namespace=
"http://www.opengis.net/gml"
schemaLocation=
"http://schemas.opengis.net/gml/3.1.1/base/gmlBase.xsd"
/>
<element
name=
"foodwaterenergy"
type=
"fwel:foodwaterenergyType"
substitutionGroup=
"luse:_GenericApplicationPropertyOfLandUse"
/>
<complexType
name=
"foodwaterenergyType"
>
<annotation>
<documentation>
Data structure of foodwaterenergyType
</documentation>
</annotation>
<sequence>
<element
name=
"fweAreaName"
minOccurs=
"0"
maxOccurs=
"1"
type=
"string"
/>
<element
name=
"fweSystemName"
minOccurs=
"0"
maxOccurs=
"1"
type=
"string"
/>
<element
name=
"consistsOfFWESurvey"
minOccurs=
"0"
maxOccurs=
"1"
type=
"fwel:consistsOffwesurveyType"
/>
</sequence>
<attribute
ref=
"gml:id"
/>
</complexType>
<complexType
name=
"consistsOffwesurveyType"
>
<annotation>
<documentation>
Data structure of consistsOffwesurveyType
</documentation>
</annotation>
<sequence>
<element
name=
"landUseSurvey"
minOccurs=
"0"
maxOccurs=
"unbounded"
type=
"fwel:landUseSurveyType"
/>
</sequence>
</complexType>
<complexType
name=
"landUseSurveyType"
>
<annotation>
<documentation>
Data structure of landUseSurveyType
</documentation>
</annotation>
<sequence>
<element
name=
"buildingFootprintArea"
maxOccurs=
"1"
type=
"gml:AreaType"
/>
<element
name=
"population"
maxOccurs=
"1"
type=
"int"
/>
<element
name=
"surveyYear"
maxOccurs=
"1"
type=
"int"
/>
<element
name=
"surveyYearVersion"
maxOccurs=
"1"
type=
"double"
/>
<element
name=
"surveyDescription"
maxOccurs=
"1"
type=
"string"
/>
<element
name=
"surfaceArea"
minOccurs=
"0"
type=
"gml:AreaType"
/>
<element
name=
"foodSurvey"
minOccurs=
"0"
maxOccurs=
"1"
type=
"fwel:foodSurveyType"
/>
<element
name=
"waterSurvey"
minOccurs=
"0"
maxOccurs=
"1"
type=
"fwel:waterSurveyType"
/>
<element
name=
"energySurvey"
minOccurs=
"0"
maxOccurs=
"1"
type=
"fwel:energySurveyType"
/>
</sequence>
<attribute
ref=
"gml:id"
/>
</complexType>
<complexType
name=
"foodSurveyType"
>
<annotation>
<documentation>
Data structure of foodSurveyType
</documentation>
</annotation>
<sequence>
<!-- <element name="animalCalories" minOccurs="0" maxOccurs="1" type="gml:ScaleType"/> -->
<element
name=
"foodCategory"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:CodeType"
/>
<element
name=
"foodDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"foodProduction"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"foodProductionWaterDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"foodProductionEnergyDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"foodConsumption"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<!-- <element name="vegetalCalories" minOccurs="0" maxOccurs="1" type="gml:ScaleType"/>
<element name="cropCalories" minOccurs="0" maxOccurs="1" type="gml:ScaleType"/> -->
</sequence>
<attribute
ref=
"gml:id"
/>
</complexType>
<complexType
name=
"waterSurveyType"
>
<annotation>
<documentation>
Data structure of waterSurveyType
</documentation>
</annotation>
<sequence>
<element
name=
"domesticHotWaterDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"domesticHotWaterEnergyDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"domesticSolidWaste"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"domesticWaterDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"domesticWaterWaste"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"totalDomesticWaste"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<!--
<element name="irrigationDemand" minOccurs="0" maxOccurs="1" type="gml:ScaleType"/>
<element name="transpirationLoss" minOccurs="0" maxOccurs="1" type="gml:ScaleType"/>
-->
</sequence>
<attribute
ref=
"gml:id"
/>
</complexType>
<complexType
name=
"energySurveyType"
>
<annotation>
<documentation>
Data structure of energySurveyType
</documentation>
</annotation>
<sequence>
<element
name=
"spaceHeatingDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"spaceCoolingDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"residentialElectricityDemand"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"electricityPotentialFromPVBuildings"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"vegetationCoverCategory"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:CodeType"
/>
<element
name=
"biomassPrimaryEnergyPotential"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToEnergyWoods"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToBiogas"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToPlantOil"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToBioethanol"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToResidualSolidFuel"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToSolidFuel"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToElectricityPotential"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
<element
name=
"biomassToThermalPotential"
minOccurs=
"0"
maxOccurs=
"1"
type=
"gml:ScaleType"
/>
</sequence>
<attribute
ref=
"gml:id"
/>
</complexType>
</schema>
This diff is collapsed.
Click to expand it.
foodwaterenergycitygml4j/src/test/java/de/hft/stuttgart/ade/foodwaterenergycitygml4j/FoodWaterEnergyLandUseTest.java
0 → 100644
+
562
-
0
View file @
96135fe8
This diff is collapsed.
Click to expand it.
foodwaterenergycitygml4j/src/test/resources/FWELSample2.gml
0 → 100644
+
72
-
0
View file @
96135fe8
<?xml version="1.0" encoding="UTF-8"?>
<CityModel
xmlns:brid=
"http://www.opengis.net/citygml/bridge/2.0"
xmlns:tran=
"http://www.opengis.net/citygml/transportation/2.0"
xmlns:wtr=
"http://www.opengis.net/citygml/waterbody/2.0"
xmlns:sch=
"http://www.ascc.net/xml/schematron"
xmlns:veg=
"http://www.opengis.net/citygml/vegetation/2.0"
xmlns:frn=
"http://www.opengis.net/citygml/cityfurniture/2.0"
xmlns:gml=
"http://www.opengis.net/gml"
xmlns:tex=
"http://www.opengis.net/citygml/texturedsurface/2.0"
xmlns:gen=
"http://www.opengis.net/citygml/generics/2.0"
xmlns:dem=
"http://www.opengis.net/citygml/relief/2.0"
xmlns:app=
"http://www.opengis.net/citygml/appearance/2.0"
xmlns:bldg=
"http://www.opengis.net/citygml/building/2.0"
xmlns:smil20=
"http://www.w3.org/2001/SMIL20/"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:smil20lang=
"http://www.w3.org/2001/SMIL20/Language"
xmlns:pbase=
"http://www.opengis.net/citygml/profiles/base/2.0"
xmlns:tun=
"http://www.opengis.net/citygml/tunnel/2.0"
xmlns:sc=
"http://www.interactive-instruments.de/ShapeChange/AppInfo"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xmlns:grp=
"http://www.opengis.net/citygml/cityobjectgroup/2.0"
xmlns=
"http://www.opengis.net/citygml/2.0"
xmlns:luse=
"http://www.opengis.net/citygml/landuse/2.0"
xmlns:xAL=
"urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"
xmlns:fwel=
"http://localhost:8080/3DTiles/ADE/foodwaterenergy/landuse/0.0.1"
xsi:schemaLocation=
"http://localhost:8080/3DTiles/ADE/foodwaterenergy/landuse/0.0.1 http://localhost:8080/3DTiles/ADE/foodwaterenergy/landuse/0.0.1/fwelanduseADE.xsd"
>
<gml:boundedBy>
<gml:Envelope
srsName=
"EPSG:25832"
srsDimension=
"3"
>
<gml:lowerCorner>
516309.7750000004 5416407.569 0
</gml:lowerCorner>
<gml:upperCorner>
527203.5820000004 5425829.982000001 0
</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<cityObjectMember>
<luse:LandUse
gml:id=
"DEBWB0010000FTzJ"
>
<luse:lod0MultiSurface>
<gml:MultiSurface
srsName=
"EPSG:25832"
srsDimension=
"3"
>
<gml:surfaceMember>
<gml:Polygon>
<gml:exterior>
<gml:LinearRing>
<gml:posList>
519571.82100000046 5419893.291999999 0 519545.77300000004 5419981.391000001 0 519522.2520000003 5419976.294 0 519419.324 5419954.6 0 519409.01400000043 5419950.467 0 519403.70299999975 5419947.0030000005 0 519397.23699999973 5419941.173 0 519398.66000000015 5419937.584000001 0 519399.9299999997 5419933.636 0 519399.61000000034 5419929.368000001 0 519398.66000000015 5419925.729 0 519395.9009999996 5419922.970000001 0 519405.49700000044 5419912.085000001 0 519415.26300000027 5419905.977 0 519431.65699999966 5419898.43 0 519447.31099999975 5419890.693 0 519458.9160000002 5419884.795 0 519468.67200000025 5419878.168 0 519478.20799999963 5419870.111 0 519571.82100000046 5419893.291999999 0
</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</gml:surfaceMember>
</gml:MultiSurface>
</luse:lod0MultiSurface>
<fwel:foodwaterenergy
gml:id=
"foodWaterEnergy_001"
>
<fwel:fweAreaName>
Test_Stuttgart_Ost
</fwel:fweAreaName>
<fwel:fweSystemName>
Test_Stuttgart_System
</fwel:fweSystemName>
<fwel:consistsOfFWESurvey>
<fwel:landUseSurvey
gml:id=
"landUseSurvey_001"
>
<fwel:buildingFootprintArea
uom=
"m2"
>
5.0
</fwel:buildingFootprintArea>
<fwel:population>
15000
</fwel:population>
<fwel:surveyYear>
1975
</fwel:surveyYear>
<fwel:surveyYearVersion>
0.1
</fwel:surveyYearVersion>
<fwel:surveyDescription>
desc
</fwel:surveyDescription>
<fwel:surfaceArea
uom=
"m2"
>
12.5
</fwel:surfaceArea>
<fwel:foodSurvey
gml:id=
"foodSurvey_001"
>
<fwel:foodCategory
codeSpace=
"codeSpace_no_idea"
>
no_idea_6
</fwel:foodCategory>
<fwel:foodDemand
uom=
"no_idea_2"
>
122.0
</fwel:foodDemand>
<fwel:foodProduction
uom=
"no_idea_3"
>
123.0
</fwel:foodProduction>
<fwel:foodProductionWaterDemand
uom=
"no_idea_5"
>
125.0
</fwel:foodProductionWaterDemand>
<fwel:foodProductionEnergyDemand
uom=
"no_idea_4"
>
124.0
</fwel:foodProductionEnergyDemand>
<fwel:foodConsumption
uom=
"no_idea"
>
12.0
</fwel:foodConsumption>
</fwel:foodSurvey>
<fwel:waterSurvey
gml:id=
"waterSurvey_001"
>
<fwel:domesticHotWaterDemand
uom=
"l"
>
30.0
</fwel:domesticHotWaterDemand>
<fwel:domesticHotWaterEnergyDemand
uom=
"l"
>
31.0
</fwel:domesticHotWaterEnergyDemand>
<fwel:domesticSolidWaste
uom=
"l"
>
32.0
</fwel:domesticSolidWaste>
<fwel:domesticWaterDemand
uom=
"l"
>
33.0
</fwel:domesticWaterDemand>
<fwel:domesticWaterWaste
uom=
"l"
>
34.0
</fwel:domesticWaterWaste>
<fwel:totalDomesticWaste
uom=
"l"
>
35.0
</fwel:totalDomesticWaste>
</fwel:waterSurvey>
<fwel:energySurvey
gml:id=
"energySurvey_001"
>
<fwel:spaceHeatingDemand
uom=
"J"
>
301.0
</fwel:spaceHeatingDemand>
<fwel:spaceCoolingDemand
uom=
"J"
>
300.0
</fwel:spaceCoolingDemand>
<fwel:residentialElectricityDemand
uom=
"J"
>
302.0
</fwel:residentialElectricityDemand>
<fwel:electricityPotentialFromPVBuildings
uom=
"J"
>
303.0
</fwel:electricityPotentialFromPVBuildings>
<fwel:vegetationCoverCategory
codeSpace=
"Un_code"
>
ndlep
</fwel:vegetationCoverCategory>
<fwel:biomassPrimaryEnergyPotential
uom=
"J"
>
304.0
</fwel:biomassPrimaryEnergyPotential>
<fwel:biomassToEnergyWoods
uom=
"J"
>
308.0
</fwel:biomassToEnergyWoods>
<fwel:biomassToBiogas
uom=
"J"
>
306.0
</fwel:biomassToBiogas>
<fwel:biomassToPlantOil
uom=
"J"
>
309.0
</fwel:biomassToPlantOil>
<fwel:biomassToBioethanol
uom=
"J"
>
305.0
</fwel:biomassToBioethanol>
<fwel:biomassToResidualSolidFuel
uom=
"J"
>
310.0
</fwel:biomassToResidualSolidFuel>
<fwel:biomassToSolidFuel
uom=
"J"
>
311.0
</fwel:biomassToSolidFuel>
<fwel:biomassToElectricityPotential
uom=
"J"
>
307.0
</fwel:biomassToElectricityPotential>
<fwel:biomassToThermalPotential
uom=
"J"
>
312.0
</fwel:biomassToThermalPotential>
</fwel:energySurvey>
</fwel:landUseSurvey>
</fwel:consistsOfFWESurvey>
</fwel:foodwaterenergy>
</luse:LandUse>
</cityObjectMember>
</CityModel>
This diff is collapsed.
Click to expand it.
foodwaterenergycitygml4j/src/test/resources/FWELandUseSample.gml
0 → 100644
+
72
-
0
View file @
96135fe8
<?xml version="1.0" encoding="UTF-8"?>
<CityModel
xmlns:brid=
"http://www.opengis.net/citygml/bridge/2.0"
xmlns:tran=
"http://www.opengis.net/citygml/transportation/2.0"
xmlns:wtr=
"http://www.opengis.net/citygml/waterbody/2.0"
xmlns:sch=
"http://www.ascc.net/xml/schematron"
xmlns:veg=
"http://www.opengis.net/citygml/vegetation/2.0"
xmlns:frn=
"http://www.opengis.net/citygml/cityfurniture/2.0"
xmlns:gml=
"http://www.opengis.net/gml"
xmlns:tex=
"http://www.opengis.net/citygml/texturedsurface/2.0"
xmlns:gen=
"http://www.opengis.net/citygml/generics/2.0"
xmlns:dem=
"http://www.opengis.net/citygml/relief/2.0"
xmlns:app=
"http://www.opengis.net/citygml/appearance/2.0"
xmlns:bldg=
"http://www.opengis.net/citygml/building/2.0"
xmlns:smil20=
"http://www.w3.org/2001/SMIL20/"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:smil20lang=
"http://www.w3.org/2001/SMIL20/Language"
xmlns:pbase=
"http://www.opengis.net/citygml/profiles/base/2.0"
xmlns:tun=
"http://www.opengis.net/citygml/tunnel/2.0"
xmlns:sc=
"http://www.interactive-instruments.de/ShapeChange/AppInfo"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xmlns:grp=
"http://www.opengis.net/citygml/cityobjectgroup/2.0"
xmlns=
"http://www.opengis.net/citygml/2.0"
xmlns:luse=
"http://www.opengis.net/citygml/landuse/2.0"
xmlns:xAL=
"urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"
xmlns:fwel=
"http://transfer.hft-stuttgart.de/pages/in-source/fwe-ade/FWELanduse/v2.1.1/XSD"
xsi:schemaLocation=
"http://transfer.hft-stuttgart.de/pages/in-source/fwe-ade/FWELanduse/v2.1.1/XSD http://transfer.hft-stuttgart.de/pages/in-source/fwe-ade/FWELanduse/v2.1.1/XSD/FWELanduse.xsd"
>
<gml:boundedBy>
<gml:Envelope
srsName=
"EPSG:25832"
srsDimension=
"3"
>
<gml:lowerCorner>
516309.7750000004 5416407.569 0
</gml:lowerCorner>
<gml:upperCorner>
527203.5820000004 5425829.982000001 0
</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<cityObjectMember>
<luse:LandUse
gml:id=
"DEBWB0010000FTzJ"
>
<luse:lod0MultiSurface>
<gml:MultiSurface
srsName=
"EPSG:25832"
srsDimension=
"3"
>
<gml:surfaceMember>
<gml:Polygon>
<gml:exterior>
<gml:LinearRing>
<gml:posList>
519571.82100000046 5419893.291999999 0 519545.77300000004 5419981.391000001 0 519522.2520000003 5419976.294 0 519419.324 5419954.6 0 519409.01400000043 5419950.467 0 519403.70299999975 5419947.0030000005 0 519397.23699999973 5419941.173 0 519398.66000000015 5419937.584000001 0 519399.9299999997 5419933.636 0 519399.61000000034 5419929.368000001 0 519398.66000000015 5419925.729 0 519395.9009999996 5419922.970000001 0 519405.49700000044 5419912.085000001 0 519415.26300000027 5419905.977 0 519431.65699999966 5419898.43 0 519447.31099999975 5419890.693 0 519458.9160000002 5419884.795 0 519468.67200000025 5419878.168 0 519478.20799999963 5419870.111 0 519571.82100000046 5419893.291999999 0
</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</gml:surfaceMember>
</gml:MultiSurface>
</luse:lod0MultiSurface>
<fwel:foodwaterenergy
gml:id=
"foodWaterEnergy_001"
>
<fwel:fweAreaName>
Test_Stuttgart_Ost
</fwel:fweAreaName>
<fwel:fweSystemName>
Test_Stuttgart_System
</fwel:fweSystemName>
<fwel:consistsOfFWESurvey
>
<fwel:landUseSurvey
gml:id=
"landUseSurvey_001"
>
<fwel:buildingFootprintArea
uom=
"m2"
>
5.0
</fwel:buildingFootprintArea>
<fwel:population>
15000
</fwel:population>
<fwel:surveyYear>
1975
</fwel:surveyYear>
<fwel:surveyYearVersion>
0.1
</fwel:surveyYearVersion>
<fwel:surveyDescription>
desc
</fwel:surveyDescription>
<fwel:surfaceArea
uom=
"m2"
>
12.5
</fwel:surfaceArea>
<fwel:foodSurvey
gml:id=
"foodSurvey_001"
>
<fwel:foodCategory
codeSpace=
"codeSpace_no_idea"
>
no_idea_6
</fwel:foodCategory>
<fwel:foodDemand
uom=
"no_idea_2"
>
122.0
</fwel:foodDemand>
<fwel:foodProduction
uom=
"no_idea_3"
>
123.0
</fwel:foodProduction>
<fwel:foodProductionWaterDemand
uom=
"no_idea_5"
>
125.0
</fwel:foodProductionWaterDemand>
<fwel:foodProductionEnergyDemand
uom=
"no_idea_4"
>
124.0
</fwel:foodProductionEnergyDemand>
<fwel:foodConsumption
uom=
"no_idea"
>
12.0
</fwel:foodConsumption>
</fwel:foodSurvey>
<fwel:waterSurvey
gml:id=
"waterSurvey_001"
>
<fwel:domesticHotWaterDemand
uom=
"l"
>
30.0
</fwel:domesticHotWaterDemand>
<fwel:domesticHotWaterEnergyDemand
uom=
"l"
>
31.0
</fwel:domesticHotWaterEnergyDemand>
<fwel:domesticSolidWaste
uom=
"l"
>
32.0
</fwel:domesticSolidWaste>
<fwel:domesticWaterDemand
uom=
"l"
>
33.0
</fwel:domesticWaterDemand>
<fwel:domesticWaterWaste
uom=
"l"
>
34.0
</fwel:domesticWaterWaste>
<fwel:totalDomesticWaste
uom=
"l"
>
35.0
</fwel:totalDomesticWaste>
</fwel:waterSurvey>
<fwel:energySurvey
gml:id=
"energySurvey_001"
>
<fwel:spaceHeatingDemand
uom=
"J"
>
301.0
</fwel:spaceHeatingDemand>
<fwel:spaceCoolingDemand
uom=
"J"
>
300.0
</fwel:spaceCoolingDemand>
<fwel:residentialElectricityDemand
uom=
"J"
>
302.0
</fwel:residentialElectricityDemand>
<fwel:electricityPotentialFromPVBuildings
uom=
"J"
>
303.0
</fwel:electricityPotentialFromPVBuildings>
<fwel:vegetationCoverCategory
codeSpace=
"Un_code"
>
ndlep
</fwel:vegetationCoverCategory>
<fwel:biomassPrimaryEnergyPotential
uom=
"J"
>
304.0
</fwel:biomassPrimaryEnergyPotential>
<fwel:biomassToEnergyWoods
uom=
"J"
>
308.0
</fwel:biomassToEnergyWoods>
<fwel:biomassToBiogas
uom=
"J"
>
306.0
</fwel:biomassToBiogas>
<fwel:biomassToPlantOil
uom=
"J"
>
309.0
</fwel:biomassToPlantOil>
<fwel:biomassToBioethanol
uom=
"J"
>
305.0
</fwel:biomassToBioethanol>
<fwel:biomassToResidualSolidFuel
uom=
"J"
>
310.0
</fwel:biomassToResidualSolidFuel>
<fwel:biomassToSolidFuel
uom=
"J"
>
311.0
</fwel:biomassToSolidFuel>
<fwel:biomassToElectricityPotential
uom=
"J"
>
307.0
</fwel:biomassToElectricityPotential>
<fwel:biomassToThermalPotential
uom=
"J"
>
312.0
</fwel:biomassToThermalPotential>
</fwel:energySurvey>
</fwel:landUseSurvey>
</fwel:consistsOfFWESurvey>
</fwel:foodwaterenergy>
</luse:LandUse>
</cityObjectMember>
</CityModel>
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