Skip to main content
Question

How to prepare geometries for DonutBuilder?

  • July 16, 2024
  • 2 replies
  • 71 views

limo
Supporter
Forum|alt.badge.img+8

Hi all,

I have geometries (roofs) and I will use the transformer donutbuilder for further processing. The incoming polygons are all planar. The transformer “DonutBuilder” stopped with this rejection code:

INVALID_GEOMETRY_DEGENERATE

I was hoping to solve the problem with the “Geometry Validator” (fix degenerate or corrupt geometries). But all geometries were ok according to the validator.

How can I avoid this error?

Does anyone have an idea how I can solve this?

2 replies

hkingsbury
Celebrity
Forum|alt.badge.img+67
  • Celebrity
  • July 17, 2024

It could be an issue of a non area feature. After running the data through the GeometryValidator, try running it through a geometry filter to ensure that all you’re passing through are areas


limo
Supporter
Forum|alt.badge.img+8
  • Author
  • Supporter
  • July 18, 2024

thanks @hkingsbury I think I got it!. The geometry types are all areas. But there was an area feature without geometry. After AreaCalculator I have used a tester to filter geometries with area = 0!

 

This works for me so far!