Skip to content

clustersDbscan does not take units option into account #3034

@PTV-SeGa

Description

@PTV-SeGa

A passed units option, like { option: "meters" } , is not correctly taking into account by clustersDbscan().
It's always assumed that parameter maxDistance is in kilometers.

The bug seems to be introduced by this commit, where geokdbush was introduced and the units converting was removed.

Edit:
There's already an open PR fixing this issue (@turf/clusters-dbscan: Fix clustersDbscan not respecting units option)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions