Question

Clipping 3D roofs with 2D geometries gets me the error "Attempted to access the value of an uninitialized optional object."

  • 30 September 2022
  • 1 reply
  • 1 view

Workbench ScreenshotHello to all,

 

I'm stuck since yesterday on a problem I can't solve.

I want to transfer the attributes of a 2D representation of the roofs of the buildings of a city to their 3D version.

I have my 2D data in .gpkg and my 3D buildings in .dwg.

According to my geometryfilter, the roofs are surfaces and the 2D data are areas.

Everything seems to work on the first objects, my attribute replicates correctly on the concerned roofs, but I still get an error, when processing the 1145th object in my clipper. The error is "Attempted to access the value of an uninitialized optional object".

I guess some of the geometries may have a problem, but even with GeometryValidators to filter my 2 data sources, nothing changes.

What method would you recommend to fix this problem? Are there better ways than GeometryValidator for this kind of problem?

 

Thank you in advance for your answers.


1 reply

I finally got it to work.

I first converted the dwg file to a shape file, then I was able to clip it correctly.

Reply