Skip to main content
Solved

Set the ground and all the building to 0 elevation

  • November 18, 2019
  • 5 replies
  • 50 views

Hello,

I'm trying to set the ground and all the building to 0 elevation in my CityGML and keep the buildings in 3d.

Do you have any idea how could I do that?

Best answer by virtualcitymatt

Assuming your buildings have flat bottoms then what I would recommend to using the BoundsExtractor to get the _zmin of each building, then using an Offsetter to offset by the -ve of the zmin value. This should set all the bottoms of the building onto 0 elevation.

 

 

If your buildings are separated into Walls/Roofs etc then you will need to first Aggregate the surfaces into whole buildings (Aggregator, Group By Building ID) before using the BoundsExtractor. Failing to first Aggregate will result in your Roofs also being on 0.

 

 

Good Luck!
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.

5 replies

danilo_fme
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • November 18, 2019

Hi @sebeauvoir

Did you try to use the transformer 2DForcer?

Help Transformer

 

Thanks,

Danilo


virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • Best Answer
  • November 18, 2019

Assuming your buildings have flat bottoms then what I would recommend to using the BoundsExtractor to get the _zmin of each building, then using an Offsetter to offset by the -ve of the zmin value. This should set all the bottoms of the building onto 0 elevation.

 

 

If your buildings are separated into Walls/Roofs etc then you will need to first Aggregate the surfaces into whole buildings (Aggregator, Group By Building ID) before using the BoundsExtractor. Failing to first Aggregate will result in your Roofs also being on 0.

 

 

Good Luck!

  • Author
  • November 18, 2019

Hi @sebeauvoir

Did you try to use the transformer 2DForcer?

Help Transformer

 

Thanks,

Danilo

Thank you for your response.

Yes I tried, but it actually puts everything flat, and not keep the buildings in 3D.


  • Author
  • November 19, 2019

Assuming your buildings have flat bottoms then what I would recommend to using the BoundsExtractor to get the _zmin of each building, then using an Offsetter to offset by the -ve of the zmin value. This should set all the bottoms of the building onto 0 elevation.

 

 

If your buildings are separated into Walls/Roofs etc then you will need to first Aggregate the surfaces into whole buildings (Aggregator, Group By Building ID) before using the BoundsExtractor. Failing to first Aggregate will result in your Roofs also being on 0.

 

 

Good Luck!

Thank you for your response, it works perfectly!


virtualcitymatt
Celebrity
Forum|alt.badge.img+47

Thank you for your response, it works perfectly!

Awesome! Great to hear