5

I created a polygons layer in QGIS 3.22.2 by creating circular buffers around points.

I need to Union them by intersecting the overlapping parts. After running for several hours, the Union tool gives me this error:

Could not add feature with geometry type MultiLineString to layer of type MultiPolygon.

Tried the Multiparts to singleparts, tried the Fix geometries. It's all still the same. I'm kinda afraid to run any line correcting tool in the layer as it could warp the problematic lines to wrong extents/results. Is there a way to convert line to polygon without affecting it's geometry, just to sort of "redefine" it? I'm sure any line can be defined as polygon. If not, how do I sort out these MultiLineString features?

They should not be in a layer created of polygons in the first place. I don't see any way to sort fields by geometry type. I'm trying now layer/save as/geometry type polygon, and running the Union tool in this layer, but something tells me it won`t work either.

How do I get Union tool to work correctly on layer created of overlapping circular polygons?

3
  • 1
    I use to get that error but the tool still continues
    – BERA
    Jan 12 at 6:49
  • Don't think so. Intersect will come in the next step, when I'll intersect the Unioned layer with another lines layer which is the final result I need to achieve. Now, with over 10 k initial buffers, relating to over 100 different input values, dissolved then by two values, I need to Union them altogether. That`s the whole idea of the task - summing the values of areas. Thus, any other combination than all buffers together will involve much more manual work than sorting out this multilinestring issue.
    – edge
    Jan 12 at 7:16
  • Can you try using the SAGA Union tool? Does it make any difference if you save to a geopackage, shapefile, file geodatabase, etc. There seems to be a plausible explanation for why you are getting this error in the answer to this thread: gis.stackexchange.com/questions/229367/…
    – johns
    Jan 18 at 21:59
3

Came across this recently and the only tool able to fix the issue is v.clean. Run it with default settings and try union on the cleaned result.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.