... | ... | @@ -82,29 +82,50 @@ Description of that service at [Building Physics Library Web Service](../Buildin |
|
|
The internal ```xlink``` of the previous example to the material with the ```gml:id``` ```GML_94749b5f-ee27-491b-a906-eea7da12e9a0```
|
|
|
```xml
|
|
|
...
|
|
|
<energy:material xlink:href="#GML_94749b5f-ee27-491b-a906-eea7da12e9a0"/>
|
|
|
<energy:material xlink:href="#GML_94749b5f-ee27-491b-a906-eea7da12e9a0"/>
|
|
|
...
|
|
|
```
|
|
|
can be replaced with an external ```xlink``` e.g. to an XML file containing valid material properties conforming to the EnergyADE, as shown in the following example
|
|
|
```xml
|
|
|
...
|
|
|
<energy:material xlink:href="file:///some-local-directory/concrete-facade.xml"/>
|
|
|
<energy:material xlink:href="file:///some-local-directory/concrete-facade.xml"/>
|
|
|
...
|
|
|
```
|
|
|
or with an external ```xlink``` e.g. to a web service returning valid material properties conforming to the EnergyADE, as shown in the following example
|
|
|
```xml
|
|
|
...
|
|
|
<energy:material xlink:href="http://some.web.server/buildinglibrary/germany?material=concrete-facade"/>
|
|
|
<energy:material xlink:href="http://some.web.server/buildinglibrary/germany?material=concrete-facade"/>
|
|
|
...
|
|
|
```
|
|
|
Note: the use of external ```xlink```'s must be supported by the CityGML parser of the used application, e.g. the use of external ```xlink```'s is currently not supported in the 3DCityDB
|
|
|
Note:
|
|
|
The use of external ```xlink```'s must be supported by the CityGML parser of the used application, e.g. the use of external ```xlink```'s is currently not supported in the 3DCityDB
|
|
|
|
|
|
3. Using Generic Attributes as References in Native CityGML 2.0
|
|
|
|
|
|
Alternatively you can use ```genericAttribute```'s in a generic CityGML file to define correlations between
|
|
|
Alternatively you can use ```genericAttribute```'s in a generic CityGML file e.g. to define correlations between a material and external sources as shown in the following example:
|
|
|
|
|
|
```xml
|
|
|
...
|
|
|
<bldg:Building gml:id="GML_af6978c5-3476-47bc-bf5e-6fdd5d0b3feb">
|
|
|
<gml:description>CityGML 2.0 + EnergyADE 1.0 Model in LoD1</gml:description>
|
|
|
<gml:name>NeqModPlus_Bau_LoD1</gml:name>
|
|
|
<gml:boundedBy>
|
|
|
<gml:Envelope srsName="EPSG:25832" srsDimension="3">
|
|
|
<gml:lowerCorner>512665.636 5403023.0 257.0</gml:lowerCorner>
|
|
|
<gml:upperCorner>512739.215 5403100.951 276.0</gml:upperCorner>
|
|
|
</gml:Envelope>
|
|
|
</gml:boundedBy>
|
|
|
<core:creationDate>2020-11-11</core:creationDate>
|
|
|
<gen:uriAttribute name="Building Physics Material Concrete Facade">
|
|
|
<gen:value>http://some.web.server/buildinglibrary/germany?material=concrete-facade"</gen:value>
|
|
|
</gen:uriAttribute>
|
|
|
...
|
|
|
|
|
|
```
|
|
|
|
|
|
Generic Attribute - UML Diagram
|
|
|
|
|
|
```mermaid
|
|
|
```mermaid
|
|
|
classDiagram
|
|
|
_CityObject "1" *-- "*" _genericAttribute
|
|
|
_genericAttribute "1..*" <--* "0..1" genericAttributeSet : _genericAttribute
|
... | ... | @@ -151,7 +172,13 @@ classDiagram |
|
|
<<DataType>>
|
|
|
+value : gml::MeasureType[1]
|
|
|
}
|
|
|
```
|
|
|
```
|
|
|
|
|
|
Note:
|
|
|
The use of ```genericAttributes```'s is restricted to a specific building and can not be defined for a whole set of buildings in general.
|
|
|
|
|
|
Note:
|
|
|
The use of external links via ```genericAttributes```'s must be supported by the CityGML parser of the used application to resolve the attributes.
|
|
|
|
|
|
|
|
|
|