Skip to main content

I'm new to FME. And I have a shapefile. The *.shp is footprint of a building. I want to give an extrusion value to it manually. And then write it as a CityGML file(*.gml). So, briefly, I want to make a very simple prism with an extruded shapefile. Could you please give me an information about this?

Read in the shapefile with a shapefile reader, connect it to an Extruder transformer, here you can specify the height value, if you have an attribute containing height values then you can use the attribute.

After that you need to use a CityGMLGeometrySetter - set geometry to lod1Solid and the feature role to cityObjectMember.

Now the data is ready to be written as CityGML. Add a CityGML Writer and choose only Building from the list of feature types. Connect the CityGMLGeometrySetter to the Building feature type and run the workspace.

This should give you simple LoD1 Solid buildings as CityGML.

 


Thanks a lot!


Reply