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

Fix WKTWriter to emit EMPTY elements in multi-geometries #952

Conversation

mwtoews
Copy link
Contributor

@mwtoews mwtoews commented Aug 29, 2023

Closes #951

@mwtoews mwtoews force-pushed the fix-wkt-atomic-multi-geoms-with-one-or-more-empties branch 2 times, most recently from b4bfe3a to 6429ffd Compare August 29, 2023 02:37
@dr-jts
Copy link
Contributor

dr-jts commented Aug 29, 2023

Just to be clear: this is fixing the WKT parser so that it preserves empty elements in Multi-geometries?

@mwtoews
Copy link
Contributor Author

mwtoews commented Aug 29, 2023

the WKT parser is fine, just issues with the WKT writer. Also there were no issues with GeometyCollection but the tests were added to cover these scenarios too.

@dr-jts
Copy link
Contributor

dr-jts commented Aug 29, 2023

Perhaps a better title is "Fix WKTWriter to emit EMPTY elements in Multi-geometries"?

@mwtoews mwtoews force-pushed the fix-wkt-atomic-multi-geoms-with-one-or-more-empties branch from 7af1886 to 8ffc4c2 Compare August 29, 2023 23:36
@mwtoews mwtoews changed the title Fix WKT for atomic multi-geometries with one or more empties Fix WKTWriter to emit EMPTY elements in multi-geometries Aug 29, 2023
@mwtoews mwtoews merged commit f9cfee8 into libgeos:main Sep 5, 2023
@mwtoews mwtoews deleted the fix-wkt-atomic-multi-geoms-with-one-or-more-empties branch September 5, 2023 19:24
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 this pull request may close these issues.

WKT round-tripping fail with MULTIPOINT(EMPTY) vs MULTIPOINT EMPTY
2 participants