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.
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 asM
but the point is marked asZ
.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, butGEOMETRYCOLLECTION(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