block by ThomasG77 d66f1040960646abf56c90ae5e759b8a

Using JSTS to measure how far a line travels through a polygon

Full Screen

Example to ilustrate this question at gis.stackoverflow.

We choose to replace Turf with JSTS.

If the result is more complex (i.e. the resulting intersection is a polyline), the algorithm should be repeated for each part in the polygon.

index.html