assertEquals(geo2, geo);
}
@Test
public void MultiLineString() {
MultiLineString multiLineString = (org.geolatte.geom.MultiLineString) Wkt.fromWkt("MULTILINESTRING (" +
"(30 10, 40 40, 20 40, 10 20, 30 10), " +
"(20 30, 35 35, 30 20, 20 30))");
JGeometry geo = JGeometryConverter.convert(multiLineString);
double[] line1 = new double[]{30, 10, 40, 40, 20, 40, 10, 20, 30, 10};
double[] line2 = new double[]{20, 30, 35, 35, 30, 20, 20, 30};
JGeometry geo2 = JGeometry.createLinearMultiLineString(new Object[]{line1, line2},
multiLineString.getCoordinateDimension(), multiLineString.getSRID());
// System.err.println(Arrays.toString(geo.getElemInfo()));
// System.err.println(Arrays.toString(geo.getOrdinatesArray()));
// System.err.println(Arrays.toString(geo2.getElemInfo()));
// System.err.println(Arrays.toString(geo2.getOrdinatesArray()));
assertEquals(geo2, geo);