Skip to main content
Solved

Set the ground and all the building to 0 elevation

  • November 18, 2019
  • 5 replies
  • 24 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!
View original
Did this help you find an answer to your question?

5 replies

danilo_fme
Evangelist
Forum|alt.badge.img+44
  • Evangelist
  • November 18, 2019

Hi @sebeauvoir

Did you try to use the transformer 2DForcer?

Help Transformer

 

Thanks,

Danilo


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
  • 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
danilo_fme wrote:

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
virtualcitymatt wrote:

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+35
sebeauvoir wrote:

Thank you for your response, it works perfectly!

Awesome! Great to hear


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