#2807·turf

如果多边形包含重复的(连续的重复)点,则 pointToPolygonDistance 会失败

作者: mwenko创建于 2025年1月9日更新于 2026年5月13日

Version: 7.2.0

pointToPolygonDistance When using the method pointToPolygonDistance, I get an error that says coordinates must contain numbers. It definitely has something to do with the redundant points at the end of the polygon. (Look at the last 2 entries of the polygon in the GeoJSON section below, they are equal). If I remove one of them, the method works.