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

intersection return empty #101

Open
ljw0701 opened this issue Dec 12, 2019 · 2 comments
Open

intersection return empty #101

ljw0701 opened this issue Dec 12, 2019 · 2 comments

Comments

@ljw0701
Copy link

ljw0701 commented Dec 12, 2019

Why I do intersection with wagyu return 'MULTIPOLYGON EMPTY',but do intersection with GEOS return a geometry object?
e.g.
select st_astext(st_intersection(ST_GeomFromText('POLYGON((2600140.901 -603782.437400002, 2600545.2722 -603782.437400002, 2600545.2722 -603279.563999999, 2600140.901 -603279.563999999, 2600140.901 -603782.437400002))', 3857), ST_GeomFromText('POLYGON((2600245.2722 -603682.437400002,2600245.2722 -603682.437400002,2600244.66725 -603682.174225002,2600244.0623 -603681.911050001,2600243.45735 -603681.647875001,2600242.8524 -603681.3847,2600242.8524 -603681.3847,2600242.8524 -603681.3847,2600242.8524 -603681.3847,2600242.61455 -603680.929525,2600242.3767 -603680.47435,2600242.13885 -603680.019175,2600241.901 -603679.563999999,2600241.901 -603679.563999999,2600241.901 -603679.563999999,2600241.901 -603679.563999999,2600242.7438 -603680.28235,2600243.5866 -603681.000700001,2600244.4294 -603681.719050001,2600245.2722 -603682.437400002,2600245.2722 -603682.437400002))', 3857)));

@springmeyer
Copy link
Contributor

springmeyer commented Dec 12, 2019

/cc @flippmoke @ericfischer

@flippmoke
Copy link
Member

@ljw0701 could you provide a screen shot of the original geometry, my bet here is that Wagyu simply collapses the resulting geometry into a line then removes it. This happens due to the way that Wagyu uses snap rounding internally in the algorithm.

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