Turfjs / turf-intersect

find the intersection of features
30 stars 9 forks source link

error with "crossed" polygons #12

Open DavidHequet opened 8 years ago

DavidHequet commented 8 years ago

Hi,

Sorry i don't know how to call them in english, but turfjs crash if you try to intersect a crossed polygon like this: Image of Yaktocat

the thrown error is:

0x800a139e - Erreur d’exécution JavaScript: TopologyError: found non-noded intersection between LINESTRING ( 614147.9168432382 146363.16929745465, 614292.1574302447 146242.24904487425 ) and LINESTRING ( 614178.1469063832 146184.38006685363, 614237.7433165836 146332.93923430957 ) [ (614224.2120870375, 146299.20921283241) ]