-
Notifications
You must be signed in to change notification settings - Fork 16
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
vector_buffer: result of shrinking until there is nothing left? #404
Comments
Good point. What do you think should happen? Throw an error? Empty geometry? |
We were a bit unsure:
We now throw an error, but would be better if we can also make it somehow work for this case. |
Yes, I'd need input from the different back-ends so that we standardize what the tooling actually does or what makes most sense, i.e. find hopefully a common denominator. Otherwise, throwing an error is always the last resort. |
Details for VITO: Open-EO/openeo-python-driver#164 |
Why is it an issue in downstream processes to have empty geometries/coordinates? @jdries GeoJSON supports empty geometries/coordinates. |
Handling empty geometries everywhere is indeed an option, perhaps also the best one as it would result in least errors for the users. |
@jdries Thanks. Which implementations are this? In the call it seemed people were at least not so concerned about the Python ecosystem. Spark? |
For us, it's a mixture of Python and Scala (geotrellis), but I don't think it can be linked to an ecosystem. In general, it's safe to assume that there will for sure exist implementations that do not deal well with it, and it needs to be tested case by case. So in any case, we can perhaps move forward with documenting handling of empty geometries in vector cubes? |
Do you mean on a case-by-case basis per process? Or generally in openEO? For the latter I'm not sure what we could document apart from that maybe empty geometries should be supported and if not, they get removed or so? On a per-process basis:
Sounds good? edit: add a general comment about empty geometries to the data cube introduction/glossary. |
Process ID: vector_buffer
Describe the issue:
We've run into this edge case where applying a negative buffer to a small polygon resulted in an empty (shapely) polygon. It's not clear what the result of this process should be.
Additional context:
Open-EO/openeo-geopyspark-driver#314
The text was updated successfully, but these errors were encountered: