mfogel / polygon-clipping

Apply boolean polygon clipping operations (union, intersection, difference, xor) to your Polygons & MultiPolygons.
MIT License
550 stars 63 forks source link

PolygonClipping.union cause Maximum call stack size exceeded #149

Open tomorrowcheng opened 1 year ago

tomorrowcheng commented 1 year ago

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
macksal commented 1 year ago

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