You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output: 1067.39, 1223.56, 1223.56, i.e. the result has a larger bound than the input polygon.
Visualization:
Green area is the original polygon, the red line is the splitter, and the violet area is not part of the original polygon but it is returned by the split function.
Operating system
Ubuntu 22.04
Shapely version and provenance
2.0.2 installed from PyPI
The text was updated successfully, but these errors were encountered:
Some additional investigation: The split produces a really strange polygon.
Internally, split() uses representative_point() to get an internal point of the newly created polygon and uses that point to check if the new polygon belongs to the original one.
The strange polygon fails at producing a valid representative point:
Expected behavior and actual behavior.
Expected
split()
to only split the input geometry, not add additional areas.Steps to reproduce the problem.
Output:
1067.39, 1223.56, 1223.56
, i.e. the result has a larger bound than the input polygon.Visualization:
Green area is the original polygon, the red line is the splitter, and the violet area is not part of the original polygon but it is returned by the
split
function.Operating system
Ubuntu 22.04
Shapely version and provenance
2.0.2 installed from PyPI
The text was updated successfully, but these errors were encountered: