Bug report #21437

Wrong result with unaryUnion in python plugin

Added by Etienne MORO about 1 year ago. Updated about 1 year ago.

Status:Open
Priority:Normal
Assignee:-
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

Description

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.

Pb-unaryUnion.zip - example layers and python code (4.51 MB) Etienne MORO, 2019-03-01 11:23 AM

History

#1 Updated by Giovanni Manghi about 1 year ago

  • Crashes QGIS or corrupts data changed from Yes to No
  • Priority changed from High to Normal
  • Category changed from Python plugins to Python bindings / sipify

Also available in: Atom PDF