Skip to main content
Question

Surface Normal of citygml roof surfaces

  • July 12, 2022
  • 7 replies
  • 160 views

Hello,

I am loading citygml data with the OGC Citygml Reader and afterwards I want to calculate the normal vector of each roof surface.

How can this be done in FME for a big data set? Using the SurfaceNormalExtractor I get some errors that result in stopping the calculation. After sorting out that surface I have to restart the reader and the surface normal extractor. Is there a better workaround?

Thank you for your help in advance!

7 replies

muzhnasto
Contributor
Forum|alt.badge.img+12
  • Contributor
  • 105 replies
  • July 14, 2022

  • Author
  • 4 replies
  • July 14, 2022

Thank you for your reply!

I have already chosen "Continue Translation". Unfortunately, this setting does not work for the transformer SurfaceNormalExtractor. Does someone have another idea?


muzhnasto
Contributor
Forum|alt.badge.img+12
  • Contributor
  • 105 replies
  • July 15, 2022

Hi @bschweiger​ you can upload a test data set and workspace?


virtualcitymatt
Celebrity
Forum|alt.badge.img+47

Check out the PlanarityFilter - there is an option there to extract the Surface Normals​ - it is by far the fastest approach. http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/planarityfilter.htm#


  • Author
  • 4 replies
  • July 18, 2022

Hi @bschweiger​ you can upload a test data set and workspace?

Hey,

since I am using unpublished data, I will search for another data set with the same problem. I hope to find some time this evening.


  • Author
  • 4 replies
  • July 18, 2022

Check out the PlanarityFilter - there is an option there to extract the Surface Normals​ - it is by far the fastest approach. http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/planarityfilter.htm#

Hey,

another transformer would be really great!

I just checked the planarity filter, and I always get empty colums for the three surface normal cooordinates. Is it possible that the planarity filter can be just used for checking the planarity by specifying a normal vector?


  • Author
  • 4 replies
  • July 18, 2022

Hi @bschweiger​ you can upload a test data set and workspace?

Hi,

with the free available LoD2 data set (EPSG 31256) below, I get the same problems with the surface normal extractor:

https://www.wien.gv.at/stadtentwicklung/stadtvermessung/geodaten/dachmodell/daten-lod2.html

You also find attached the workbench.

Thank you very much!