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 Linestring #3

Closed
akhenakh opened this issue Sep 25, 2023 · 1 comment
Closed

Intersects Linestring #3

akhenakh opened this issue Sep 25, 2023 · 1 comment

Comments

@akhenakh
Copy link

Nice work with this new project!

It seems those 3 intersections tests should intersect but aren't

                input1: LINESTRING(1 0,2 0)
                input2: LINESTRING(0 0,3 0)

                input1: LINESTRING(1 1,2 2)
                input2: LINESTRING(0 0,3 3)

                input1: LINESTRING(-0.5 0.5,-0.1 0.1)
                input2: LINESTRING(-1 1,1 -1)

For the context I'm wrapping tg in a CGO api and reusing some tests from https://github.com/peterstace/simplefeatures

func Intersects(g1, g2 *Geom) bool {
	return bool(C.tg_geom_intersects(g1.cg, g2.cg))
}
@tidwall
Copy link
Owner

tidwall commented Sep 25, 2023

Thanks!

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

2 participants