-
Notifications
You must be signed in to change notification settings - Fork 367
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
Union Operations returns collections containing empty elements #1224
Comments
Interesting - in JTS the unary union gives the expected result:
|
A simpler case for unary union:
The ideal result is probably
|
Yes, dicussion in #1136 indicate that a Linestring of 0 length or a Area of 0 size should return a point or at least be retained. |
The cause of the This code should be enhanced to remove empty elements. Actually I'm in favour of removing it altogether, since it creates other behaviour differences with OverlayNG (for example, it does not node disjoint sets of LineStrings). Or at least refining it significantly, and perhaps moving it into OverlayNG, since it is then available everywhere. At very least it can be moved into In general I think it's better to avoid putting heuristic logic into
|
I guess it depends on just how fast the fast path through OverlayNG is, for the "union of disjoint things"? |
It should provide similar performance, apart from a bit of overhead from a few more calls. |
Relates to: https://trac.osgeo.org/postgis/ticket/5835
Reproduce in GEOS:
The text was updated successfully, but these errors were encountered: