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

Intersects #19

Open
pigubaoza opened this issue Dec 27, 2018 · 4 comments
Open

Intersects #19

pigubaoza opened this issue Dec 27, 2018 · 4 comments

Comments

@pigubaoza
Copy link

Hi, I've noticed that this library does not contain the Intersection and Intersects methods that were in your deprecated library geo. Are there plans for them to be implemented in this library as well?

@paulmach
Copy link
Owner

paulmach commented Jan 6, 2019

I wasn't really happy with the API in go.geo. What kind of API are you thinking of. It gets weird because two line strings can intersect into nothing, a point, a line string or a multi line string.

@pigubaoza
Copy link
Author

Perhaps it could be like python's shapely library. Their intersect function returns a collection of geometric objects. https://shapely.readthedocs.io/en/stable/manual.html#collections

@tschaub
Copy link

tschaub commented Jan 16, 2019

Having just intersects (the predicate) would be useful (and is easier to implement than the constructive method). I haven't had any luck finding a pure Go implementation of geometry.Intersects(other) for all geometry types.

@ghost
Copy link

ghost commented Feb 11, 2019

Right now I am using Boundary intersection and if further filtering is needed I use https://github.com/JamesMilnerUK/pip-go

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

No branches or pull requests

3 participants