}
}
@Test
public void Polygon() {
Polygon polygon = (org.geolatte.geom.Polygon) Wkt.fromWkt("POLYGON (" +
"(30 10, 40 40, 20 40, 10 20, 30 10), " +
"(20 30, 35 35, 30 20, 20 30))");
JGeometry geo = JGeometryConverter.convert(polygon);
double[] extRing = new double[]{30, 10, 40, 40, 20, 40, 10, 20, 30, 10};
double[] intRing = new double[]{20, 30, 35, 35, 30, 20, 20, 30};
JGeometry geo2 = JGeometry.createLinearPolygon(new Object[]{extRing, intRing},
polygon.getCoordinateDimension(), polygon.getSRID());
assertEquals(geo2, geo);
}