mirror of
https://github.com/Turfjs/turf.git
synced 2026-01-25 16:07:00 +00:00
* 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>
36 lines
752 B
JSON
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]
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|