turf icon indicating copy to clipboard operation
turf copied to clipboard

Requesting to accept features other than polyon for turf.difference

Open dhivehi opened this issue 7 years ago • 1 comments

Given a line and polygon which intersects, i would like to remove the polygon intersecting area from the line. Example: turf.difference(line, polygon) But turf doesnt seem to accept a line as input parameter.

dhivehi avatar Oct 31 '17 16:10 dhivehi

As for the @turf/difference module, Turf does not throw any errors on LineString, however the difference module uses jsts which does not support LineString + Polygon difference operation. Maybe we could add a different JSTS Operation, currently it's using OverlayOp

DenisCarriere avatar Oct 31 '17 17:10 DenisCarriere