| ... | ... | @@ -115,7 +115,7 @@ In this example, a shapefile of building footprints having height value as attri |
|
|
|
- Importing the 2D building footprints (Esri Shape Format)
|
|
|
|
- Extrusion of the footprints to a block model
|
|
|
|
- Set CityGML specific attributes and properties
|
|
|
|
- Writing from CityGML
|
|
|
|
- Writing to CityGML
|
|
|
|
|
|
|
|
<div align=center>
|
|
|
|
|
| ... | ... | @@ -123,9 +123,9 @@ In this example, a shapefile of building footprints having height value as attri |
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
First, the FME Workbench is started with an empty workspace. The building footprints are read using a reader (Readers -> Add Reader). The 3D building geometry is now derived with the help of so-called transformers. A transformer is always a block into which input data goes, which is processed and forwarded to other blocks via output data. Blocks linked in this way form a process. In the so-called Transformer Gallery, you will find all Transformers that are available in FME. About the notation: names of transformers are written in bold , parameters and connections in italic.
|
|
|
|
First, the FME Workbench is started with an empty workspace. The building footprints are read using a reader (Readers -> Add Reader). The 3D building geometry is now derived with the help of so-called transformers. A transformer is always a block into which input data goes, which is processed and forwarded to other blocks via output data port. Blocks linked in this way form a workbench. In the so-called Transformer Gallery, you will find all the transformers that are available in FME. About the notation: names of transformers are written in bold , parameters and connections in italic.
|
|
|
|
|
|
|
|
The building footprint shapefile can be extruded into a 3D geometry with the Transformer **Extruder**. To do this, the reader output is connected to the input of the **extruder** . Now the **extruder** has to be told at which height the footprints should be extruded. To do this, the attribute HEIGHT is set as the value for the parameter *Distance* in the properties dialog of the **extruder** . In order to view the generated data, a so-called **inspector** (right mouse button) can be inserted into the process, which is connected to the *Extruded* output of the **extruder** .
|
|
|
|
The building footprint shapefile can be extruded into a 3D geometry with the transformer **Extruder**. To do this, the reader output is connected to the input of the **extruder** . Now the **extruder** has to be told at which height the footprints should be extruded. To do this, the attribute HEIGHT is set as the value for the parameter *Distance* in the properties dialog of the **extruder** . In order to view the generated data, a so-called **inspector** (right mouse button) can be inserted into the process, which is connected to the *Extruded* output port of the **extruder** .
|
|
|
|
|
|
|
|
<div align=center>
|
|
|
|
|
| ... | ... | @@ -147,7 +147,7 @@ The LoD1 building geometry is now in place. However, it still has to be defined |
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
With a **GeometryPropertySetter downstream, the** *citygml_lod_name* attribute you just added becomes a geometry property. This marks the extruded 3D geometry as *lod1Solid*. In the **GeometryPropertySetter**, the *citygml_lod_name* attribute must be selected as the *source attribute*.
|
|
|
|
With a **GeometryPropertySetter**, the *citygml_lod_name* attribute you just added becomes a geometry property. This marks the extruded 3D geometry as *lod1Solid*. In the **GeometryPropertySetter**, the *citygml_lod_name* attribute must be selected as the *source attribute*.
|
|
|
|
|
|
|
|
<div align=center>
|
|
|
|
|
| ... | ... | @@ -155,7 +155,7 @@ With a **GeometryPropertySetter downstream, the** *citygml_lod_name* attribute y |
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
To save the 3D model created in this way as a CityGML document, a corresponding **writer is available under** *Writers -> Add Writer* . The name of the output file can be chosen arbitrarily. It is sufficient if *Building is* **selected** as the *feature type* when creating the writer . This saves the extruded building footprints as a LOD1 building in CityGML 2.0. The CityGML version can also be specified as a parameter of the **writer**.
|
|
|
|
To save the 3D model created in this way as a CityGML document, a corresponding writer is available under *Writers -> Add Writer* . The name of the output file can be chosen arbitrarily. It is sufficient if Building is selected as the feature type when creating the writer . This saves the extruded building footprints as a LOD1 building in CityGML 2.0. The CityGML version can also be specified as a parameter of the writer.
|
|
|
|
|
|
|
|
The **GeometryPropertySetter** is connected to the **Writer** to write the CityGML model. The *ID* attribute is connected to the *gml_id* of *Building>* so that the same IDs are used for the buildings in the CityGML document as in the input data.
|
|
|
|
|
| ... | ... | |