Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OverlayNG should return Point for intersection with zero-length LineString #1136

Open
pramsey opened this issue Aug 13, 2024 · 1 comment
Open
Assignees
Labels
Enhancement New feature or feature improvement.
Milestone

Comments

@pramsey
Copy link
Member

pramsey commented Aug 13, 2024

To match with the RelateNG logic, overlay should return a Point for intersection between Polygon and zero-length LineString. Currently it returns an empty LineString.

@pramsey pramsey added this to the 3.13.1 milestone Sep 6, 2024
@dr-jts dr-jts added the Enhancement New feature or feature improvement. label Jan 2, 2025
@dr-jts dr-jts changed the title OverlayNG should return Point for intersection between area and zero-length LineString OverlayNG should return Point for intersection with zero-length LineString Jan 3, 2025
@dr-jts
Copy link
Contributor

dr-jts commented Jan 3, 2025

This behaviour needs to apply in multiple situations. E.g.

  • Area with zero-length LineString
  • Area with MultiLineString containing zero-length element
  • Linear geometry with (Multi)LineString with zero-length element
  • Point geometry with (Multi)LineString with zero-length element

In general, the intersection of a zero-length LineString element with any geometry should produce an equivalent Point output (unless it is covered by another linear input element).

The semantics for other overlay operations need to be decided and implented as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or feature improvement.
Projects
None yet
Development

No branches or pull requests

2 participants