Bug report #21437
Wrong result with unaryUnion in python plugin
|Category:||Python bindings / sipify|
|Affected QGIS version:||3.4.4||Regression?:||No|
|Operating System:||Windows 10||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||29254|
Writing a python plugin for QGIS, I use the function unaryUnion to obtain correct lines to be used in polygonize function. The function works correctly with some layers (layer PolygonToLineLayer0-limited1.shp), but it doesn't work with another layer (PolygonToLineLayer0-limited3.shp). And I don't find what could be the problem, just think that unaryUnion doesn't work in a specific case.
You'll find attached my 2 layers and an extract of my python code.