Esri/geometry-api-java

A bug in WKB export of MultiPoint with Z and M

stolstov opened this issue · 0 comments

When multi point with Z and Mis exported to WKB it writes out incorrect type (polygonzm).
Repro:

@Test
	public void testWKB3() throws Exception {
		String multiPointWKT = "MULTIPOINT ZM(10 40 1 23, 40 30 2 45)";
		OGCGeometry geometry = OGCGeometry.fromText(multiPointWKT);
		ByteBuffer byteBuffer = geometry.asBinary();
		OGCGeometry geomFromBinary = OGCGeometry.fromBinary(byteBuffer);
		assertTrue(geometry.Equals(geomFromBinary));
	}