Skip to content

Add turf intersect feature for polygonal intersection #1468

Open

Description

@KeyG89

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.

Activity

  1. gangding commented on Apr 21, 2023

    @gangding

    @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

  2. allanwalkerit commented on May 10, 2023

    @allanwalkerit

    FAO @tobrun as discussed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions