Skip to content

Wrong distance calculated from pointToLineDistance #2270

@mathildor

Description

@mathildor

Turf version:

6.5.0

Description of issue:

There seems to be a bug in the calculation of the minimum distance from a point to a line in turf.
When calculating the length of a line showing the minimum distance between a point and a line I get a different value than when using the pointToLineDistance function.

image

Example illustrating the bug:

https://jsfiddle.net/h8c9pvfa/36/

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions