-
Notifications
You must be signed in to change notification settings - Fork 347
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
Crash in WKT of MultiPoint including an empty Point #305
Comments
|
Patched in 3.7, 3.8, master. |
|
Thanks for the quick fix! One thing I am wondering, is the reading of such WKT output supported? (or should it be supported?) (using GEOS 3.8.0) |
|
Current reading it is not supported. JTS does not read it either. PostGIS does. Hard call. It would have been way easier to write the test if reading was supported. :) |
|
I would vote (if it mattered ;)) for consistency within GEOS: either support it for both reading and writing, or not support it. It could also raise with a nice error message (like writing to WKB does), instead of crashing as before. Personally, I think it would be nice to have some of the extensions that are in PostGIS in GEOS (also eg for WKB of empty points), instead of having PostGIS, sf, Shapely, etc all implement their own similar workaround. |
Using the Python
pygeospackage to show the error (from pygeos/pygeos#134):Converting to WKB raises an informative error:
However, converting to WKT crashes:
I am not 100% sure this is a GEOS issue, since there might be something wrong on the PyGEOS side. But posting here in case somebody knows or can confirm this is a GEOS bug.
The text was updated successfully, but these errors were encountered: