geos icon indicating copy to clipboard operation
geos copied to clipboard

AssertionFailedException: found two shells in EdgeRing list

Open MenwayHuang opened this issue 1 year ago • 1 comments

hello~ i meet a promble and it raise the AssertionFailedException, but i dont know what happen.

it happens when i use shapely union operation (unary_union()), is_valid of all geoms is True and without repeat. But when i use set operation such as result = list(set(geoms_list)) , seems to make random order , the unary_union(result) runs successfully.

language: Python 3.11 geoms data in the txt geoms_data.txt

MenwayHuang avatar Mar 25 '24 07:03 MenwayHuang

I suppose this is the same case as also posted in https://github.com/shapely/shapely/issues/2029? In that case the same remark from my side applies:

I cannot reproduce the problem using geos 3.12.1, so most likely it has been solved.

You could try with shapely 2.0.3, which includes geos 3.11.3. geos 3.11.3 contains most of the same bugfixes as geos 3.12.1.

theroggy avatar Mar 27 '24 06:03 theroggy