Turfjs / Turfjs/turf

unkink-polygon throws empty exception

Open
#2,463 3 comments 0 reactions 1 assignee View on GitHub

@wtchen is already working on this.

Since Oct 25, 2023.

@turf/unkink-polygon
Dominant language
TypeScript
Stars
10.5k
Forks
1k
Avg merge
1h 11m
Merged PRs (30d)
4

Description

@turf/unkink-polygon: "6.5.0"

When passed geojson that it can't handle it silently throws an error without explaination which can be hard to trace the source of. "Unprocessable geometry in feature 7" or similar would be useful.

Example geojson:
https://gist.github.com/alexcroox/1a9d7a45422514d4e0fde6cfa0761eac

It's failing I imagine because of this hot mess of a polygon:

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.