turf.lineIntersect
How Turf.js runs Line Intersections: turf.lineIntersect.
| Engine | Turf.js |
|---|---|
| Tool name | turf.lineIntersect |
| Interface | js |
| Implements | Line Intersections |
| Documentation | Not stated |
| Effects | modifies input: no, network: no |
| Notes | From @turf/line-intersect. |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
line1 | FeatureCollection<G1> | Feature<G1> | G1 | yes | Not stated | Not stated | Not stated |
line2 | FeatureCollection<G2> | Feature<G2> | G2 | yes | Not stated | Not stated | Not stated |
options | { removeDuplicates?: boolean; ignoreSelfIntersections?: boolean; } | no | Not stated | Not stated | Not stated |
options.removeDuplicates | boolean | no | Not stated | Not stated | field of options |
options.ignoreSelfIntersections | boolean | no | Not stated | Not stated | field of options |
How it maps to the operation
| Operation parameter | Parameter here | Note |
|---|---|---|
a | line1 | Not stated |
b | line2 | Not stated |
Differences from the operation
- options.removeDuplicates and ignoreSelfIntersections control repeated and self-crossing points.
- Turf works on GeoJSON in longitude/latitude (WGS 84); data in another CRS must be reprojected first.
Harvested by the turf harvester from engine version
7.4.0. Names can change when an engine is harvested again.