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
I generated a polygon using bbox clip on OSM Land polygon (http://openstreetmapdata.com/data/land-polygons). I try to generate a polygonClipping.union using the MultiPolygon generated. Error throws
Error: SweepEvent comparison failed at [-15.188987939241656, 11]... equal but not identical?
I simplified the polygons to reproduce the bug:
// The problem comes from this polygon
const p1 = [[[-15.17583125361432, 11], [-15.182247200000006, 10.996678799999998], [-15.186977083599459, 11], [-15.188987939241656, 11], [-15.210785900000019, 10.987789800000002], [-15.25473119999998, 10.999922499999997], [-15.25484460019419, 11], [-15.17583125361432, 11]]];
// p2 : any polygon intersecting p1 or not
const p2 = [[[-15.017809399999976, 10.944376500000018], [-15.012765219284972, 10.95029830701516], [-15.013805400000024, 10.942978100000005], [-15.017809399999976, 10.944376500000018]]];
polygonClipping.union(p1,p2);
The problem comes from this strange polygon (2 areas linked by a line !!!)
The text was updated successfully, but these errors were encountered:
First, thank you for you lib !
I generated a polygon using bbox clip on OSM Land polygon (http://openstreetmapdata.com/data/land-polygons). I try to generate a polygonClipping.union using the MultiPolygon generated. Error throws
Error: SweepEvent comparison failed at [-15.188987939241656, 11]... equal but not identical?
I simplified the polygons to reproduce the bug:
The problem comes from this strange polygon (2 areas linked by a line !!!)
The text was updated successfully, but these errors were encountered: