I have a layer containing MultiPolygons. These MultiPolygons do overlap each other and do have a not unique attribute
time containing integers. The number of polygons per layer vary as well as the range of
time attribute values. So splitting the layer by
time attribute and running difference iterative is not a good solution.
You can download an example file here: https://drive.google.com/file/d/1bqoypolx0NXrfiEy3xb_4YvaignSdEgr/view?usp=sharing
What I need are polygons, where each (imaginary) possible point is covered by one feature/polygon only. Preferably with the minium
time attribute assigned, but this can be done in an additional step later as well by using
join attributes by location, so not really part of the question.
Right now I am looking for a way to do this with native QGIS processing tools. Later I will implement this workflow in a PlugIn using PyQGIS.
polygon self intersection would be a good start, if then beeing able to delete the duplicate geometries. Unfortunately SAGA tools are not officially supported and especially this tool tends to return invalid geometries, which makes it impossible to properly delete duplicate geometries afterwards.
Here is a sketch of what I am trying:
UnionGeoprocessing tool. However, the tool fails:
Could not add feature with geometry type MultiLineString to layer of type MultiPolygon. You have some problematic overlaps like here that probably result in geometry errors: i.stack.imgur.com/s62tF.png - maybe try to clean the geometries first?