Package org.geolatte.geom

Examples of org.geolatte.geom.Geometry


    @Test
    public void RoundTrip() throws IOException {
        for (Geometry geometry : getGeometries()) {
            byte[] bytes = new SQLServerGeometryWriter().write(geometry);
            Geometry geometry2 = new SQLServerGeometryReader().read(bytes);
            assertEquals(geometry, geometry2);
        }
    }
View Full Code Here


    @Test
    public void RoundTrip() {
        List<Geometry> geometries = getGeometries();
        for (Geometry geometry : geometries) {
            org.postgis.Geometry converted = PGgeometryConverter.convert(geometry);
            Geometry back = PGgeometryConverter.convert(converted);
            assertEquals(geometry, back);
        }
    }
View Full Code Here

        for (Geometry geometry : geometries) {
            if (geometry instanceof MultiPolygon) continue;
            if (geometry instanceof GeometryCollection) continue;
            System.err.println(Wkt.toWkt(geometry));
            JGeometry converted = JGeometryConverter.convert(geometry);
            Geometry back = JGeometryConverter.convert(converted);
            assertEquals(geometry, back);
        }
    }
View Full Code Here

TOP

Related Classes of org.geolatte.geom.Geometry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.