[@turf/concave] Returns a convex hull instead of a concave one
See original GitHub issueNot sure if it always happen, but here is an example of coordinates for which the hull is not concave. Just to be sure that we talk about the same concave hull, here is what I expect:
My version is @turf/concave@6.0.5
but it seems like the same bug appears on older versions too.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Turf.js | Advanced geospatial analysis
Takes a set of points and returns a concave hull Polygon or MultiPolygon. Internally, this uses turf-tin to generate geometries.
Read more >Top 5 concaveman Code Examples
To help you get started, we've selected a few concaveman examples, based on popular ways it is used in public projects. Secure your...
Read more >Topographic Turf examples: pointsWithinPolygon
Click an object to read info. Drag red markers to better location ; pointsWithinPolygon, 0, Find points within a polygon ; nearest_point_online, 1,...
Read more >How to create a non-intersecting polygon passing through ...
... convexHullCoordinates = this.convexHull(coordinates); let feature = new Feature(new Polygon([convexHullCoordinates])); return feature; }.
Read more >Licenses
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looking at this a bit further we should probably change out our algorithm for concaveman
I updated the gist with the comparison Turf vs. Concaveman. The result from Concaveman seems way closer to what I expected in the first place.
Of course this is just one example and it doesn’t prove Concaveman is good, but it’s a start for me.
In case someone needs this too, here is the code I used to test both the Turf and the Concaveman versions (with input.json):