File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
main/java/com/esri/core/geometry
test/java/com/esri/core/geometry Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -750,7 +750,7 @@ else if (wkbBuffer.capacity() < (int) size)
750750 if ((exportFlags & WkbExportFlags .wkbExportPoint ) == 0 ) {
751751 wkbBuffer .put (offset , byteOrder );
752752 offset += 1 ;
753- wkbBuffer .putInt (offset , WkbGeometryType .wkbMultiPolygonZM );
753+ wkbBuffer .putInt (offset , WkbGeometryType .wkbMultiPointZM );
754754 offset += 4 ;
755755 wkbBuffer .putInt (offset , point_count );
756756 offset += 4 ;
Original file line number Diff line number Diff line change 2424
2525package com .esri .core .geometry ;
2626
27+ import com .esri .core .geometry .ogc .OGCGeometry ;
2728import java .io .IOException ;
2829import java .nio .ByteBuffer ;
2930import junit .framework .TestCase ;
@@ -107,4 +108,12 @@ public void testWKB2() throws Exception {
107108
108109 }
109110
111+ @ Test
112+ public void testWKB3 () throws Exception {
113+ String multiPointWKT = "MULTIPOINT ZM(10 40 1 23, 40 30 2 45)" ;
114+ OGCGeometry geometry = OGCGeometry .fromText (multiPointWKT );
115+ ByteBuffer byteBuffer = geometry .asBinary ();
116+ OGCGeometry geomFromBinary = OGCGeometry .fromBinary (byteBuffer );
117+ assertTrue (geometry .Equals (geomFromBinary ));
118+ }
110119}
You can’t perform that action at this time.
0 commit comments