Skip to main content
Solved

How can I give extrude to a shape file (which is footprint of a building) and then convert it into a cityGML (*.gml) file?


kahramannkadirr
Participant
Forum|alt.badge.img+1

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?

Best answer by virtualcitymatt

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.

 

View original
Did this help you find an answer to your question?

2 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+34
  • Celebrity
  • Best Answer
  • November 2, 2020

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.

 


kahramannkadirr
Participant
Forum|alt.badge.img+1

Thanks a lot!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings