Skip to content

Conversation

@peterstace
Copy link
Owner

Description

Fixes a bug where geometry collection coordinate types were allowed to mismatch. E.g. GEOMETRYCOLLECTION M(POINT Z(1 2 0)) is not allowed because the collection is marked as M but the point is marked as Z.

An extension beyond the OGC standard is implemented, allowing untagged geometry collections to contain any coordinate types, so long as they are all the same. So GEOMETRYCOLLECTION(POINT M(1 2 0), POINT M(2 3 0)) is allowed, but GEOMETRYCOLLECTION(POINT Z(1 2 0), POINT M(2 3 4)) is not.

Check List

Have you:

  • Added unit tests? Yes.

  • Add cmprefimpl tests? (if appropriate?) N/A

  • Updated release notes? (if appropriate?) Yes.

Related Issue

@peterstace peterstace self-assigned this May 13, 2024
@peterstace
Copy link
Owner Author

Thanks for reviewing!

@peterstace peterstace merged commit 925e936 into master May 15, 2024
@peterstace peterstace deleted the issue_397_check_geometry_collection_coord_types branch May 15, 2024 19:08
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.

3 participants