You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns a collection of intersecting lines that are mutually shared between two lines and/or polygons.
Reason for module: One step closer to removing jsts as a dependency (@turf/intersect test - linestring.geojson) & used to detect if Inner polygons are sharing the same borders of outer polygons when applying @turf/polygon-slice.
Valid input Geometry
LineString
MultiLineString
Polygon
MultiPolygon
FeatureCollection
JSDocs
/** * @name lineOverlap * @param {FeatureCollection|Feature<LineString|Polygon|MultiLineString|MultiPolygon>} line1 any LineString or Polygon * @param {FeatureCollection|Feature<LineString|Polygon|MultiLineString|MultiPolygon>} line2 any LineString or Polygon * @returns {FeatureCollection<LineString>} intersecting lines that share borders between both features**/
Nice work @DenisCarriere , I imagine this could be handy in a number of cases (although none of them come to me right now!), I'll get it added into the docs when it gets merged in.
Re removing JSTS the martinez repo got an update the other day so it's more stable than it used to be (although don't look at the online demo as that hasn't been updated) so it's a contender for modules like intersection, union, difference, xor.
New module proposal
@turf/line-overlap
Returns a collection of intersecting lines that are mutually shared between two lines and/or polygons.
Reason for module: One step closer to removing
jsts
as a dependency (@turf/intersect
test - linestring.geojson) & used to detect if Inner polygons are sharing the same borders of outer polygons when applying@turf/polygon-slice
.Valid input Geometry
JSDocs
Examples
Any thoughts?
CC: @rowanwins
The text was updated successfully, but these errors were encountered: