-
Notifications
You must be signed in to change notification settings - Fork 942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@turf/concave
improvements
#910
Comments
👍 |
@DenisCarriere are we sure we should return a |
@stebogit 👍 Agreed, I forgot about this module having If there's any other modules returning a single Feature with Null geometry, it should be changed. |
Also seems like the turf/packages/turf-great-circle/arc.js Lines 36 to 44 in fa7acb5
|
set
maxEdge
parameter optional and by default toInfinity
.A common expected output of a
concave
function (likeconcaveman
) is always to return a single concave hullPolygon
.@turf/concave
has the capability to return a multipolygon (with holes! 👍 ), but this should not be the default behaviour.remove Error output if there is no hull to return, it should return an empty
Feature
(helpers.feature(null)
). (done here).Currently the Error "too few polygons found to compute concave hull" is likely due to a small maxEdge. This shouldn't be considered an error, because an error should mean a misuse of the module (which isn't the case here).
Ref. #907.
The text was updated successfully, but these errors were encountered: