public void test2() throws Exception {
WKTReader reader = new WKTReader(new GeometryFactory(new PrecisionModel(1), 0));
Geometry geometry = reader.read("MULTIPOINT (130 240, 130 240, 130 240, 570 240, 570 240, 570 240, 650 240)");
LineString convexHull = (LineString) reader.read("LINESTRING (130 240, 650 240)");
assertTrue(convexHull.equalsExact(geometry.convexHull()));
}
public void test3() throws Exception {
WKTReader reader = new WKTReader(new GeometryFactory(new PrecisionModel(1), 0));
Geometry geometry = reader.read("MULTIPOINT (0 0, 0 0, 10 0)");