You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var polygon = turf.polygon([[
[85.2, 42.2],
[-173, 42.2],
[-173, 7.5],
[85.2, 7.5],
[85.2, 42.2]
]]);
var point = turf.point([122, 13]);
let bool = turf.booleanPointInPolygon(point, polygon);
The point should be in the area, but the result is (点应该是在区域里的,但是结果是) false
The text was updated successfully, but these errors were encountered:
smallsaucepan
changed the title
计算点是否在多边形区域里,计算结果会出错
When calculating whether a point is in a polygon area, the calculation result will be wrong
Jan 16, 2024
(计算点是否在多边形区域里,计算结果会出错)
var polygon = turf.polygon([[
[85.2, 42.2],
[-173, 42.2],
[-173, 7.5],
[85.2, 7.5],
[85.2, 42.2]
]]);
var point = turf.point([122, 13]);
let bool = turf.booleanPointInPolygon(point, polygon);
The point should be in the area, but the result is (点应该是在区域里的,但是结果是) false
The text was updated successfully, but these errors were encountered: