6.5.0 • Published 3 days ago

@turf/line-overlap v6.5.0

Weekly downloads
115,241
License
MIT
Repository
github
Last release
3 days ago

@turf/line-overlap

lineOverlap

Takes any LineString or Polygon and returns the overlapping lines between both features.

Parameters

Examples

var line1 = turf.lineString([[115, -35], [125, -30], [135, -30], [145, -35]]);
var line2 = turf.lineString([[115, -25], [125, -30], [135, -30], [145, -25]]);

var overlapping = turf.lineOverlap(line1, line2);

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

Returns FeatureCollection<LineString> lines(s) that are overlapping between both features


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-overlap

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

$ npm install @turf/turf
7.0.0-alpha.115

3 days ago

7.0.0-alpha.114

2 months ago

7.0.0-alpha.113

3 months ago

7.0.0-alpha.111

3 months ago

7.0.0-alpha.110

4 months ago

7.0.0-alpha.1

7 months ago

7.0.0-alpha.2

7 months ago

7.0.0-alpha.0

1 year ago

6.5.0

3 years ago

6.4.0

3 years ago

6.3.0

3 years ago

6.2.0

3 years ago

6.2.0-alpha.3

3 years ago

6.2.0-alpha.2

4 years ago

6.2.0-alpha.1

4 years ago

6.0.2

6 years ago

6.0.1

6 years ago

6.0.0

6 years ago

5.1.5

6 years ago

5.1.0

6 years ago

5.0.4

6 years ago

5.0.1

7 years ago

4.7.3

7 years ago

4.7.1

7 years ago

4.7.0

7 years ago

4.6.0

7 years ago

4.5.2

7 years ago

4.5.1

7 years ago

4.4.0

7 years ago

4.3.0

7 years ago

4.2.0

7 years ago

4.1.0

7 years ago

4.0.0

7 years ago