Package com.mysema.query.sql.spatial

Source Code of com.mysema.query.sql.spatial.PGgeometryConverterTest

package com.mysema.query.sql.spatial;

import static org.junit.Assert.assertEquals;

import java.util.List;

import org.geolatte.geom.Geometry;
import org.junit.Test;

public class PGgeometryConverterTest extends AbstractConverterTest {

    @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);
        }
    }

}
TOP

Related Classes of com.mysema.query.sql.spatial.PGgeometryConverterTest

TOP
Copyright © 2018 www.massapi.com. 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.