7.2.0 • Published 10 months ago

@turf/line-intersect v7.2.0

Weekly downloads
170,991
License
MIT
Repository
github
Last release
10 months ago

@turf/line-intersect

lineIntersect

Takes any LineString or Polygon GeoJSON and returns the intersecting point(s).

Parameters

Examples

var line1 = turf.lineString([[126, -11], [129, -21]]);
var line2 = turf.lineString([[123, -18], [131, -14]]);
var intersects = turf.lineIntersect(line1, line2);

//addToMap
var addToMap = [line1, line2, intersects]

Returns FeatureCollection<Point> point(s) that intersect both


This module is part of the Turfjs project, an open source module collection dedicated to geographic algorithms. It is maintained in the Turfjs/turf repository, where you can create PRs and issues.

Installation

Install this module individually:

$ npm install @turf/line-intersect

Or install the Turf module that includes it as a function:

$ npm install @turf/turf
@infinitebrahmanuniverse/nolb-_tur@deepuppeds/leaflet-geoman@everything-registry/sub-chunk-941xbsj-rendererxbsj-xe2vtxf-renderervtxf-xe2jmapcloud-ng-dashboardgtfs-utilsgykj-map-coremapbox-draw-expandmapbox-map-toolmapbox-map-tool-testmap-draw-pluginleaflet-geoman-fixedleaflet-geoman-tinyleaflet-draw-cut@varlab-ucf/nebula.gl@varlab-ucf/nebulagl-edit-modes@varlab-ucf/nebulagl-layers@ximple/igo-demo@turf/turf@turf/point-on-line@turf/line-split@turf/boolean-overlap@turf/boolean-valid@turf/boolean-crosses@turf/boolean-disjoint@zalastax/nolb-_turagentmapsaec-library@contagt/leaflet-geoman-freeugis-coreturf-polygon-slicevue-openlayer-sailingmapvue-openlayer-slmapvue-openlayer-slmap1vue-openlayers-dvue-openlayer-darkvue-openlayer-huhongxunvue-openlayer-luoxuvue-openlayer-lxvue-openlayer-mapvue-openlayer-maplxvue-openlayer-mapslvue-openlayervue-openlayer-basevue-openlayer-baseluo@bmap-turf/turfyymap-turfvue3-openlayer-slmap@kylebarron/snap-features-to-tin@loudsrl/turf@ngageoint/geopackage@nebula.gl/edit-modes@nebula.gl/layers@plasmastrapi/geometrymy3dtiles-libmini-tokyo-3dopen-data-jp-prefectures-geojsonry-vue-mapryui-vuenebula.glproximiio-js-librarygisviewer-vue2-arcgisgisviewer-vue2-cesiumgisviewer-vue3-arcgiscrosslinesgeoman-leaflet-extendeginmap@dimitrilazarevic/leaflet-geoman-free@deck.gl-community/editable-layers@geoman-io/leaflet-geoman-free@geoman-io/maplibre-geoman-free@maybecode/amap-utils@norfield/core@skyraptor/leaflet-geoman-free@macrostrat/column-views@ragone/edit-modes@mapbox/osm-compare@maplat/core@maplat/tin
7.2.0

10 months ago

7.1.0

1 year ago

7.1.0-alpha.70

1 year ago

7.0.0

1 year ago

7.1.0-alpha.7

1 year ago

7.0.0-alpha.116

1 year ago

7.0.0-alpha.115

1 year ago

7.0.0-alpha.114

2 years ago

7.0.0-alpha.113

2 years ago

7.0.0-alpha.111

2 years ago

7.0.0-alpha.110

2 years ago

7.0.0-alpha.1

2 years ago

7.0.0-alpha.2

2 years ago

7.0.0-alpha.0

3 years ago

6.5.0

4 years ago

6.4.0

4 years ago

6.3.0

5 years ago

6.2.0

5 years ago

6.2.0-alpha.3

5 years ago

6.2.0-alpha.2

5 years ago

6.2.0-alpha.1

6 years ago

6.0.2

8 years ago

6.0.1

8 years ago

6.0.0

8 years ago

5.1.5

8 years ago

5.1.0

8 years ago

5.0.4

8 years ago

5.0.3

8 years ago

5.0.2

8 years ago

5.0.0

8 years ago

4.7.3

8 years ago

4.7.1

8 years ago

4.7.0

8 years ago

4.6.0

8 years ago

4.5.2

8 years ago

4.5.1

8 years ago

4.4.0

8 years ago

4.3.0

8 years ago

4.2.0

8 years ago

4.1.0

9 years ago

4.0.2

9 years ago

4.0.1

9 years ago

4.0.0

9 years ago

3.14.3

9 years ago

3.14.2

9 years ago

3.14.0

9 years ago

3.13.0

9 years ago

3.12.2

9 years ago

3.11.6

9 years ago

3.11.2

9 years ago

3.11.0

9 years ago