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?

  • November 2, 2020
  • 2 replies
  • 69 views

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.

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • 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
  • Author
  • Participant
  • 3 replies
  • November 3, 2020

Thanks a lot!