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>
33 lines
525 B
JSON
33 lines
525 B
JSON
{
|
|
"type": "FeatureCollection",
|
|
"features": [
|
|
{
|
|
"type": "Feature",
|
|
"properties": {},
|
|
"geometry": {
|
|
"type": "LineString",
|
|
"coordinates": [
|
|
[2, 3],
|
|
[2, 3.5]
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "Feature",
|
|
"properties": {},
|
|
"geometry": {
|
|
"type": "Polygon",
|
|
"coordinates": [
|
|
[
|
|
[1, 1],
|
|
[1, 10],
|
|
[10, 10],
|
|
[10, 1],
|
|
[1, 1]
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|