use of com.revolsys.geometry.wkb.WKTReader in project com.revolsys.open by revolsys.
the class WKTReaderTest method testReadLargeNumbers.
public void testReadLargeNumbers() throws Exception {
final GeometryFactory geometryFactory = GeometryFactory.fixed2d(0, 1E9, 1E9);
final WKTReader reader = new WKTReader(geometryFactory);
final Geometry point1 = reader.read("POINT(123456789.01234567890 10)");
final Point point2 = geometryFactory.point(new PointDoubleXY(123456789.01234567890, 10));
assertEquals(point1.getPoint().getX(), point2.getPoint().getX(), 1E-7);
assertEquals(point1.getPoint().getY(), point2.getPoint().getY(), 1E-7);
}
Aggregations