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

A multipolygon and 2 single polygons give differing results #212

Closed
avmey opened this issue Jul 14, 2023 · 2 comments · Fixed by #221
Closed

A multipolygon and 2 single polygons give differing results #212

avmey opened this issue Jul 14, 2023 · 2 comments · Fixed by #221

Comments

@avmey
Copy link

avmey commented Jul 14, 2023

Describe the bug
A multipolygon which has two polygons with a shared edge results in a different output than if the two polygons are fed to geoblaze separately.

To Reproduce
Using a valid geometry, input the following features and compare output.
{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates": [[[[-180,-18], [-178,-18], [-178,-20], [-180,-20], [-180,-18]]], [[[180,-20], [178,-20], [178,-18], [180,-18], [180,-20]]]]}, "properties":{}}
&&
{"geometry":{"type":"Polygon","coordinates": [[[180,-20], [178,-20], [178,-18], [180,-18], [180,-20]]]}}
{"geometry":{"type":"Polygon","coordinates": [[[-180,-18], [-178,-18], [-178,-20], [-180,-20], [-180,-18]]]}}

Expected behavior
Output to be identical

Screenshot 2023-07-11 at 1 27 40 PM
@DanielJDufour
Copy link
Member

I have confirmed this bug. Will need to investigate. My hunch is that it has to do with the antimeridian. Thanks for catching it!

@DanielJDufour
Copy link
Member

This should be fixed now with the most recent version of GeoBlaze

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

Successfully merging a pull request may close this issue.

2 participants