Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PolygonClipping.union cause Maximum call stack size exceeded #149

Open
tomorrowcheng opened this issue Jan 3, 2023 · 1 comment
Open

Comments

@tomorrowcheng
Copy link

tomorrowcheng commented Jan 3, 2023

world1.js.zip
Using the above file for region merging will result in the following error:
import PolygonClipping from 'polygon-clipping'; const poly0 = jsonData.features[0].geometry.coordinates; const poly1 = jsonData.features[1].geometry.coordinates; PolygonClipping.union(poly0, poly1);

image

image

@tomorrowcheng tomorrowcheng changed the title Maximum call stack size exceeded PolygonClipping.union cause Maximum call stack size exceeded Jan 9, 2023
@macksal
Copy link
Contributor

macksal commented Mar 8, 2023

This may be fixed by my PR #136 if it is a duplicate of #124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants