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 WKTReader and WKTWriter handling of collections with all empty elems #702

Merged
merged 1 commit into from
Mar 18, 2021

Conversation

dr-jts
Copy link
Contributor

@dr-jts dr-jts commented Mar 18, 2021

This fixes a bug in WKTWriter causing collections with all empty elements to be output as completely empty collections.
E.g. MULTIPOINT( EMPTY, EMPTY) was written as MULTIPOINT EMPTY.

While collections containing empty elements are of dubious value, WKTWriter should not be masking this structure.

Also fixes a WKTReader bug preventing MULTIPOINT( EMPTY, EMPTY) from being parsed.

Signed-off-by: Martin Davis mtnclimb@gmail.com

…ements

Signed-off-by: Martin Davis <mtnclimb@gmail.com>
@dr-jts dr-jts self-assigned this Mar 18, 2021
@dr-jts dr-jts merged commit 0e2861b into locationtech:master Mar 18, 2021
@dr-jts dr-jts deleted the fix-wkt-collection-empty branch March 18, 2021 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant