{"action":"opened","issue":{"url":"https://api.github.com/repos/Turfjs/turf/issues/1094","repository_url":"https://api.github.com/repos/Turfjs/turf","labels_url":"https://api.github.com/repos/Turfjs/turf/issues/1094/labels{/name}","comments_url":"https://api.github.com/repos/Turfjs/turf/issues/1094/comments","events_url":"https://api.github.com/repos/Turfjs/turf/issues/1094/events","html_url":"https://github.com/Turfjs/turf/issues/1094","id":274288070,"number":1094,"title":"@turf/kinks and @turf/unkink-polygon","user":{"login":"polizz","id":10888433,"avatar_url":"https://avatars3.githubusercontent.com/u/10888433?v=4","gravatar_id":"","url":"https://api.github.com/users/polizz","html_url":"https://github.com/polizz","followers_url":"https://api.github.com/users/polizz/followers","following_url":"https://api.github.com/users/polizz/following{/other_user}","gists_url":"https://api.github.com/users/polizz/gists{/gist_id}","starred_url":"https://api.github.com/users/polizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polizz/subscriptions","organizations_url":"https://api.github.com/users/polizz/orgs","repos_url":"https://api.github.com/users/polizz/repos","events_url":"https://api.github.com/users/polizz/events{/privacy}","received_events_url":"https://api.github.com/users/polizz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-15T20:09:28Z","updated_at":"2017-11-15T20:09:28Z","closed_at":null,"author_association":"NONE","body":"The kinks package detects self-intersection in the following shape: https://gist.github.com/polizz/53bfb5d8cd0e7cac09ae6543e1c89528. When I run the shape through unkink-polygon, I get the same shape back out. Not sure what is wrong here. The unkink-polygon function does work on other self-intersecting polygons. Let me know if I can provide more information.\r\n\r\n```javascript\r\nexport function removeDuplicatesAndFormatGeoJson(wkt) {\r\n  try {\r\n    let cleanGeom = clean(parse(wkt));\r\n    const hasKinks = get(kinks(cleanGeom), 'features[0].geometry', false);\r\n\r\n    if (hasKinks) {\r\n      const unkinked = unkink(cleanGeom);\r\n...\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"polizz"}}