-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
Coverage Simplification, Validation, Union #731
Conversation
eb6643c
to
72a3d2d
Compare
|
@pramsey your documentation is missing mention of minimum required GEOS. |
|
Garden crash: |
@robe2 yes, that's a known issue. I'm in the process of fixing it. |
|
@pramsey if you want to commit, I'm fine with that. GHA latest is passing now after the build. The berries will fail at their garden test step until the crash issue is fixed in GEOS. |
|
Am I allowed to be petty @pramsey ? The ST_CoverageIsValid doesn't sound like it should return a geometry. The function seems misnamed. Maybe it should be named ST_CoverageInvalidElements |
Agreed, this sounds like it should return a boolean. How about Aside: we have kicked around the idea of an aggregate function returning a boolean, to report whether a set of polygonal geometries forms a valid coverage. |
I'm 0.52 for non-plural and 0.48 for plural based on a total weighting of 1 |
|
Changed to |
|
@pramsey I rebuilt the docker image and reran latest. All tests are passing now. Anything else you are waiting on before you commit? |
|
|
||
| Datum ST_CoverageUnion(PG_FUNCTION_ARGS); | ||
| PG_FUNCTION_INFO_V1(ST_CoverageUnion); | ||
| Datum ST_CoverageUnion(PG_FUNCTION_ARGS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this make more sense in lwgeom_geos.c ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dunno that the extra layer of indirection is a big win? What's the argument for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be clear, I meant postgis/lwgeom_geos.c. I just noticed that it was in lwgeom_window.c but is not a window function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potato / potato. Could move it but then it would be separate from its coverage friends...
Adds three new functions,
For the purpose of these functions a "coverage" is a set of polygons with perfectly shared edges (no overlaps or gaps and exact vertex matching).