turf-swift icon indicating copy to clipboard operation
turf-swift copied to clipboard

Finding intersection between polygon and lineString objects

Open paweljankowski opened this issue 3 years ago • 1 comments

Hi,

Is it possible to find intersection between polygon and lineString objects? Are you going to implement that method?

-- Paweł

paweljankowski avatar Jan 28 '22 10:01 paweljankowski

There isn’t a dedicated method for that right now, but we’d be happy to consider a pull request implementing something along those lines. In the meantime, you can get the polygon’s outer ring or inner rings, convert them to line strings, and get the intersections with those line strings.

1ec5 avatar Mar 04 '22 00:03 1ec5