mapbox-java icon indicating copy to clipboard operation
mapbox-java copied to clipboard

Add turf intersect feature for polygonal intersection

Open KeyG89 opened this issue 3 years ago • 2 comments

I would like to propose a new feature for turf java, namely polygonal intersection, which is as explained in the turf doc as a method that:

Takes two polygon or multi-polygon geometries and finds their polygonal intersection. If they don't intersect, returns null.

Screenshot 2022-07-27 at 11 57 24

It might help on various occasions while dealing with area-specific features on Android apps, for example, intersecting camera bounds with certain polygons can make a huge deal in making area-aware functionalities.

While looking for such a solution I've encountered geok library: https://github.com/piruin/geok - written in Kotlin, that apparently achieves this goal, so maybe it may be some kind of inspiration.

KeyG89 avatar Jul 27 '22 09:07 KeyG89

@allanwalkerit: I have the same request of porting turf.js' intersect function to Java. This will provide a more powerful tool than the currently available function TurfJoins

gangding avatar Apr 21 '23 04:04 gangding

FAO @tobrun as discussed

allanwalkerit avatar May 10 '23 14:05 allanwalkerit