turf/packages/turf-boolean-within/test/false/LineString/Polygon/LineIsNotFullyWithinPolygon.geojson
Samuel Arbibe f615482691
turf-boolean-contains + turf-boolean-within: Fix line in polygon (#2848)
* fix boolean-contains and boolean-within isLineInPoly
* update esri-contains and esri-within diagrams
* check if line is contained in boundary after splitting on intersections
* fix line simply containes in polygon, and tidy up test examples
* split linestring segments on polygon before checking midpoints
* add explanatory comments and update docs

---------

Co-authored-by: samuelarbibe <samuel.arbibe@gmail.com>
Co-authored-by: James Beard <james@smallsaucepan.com>
2025-12-06 14:00:30 +11:00

36 lines
752 B
JSON

{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[10.2166256, -0.7379163],
[11.0362904, 1.794324]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[9.6459207, -1.2281524],
[11.0822393, -1.2461022],
[11.405411, -0.1869151],
[11.1181473, 1.9133448],
[10.0588623, 1.4646914],
[10.6692977, -0.0253296],
[10.6692977, -0.0253296],
[9.6459207, -1.2281524]
]
]
}
}
]
}